Bathroom electrical code is the set of National Electrical Code (NEC) and California Electrical Code (CEC) rules that govern how outlets, circuits, GFCI protection, lighting, and fans must be installed in a bathroom to prevent shock and fire hazards near water. I’ve walked enough clients through remodels and new builds to know this is the room inspectors scrutinize hardest, and for good reason.
Getting it wrong means failed inspections, rework costs, and real safety risk. Getting it right the first time saves money and protects everyone using that bathroom for decades.
This guide covers what the code actually requires for GFCI protection, dedicated circuits, and outlet placement, how lighting and exhaust fans fit into the rules, what inspectors look for, and what it costs to get bathroom wiring right in California.
What Bathroom Electrical Code Actually Covers
Bathroom electrical code governs every outlet, circuit, light fixture, and switch installed within a bathroom’s walls, and it exists specifically because water and electricity in close proximity create elevated shock risk. I think of it as the strictest subset of residential electrical code in the entire house.
California adopts the NEC with state-specific amendments under the California Electrical Code, and the two mostly align on bathroom rules but diverge on a few clearance and labeling details. Builders working across state lines can’t assume one set of rules carries over to the other.
NEC vs. California Electrical Code (CEC) Differences
The California Electrical Code adopts the base NEC and adds stricter energy and seismic-related wiring provisions in certain jurisdictions. Most bathroom-specific rules GFCI, circuit sizing, clearances match the NEC baseline, but local amendments can tighten requirements further.
| Requirement | NEC Baseline | California Amendment |
| GFCI protection | Required at all bathroom receptacles | Same, no change |
| Dedicated circuit | 20-amp required | Same, no change |
| Local jurisdiction review | Varies by state | Many CA counties add inspection checkpoints |
Why Bathrooms Have Stricter Electrical Rules
Bathrooms combine water, bare skin, and metal fixtures in a small space, which is precisely the combination that turns a minor electrical fault into a serious injury. That risk profile is why code writers treat this room differently than a living room or bedroom.
GFCI Protection Requirements in Bathrooms

A ground-fault circuit interrupter (GFCI) is a safety device that monitors electrical current and shuts off power within milliseconds if it detects current leaking to ground, and every bathroom receptacle in a home must be GFCI-protected under current code. This isn’t a judgment call for builders it’s a flat requirement regardless of the outlet’s distance from a sink or tub.
I’ve seen homeowners assume only the outlet closest to the sink needs protection. That’s outdated thinking left over from older code cycles.
What a GFCI Outlet Actually Does
GFCI protection works by comparing the current flowing out through the hot wire against the current returning through the neutral wire, and it trips the circuit the instant it detects even a small imbalance. That imbalance usually means current is finding an unintended path, often through a person.
Where GFCI Protection Is Required by Code
Current code requires GFCI protection at every bathroom receptacle outlet, with no exception based on distance from water. A single GFCI outlet can protect downstream outlets on the same circuit if wired correctly, which is a detail many non-specialist contractors get wrong.
GFCI vs. AFCI: What’s the Difference
GFCI protection guards against ground faults and shock risk, while arc-fault circuit interrupter (AFCI) protection detects dangerous arcing in damaged wiring that can start fires. Bathrooms require GFCI protection specifically; AFCI requirements apply more broadly to other living spaces under current code cycles.
Dedicated Circuit Requirements for Bathrooms
A dedicated circuit is an electrical circuit that serves only one area or purpose without sharing load with other rooms, and bathroom receptacles must be served by at least one 20-amp dedicated circuit under current code. This requirement exists because bathrooms often run higher-draw devices like hair dryers and heaters simultaneously with lighting.
20-Amp Circuit Rule Explained
The 20-amp dedicated circuit rule means that bathroom receptacles can’t share a circuit with general household lighting or other rooms’ outlets. A single 20-amp circuit can serve all the receptacles within one bathroom, but it cannot extend to serve receptacles in a second bathroom under most interpretations.
Can a Bathroom Share a Circuit With Another Room
A bathroom receptacle circuit cannot serve outlets in another room under current code, though the same dedicated circuit may serve multiple receptacles within that single bathroom. Lighting and fan circuits are typically separated from the receptacle circuit entirely.
Outlet Placement and Spacing Rules
Outlet spacing rules in a bathroom define the minimum horizontal distance a receptacle must maintain from the edge of a sink basin, generally set at 12 to 36 inches depending on the specific code cycle and jurisdiction. These clearance rules exist to keep outlets reachable for daily use while limiting proximity to splashing water.
Minimum Distance From Water Sources
Code requires bathroom receptacles to maintain horizontal separation from the sink basin edge, and outlets must also stay outside the zone directly above a tub or shower threshold. An electrician measuring for placement checks both horizontal distance from the sink and vertical height from the floor.
Outlet Height Requirements
Outlet height in bathrooms typically follows the same general residential standard of 12 to 18 inches above the finished floor, though GFCI outlets near a vanity are often installed higher to clear the countertop and backsplash. Local amendments occasionally adjust this for accessibility compliance.
Lighting Fixture Code Requirements Near Wet Areas

Lighting fixtures installed within or directly above a tub or shower enclosure must carry a wet-location or damp-location rating to prevent moisture-related electrical failure. A standard dry-rated fixture installed in this zone is one of the most common code violations I see flagged during inspection.
Shower and Tub Lighting Clearance Rules
Code defines a specific zone extending from the tub or shower rim outward and upward within which any installed fixture must be wet-rated and, in many cases, GFCI-protected if it’s a receptacle-type fixture. Fixtures outside that zone can use standard damp-rated hardware.
Exhaust Fan Electrical Code Requirements

A bathroom exhaust fan removes moisture-laden air to reduce humidity and mold risk, and code requires mechanical ventilation in any bathroom without an operable window of sufficient size. The electrical connection for that fan has its own wiring considerations separate from the receptacle circuit.
Fan and Light Combo Circuit Rules
Combination fan-light units are often wired to the general lighting circuit rather than the dedicated 20-amp receptacle circuit, which keeps fan operation independent from whatever is plugged into the wall. Humidity-sensing fans add a control wiring requirement that a standard switch loop doesn’t need.
Switch Placement and Wet Location Switch Rules
A bathroom light switch must sit outside any zone where it could be reached from inside the tub or shower, and it cannot be installed within a wet location without specific waterproof housing. Standard interior switches rely entirely on that distance separation for safety rather than a waterproof rating.
Bonding and Grounding Requirements in Bathrooms
Bonding in a bathroom connects metal fixtures, pipes, and the electrical system’s grounding conductor so that any stray current has a safe path to ground instead of through a person touching a faucet or drain. Metal tubs, shower pans, and whirlpool motors each carry their own bonding requirement under code.
Common Bathroom Electrical Code Violations

The most common bathroom electrical code violation is a missing or improperly wired GFCI outlet, followed closely by outlets installed too close to a water source and undersized circuits. Inspectors see the same handful of mistakes repeatedly across both remodels and new construction.
Most Frequently Cited Inspection Failures
- GFCI outlet missing or wired as a standard receptacle
- Receptacle circuit shared with another room
- Light fixture over a tub without a wet-location rating
- Outlet placed inside the restricted clearance zone near the sink
- Missing bonding jumper on a metal tub or shower pan
- Switch installed within reach of the shower or tub
How Bathroom Electrical Inspections Work in California
A bathroom electrical inspection in California verifies GFCI protection, circuit sizing, clearance distances, and fixture ratings against the adopted California Electrical Code before a permit can close. Most jurisdictions require a rough-in inspection before walls are closed and a final inspection once fixtures are installed.
What Inspectors Check Before Sign-Off
Inspectors test every GFCI outlet for proper trip function, confirm the receptacle circuit is dedicated and correctly sized, measure clearance from the sink and tub, and verify wet-rated fixtures are installed in the required zones. They also check bonding connections on metal tubs before covering any access points.
Permits and When You Need an Electrician
Any new circuit, relocated outlet, or added fixture in a bathroom typically requires an electrical permit in California, even during a remodel that doesn’t touch plumbing. Licensed electricians pull these permits as part of standard practice, which protects homeowners if an issue surfaces later during resale.
Cost Considerations for Code-Compliant Bathroom Wiring

Bringing a bathroom up to current electrical code typically costs between $500 and $2,500, depending on whether new circuits, GFCI outlets, or fixture replacements are required. A simple GFCI swap runs far less than adding a dedicated circuit through finished walls, which is where most of the cost variation comes from.
Labor accounts for most of that cost in an existing home because of the demolition and patching needed to run new circuit wiring. New construction and gut remodels avoid much of that expense since walls are already open.
Bathroom Remodels and Electrical Code Compliance
A bathroom remodel that touches wiring, fixtures, or outlet locations must meet current code even if the original bathroom was built under an older code cycle. This “bring up to current code” expectation surprises a lot of homeowners who assumed a cosmetic remodel wouldn’t trigger electrical requirements.
What Changes When You Renovate vs. New Construction
New construction is built to the code cycle active at the time of permitting from the ground up, while a remodel only needs to bring the specific areas being altered into compliance. Moving a sink six inches during a remodel, for example, can force an outlet relocation to maintain proper clearance.
Conclusion
Bathroom electrical code comes down to a handful of non-negotiables: GFCI protection at every outlet, a dedicated 20-amp circuit, strict clearance from water, and wet-rated fixtures near tubs and showers.
These rules connect directly to the broader construction quality standards that separate a well-built home from one cutting corners. We build every bathroom circuit to meet these standards from day one. Reach out to Tiny Home Builders California to discuss your project.
Frequently Asked Questions
Is a GFCI required on every bathroom outlet?
Yes, every bathroom receptacle outlet must have GFCI protection under current code. This applies regardless of how far the outlet sits from the sink or tub.
How many amps does a bathroom circuit need?
Bathroom receptacles require at least a 20-amp dedicated circuit. That circuit can serve multiple outlets within one bathroom but can’t extend to another room.
Can a bathroom light switch be outside the bathroom?
Yes, a switch can be located outside the bathroom, and doing so avoids wet-location placement concerns entirely. Many builders prefer this for fan and exhaust controls.
How close can an outlet be to a sink in California?
Outlets generally must maintain 12 to 36 inches of horizontal clearance from the sink basin edge, depending on the applicable code cycle. Local jurisdictions may apply stricter measurements.
Do bathroom exhaust fans need to be on a GFCI circuit?
No, exhaust fans are typically wired to the lighting circuit rather than the GFCI-protected receptacle circuit. This keeps fan operation separate from plug-in devices.
What happens if a bathroom fails electrical inspection?
The electrician must correct the cited issues and schedule a re-inspection before the permit can close. Common failures include missing GFCI protection or improper clearance.
Is a permit required to add a bathroom outlet?
Yes, adding or relocating a bathroom outlet requires an electrical permit in California. This applies even during remodels that don’t involve plumbing changes.