Can an electrical panel be installed in a bathroom or closet under IRC 2018?
Panels Cannot Be Installed in Bathrooms or Clothes Closets Under IRC 2018
Location of Electrical Equipment
Published by Jaspector
Code Reference
IRC 2018 — E3405.4
Location of Electrical Equipment · General Electrical Requirements
Quick Answer
No. IRC 2018 Section E3405.4 does not allow overcurrent devices or panelboards to be located in bathrooms or clothes closets. A residential panel must be in a suitable, readily accessible location where a person can safely operate breakers, remove the dead front, and work with the required clearances. Bathrooms introduce moisture and routine personal-use hazards. Clothes closets introduce stored combustibles, shelving, and blocked access. Even when the panel physically fits in the wall cavity, that does not make the location compliant with IRC 2018.
What E3405.4 Actually Requires
IRC 2018 Section E3405.4 is a location rule with a clear prohibition: overcurrent devices, including panelboards, cannot be placed in bathrooms or clothes closets. The section is straightforward but frequently encountered in remodel work because older houses often contain equipment in locations that would not be permitted under current code. Once a project triggers permit review — particularly a service upgrade, panel replacement, or room reconfiguration — the inspector will evaluate whether the existing location is permitted to remain or whether the scope requires relocation.
The rule works together with the broader electrical-equipment provisions on accessibility and working space. A panel is not code-compliant merely because its door can technically be opened from the room where it sits. The installation must allow a person to approach the equipment, stand in front of it, reset a breaker, and service the interior without working in a wet or cramped area, without moving clothing or stored goods, and without working in a room whose primary use creates predictable hazards for electrical servicing. Inspectors also apply the underlying NEC-based concept behind the IRC chapter: equipment should be readily accessible, protected from physical damage, and installed in a location consistent with the product listing and its intended safe use.
For homeowners, the practical answer is simple. If the proposed or existing panel location is a bathroom, a clothes closet, or any space that functions as one — including walk-in closets used for clothing storage, reach-in bedroom closets, and bathroom walls where the only access to the panel is from inside the bathroom — that location is prohibited. The code focuses on the use of the room, not on whether an installer can engineer a technical workaround using clearance dimensions.
Why This Rule Exists
The hazard behind E3405.4 is not theoretical. Panels require occasional operation during breaker trips, fault events, emergency shutoff, and routine servicing. A bathroom adds water sources, steam from showers and tubs, condensation, and a user population that may be barefoot, damp, or standing on a wet floor when the panel needs to be accessed. The combination of energized electrical equipment and wet-room conditions is exactly what the code is designed to prevent.
Clothes closets present a different but equally foreseeable hazard. Normal closet use means shelving, hanging rods, stacked storage bins, shoe racks, and other combustible goods that encroach into the working area. Clothing, cardboard, and packed storage can block access to the panel, reduce the working space below required minimums, and provide fuel if equipment overheats. Even a small arcing event that would be trivial in an open utility room can escalate in an enclosed closet packed with combustibles.
There is also a behavioral reason the rule exists. People naturally use closets for maximum storage over time. A panel that starts with clear access will gradually have shelving added, boxes stacked, and hanging items crowded around it. The code avoids that predictable misuse entirely by prohibiting the location in the first place, rather than relying on every future occupant to keep the space permanently clear. The same logic applies to bathrooms: vanities, medicine cabinets, towel bars, and cabinetry all tend to accumulate over time in bathroom spaces.
What the Inspector Checks at Rough and Final
At rough inspection, the inspector first determines where the panel is actually located in relation to the room layout shown by the framing. A panel that is mounted on the back side of a bathroom wall but opens into a hallway or utility room may be acceptable if the access side is compliant and the working clearances can be maintained on that side. But if the panel door opens into the bathroom or clothes closet itself, the inspector will typically reject the location immediately without examining other details.
Inspectors also look at framing conflicts, doorway swing into the panel space, any planned shelving shown on drawings, and whether the as-built framing configuration actually preserves the required approach path and working-space dimensions on the compliant side. On remodels, they may compare the panel position to the room-use descriptions on the permit drawings to check for inconsistencies between the labeled use and the actual built condition.
At final inspection, room use is evaluated based on what the space actually looks and functions like, not what the permit drawings call it. A room labeled as a utility alcove or storage nook may be treated as a clothes closet if it contains a rod, shelving, cabinetry, or other clothing-storage infrastructure. Inspectors commonly flag panel covers hidden behind coat racks, panel areas enclosed with built-in organizers, and spaces where the practical function is clearly clothing or linen storage regardless of the label on the floor plan. If a service upgrade is involved, the inspector may also take the opportunity to assess grounding, bonding, breaker labeling, working space, and dedicated electrical space alongside the location issue.
What Contractors Need to Know
Contractors should treat panel location as a design decision to resolve before permit drawings are submitted, not as a field choice made after framing. The cheapest wall cavity is not always a legally permitted location. A compliant panel location typically means an interior garage wall, utility room, basement wall, hallway, or another dry accessible area that can maintain working clearance and dedicated electrical space requirements for the lifetime of the installation without depending on future occupants to manage nearby storage.
On remodel projects, the key question to ask early is whether the existing panel location is grandfathered for the planned scope or whether the project triggers relocation. The answer varies by jurisdiction and by the nature of the work. A limited repair on existing equipment may be allowed to remain in a formerly prohibited location in some AHJs; a panel replacement or service upgrade almost always triggers a more aggressive review. Contractors who wait until final inspection to confront this question face the most expensive possible outcome: drywall demolition, utility coordination delays, rerouted service conductors, and rescheduled inspections.
Coordination with architects and cabinet designers is also important. A panel mounted near a future built-in wardrobe, bathroom addition, or closet conversion can become noncompliant even if the wall was perfectly acceptable at rough. Make the panel location and its clearance requirements explicit on every set of drawings before the cabinet or tile installer begins work.
What Homeowners Get Wrong
A common misunderstanding is that a panel is acceptable in a bathroom if it is mounted high on the wall, far enough from the sink, or positioned to avoid splash. That is not how E3405.4 works. This is not a splash-distance rule. The bathroom itself is the prohibited room use, regardless of the height or specific position of the equipment within it. The code prohibits the location categorically because of the room's intended use and the hazards that use creates.
Another frequent mistake is assuming a walk-in closet does not count as a clothes closet because it is large enough to feel like a room. If the space is intended for clothing storage and functions as a closet, inspectors treat it as a clothes closet regardless of its size. The relevant question is the room's use, not its square footage or the presence of a door that swings open like a room entrance.
Homeowners also conflate decorative concealment with legal compliance. A panel covered by a framed artwork panel, a sliding barn door, a mirrored surface, or a shallow recessed cabinet in front of it may be aesthetically clean, but if the panel sits inside a prohibited room, covering it only makes the access problem worse. The code concern is safety and serviceability, not appearance. Decorative treatments on compliant panel locations are generally acceptable; decorative treatments on prohibited locations are still violations.
State and Local Amendments
Electrical enforcement is local, and panel-location interpretation can vary at the permit counter even when the underlying code text is similar. Some jurisdictions adopt the IRC electrical chapters directly for one- and two-family dwellings; others enforce the NEC text through a separate adoption, which produces the same practical prohibition through different code numbering. Either way, bathrooms and clothes closets are consistently off-limits for panelboards and overcurrent devices in most residential jurisdictions across the country.
States still enforcing IRC 2018 — including Texas, Georgia, Virginia, North Carolina, South Carolina, and Tennessee — typically apply E3405.4 directly. Local amendments in some of those states may add requirements specific to coastal zones, high-humidity environments, or historic structures where compliant panel relocation raises additional design challenges. The relocation threshold can also vary between one AHJ and another: one city may allow limited repair work on an existing prohibited installation, while another requires relocation whenever the panel is replaced or the service is upgraded. Getting that determination from the AHJ before the job is priced prevents change orders and failed final inspections.
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 in a questionable location. Relocating a panel is not a cosmetic task. It typically involves service conductors, grounding and bonding updates, circuit extensions, utility disconnect scheduling, permit revisions, drywall repair, and coordination between the electrician, inspector, and the serving utility. A handyman fix or informal homeowner workaround does not address the actual code requirement and is likely to fail inspection.
Even if the question starts as whether an old panel can stay where it is, a licensed electrician can evaluate whether the installation is legally existing for the proposed scope, whether the current project will trigger a correction, and what the least disruptive compliant path looks like. In many homes, moving the panel a short distance to a hallway, garage wall, or utility room is far less painful when planned before finishes, cabinetry, and plumbing fixtures are set. Waiting until everything else is installed makes the relocation harder and more expensive.
Common Violations Found at Inspection
- New panels installed directly inside a bathroom or bedroom clothes closet on projects that had the opportunity to correct the location.
- Remodels that create a closet around an existing panel by adding walls, shelving systems, or doors without relocating the equipment.
- Panels that technically open into a utility alcove but whose surroundings clearly indicate clothing-storage use, including rods, organizers, and folded-goods shelving.
- Working clearance failures alongside location violations, where a vanity edge, cabinet, or door swing eliminates the required 36-inch working depth on the compliant side.
- Panel covers hidden behind mirrors, coat racks, decorative enclosures, or barn-door systems that require removal of furniture or finish items before access is possible.
- Service upgrades that expose multiple compounded defects once the inspector opens the panel, including a prohibited location, inadequate clearances, poor labeling, and missing bonding details.
- Panels on the back side of bathroom walls with access from the bathroom rather than from a compliant adjacent space.
Frequently Asked Questions
FAQ — Panels Cannot Be Installed in Bathrooms or Clothes Closets Under IRC 2018
- Can I keep a breaker panel in a bathroom if it is mounted above the splash area?
- No. The prohibition in IRC 2018 E3405.4 applies to the bathroom as a room, not to a specific height or distance from the sink or tub. The location itself is prohibited regardless of where within the bathroom the panel sits.
- Does a walk-in closet count as a clothes closet for panel location purposes?
- Yes. If the space functions as clothing storage, inspectors treat it as a clothes closet regardless of its size. The relevant factor is the room's intended use, not whether it is big enough to walk into.
- Can I put a decorative cabinet door or artwork panel over an electrical panel to hide it?
- Decorative concealment does not fix a bad location. If the panel is in a prohibited room, covering it with a door or artwork still leaves the location violation in place and typically makes the access problem worse.
- Will I have to move my panel if I remodel the bathroom next to it?
- Possibly. Whether relocation is required depends on the scope of the work and the AHJ's interpretation. Service changes, panel replacements, and altered room layouts often trigger a closer review. Ask the building department before the project is priced.
- Can a panel be on the back side of a bathroom wall if it opens into a hallway?
- Yes, if access is from a compliant space such as a hallway or utility room and all working-clearance and dedicated-space requirements are satisfied on that side. The key is where the panel door opens, not which wall it is mounted in.
- What are common compliant replacement locations for a panel currently in a closet?
- Common approved locations 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 specific home and local requirements.
Also in General Electrical Requirements
← All General Electrical Requirements articles- Electrical Equipment Must Be Listed and Labeled Under IRC 2018
What electrical equipment must be listed and labeled under IRC 2018?
- Electrical Panels Need Working Space Clearance Under IRC 2018
How much working space is required in front of an electrical panel under IRC 2018?
- Electrical Wiring Work Usually Requires a Permit Under IRC 2018
Do I need a permit to add or replace electrical wiring in my house under IRC 2018?
- Electrical Work Needs Rough and Final Inspection Under IRC 2018
When does electrical work need rough and final inspection under IRC 2018?
- Junction Boxes Must Stay Accessible Under IRC 2018
Can a junction box be buried behind drywall under IRC 2018?
- Panels Need Dedicated Electrical Space Under IRC 2018
Can plumbing or ductwork run above an electrical panel under IRC 2018?
Have a code question about your project? Get personalized answers from our team — $9/mo.
Membership