How to install a bathroom fan

Size a bathroom fan at 1 CFM (cubic feet of air per minute) for each square foot of floor, never less than 50 CFM, and run its duct to a cap outdoors, never into the attic. That's the Home Ventilating Institute's (HVI) rule and the 2024 IRC's minimum. Swapping a fan on existing wiring takes 2 to 3 hours, HomeGuide says. A new fan with a new circuit is electrician work.

Before you start

Time: 2 to 3 hours to replace a fan; 4 to 8 or more for a new one (HomeGuide) Difficulty: moderate; new wiring is for an electrician Cost: the fan, $20 to $400 (HomeGuide); a pro averages $200 to replace one and $400 for a new install (Fixr)

What you need:

  • A fan sized in CFM and rated in sones (below), listed for over a tub or shower if that's where it goes
  • Duct of the size the fan calls for, smooth and rigid where you can
  • A wall or roof cap with a damper
  • Mastic or metal tape for the joints, and duct insulation in a cold attic
  • A timer switch
Next: Upkeep and fixesLow water pressure in the shower

What size bathroom fan do you need?

For bathrooms up to 100 sq ft, HVI recommends 1 CFM per square foot of floor, about eight air changes an hour, and 50 CFM at minimum for bathrooms of 50 sq ft and smaller:

Bathroom Floor area (sq ft) Fan size (CFM)
5 x 8 ft 40 50
5 x 10 ft 50 50
6 x 10 ft 60 60
8 x 10 ft 80 80
10 x 10 ft 100 100

One HVI page works an 8 by 5 ft bathroom out to 40 CFM at 1 CFM per square foot. Its other page, and the code, say 50: the 2024 IRC (Table M1505.5) requires 50 CFM for intermittent use or 20 CFM running continuously in any bathroom, as the 2021 edition did in Table M1505.4.4. The fan has to deliver that at 0.25 inch of water column, a standard test pressure, so check the rating on the box.

Over 100 sq ft, HVI adds up the fixtures: 50 CFM each for a toilet, a shower and a bathtub, and 100 for a jetted tub. A large bath with all three needs 150 CFM. Going bigger costs little in energy, HVI says.

Allow some margin. Installed fans move less air than their rating, so ENERGY STAR, as PNNL reports it for the Department of Energy, says to choose an intermittent fan rated at least 70 CFM.

How quiet should it be?

Fan noise is rated in sones. HVI says to choose 1.0 sone or less for quiet operation, and gives these comparisons:

Sones About as loud as
0.5Rustling leaves
1.0A refrigerator
3.0A typical office
4.0A TV

ENERGY STAR caps certified bathroom fans at 2.0 sones up to 200 CFM and 3.0 from 201 to 500, and requires at least 2.8 CFM per watt under 90 CFM. PNNL gives 3 sones as the limit for a fan that runs on demand and 1 sone for one that runs all the time.

Vent it outdoors, never into the attic

The 2024 IRC (M1501.1) says exhaust air "shall be discharged to the outdoors" and "shall not be exhausted into an attic, soffit, ridge vent or crawl space," and M1505.2 bars bathroom air from being recirculated inside. Broan's guide agrees: "Ducted fans must always be vented to the outdoors." A bathroom without a window needs the fan: the 2024 IRC (R325.2, numbered R303.3 in 2021) asks for 3 sq ft of window glass, half of it openable, unless there's artificial light and an exhaust fan ducted outdoors.

Where the cap goes, under the 2024 IRC (M1504.3):

  • At least 3 feet from property lines.
  • At least 3 feet from windows that open, doors and gravity air intakes, unless it's 1 foot above them.
  • At least 10 feet from mechanical air intakes, unless it's 3 feet above them.

PNNL says the cap should have a damper that closes when the fan is off. Roof or wall? The cost guides split: HomeGuide says to avoid roof vents where you can because they leak more often than wall vents, while Angi says the roof is usually better because hot air rises. The code text above sets distances, not a direction.

Duct size and length

The 2024 IRC (Table M1504.2) limits how long each duct can run, in feet, for a fan of each rating:

Duct Flex, 50 CFM Flex, 80 CFM Flex, 100 CFM Smooth, 50 CFM Smooth, 80 CFM Smooth, 100 CFM
3 in. Not allowed Not allowed Not allowed 5 Not allowed Not allowed
4 in. 56 4 Not allowed 114 31 10
5 in. No limit 81 42 No limit 152 91
6 in. No limit No limit 158 No limit No limit No limit

The table assumes typical turns and fittings. "Not allowed" means no length of that size works. It also lists 125 to 300 CFM fans and ducts of 7 inches and up.

A 4 inch smooth duct carries a 50 CFM fan 114 feet, but an 80 CFM fan only 31. In 4 inch flex duct, an 80 CFM fan gets just 4 feet. Check your fan's outlet: Panasonic's WhisperFit DC, for example, takes a 4 inch duct, or 3 inch with a reducer.

How to install a bathroom fan

  1. Pick the spot. Over a tub or shower, use only a fan listed for it, on a GFCI-protected circuit (Broan, Panasonic). Broan's guide says to mount it at least 5 feet above the floor and never to put the switch where someone in the tub or shower can reach it. Check the label: not every fan is listed for that spot.
  2. Turn off the power at the service panel, and lock or tag it so no one switches it back on (Broan).
  3. Cut the ceiling opening without damaging hidden wiring (Broan), then mount the housing as the fan's guide shows.
  4. Run the duct. Take the shortest, straightest route, and don't go smaller than the fan calls for (Broan). PNNL adds: keep the first 3 feet straight, use smooth rigid duct and gradual bends, seal joints with mastic or metal tape, and insulate the duct to limit condensation.
  5. Fit the outdoor cap with its damper, clear of windows, doors and intakes by the distances above.
  6. Wire and ground it. Broan says the unit must be grounded, and that wiring "must be done by a qualified person(s) in accordance with all applicable codes and standards." If the job needs a new circuit or switch, stop here and call an electrician.
  7. Let it run long enough. HVI says to leave the fan on 20 minutes after you use the bathroom; PNNL says about an hour after a shower, on a timer switch. A steam shower should have its own fan (HVI).

What does a pro charge?

Fixr puts replacing a fan at $150 to $500, about $200 on average, and a new installation at $250 to $900, about $400. HomeGuide says $150 to $550 to replace and $250 to $950 for a new fan vented through a wall or roof, and Angi's average is $397. Venting is much of the difference: HomeGuide prices a wall vent at $250 to $800 and a roof vent at $350 to $950 plus permits. If the fan is one line in a larger job, see bathroom remodel cost.

Next: Upkeep and fixesLow water pressure in the showerClogged head, flow restrictor, valve or the whole house.

More on fans

More on bathroom

Sources

  1. Bathroom Ventilation, Home Ventilating Institute.
  2. Bathroom Exhaust Fans, Home Ventilating Institute.
  3. 2024 International Residential Code, Chapter 15 Exhaust Systems (M1501.1, M1504.2, M1504.3, M1505.2, M1505.5), International Code Council, 2024.
  4. 2021 International Residential Code, Chapter 15 Exhaust Systems (Table M1505.4.4), International Code Council, 2021.
  5. 2024 International Residential Code, Chapter 3 Building Planning (Table R301.5, R325.2, R327.1), International Code Council, 2024.
  6. Ventilating Fans Key Product Criteria, ENERGY STAR.
  7. Bathroom Exhaust Fans (Building America Solution Center), Pacific Northwest National Laboratory for the U.S. Department of Energy, 2022-12-04.
  8. Installation Guide 688ESL, Broan-NuTone.
  9. WhisperFit DC Ventilation Fans FV-0511VF1 series spec sheet, Panasonic, 2023-05.
  10. How Much Does It Cost to Install a Bathroom Exhaust Fan?, Fixr, 2025-02-07.
  11. Cost To Install Bathroom Exhaust Fan (Replace & Vent), HomeGuide, 2023-09-14.
  12. How Much Does It Cost to Install a Bathroom Fan?, Angi, 2026-09-10.
  13. How Much Does a Bathroom Remodel Cost?, HomeGuide, 2025-06-20.