Basement to Roof

Insulation and Ventilation

Bathroom Ventilation Requirements and Installation Cost

Updated

Peeling paint, moldy drywall, rusted fixtures and wet attic insulation are the later bill for a bath fan that exhausts into the attic, pushes through a duct that is too long, too small or crushed, or gets switched off a minute after the shower.

What the code requires

Most US jurisdictions use the International Residential Code (IRC) and the National Electrical Code (NEC), sometimes with local amendments. The core ventilation rules are simple.

Every bathroom needs either a window or a mechanical fan.

  • Window option: at least 3 sq ft of glazing, with at least half of it openable.
  • Fan option: a fan that exhausts directly to the outdoors, with at least:
Fan operation Minimum airflow
Intermittent (runs when switched on) 50 CFM
Continuous (runs all the time) 20 CFM

A window passes code on paper. Nobody opens it in January, though, so put in a fan anyway. Many jurisdictions require a fan regardless, especially for new homes built to tighter energy codes.

The exhaust has to go outdoors. It can't end in the attic, the crawlspace, a wall cavity or the space between floors. "Pointed at a gable vent" or "laid near a roof vent" doesn't count. The duct must connect to a termination fitting, either a roof cap, wall cap or dedicated soffit vent, and that fitting must have a backdraft damper.

The termination needs clearances. The usual rule is at least 3 ft from operable windows and doors and from property lines, and at least 10 ft from mechanical air intakes unless the exhaust sits at least 3 ft above them. Local codes can differ, so check before cutting the hole.

The fan must actually move its rated air through the duct. A fan rated at 80 CFM can move far less through a long run of crushed flex duct. Inspectors increasingly check this. Some jurisdictions require a flow test on new construction, especially where energy codes treat the bath fan as part of whole-house ventilation.

Sizing the fan

Code sets the floor at 50 CFM. In practice, size to the room:

Bathrooms up to 100 sq ft (8 ft ceiling): roughly 1 CFM per square foot, with 50 CFM as the minimum.

Bathroom size Suggested fan
Up to 50 sq ft (powder room, small hall bath) 50 CFM
50–80 sq ft 80 CFM
80–110 sq ft 110 CFM

Ceilings higher than 8 ft: scale up. A 9 ft ceiling needs about 12% more air, and a 10 ft ceiling about 25% more.

Bathrooms over 100 sq ft: add up the fixtures instead:

Fixture Airflow
Toilet 50 CFM
Shower 50 CFM
Bathtub 50 CFM
Jetted tub 100 CFM

A large primary bath with a toilet, a separate shower and a jetted tub works out to about 200 CFM. That's often better handled by two fans, one over the shower and one near the toilet, than by one big fan in the middle of the ceiling. Toilets in an enclosed water closet usually need their own fan.

Noise matters more than people expect. Fans are rated in sones. If a fan is loud, people turn it off early, and then it doesn't do its job.

  • 1.0 sone or less: about as loud as a quiet refrigerator. This is the target.
  • 1.5–2.0 sones: you can hear it, and it's acceptable.
  • 3.0+ sones: that's the cheap builder-grade rattle. Avoid it.

The duct matters more than the fan

Fans are rated at a static pressure of 0.1 or 0.25 inches of water column. Every foot of duct and every elbow adds resistance. Small, long or crushed ducts cut airflow fast. This is the single most common reason a "new fan" still leaves the mirror fogged.

Section through a bathroom and attic showing air entering under the door, rising into the ceiling fan and leaving through an insulated, sloped duct to a wall cap with a damper.6 in. duct, or 4 in. rigidInsulated duct in atticWall cap+ damperSlight slope outAtticFan, 50 CFM min.Replacement air3/4 in. door undercut
The path the air takes, cut through the bathroom and the attic above it. Replacement air comes in under the door, and the fan pushes it through an insulated duct that slopes slightly toward the outside and ends at a cap with a damper, never in the attic.

Maximum duct length (straight run, no elbows, fan rated at 0.25 in. w.c.):

Duct diameter and type 50 CFM 80 CFM 100 CFM 125 CFM
4" flex 56 ft 4 ft not allowed not allowed
4" smooth (rigid) 114 ft 31 ft 10 ft not allowed
5" flex no limit 81 ft 42 ft 16 ft
5" smooth no limit 152 ft 91 ft 51 ft
6" flex no limit no limit 158 ft 91 ft
6" smooth no limit no limit no limit 168 ft

Subtract about 15 ft of allowable length for each elbow.

Look at the 4" flex row: an 80 CFM fan can't get past 4 ft of it. Many fans ship with a 4" collar, and many installers connect 4" flex and stop there. The fan ends up moving maybe half its rating.

Ducting practices that work:

  • Use 6" duct when possible, or 4" rigid for short runs. Many current fans have a 4" collar that takes a 4"-to-6" increaser, and some have selectable 4"/6" collars.
  • Use rigid or semi-rigid metal duct for the long straight sections. Keep flex short, stretched tight and supported. Don't let it sag into loops.
  • Use insulated duct in unconditioned attics, especially in cold climates. Warm, wet air hitting a cold duct condenses, and the water runs back into the fan housing and drips from the grille. Homeowners often blame this on a roof leak.
  • Slope the duct slightly toward the outside where possible so condensation drains out, not back.
  • Seal the joints with foil tape or mastic, not cloth duct tape. Fasten connections with screws or clamps.
  • Keep elbows to a minimum and make bends gradual.
  • Use a proper termination cap with a damper and a collar sized to the duct. Cheap louvered wall caps stick shut and restrict airflow. Never tie a bath fan into a dryer vent line; each appliance needs its own duct and termination.

Replacement air: the fan can only pull out air that can get back into the room. An undercut of about 3/4 inch under the bathroom door, or a transfer grille, lets air in. A tight door with a fresh threshold can choke a good fan.

Wiring: what the electrical code expects

Circuit:

  • Fan or fan/light on a bathroom circuit: Bathroom receptacles need a 20-amp circuit. A fan can share that circuit if the circuit serves only that one bathroom. If the 20-amp circuit feeds receptacles in more than one bathroom, the fan has to go on another circuit, such as the general lighting circuit.
  • Fan/heater combos: These draw much more power. Many need a dedicated 20-amp circuit. Read the installation sheet before assuming an existing circuit will carry one.
  • Wire size follows the breaker: 14 AWG copper on 15 A, 12 AWG on 20 A. To switch the fan and light separately, you need a 3-wire cable (14/3 or 12/3) from the switch to the fan.

Over a tub or shower:

  • Listing: A fan installed over or within the tub/shower zone (roughly 3 ft out from the tub rim or shower threshold and 8 ft up) must be listed for that location. Most will say "suitable for installation over a tub or shower when installed on a GFCI-protected branch circuit."
  • GFCI: If the instructions require GFCI protection, it's required. Many installers protect all bath fans with GFCI as a matter of course.
  • AFCI: Newer NEC editions keep expanding where AFCI protection is required in homes. Whether a bathroom circuit needs it depends on which edition your jurisdiction has adopted. Ask the local building department or your electrician.

Controls that make a fan actually work:

  • Timer switch: Lets the fan run 20–30 minutes after a shower, which is how long it takes to clear the moisture. This is the single best upgrade for the money.
  • Humidity-sensing fan or switch: Turns the fan on and off automatically. Some jurisdictions require humidity control on bath fans.
  • Continuous low-speed fans: Many current DC fans have selectable speeds and can idle at low CFM and boost when a sensor trips or a switch is pressed. That can also cover whole-house ventilation requirements in tight new homes.

Fan and light on one switch: It's allowed. It just means the fan stops the moment the light goes off, which is usually too early.

Current fan prices

Typical retail prices in 2026:

Type Example features Typical price
Basic builder fan 50–80 CFM, 1.5–3 sones $30–$70
Mid-range quiet fan 80–110 CFM, under 1 sone, 4" or 6" collar $80–$160
DC multi-speed fan Selectable 50/80/110 CFM, about 0.3–0.8 sones, efficient $150–$200
Fan with LED light Dimmable LED, 110–150 CFM $250–$320
Fan with humidity sensor Automatic on/off $120–$300
High-capacity surface mount 190–290 CFM, large or multi-fixture baths $210–$240+
Fan/heater combo Heater element on its own circuit $150–$400

Retrofit-style fans are made to fit an existing ceiling hole from below without opening the ceiling or attic floor. They're worth looking at when replacing an old fan in a finished ceiling.

Installation cost

Job Typical installed cost
Replace an existing fan, same hole, same wiring and duct $250–$550
National average for a fan installation about $350–$375
New fan where none existed, short duct run to wall or roof $300–$1,100
New fan with a roof penetration and a 10–20 ft duct run $800–$1,500
Reroute a duct that currently dumps into the attic $300–$800
New dedicated circuit (fan/heater) adds $250–$800+
Roof or wall termination cap (material only) $40–$250

Electrician labor generally runs about $50–$130 per hour depending on region. Prices climb with cathedral ceilings, tile roofs, upper-floor bathrooms with no attic access, or older homes where the wiring needs updating first. Expect a permit on new installs in many areas.

Common mistakes that show up on service calls

  1. The duct ends in the attic. It soaks the insulation, mold grows on the roof sheathing, and in winter frost builds up and drips. This is the most common serious problem.
  2. A 4" flex duct runs 15 ft to a roof cap. The fan is rated at 80 CFM and moves about 30.
  3. The duct is crushed, kinked or sagging. Often it was stepped on during other attic work.
  4. The damper is stuck or the cap is plugged with lint, a bird nest or paint.
  5. The fan is wired to the light only, so it runs for the length of a shower and then stops.
  6. The fan is undersized for a big bath. A single 50 CFM fan in a 150 sq ft bathroom with a soaking tub won't keep up.
  7. A non-rated fan is installed over the shower, or it isn't on GFCI when the listing requires it.
  8. The fan is loud, so nobody uses it.

A quick test of an existing fan: with the fan running, hold a single square of toilet paper against the grille. If it doesn't hold firmly, the fan is moving little air. Then go outside, find the termination and check that the damper opens when the fan runs. If you can't find a termination at all, the duct probably ends in the attic. When a fan tests strong and the room still stays wet, the bathroom dampness likely comes from a leak or cold walls instead.

Doing it yourself vs. hiring out

Reasonable DIY: Replacing a fan with one of the same size, in the same hole, on the same wiring, with the duct already running outdoors. Turn the breaker off and verify the power is dead with a tester before touching anything.

Worth hiring out:

  • New wiring: Running new circuits or adding a fan where none existed means pulling permits in most areas, and an inspection protects you at resale.
  • Roof penetrations: A badly flashed roof cap leaks for years before anyone notices.
  • Fan/heater combos: These usually need a dedicated circuit.
  • Wet zones: Anything installed over a tub or shower needs the right listing and protection.
  • Fixing a fan that dumps into the attic: That job usually turns into a duct reroute and a new termination.

Done right, a bathroom fan is a 20-year part: sized to the room, ducted with 6" or rigid duct straight outdoors through a damper, quiet enough that people use it, and on a timer or humidity control. It's one of the cheapest ways to protect a house from moisture damage.