Bathroom Wiring Diagram: Electrical Code Requirements and Layout
Bathroom electrical wiring has strict code requirements because of the proximity to water. GFCI protection, proper circuit sizing, and correct placement of outlets, switches, and fixtures are all mandated by the NEC (National Electrical Code). This guide covers bathroom wiring requirements, circuit planning, and complete wiring diagrams.
NEC Requirements for Bathroom Electrical
GFCI Protection (NEC 210.8)
Every 120V, 15A and 20A receptacle in a bathroom must have GFCI protection. This is non-negotiable. Options:
- GFCI receptacle at each outlet location
- GFCI breaker protecting the entire bathroom circuit
- Upstream GFCI receptacle protecting downstream outlets via LOAD terminals
GFCI protection is required regardless of how far the outlet is from water. Every bathroom outlet needs it.
Dedicated Circuit (NEC 210.11(C)(3))
Bathrooms require at least one dedicated 20A circuit for receptacle outlets. This circuit can serve outlets in multiple bathrooms, but it cannot serve outlets or lighting outside of bathrooms.
You have two options:
- Single 20A circuit: Serves bathroom receptacles only (not lights or fans). This circuit can serve outlets in multiple bathrooms.
- Individual 20A circuit per bathroom: Serves all outlets, lights, exhaust fan, and other loads in that one bathroom.
Most electricians prefer option 2 for master bathrooms with high loads (hair dryers, curling irons, heaters).
Outlet Placement (NEC 210.52(D))
- At least one receptacle outlet must be installed within 36 inches of the outside edge of each bathroom sink basin.
- Outlets must be on the wall or partition adjacent to the basin, not inside a cabinet.
- Floor outlets are not permitted in bathrooms.
Lighting Requirements
- At least one wall-switch-controlled light fixture is required.
- Lighting can be on the same 20A circuit as outlets (if option 2 above), or on a separate general lighting circuit.
- Shower/tub lights must be rated for wet locations and on GFCI protection.
Exhaust Fan Requirements
Most local codes require a bathroom exhaust fan (unless the bathroom has an operable window). The fan should:
- Be rated for the bathroom size (1 CFM per square foot minimum)
- Be on a separate switch or timer
- Vent to the exterior (not into the attic)
- Can be on the bathroom circuit or a separate circuit
Shower and Tub Area
NEC 410.10(D) restricts what can be installed in the shower/tub zone:
- No switches, outlets, or junction boxes within the shower/tub space
- Light fixtures must be rated for wet locations if within the shower/tub zone
- GFCI protection required for any 120V fixture in the shower/tub area
- Exhaust fan/light combos in the shower must be wet-rated and GFCI-protected
Bathroom Wiring Diagram: Standard Layout
Circuit 1: Bathroom Receptacles (20A dedicated)
From the main panel:
- 20A single-pole breaker with GFCI protection (or GFCI breaker)
- 12 AWG wire (12/2 NM with ground) to the first outlet
- Outlets daisy-chained in parallel using pigtail connections
- All outlets are GFCI-protected
Circuit 2: Lights and Fan (15A or 20A)
From the main panel:
- 15A or 20A breaker to the bathroom switch box
- 14/2 or 12/2 NM wire to the switch box
- From the switch box:
- One switch controls vanity light(s)
- One switch controls exhaust fan (or timer switch)
- Optional: third switch for shower light
- Switch legs run to each fixture
Switch Box Layout
A typical bathroom has a multi-gang switch box near the door with:
- Switch 1: Vanity light(s)
- Switch 2: Exhaust fan (or countdown timer switch)
- Switch 3 (optional): Shower/tub light
- Switch 4 (optional): Night light or heated floor
Vanity Light Wiring
The vanity light is typically above the mirror, centered on the sink:
- Hot wire from the switch to the light fixture junction box
- Neutral from the switch box to the fixture
- Ground to the fixture
- For multiple vanity lights, wire in parallel from a single switch
Exhaust Fan Wiring
The exhaust fan is typically centered in the bathroom ceiling:
- Hot wire from the timer switch or toggle switch
- Neutral from the switch box
- Ground to the fan housing
- If the fan has a built-in light, a 3-wire cable (14/3) allows separate switching of the fan and light
Heated Floor Wiring
Electric radiant floor heating in bathrooms:
- Requires a dedicated 20A circuit (most heating mats draw 8-12A)
- Must be GFCI-protected
- Controlled by a floor thermostat (usually with a floor sensor)
- Thermostat mounts in the wall at standard switch height
- Heating mat connects to thermostat per manufacturer instructions
Wire Routing in Bathrooms
In the Walls
- Run NM cable through stud bays, keeping cables at least 1.25 inches from the face of studs (or use nail plates)
- Avoid running cables behind bathtub/shower surrounds where they could be damaged
- Use moisture-resistant boxes in wet areas
Ceiling Runs
- Exhaust fan and ceiling light cables run through ceiling joists
- Support cables every 4.5 feet with staples
- At recessed lights near showers, use IC-rated (insulation contact) fixtures rated for wet locations
Common Bathroom Wiring Mistakes
- No GFCI protection: Every bathroom outlet needs GFCI. No exceptions.
- 15A outlet circuit: Bathroom outlets require a 20A circuit with 12 AWG wire.
- Shared circuits: Bathroom outlet circuits should not serve loads outside the bathroom.
- Exhaust fan vented to attic: Moisture in the attic causes mold and rot. Vent to the exterior.
- Wrong fixture rating: Shower/tub area fixtures must be rated "wet location" -- not just "damp location."
- No neutral at switch box: NEC 2011+ requires a neutral conductor at every switch location for future smart switch compatibility.
- Outlet too far from sink: At least one outlet must be within 36 inches of each sink.
- Fan undersized: Size the fan for the room. Minimum 1 CFM per square foot, 50 CFM minimum.
Bathroom Remodel Electrical Checklist
When remodeling a bathroom, verify:
- 20A dedicated circuit for outlets (12 AWG wire)
- GFCI protection on all outlets
- At least one outlet within 36 inches of each sink
- Wall-switch-controlled lighting
- Exhaust fan with proper CFM rating, vented to exterior
- Wet-rated fixtures in shower/tub zone
- Neutral wire in switch box
- Proper ground connections throughout
- All work inspected by the local building department
Bathroom Wire Color Reference
Standard wire colors indicate a conductor's function. US NEC colors:
| Wire Color (US NEC) | Function |
|---|---|
| Black | Hot / ungrounded conductor |
| Red | Hot / ungrounded conductor (switch leg or second circuit) |
| White | Neutral / grounded conductor |
| Green or bare copper | Equipment grounding conductor |
If you're referencing a UK or EU diagram, or working on equipment wired to BS 7671, the color code is different: brown is line/live, blue is neutral, and green-and-yellow stripe is earth/ground. Don't mix conventions -- confirm which standard a diagram uses before you start tracing wires.
Testing a GFCI Outlet
GFCI receptacles should be tested monthly, and always right after installation, before the circuit goes into regular use.
To test operation:
- Plug a lamp or an outlet tester into the GFCI receptacle and turn it on.
- Press the TEST button. The lamp should go off and the outlet should lose power.
- Press the RESET button. The lamp should come back on.
- If TEST does not cut power, or RESET does not restore it, the GFCI is defective and should be replaced.
To confirm correct LINE vs LOAD wiring:
A GFCI receptacle has two sets of terminals: LINE (power coming in from the panel) and LOAD (power going out to downstream outlets). If the incoming hot and neutral are connected to the LOAD terminals instead of LINE, the GFCI may not protect itself or downstream outlets correctly, even though it appears to work normally.
- Turn off the breaker and confirm the outlet is de-energized with a voltage tester.
- Check the wiring against the diagram or labeling on the back of the device -- LINE terminals should connect to the wires coming directly from the panel.
- Restore power and retest with the TEST/RESET buttons and an outlet tester.
- If downstream outlets on the same circuit don't lose power when you press TEST, they are likely wired to LINE instead of LOAD, or they're on a separate circuit entirely.
Troubleshooting Bathroom Wiring Problems
| Symptom | Likely Cause | Fix |
|---|---|---|
| GFCI won't reset | Downstream fault, or line/load terminals reversed | Disconnect downstream outlets to isolate the fault; verify line vs load wiring |
| GFCI trips repeatedly | Moisture in a downstream device or box, or a failing appliance | Check for moisture intrusion; test with appliances unplugged |
| Vanity light flickers | Loose connection at the switch or fixture | Turn off power and re-check wire nut connections |
| Exhaust fan is noisy or weak | Undersized fan or a restricted vent duct | Confirm the CFM rating matches room size; inspect the duct for kinks or blockage |
| Outlet has no power but the breaker isn't tripped | Upstream GFCI tripped, or a loose connection | Check for a GFCI outlet earlier in the circuit and press RESET |
| Heated floor thermostat shows no power | Tripped GFCI breaker, or a wiring fault at the thermostat | Reset the breaker; check thermostat wiring per manufacturer instructions |
Creating Bathroom Wiring Diagrams
Use CircuitDiagramMaker to plan your bathroom electrical layout before starting work. The DIY symbol pack includes GFCI outlets, switches, light fixtures, exhaust fans, and breakers. Draw the complete circuit from panel to each device, label wire gauges, and export as a PDF for your reference or for the electrical inspector.
Try the AI circuit generator with "bathroom wiring diagram with GFCI outlets, vanity light, and exhaust fan" to get a starting point.
Conclusion
Bathroom wiring requires careful attention to GFCI protection, dedicated circuits, and proper fixture ratings. The NEC requirements exist because water and electricity are a dangerous combination. Follow the code, get your work permitted and inspected, and use quality materials rated for the environment.
Plan bathroom electrical layouts with CircuitDiagramMaker -- free online wiring diagram tool with GFCI, switch, and fixture symbols.
Frequently asked questions
What happens if a bathroom outlet doesn't have GFCI protection?
Without GFCI protection, a ground fault -- current leaking through a person's body to ground, often via water -- won't be interrupted fast enough to prevent serious shock or electrocution. NEC has required GFCI protection for bathroom receptacles since the 1970s, and it's checked during any electrical inspection. Retrofitting a GFCI receptacle or breaker is a straightforward fix.
Can a bathroom light and outlet be on the same circuit?
Yes, if the outlet circuit is a dedicated 20A circuit serving only that bathroom (lights, fan, and outlets together), which is one of two NEC-compliant options. What's not allowed is putting a shared bathroom outlet circuit on the same breaker as outlets or lighting in other rooms of the house.
What size breaker does a bathroom need?
Bathroom receptacle circuits require a 20A breaker with 12 AWG wire at minimum -- a 15A circuit is not code-compliant for bathroom outlets. Lighting and exhaust fan circuits can run on a 15A or 20A breaker depending on the load and whether they share the outlet circuit.
Can I install a light fixture directly above a shower or tub?
Only if the fixture is rated for wet locations and is GFCI-protected. NEC 410.10(D) restricts what can be installed in the shower/tub zone, and standard damp-location fixtures aren't sufficient there -- they're only rated for areas like covered porches, not direct water exposure.
Is it safe to plug a hair dryer into a bathroom GFCI outlet?
Yes, that's exactly what bathroom GFCI outlets are designed for. High-draw devices like hair dryers and curling irons are why many electricians recommend a dedicated 20A circuit per bathroom rather than one circuit shared across multiple bathrooms, so a hair dryer doesn't trip breakers used by other rooms.
Does a bathroom exhaust fan need to be on its own circuit?
Not necessarily. An exhaust fan can share the bathroom's 20A outlet-and-lighting circuit, or run on its own separate circuit -- either approach is code-compliant. What matters is that it's rated for the room's square footage, vents to the exterior rather than the attic, and is controlled by its own switch or timer.