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 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:

  1. Single 20A circuit: Serves bathroom receptacles only (not lights or fans). This circuit can serve outlets in multiple bathrooms.
  2. 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))

Lighting Requirements

Exhaust Fan Requirements

Most local codes require a bathroom exhaust fan (unless the bathroom has an operable window). The fan should:

Shower and Tub Area

NEC 410.10(D) restricts what can be installed in the shower/tub zone:

Bathroom Wiring Diagram: Standard Layout

Circuit 1: Bathroom Receptacles (20A dedicated)

From the main panel:

  1. 20A single-pole breaker with GFCI protection (or GFCI breaker)
  2. 12 AWG wire (12/2 NM with ground) to the first outlet
  3. Outlets daisy-chained in parallel using pigtail connections
  4. All outlets are GFCI-protected

Circuit 2: Lights and Fan (15A or 20A)

From the main panel:

  1. 15A or 20A breaker to the bathroom switch box
  2. 14/2 or 12/2 NM wire to the switch box
  3. From the switch box:
    • One switch controls vanity light(s)
    • One switch controls exhaust fan (or timer switch)
    • Optional: third switch for shower light
  4. Switch legs run to each fixture

Switch Box Layout

A typical bathroom has a multi-gang switch box near the door with:

Vanity Light Wiring

The vanity light is typically above the mirror, centered on the sink:

  1. Hot wire from the switch to the light fixture junction box
  2. Neutral from the switch box to the fixture
  3. Ground to the fixture
  4. For multiple vanity lights, wire in parallel from a single switch

Exhaust Fan Wiring

The exhaust fan is typically centered in the bathroom ceiling:

  1. Hot wire from the timer switch or toggle switch
  2. Neutral from the switch box
  3. Ground to the fan housing
  4. 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:

  1. Requires a dedicated 20A circuit (most heating mats draw 8-12A)
  2. Must be GFCI-protected
  3. Controlled by a floor thermostat (usually with a floor sensor)
  4. Thermostat mounts in the wall at standard switch height
  5. Heating mat connects to thermostat per manufacturer instructions

Wire Routing in Bathrooms

In the Walls

Ceiling Runs

Common Bathroom Wiring Mistakes

  1. No GFCI protection: Every bathroom outlet needs GFCI. No exceptions.
  2. 15A outlet circuit: Bathroom outlets require a 20A circuit with 12 AWG wire.
  3. Shared circuits: Bathroom outlet circuits should not serve loads outside the bathroom.
  4. Exhaust fan vented to attic: Moisture in the attic causes mold and rot. Vent to the exterior.
  5. Wrong fixture rating: Shower/tub area fixtures must be rated "wet location" -- not just "damp location."
  6. No neutral at switch box: NEC 2011+ requires a neutral conductor at every switch location for future smart switch compatibility.
  7. Outlet too far from sink: At least one outlet must be within 36 inches of each sink.
  8. 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:

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:

  1. Plug a lamp or an outlet tester into the GFCI receptacle and turn it on.
  2. Press the TEST button. The lamp should go off and the outlet should lose power.
  3. Press the RESET button. The lamp should come back on.
  4. 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.

  1. Turn off the breaker and confirm the outlet is de-energized with a voltage tester.
  2. 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.
  3. Restore power and retest with the TEST/RESET buttons and an outlet tester.
  4. 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.

Bathroom Wiring Diagram — circuit diagram showing component connectionsMain MCB 63ABreaker 1 - 20ABreaker 2 - 15ABreaker 3 - 20AKitchen OutletsLightingGeneral OutletsEarth Bus230V AC UtilityDistribution Panel / DB BoardMain MCB feeds individual circuit breakers
Bathroom Wiring Diagram — open the interactive version of this diagram to customise and export it.
Bathroom Fan Wiring Diagram — circuit diagram showing component connections15A BreakerFan SwitchCeiling FanFan Light230V AC UtilityCeiling Fan WiringFan + Light share switch
Bathroom Fan Wiring Diagram — open the interactive version of this diagram to customise and export it.
Wiring Diagram For Bathroom Fan From Light Switch — circuit diagram showing component connectionsBreakerSwitchLight230V AC UtilityLight Switch Wiring
Wiring Diagram For Bathroom Fan From Light Switch — open the interactive version of this diagram to customise and export it.

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.

Interactive diagrams for this guide

Related guides