Electrical Guide

Can You Put an Outlet in a Closet? NEC Closet Rules, AFCI and Safe Placement

Can you put an outlet in a closet? Yes. The National Electrical Code does not ban receptacles in closets, and it does not require them. A closet outlet must follow normal dwelling rules: AFCI protection under NEC 210.12, a tamper-resistant device under NEC 406.12, a correctly sized box and an inspected permit. What the code does keep out of closets is the breaker panel. Keep loads small, keep fabric clear and the outlet is safe.

Key Takeaways

  • The NEC allows an outlet in a closet. It is optional, never required.
  • Closets are on the NEC 210.12 AFCI list. Plan for arc fault protection.
  • New receptacles in a home must be tamper-resistant (NEC 406.12).
  • Panels and breakers are the thing banned from clothes closets (NEC 240.24(D)).
  • Chargers, safes, routers and LED lights are good closet loads. Heaters and irons are not.
  • Most homeowner quotes for a simple closet outlet fall in the low hundreds of dollars.
Outlet in a closet: reach-in bedroom closet with hanging shirts and a wall outlet low on the side wall

Closets used to hold clothes and a pull chain light. Now they hold gun safes, Wi-Fi routers, cordless vacuums, smart lock hubs and charging stations.

So people ask the same question again and again. On Reddit's r/AskElectricians, one homeowner wanted an outlet only for an electronic safe, and the closet had nothing but a pull chain fixture. Another wanted to pigtail power off the closet light switch. A third asked what a fair price was.

This guide answers all of it. You will get the plain answer, the code sections that apply, the best mounting spot, safe and unsafe loads, where the power can come from and what it costs. Michael Wallace, a licensed electrician in Portland, Oregon, reviewed every code point.

210.12NEC section that lists closets for AFCI protection
406.12NEC section requiring tamper-resistant receptacles
240.24(D)Keeps breakers and panels out of clothes closets
3,300Home fires a year that start in extension cords (CPSC)

Yes. No section of the NEC prohibits a receptacle in a closet. It is legal in every US state that uses the NEC, as long as the install meets the normal rules for the circuit, box and device.

The confusion comes from two real rules that people mix up.

The first is about panels. NEC 240.24(D) says overcurrent devices must not sit in the vicinity of easily ignitible material, such as in clothes closets. That means the breaker panel. It does not mean a receptacle.

The second is about lights. NEC 410.16 sets clearances between closet light fixtures and the storage space where clothes sit. Again, that is a luminaire rule. It does not touch receptacles.

So a closet outlet is simply a normal outlet in a small room. It must be installed like any other one.

Is a Closet Outlet Required by Code?

No. NEC 210.52(A) sets wall spacing for habitable rooms. The rule says no point along the floor line of a usable wall can be more than 6 feet from an outlet. Closets are not on that list of rooms.

That is why builders skip them. A closet outlet costs money and no inspector asks for it.

What About Canada and Other Countries?

The answer above is for the United States. Google's own AI summary for this query notes that the Canadian Electrical Code is stricter about receptacles in cupboards and enclosed spaces. If you live outside the US, check your national code.

Who Makes the Final Call?

Your local inspector. Each state adopts a code edition and can amend it. Oregon enforces the Oregon Electrical Specialty Code, which is based on the NEC. A city or county inspector applies it on your job.

What Code Rules Apply to a Closet Outlet?

Four rules do most of the work: AFCI protection (210.12), tamper-resistant devices (406.12), box fill (314.16) and a flush, accessible box (314.20 and 314.29). GFCI only applies when the closet sits in a wet or damp area.

AFCI Protection Under NEC 210.12

An arc fault circuit interrupter senses the signature of arcing in a damaged wire or loose connection. It trips before the arc starts a fire.

NEC 210.12(A) lists the dwelling areas that need it. Closets are named on the list, along with bedrooms, hallways, living rooms and laundry areas. The protection usually comes from a combination AFCI breaker in the panel.

If you extend an existing bedroom circuit into the closet, that circuit may already be AFCI protected. If the house is older, it may not be. NEC 210.12(D) requires AFCI protection when branch circuits in those areas are modified or extended, with a narrow exception for short extensions under 6 feet that add no outlets. A new closet receptacle is a new outlet, so the exception does not cover it.

Tamper-Resistant Receptacles Under NEC 406.12

All 15 and 20 amp, 125 volt receptacles in a dwelling must be tamper-resistant. Internal shutters block a paper clip or key from reaching the contacts. They look like normal outlets with a small "TR" stamp.

Closets are where small kids hide. This rule matters here.

Box Fill Under NEC 314.16

Every wire takes up space. A 14 AWG conductor counts as 2.00 cubic inches. A 12 AWG conductor counts as 2.25 cubic inches. The receptacle counts as two conductors. All grounds together count as one.

A pass-through box with two cables, a device and grounds needs about 18 cubic inches for 12 AWG. A cheap 14 cubic inch old-work box is too small. This is the most common closet mistake inspectors flag.

Box Mounting Under NEC 314.20, 314.21 and 314.29

The box must sit flush with or project from a combustible wall such as drywall over wood. Gaps around it cannot exceed 1/8 inch. And it must stay accessible. You cannot hide it permanently behind a built-in shelf unit.

When a Closet Outlet Needs GFCI

NEC 210.8(A) covers bathrooms, kitchens, garages, basements, crawl spaces, laundry areas and receptacles within 6 feet of a sink, tub or shower. A bedroom closet is not on the list.

A closet that opens into a bathroom, or one in an unfinished basement, is different. There the receptacle needs GFCI protection too. A dual function AFCI/GFCI breaker handles both.

Code ruleWhat it means in a closet
NEC 210.12 (AFCI)Closets are on the list. Arc fault protection required.
NEC 406.12 (TR)Tamper-resistant receptacle required.
NEC 210.8 (GFCI)Only in bathrooms, basements and other listed areas.
NEC 314.16 (box fill)Size the box for every wire and the device.
NEC 314.29 (access)No burying the box behind built-ins.
NEC 240.24(D)No breaker panel in a clothes closet.
NEC 210.52(A)Spacing rules do not apply. The outlet is optional.
Code edition note: Section numbers here follow the 2023 NEC. Oregon's electrical specialty code is based on it. Older editions use the same core ideas with small wording changes.

Where Should You Mount an Outlet in a Closet?

Mount it where the plug will never touch stored clothes. Low on the side wall near the door, or high above the top shelf for a router or light, are the two best spots.

Closets are small. Clothes hang in the middle. Shoes and bins sit on the floor. The back wall gets buried first. So placement decides whether the outlet stays usable and cool.

Low on the Side Wall

About 12 to 18 inches above the floor, on the return wall beside the door frame, is ideal for a vacuum dock or a safe. Clothes rarely hang there. You can reach it without pulling everything out.

High Above the Top Shelf

A receptacle above the top shelf, near the ceiling, suits a mesh Wi-Fi node, a camera hub or LED tape lighting. Keep it clear of the shelf itself. Do not set boxes or bags in front of it.

Inside the Safe Footprint

Gun safes and document safes often come with a dehumidifier rod or an electronic lock. Most safe makers drill a small power port in the back. Put the outlet so the cord reaches the port without a tight bend, and so the box stays accessible. That usually means beside the safe, not behind it.

What About the Closet Light Switch Height?

Many installers put the receptacle in a two-gang box next to the closet light switch inside the door, at switch height. It is easy to wire and easy to reach. It works well for chargers.

What Can You Safely Plug Into a Closet Outlet?

Low draw, low heat devices that do not need watching: chargers, safes, network gear, LED lighting and small dehumidifier rods. Skip anything that heats up or runs hard for hours.

A closet is a box full of fuel. Cotton, wool, paper and cardboard all burn. The goal is to keep heat away from them.

DeviceCloset verdict
Cordless stick vacuum dockGood. Leave air space around the charger.
Electronic gun or document safeGood. Very low draw.
Safe dehumidifier rodGood. Low wattage, made for enclosed safes.
Wi-Fi router or mesh nodeGood with airflow. Walls may weaken signal.
Fiber ONT or security panelGood. A common reason for closet power.
LED strip or motion lightGood. Runs cool.
Phone and tablet chargersFine. Keep bricks off fabric.
Space heaterNever. High draw and open heat.
Clothes iron or steamerUse and unplug. Never leave on.
Portable dehumidifierAvoid. Needs open air and a drain.

Why Heaters Are the Big No

Space heaters pull up to 12.5 amps at 1,500 watts. That is most of a 15 amp circuit. They also need about 3 feet of clear space from anything that can burn, according to the US Fire Administration. A closet cannot give that.

What About Battery Chargers?

Lithium-ion batteries in e-bikes, scooters and power tools have caused serious home fires. The CPSC has warned about overheating e-mobility batteries. Charge big packs in an open area where you can see them. A closet is a poor place for an e-bike battery.

  • Read the charger label for amps. Most small chargers draw under 1 amp.
  • Keep at least a few inches of air around any charger.
  • Use the charger that came with the device.
  • Touch the plug now and then. Warm is a warning sign.

Where Can the Power for a Closet Outlet Come From?

The usual sources are an outlet on the other side of the closet wall, the closet light switch box if it has a neutral, or a cable fished from the attic or basement. A new circuit from the panel is the last resort.

Back-to-Back From the Bedroom

Most closets share a wall with a bedroom. If a bedroom outlet sits on that wall, an electrician can run a short cable from it into a new old-work box inside the closet. This is the cheapest, cleanest route.

Check the circuit load first. A bedroom circuit often feeds lights and outlets in two or three rooms.

From the Closet Light Switch

This is the route people ask about most on Reddit. It can work, but only if the switch box has a neutral wire. Many older switch loops have only a hot and a switched leg, and no neutral.

Since the 2011 NEC, section 404.2(C) has required a neutral at most new switch locations. Newer homes usually have one. Older homes often do not. Our guide on adding an outlet to an existing light switch covers how to tell.

Warning: Never use the bare ground wire as a neutral. It energizes the ground path and can shock the next person who touches a metal box.

From the Attic or Crawl Space

For a closet with no nearby source, an electrician can drop a cable down from the attic or up from a crawl space or basement. The guide on installing an outlet without an existing outlet nearby walks through every source.

Without Tearing Up the Wall

Most closet outlets need only a single box-sized hole. A fish tape and flexible drill bits do the rest. Surface raceway is another option for plaster or rental homes. See adding an outlet without opening the wall for the methods.

1

Pick the Source

Find the closest outlet or box with a neutral and spare circuit capacity.

2

Pull the Permit

New outlets are new wiring. Most Oregon jobs need an electrical permit.

3

Kill and Test

Turn off the breaker and confirm dead with a tester.

4

Cut and Fish

Cut the box hole between studs and fish the cable.

5

Box and Device

Install a properly sized box and a TR receptacle.

6

Test and Inspect

Check polarity, ground and AFCI trip, then call for inspection.

How Much Does It Cost to Put an Outlet in a Closet?

A simple add-on from an outlet on the other side of the wall is usually the cheapest electrical job you can book. A new dedicated circuit, an AFCI breaker upgrade or a long fish run costs more.

One Reddit thread on closet outlet pricing summed up the quotes people got as ranging from about $50 to $500, with most between $150 and $300. That matches what electricians see: the wall, not the outlet, sets the price.

Job typeWhat drives the cost
Back-to-back from bedroom outletShort run, one hole. Lowest cost.
Tap from closet switch with neutralShort run. May need a two-gang box.
Fish from attic or crawl spaceAccess, insulation and distance.
New dedicated circuitPanel space, AFCI breaker and long run.
Plaster or finished built-insExtra cutting, patching and care.
Permit feeSet by your city or county.

Book closet power during another job if you can. When an electrician is already there for a panel or lighting job, a closet outlet adds little time.

What Do Homeowners Ask About Closet Outlets on Reddit?

The same five questions repeat: can I tap the light switch, does it need AFCI, is it a fire risk, what will it cost and can I just use an extension cord.

We reviewed the top threads on r/AskElectricians, r/electrical and r/HomeImprovement for this guide. Here is what comes up, with the short answer for each.

"I only have a pull chain light. Can I add an outlet?"

Sometimes. A pull chain fixture box has a constant hot and a neutral, so it can feed an outlet if the box is big enough and the circuit allows it. An electrician will confirm the box fill and the AFCI requirement first.

"Can I pigtail off the closet switch?"

Only if a neutral is in the box. Without one, you need a different source.

"Is it against code to have an outlet in a closet?"

No. The panel is banned from clothes closets. The outlet is not.

"Can I run an extension cord in instead?"

Not as a permanent fix. Cords pinched in doors overheat. CPSC data links about 3,300 home fires a year to extension cords.

Is a Closet Outlet a Fire Hazard?

A correctly installed closet outlet with a small load is not a fire hazard. The hazard is heat from the wrong device, a loose plug, or cords crushed by doors and bins.

The Electrical Safety Foundation International estimates that home electrical fires cause about 51,000 fires, nearly 500 deaths and more than 1,400 injuries a year in the US. Most start in wiring, cords and plugs, not inside a healthy outlet.

AFCI protection is the code's answer to that risk. It trips on arcing that a normal breaker ignores. That is exactly why closets are on the AFCI list.

  • Plugs that feel warm or look brown at the prongs.
  • Power strips plugged into other power strips.
  • Cords running under the closet door.
  • Chargers buried in folded sweaters.
  • Outlets that spark or buzz when you plug in.

A buzzing or warm closet outlet needs attention fast. Our guide on why an outlet buzzes explains the causes.

Can You Put an Outlet in a Walk-In or Linen Closet?

Yes. The same rules apply to both. Walk-in closets often get several outlets for steamers and islands, and linen closets usually get one for a vacuum dock.

Walk-in closets are almost small rooms. They often have a dresser island, a mirror and lighting. We cover them in our guide to an outlet in a walk-in wardrobe.

Linen closets hold towels and sheets. Heat matters even more there. See installing an outlet in a linen closet for that version.

Pantry closets are a third case. A pantry next to a kitchen falls under kitchen circuit rules. Read putting an outlet in a pantry before you wire one.

Can a Closet Outlet Share a Circuit With the Bedroom?

Yes. A closet receptacle is a general purpose outlet. It can share a 15 or 20 amp bedroom circuit, as long as the total load stays within limits.

The NEC does not cap how many outlets go on a residential general purpose circuit. Electricians use load math instead. A continuous load should stay at or under 80 percent of the breaker: 12 amps on a 15 amp circuit, 16 amps on a 20 amp circuit.

CircuitContinuous load limit
15 amp, 14 AWG12 amps (1,440 watts)
20 amp, 12 AWG16 amps (1,920 watts)

A safe, a router and a vacuum charger together usually pull under 2 amps. They will not stress a bedroom circuit.

Should the Closet Outlet Be Switched With the Light?

No for most uses. Safes, routers and chargers need constant power. Keep the receptacle on an always-hot feed and leave the switch for the light.

A switched closet receptacle makes sense in one case: plug-in LED lighting you want on when the door opens. Even then, a door jamb switch or a motion sensor on the fixture is a cleaner way to do it.

Can You Install a Closet Outlet Yourself?

In Oregon, an owner may do electrical work on their own home if it is not for sale, rent or lease, but a permit and inspection still apply. Other states have their own rules.

Oregon's Building Codes Division runs a homeowner electrical permit program. The owner pulls the permit and calls for the inspection. If you are not sure about box fill, AFCI or finding a neutral, hire a licensed electrician.

Tip: Take a photo of the wall before you cut. Note any outlets, switches, vents and plumbing on both sides. It saves you from hitting a pipe or duct.

Frequently Asked Questions

Can you put an outlet in a closet?

Yes. The NEC allows receptacles in closets. Use AFCI protection, a tamper-resistant device and a properly sized box, and get it inspected.

Do closets usually have outlets?

Most do not. Code does not require one, so builders skip them. Newer custom homes often add one for vacuums or network gear.

Is it against code to have an electrical panel in a closet?

Yes, in a clothes closet. NEC 240.24(D) keeps breakers and fuses away from easily ignitible material such as clothes closets.

Does a closet outlet need to be AFCI?

Yes in most cases. NEC 210.12(A) lists closets among the areas that need AFCI protection in dwellings.

Does a closet outlet need GFCI?

Only when the closet is in a GFCI area, such as a bathroom, unfinished basement or within 6 feet of a sink.

How much does it cost to add an outlet in a closet?

Reddit quotes cluster between about $150 and $300 for simple jobs. Long runs, new circuits and plaster walls cost more.

Can I add an outlet from the closet light switch?

Only if the switch box has a neutral wire. Many older switch loops do not.

Can I charge an e-bike battery in a closet?

It is not a good idea. Large lithium-ion packs should charge in open areas where you can see them.

The Bottom Line

Yes, you can put an outlet in a closet. The code allows it and never requires it.

Use AFCI protection. Use a tamper-resistant receptacle. Size the box for the wires. Mount it low on the side wall or high above the shelf, where clothes will not bury it.

Plug in chargers, safes, routers and LED lights. Keep heaters, irons and big battery packs out. Then get the permit and inspection, and the closet gets power without adding risk.

How this guide was written: Written by Michael Wallace, licensed electrician in Portland, Oregon. Sources reviewed: 2023 National Electrical Code sections 210.8, 210.12, 210.52, 240.24, 314.16, 314.20, 314.21, 314.29, 404.2, 406.12 and 410.16; the Oregon Electrical Specialty Code and Oregon Building Codes Division homeowner permit guidance; U.S. Consumer Product Safety Commission extension cord data; U.S. Fire Administration space heater guidance; Electrical Safety Foundation International home fire statistics; and homeowner threads on r/AskElectricians, r/electrical and r/HomeImprovement. Local amendments and your inspector decide edge cases.

Call now Free estimate