Licensed & Insured · MD License 7788 · Family-Owned Since 2005

Bathroom electrical code requirements: circuits, GFCI, lights and fans

The 20-amp receptacle circuit, where the sink outlet goes, GFCI, what can hang over a tub or shower, and how big the exhaust fan has to be, explained for Harford and Baltimore County homes.
Remodeled bathroom with a GFCI outlet beside the vanity and an exhaust fan in the ceiling

On this page

Short answer · 10 min read

Under the 2023 NEC, a bathroom needs a 20-amp, 120-volt circuit for its receptacles, at least one receptacle within 3 feet of each sink basin, and GFCI protection on every bathroom receptacle. No receptacles, pendants or ceiling fans may sit within 3 feet horizontally and 8 feet vertically of a tub rim or shower threshold. The building code adds an exhaust fan of at least 50 cfm vented outdoors.

Key takeaways

Bathrooms combine water, metal fixtures and hair dryers that pull 1,500 watts, which is why the electrical code treats them more strictly than almost any other room. This post covers the bathroom rules homeowners ask about most and is part of our home lighting and remodel electrical guide.

The rules here come from the 2023 National Electrical Code (NEC), which Harford County adopted with local amendments and Baltimore County enforces for permits issued after August 31, 2023, plus the 2021 International Residential Code for ventilation. None of Harford County’s local NEC amendments change the bathroom basics below, but the county inspector has the final word on any job.

What are the basic bathroom electrical code requirements?

The basics are a 20-amp receptacle circuit, a receptacle near each sink, GFCI protection, a wall-switched light, limits on what goes near the tub or shower, and mechanical ventilation. The table summarizes them; the sections below explain why each rule exists.

Bathroom electrical rules at a glance (2023 NEC and 2021 IRC)

RequirementWhere it comes fromWhat it means
20-amp receptacle circuitNEC 210.11(C)(3)At least one 120-volt, 20-amp circuit for bathroom receptacles.
Receptacle at the sinkNEC 210.52(D)Within 3 ft of the outside edge of each basin.
GFCI protectionNEC 210.8(A)All bathroom receptacles.
Switched lightNEC 210.70At least one wall-switch-controlled lighting outlet.
No receptacles in the tub/shower zoneNEC 406.9(C)None within 3 ft horizontally and 8 ft vertically of the tub rim or shower threshold.
Limits on lights and fans over the tub/showerNEC 410.10(D)No pendants, track lights or ceiling fans in the zone; fixtures there rated damp or wet.
Ventilation2021 IRCExhaust fan of 50 cfm intermittent or 20 cfm continuous vented outdoors, or an openable window.
In the code, a bathroom is an area with a basin plus one or more of a toilet, urinal, tub, shower or bidet. A powder room with a sink and toilet is a bathroom; a laundry room with a utility sink is not, although it has GFCI rules of its own.

Does a bathroom need its own 20-amp circuit?

Yes. NEC 210.11(C)(3) requires at least one 120-volt, 20-amp branch circuit for bathroom receptacles, and that circuit can have no other outlets. In plain terms, one 20-amp circuit may feed the receptacles in several bathrooms, but then it cannot also feed lights, fans or anything outside those bathrooms.

There is one exception that most homes use. If the 20-amp circuit supplies only one bathroom, it may also feed other equipment in that same bathroom, such as the lights and the exhaust fan. A primary bath on its own 20-amp circuit with its lights and fan is a typical layout.
  • Why 20 amps: a hair dryer can draw about 12 to 15 amps by itself. A 15-amp circuit shared with lights trips as soon as a second appliance starts.
  • Heated floors and towel warmers: these are often put on their own circuit per the manufacturer’s instructions. Heating cables in bathroom floors require GFCI protection under NEC Article 424.
  • Whirlpool or jetted tubs: hydromassage tubs need an individual branch circuit and a readily accessible GFCI under NEC Article 680.
Electricians often find bathrooms in 1950s to 1970s Harford County homes on a shared 15-amp circuit with a hallway or a bedroom, and sometimes with the only receptacle built into the light fixture over the mirror. A remodel is the time to bring that up to a dedicated 20-amp circuit.

Where do bathroom outlets go, and do they all need GFCI?

At least one receptacle has to be within 3 feet of the outside edge of each sink basin, and every receptacle in the bathroom needs GFCI protection. The sink receptacle goes on a wall or partition next to the basin or its countertop, or on the side or face of the vanity cabinet no more than 12 inches below the countertop. A double vanity with basins far apart may need a receptacle at each, or one placed between them within 3 feet of both.

A GFCI (ground-fault circuit interrupter) compares the current going out on the hot wire with the current coming back on the neutral. If a few thousandths of an amp go missing, for example through a person standing on a wet floor, it shuts off in a fraction of a second. One GFCI receptacle can protect others downstream on the same circuit, or a GFCI breaker can protect the whole circuit from the panel.

Test monthly, and stop if it will not reset

Press TEST on each bathroom GFCI monthly; the power should cut off, and RESET should restore it. If a GFCI will not reset, trips every time a particular appliance is used, or feels warm, stop using that receptacle and unplug what is in it. If you smell burning, see scorch marks or the outlet is wet inside, turn off the breaker and call an electrician. See why a GFCI will not reset for the common causes.

Receptacles also cannot go in the tub and shower zone. Under NEC 406.9(C), no receptacle may be installed within 3 feet horizontally and 8 feet vertically from the top of the bathtub rim or shower stall threshold, including the space directly over the tub or shower. The zone stops at a wall, door, window or fixed barrier, so a receptacle on the other side of a glass partition is treated differently than one in open space.
Bathroom exhaust fan with an insulated duct running to a roof vent in the attic
A bath fan vented through a short, smooth duct to a roof or wall cap moves moisture out of the house instead of into the attic.

Planning a lighting change or a remodel?

Text a photo or short video to 410-808-4215 and we’ll reply within 24 hours with what we see and what it means. Burning smell, sparks or a hot panel? Call now, day or night.

What lights and fans are allowed over a tub or shower?

Over a tub or shower, use fixtures listed for damp locations, or for wet locations where shower spray reaches them, and keep pendants, chandeliers, track lights and ceiling fans out of the zone. NEC 410.10(D) uses the same 3-foot-out, 8-foot-up zone as the receptacle rule. Inside it, cord-connected fixtures, chain- or cord-suspended fixtures, lighting track, pendants and ceiling-suspended paddle fans are not permitted, and the 2023 edition made clear that a paddle fan with a light kit is not allowed there either.
  • Recessed lights in the shower: use a fixture with a wet-location rating and a matching shower trim.
  • Lights over the tub: damp-rated at minimum; wet-rated if a shower head can spray them.
  • Exhaust fan over the shower: many fans and fan-lights are listed for installation over a tub or shower, and some instructions require them to be on a GFCI-protected circuit there. Follow the label.
  • Switches: under NEC 404.4(C), switches cannot be installed inside tub or shower spaces unless they are part of a listed tub or shower assembly.
  • Chandeliers over freestanding tubs: popular in design photos, but a hanging fixture within 8 feet of the tub rim and inside the zone does not meet the code. Ceiling height and placement decide whether one can work.
At the vanity, lights on both sides of the mirror at about face height give the most even light with the fewest shadows. A single bar above the mirror is common and works if it is wide enough. Our post on planning lighting for a room covers lumens and color temperature, which matter more in a bathroom than almost anywhere else.

How big does a bathroom exhaust fan need to be, and where does it vent?

The 2021 International Residential Code calls for bathroom exhaust of at least 50 cfm (cubic feet per minute) if the fan runs intermittently, or 20 cfm if it runs continuously, discharged to the outdoors. A window of at least 3 square feet with half of it openable is the code’s alternative to a fan, but a window does not move moisture on a January morning, so most remodels add a fan regardless.

The fan has to vent outside, through a roof or wall cap, not into the attic, a soffit, a crawl space or between floors. Electricians and home inspectors often find older bath fans in 1970s and 1980s split-levels and colonials that blow into the attic or have a duct lying loose on the insulation. In Maryland’s humid summers and cold winters, that moisture condenses on roof sheathing and can lead to mold and rot.

1

Size the fan

50 cfm is the minimum for intermittent use. Larger bathrooms and those with long duct runs often use 80 to 110 cfm so the fan still moves enough air after duct losses.

2

Keep the duct short and smooth

Building America guidance recommends a straight first 3 feet of duct off the fan and gradual bends instead of tight 90-degree elbows.

3

Insulate the duct in the attic

An insulated duct reduces condensation dripping back into the fan.

4

Pick a quiet fan

Look for a low sone rating, about 1 sone or less for continuous fans. A quiet fan gets used.

5

Control it

A timer or humidity-sensing control keeps it running after a shower, roughly an hour, without relying on someone to remember.

Codes in force in Harford County

Harford County enforces the 2021 International Residential Code and 2021 International Energy Conservation Code with local and Maryland amendments, effective May 29, 2024, and the 2023 NEC with local amendments in 2024. The Permit Center is at 220 S. Main Street in Bel Air; electrical permit questions go to 410-638-3363. Baltimore County Permits, Approvals and Inspections in Towson handles permits in our Baltimore County towns.

For fan replacements and new ducts, see our exhaust fan installation service.

What do inspectors check in a bathroom remodel?

Inspectors check the circuit, the receptacle locations, GFCI protection, the fixture ratings near the tub or shower, the fan and its duct, and box fill and connections, usually at a rough-in inspection with walls open and again at final. We pull the permit when the job requires one, and a bathroom remodel with new wiring almost always does.
  1. Circuit: 20-amp receptacle circuit, wire size to match (12 AWG copper for 20 amps), and correct breaker.
  2. Receptacles: within 3 feet of each basin, none in the tub and shower zone, GFCI protected, tamper-resistant.
  3. Lighting: a wall-switched light, damp or wet ratings where required, no hanging fixtures or fans in the zone.
  4. Fan: rated cfm, ducted to the outside with a proper termination.
  5. Special equipment: heated floor cables tested and GFCI protected, hydromassage tub on its own GFCI-protected circuit with an accessible GFCI.
AFCI protection is a common question. The 2023 NEC list of dwelling areas that need AFCI protection covers kitchens, bedrooms, living areas, hallways, closets and laundry areas, but does not name bathrooms. A bathroom circuit that also serves a hallway or a bedroom outlet would need it for those outlets, and some electricians use combination AFCI/GFCI breakers anyway.

If you are planning a bath remodel, our bathroom electrical service covers the full scope, and the kitchen remodel electrical checklist covers the other high-rule room. We work across our Harford County service area and the eastern and northern parts of Baltimore County.

Related reading

Small-appliance circuits, GFCI and island outlets under the 2023 NEC.
Why fans stay out of the shower zone and need fan-rated boxes.
Which protection goes where in a Maryland home.

FAQ

Questions homeowners ask

Yes, if the 20-amp circuit serves only that one bathroom. NEC 210.11(C)(3) allows a 20-amp circuit that feeds a single bathroom to supply other equipment in that bathroom, such as lights and the exhaust fan. If one 20-amp circuit feeds the receptacles in two or more bathrooms, it can supply only receptacles, and the lights and fans need to come from another circuit.
Switches themselves are not GFCI-protected outlets under the bathroom receptacle rule. Lights and fans generally do not require GFCI protection unless the manufacturer’s instructions call for it, which is common for fixtures and fans installed over a tub or shower. Switches cannot be installed inside the tub or shower space unless they are part of a listed tub or shower assembly.
Under NEC 406.9(C), receptacles cannot be installed within 3 feet horizontally and 8 feet vertically from the top of the bathtub rim or shower stall threshold. The zone includes the space directly above the tub or shower and stops at walls, doors, windows or fixed barriers. The code does include limited exceptions, so small bathrooms with tight layouts should be reviewed by the electrician before tile goes up.
No. The building code requires bathroom exhaust to discharge to the outdoors through a roof or wall termination, not into an attic, soffit, crawl space or wall cavity. A fan blowing into an attic puts warm, wet air against cold roof sheathing in winter, which can lead to mold and rot. If your duct is loose or ends in the insulation, have it extended to a proper exterior cap.
Existing wiring that is not being changed is generally allowed to stay as it was installed. When you remodel, the new and altered work must meet the code in force when the permit is issued, so a gutted bathroom ends up fully current. Even without a remodel, adding GFCI protection to an older bathroom receptacle is a simple safety upgrade worth doing on its own.
Michael Cliffe, owner of Snapper Electric

Reviewed for accuracy

Michael Cliffe, Owner · Maryland State Licensed Contractor, License 7788

Written by the Snapper Electric team · Last updated October 25, 2026

Electrical work can be dangerous. The information on this page is general guidance for homeowners in Maryland and is not a substitute for an on-site assessment by a licensed electrician. Always turn off power at the breaker before touching any wiring, and call 911 if you smell burning, see sparks, or have an active electrical fire.

Keep reading

More guides like this

Ready when you are.

Call, text, or send the form. We’ll tell you what we see, what it means for your home, and what it costs before any work starts.
Office hours Mon–Sat 8 AM–5 PM · 24/7 for electrical emergencies
Snapper Electric turtle mascot