Best practices for wiring a bathroom exhaust fan

Best practices for wiring a bathroom exhaust fan, the field-ready guide for working electricians.

Bathroom exhaust fans look like a simple swap, but the wiring sits at the intersection of GFIC rules, damp/wet location ratings, and switch leg gymnastics. Get it wrong and you get nuisance trips, fogged mirrors, or a callback. Here's how to land it clean.

Confirm the location rating before you pull a fan off the shelf

The NEC treats bathrooms as damp locations by default, and the area directly over the tub or shower as a wet location per 410.10(D). A fan installed in the ceiling above a tub or shower must be listed for wet locations and the listing must permit installation in that zone. Standard ceiling fans without that listing belong outside the tub/shower footprint.

If the unit is a fan/light combo over a shower, verify the manufacturer's instructions allow it. 110.3(B) makes those instructions enforceable. A fan rated only for damp locations installed over a shower head is a violation regardless of how dry the ceiling looks.

Field tip: if the existing box is plastic and you're upgrading to a heavier fan/light/heater combo, swap to a fan-rated metal box or a listed fan brace. The old plastic box was rated for the old fan, not the new one.

Circuit selection and GFCI protection

Per 210.11(C)(3), the bathroom branch circuit serving receptacles must be a dedicated 20A circuit. That circuit can either serve only bathroom receptacles, or it can serve a single bathroom's receptacles plus other equipment in that same bathroom (fan, light, heater). You cannot put receptacles in two bathrooms plus a fan on the same circuit. Pick one configuration and stick to it.

GFCI protection is required for all 125V, 15A and 20A receptacles in bathrooms under 210.8(A)(1). The fan itself is not a receptacle, but if it's hardwired downstream of a GFCI receptacle's LINE side via the LOAD terminals, it will be GFCI protected, which is fine and often required when the fan is over the tub/shower per 210.8(E) considerations and local amendments. Check the fan's instructions: some heater units explicitly call for a dedicated non-GFCI circuit.

  • Dedicated 20A bathroom circuit, receptacles only across multiple baths, or
  • 20A circuit serving one bathroom's receptacles plus that room's lighting, fan, and heater.
  • Confirm fan/heater amp draw against the rest of the connected load. A 1500W heater alone is 12.5A.

Switch leg layout: fan only, fan/light, fan/light/heater

A plain fan on a timer or single switch is two conductors plus ground from the switch to the fan. A fan/light combo needs three conductors plus ground in the switch leg so each load gets its own switched hot and shares the neutral. A fan/light/heater needs four conductors plus ground, typically 14/4 or 12/4 with red/black/blue switched hots and white neutral.

Since the 2011 cycle, 404.2(C) requires a grounded (neutral) conductor at most switch locations. If you're feeding the fan with a switch loop from the ceiling, you still need to bring the neutral down to the box. Smart timers and humidity-sensing switches need that neutral to operate, so this isn't just a code requirement, it's a functional one.

Field tip: label the switched conductors at both ends with phase tape before you button up. Black for fan, red for light, blue for heater is the convention most of us use, but the next person in the box will thank you for the tape.

Box fill, support, and the right cable

Run the box fill calc per 314.16 before you cram four cables into a 4-inch round. A fan/light/heater fed by a 14/4 plus a 14/2 switch leg lands you at 12 or 13 conductor equivalents fast once you count clamps, devices, and grounds. Use a deep box or a box extension if the math gets tight.

Support the fan per 314.27(C). If the fan exceeds 35 lbs (most heater units do), it must be independently supported, not hung from the box alone. A listed fan brace bar between joists is the standard solution. Drywall screws into the box ears are not support.

  • NM cable in the joist bay: protect within 1.25 inches of the joist face per 300.4(A) with a steel plate, or use bored holes through the center.
  • Secure NM within 12 inches of the box (or 8 inches for single-gang nonmetallic boxes without internal clamps) per 334.30.
  • Use the right connector for the fan housing. Most have built-in NM clamps; if not, a listed cable connector is required.

Ducting, makeup air, and termination

Code is mostly silent on duct routing, but the IRC and IMC are not, and the fan listing usually specifies maximum duct length and termination type. Terminate to the exterior, not the attic, not the soffit unless the soffit vent is rated for exhaust. Dumping moist air into an attic causes the kind of mold problem that ends in litigation.

For larger exhaust fans (over 400 CFM, common in primary baths with steam showers), the IRC requires makeup air. That's a mechanical concern, but you may be the one wiring the makeup air damper, so know it's coming.

Final checks before you close it up

Energize the circuit, test GFCI trip and reset, verify the fan and light operate independently, and confirm the heater (if present) cycles without tripping. Hit the fan with a tissue at the grille to confirm airflow direction. If you wired a humidity-sensing switch, set the threshold and watch one cycle.

  1. Continuity and ground check before energizing.
  2. Verify GFCI protection at the receptacle and at the fan if applicable.
  3. Confirm box fill, support, and cable securement are visible and correct.
  4. Document the circuit on the panel directory. Future you will appreciate it.

Bathroom fans aren't glamorous work, but they're high-callback territory if you cut corners on the box, the switch leg, or the location rating. Slow down on the rough-in and the trim goes fast.

Get instant NEC code answers on the job

Join 16,400+ electricians using Ask BONBON for free, fast NEC lookups.

Try Ask BONBON Now