Can an electrical panel be installed in a bathroom or clothes closet?
Electrical Panels Cannot Go in Unsuitable Locations
Location of Electrical Equipment
Published by Jaspector
Code Reference
IRC 2021 — E3405.4
Location of Electrical Equipment · General Electrical Requirements
Quick Answer
No. IRC 2021 E3405.4 does not allow overcurrent devices or panelboards to be located in bathrooms or in clothes closets. A residential panel needs to be in a suitable, readily accessible location where a person can safely operate breakers, open the dead front, and work with the required clearances. Bathrooms introduce moisture and grooming use. Clothes closets introduce storage, combustibles, and blocked access. Even if the panel physically fits in the wall, that does not make the location compliant.
This comes up constantly during remodels because older homes sometimes have equipment in locations that would not be approved today. Once work is altered under permit, the inspector will focus on whether the existing location is allowed to remain, whether the scope triggers relocation, and whether the working space is still available. If a contractor is planning a service upgrade, a panel replacement, or a wall reconfiguration, panel location is one of the first issues to verify before rough framing closes up.
What E3405.4 Actually Requires
E3405.4 is a location rule, not just a convenience rule. In plain language, overcurrent devices cannot be placed where the surrounding room use makes the equipment unsafe or impractical to access. Bathrooms are prohibited because electrical equipment should not be installed where routine moisture, steam, splashing, and personal-use conditions can affect operation and servicing. Clothes closets are prohibited because normal closet use means shelving, hanging garments, stacked storage, and combustible materials encroaching into the access area.
The rule works together with the broader electrical-equipment provisions on accessibility and working space. A panel is not code-compliant merely because its cover can technically be opened. The installation must allow a person to approach it, stand in front of it, reset a breaker, and service it without moving stored items or working in a wet or cramped area. In practice, inspectors also look to the NEC-based concepts behind the IRC chapter: equipment should be readily accessible, protected from physical damage, and installed in a location consistent with the product listing and safe use.
For homeowners, the key point is simple: if the proposed location is a bathroom, a clothes closet, or a space that functions like one, it is the wrong place for a panel. That includes walk-in closets used for clothing storage, reach-in bedroom closets, and bathroom walls where the only practical access to the panel would be from inside the bathroom. The code focuses on the use of the space, not on whether the installer can find a workaround.
Why This Rule Exists
The hazard is not theoretical. Panels need occasional operation and sometimes emergency access. A breaker trip, arcing fault, overheating lug, or service issue is exactly the kind of event where a person needs to get to the equipment fast and without extra hazards. Bathrooms add water sources, condensation, and a user population that may be barefoot, damp, or pressed for space. Clothes closets add clothing, cardboard, boxes, and other storage that can block access or contribute fuel if equipment overheats.
The rule also exists because panels are not decorative fixtures that disappear into the room. They are service equipment or distribution equipment with energized parts behind a removable cover. Electricians and inspectors need to open them safely. If the panel is in a clothes closet, the working area tends to get narrowed by shelves, rods, baskets, shoe racks, and stored goods. If the panel is in a bathroom, the working area can be compromised by vanities, toilets, doors, towel bars, and damp finishes. Those room functions fight against the space an electrician needs.
There is also a human-factors reason. People naturally use closets for more storage and bathrooms for more cabinetry. Over time, a once-clear area becomes obstructed. The code avoids that predictable misuse by barring the location in the first place instead of hoping every future occupant will keep the panel clear forever.
What the Inspector Checks at Rough and Final
At rough inspection, the inspector first checks where the panel is being placed relative to the room layout shown by the framing. If the panel backs up to a bathroom wall but opens into a hallway or utility room, that may be acceptable if the actual access is from the compliant side. If the panel door opens inside the bathroom or closet, the location will usually be rejected immediately. The inspector will also look at framing conflicts, doorway swing, proposed shelving, and whether the design preserves the required approach and working space in front of the panel.
At final inspection, the room use matters even more. A space labeled as a "linen area" or "storage nook" may be treated like a closet if its practical use is enclosed storage. Inspectors commonly look for rods, shelves, cabinetry, stacked washers, or built-in organizers that convert the panel area into a closet-like installation. They also verify that the panel remains readily accessible, breakers are properly identified, the cover is intact, and the dead front can be removed without dismantling room finishes or permanent built-ins.
If this is part of a service change, the inspector may be less willing to overlook an old prohibited location because the job gave the installer a clear opportunity to correct it. In many jurisdictions, replacing a service panel in the same bathroom or clothes closet location is a red flag that leads to correction or plan review comments before the job can close.
What Contractors Need to Know
Contractors should treat panel location as a layout issue to solve before permit drawings are submitted, not as a field judgment to make after drywall. The cheapest wall cavity is not always a legal wall cavity. A compliant panel location usually means an interior garage wall, utility room, basement wall, exterior wall with proper weatherproofing where allowed, or another dry accessible area that can maintain working clearance for the life of the installation.
On remodels, ask early whether the existing panel is grandfathered, whether the planned work triggers relocation, and whether the jurisdiction has service-upgrade policies that are stricter than the base IRC language. Some AHJs are especially strict when a prohibited location becomes part of new work, even if the original panel predates the current code cycle. A contractor who waits until final inspection to address this can end up with drywall demolition, utility coordination delays, and expensive service rerouting.
Contractors also need to coordinate with architects and cabinet installers. A panel placed near a future built-in, wardrobe system, or bathroom addition can become noncompliant even if the wall was clear at rough. Make sure the owner understands that the electrical working area is not spare storage space and that future shelving or enclosure work can create a correction later.
What Homeowners Get Wrong
A common misunderstanding is that a panel is acceptable in a bathroom if it is high enough on the wall or far enough from the sink. That is not how this rule works. This is not simply a splash-clearance issue. The bathroom itself is the prohibited room use. Another common mistake is assuming a walk-in closet is different from a clothes closet because it feels more like a room. If the space is intended for clothing storage, the prohibition still applies.
Homeowners also confuse a decorative door or cabinet front with legal concealment. A panel can be visible and still be code-compliant, and hiding it does not solve a bad location. If the panel sits inside a prohibited room, putting artwork, a mirror, or a shallow cabinet in front of it only makes the access problem worse. The code is concerned with safety and serviceability, not aesthetics.
Another mistake is relying on what exists in neighboring homes. Older houses often contain legacy panel locations that would fail if installed today. Existing does not automatically mean approvable for new work. If you are remodeling a bathroom, converting a bedroom closet, or replacing the service equipment, assume the panel location should be reviewed from scratch.
State and Local Amendments
Electrical enforcement is local, and panel-location interpretation can vary at the permit counter even when the base text is similar. Some jurisdictions adopt the IRC electrical chapters directly for one- and two-family dwellings; others enforce the NEC separately. Either way, the practical outcome is usually the same: bathrooms and clothes closets are off limits for panelboards and overcurrent devices. Local amendments may also affect service-equipment placement, exterior disconnect requirements, working-clearance enforcement, and what happens when old service equipment is replaced.
That matters because the relocation threshold is not handled identically everywhere. One city may allow limited repair work to an existing installation while another may require relocation once the panel is replaced or the service is upgraded. Coastal and humid jurisdictions may be especially particular about moisture exposure and room-use conflicts. Historic districts or dense urban remodels may push owners toward creative locations, but creative does not mean approved.
The smart move is to ask the AHJ before the job is priced: if an existing panel is in a bathroom or clothes closet, can it remain for this scope, or must it be moved now? Getting that answer early prevents change orders and failed finals.
When to Hire a Licensed Electrician
You should involve a licensed electrician any time a project touches service equipment, panel replacement, feeder rerouting, or room alterations near an existing panel. Relocating a panel is not a cosmetic task. It can involve service conductors, grounding and bonding updates, circuit extensions, utility disconnect scheduling, drywall repair, and coordination with the inspector and power company. A handyman fix or homeowner workaround usually does not address the actual code issue.
Even if the question starts as, "Can I leave the old panel where it is?" a qualified electrician can evaluate whether the installation is legally existing, whether the current project will trigger corrections, and what the least disruptive compliant relocation path looks like. In many homes, moving the panel a short distance to a hall, garage, or utility area is far less painful when planned before finishes, cabinets, and plumbing fixtures are installed.
If breakers are tripping, the panel feels warm, corrosion is visible, or the house is due for a service upgrade, do not delay the evaluation. A prohibited location combined with aging equipment is exactly the kind of condition that deserves professional review rather than another patch.
Common Violations Found at Inspection
The most obvious violation is a new panel installed directly inside a bathroom or bedroom clothes closet. Inspectors also commonly write corrections when a remodel creates a closet around an existing panel by adding walls, shelving, or doors. Another frequent problem is a panel that opens into what the plans call a utility alcove but what the built condition clearly uses as a clothing-storage space.
Working-clearance problems show up constantly alongside location violations. The panel may technically be outside the bathroom or closet, but a vanity edge, cabinet bank, washer, shelf system, or door swing narrows the access area until it is no longer serviceable. Inspectors also see panel covers hidden behind mirrors, coat racks, or decorative enclosures that require tools, furniture removal, or stored-item removal before access is possible.
Finally, service upgrades often expose multiple defects at once: prohibited room location, inadequate clearances, poor breaker labeling, missing bonding details, and old circuits entering an overcrowded cabinet. Once the inspector opens the panel, the location issue becomes part of a larger safety review. That is why treating E3405.4 as a minor placement rule is a mistake. If the panel is in a bathroom or clothes closet, expect the installation to draw serious attention at inspection.
Frequently Asked Questions
FAQ — Electrical Panels Cannot Go in Unsuitable Locations
- Can I keep a breaker panel in a bathroom if it is above the sink splash area?
- No. The problem is not just splash distance. Bathrooms are a prohibited location for panelboards and overcurrent devices under IRC 2021 E3405.4.
- Does a walk-in closet count as a clothes closet for panel location rules?
- Yes. If the space is intended for clothing storage, inspectors generally treat it as a clothes closet even if it is large enough to walk into.
- Can I put a decorative cabinet door over a panel to hide it?
- Hiding the panel does not fix a bad location, and added doors or cabinetry can create an accessibility problem even in an otherwise legal room.
- Will I have to move an old panel if I remodel the bathroom next to it?
- Maybe. Some existing installations are allowed to remain, but remodels, service changes, and altered room layouts often trigger a closer review by the AHJ.
- Can a panel be on the other side of a bathroom wall?
- Yes, if the panel is accessed from a compliant space such as a hallway, garage, or utility room and all working-clearance rules are met on that side.
- What is the best replacement location if my panel is in a closet now?
- Common compliant options include a garage wall, utility room, basement, or another dry accessible area with permanent working space. A licensed electrician should confirm the best route for your home.
Also in General Electrical Requirements
← All General Electrical Requirements articles- Electrical Equipment Is Judged by Installation and Condition
What does an inspector look for when examining electrical equipment?
- Electrical Equipment Must Be Approved and Listed for Its Use
Can I use electrical parts that are not listed or approved?
- Electrical Equipment Must Remain Accessible
Can I cover or hide a junction box or disconnect behind drywall?
- Electrical Panels Need Working Space Clearance
How much working space is required in front of an electrical panel?
- Electrical Work Must Stay Available for Inspection
When does electrical work need rough and final inspection?
- Electrical Work Usually Requires a Permit
Do I need a permit to add or replace electrical wiring in my house?
- Panels Need Dedicated Electrical Space Above and Below
Can plumbing or ductwork run above an electrical panel?
Have a code question about your project? Get personalized answers from our team — $9/mo.
Membership