How to Install a Bathroom Exhaust Fan

Replacing a loud, underpowered bathroom fan with a quiet, properly sized model costs under $150 in parts and clears the shower moisture that feeds mold on walls and ceilings. This guide walks you through a like-for-like replacement in an afternoon, covering CFM sizing, wiring, and ductwork so you end up with a fan that actually does its job.
What You'll Need
π Tools
π¦ Materials
Safety First
- β’Always shut off power at the breaker and verify with a non-contact voltage tester before touching any wires β the fan's switch leg can still be live even when the fan is off.
- β’Old fan housings often contain years of lint and dust β wear a respirator and goggles when you pull the grille, because disturbed debris rains straight down into your face.
- β’Never vent the exhaust into an attic, soffit, crawl space, or between joists β trapped moisture can cause mold and rot in the surrounding building materials.
Step-by-Step Instructions
Size the Fan for Your Bathroom
Measure the length and width of the bathroom and multiply to get square footage. The DOE Building America Solution Center checklist sets a floor of 50 CFM for a fan that runs intermittently, whatever the room size. For bathrooms of 50 to 100 sq ft, the Home Ventilating Institute (HVI) recommends about 1 CFM per square foot of floor area (50 CFM for anything smaller), and its own example puts a 7Γ10 bathroom at 70 CFM, so buy the next size up if that exact rating isn't sold. For bathrooms over 100 sq ft, HVI adds up the fixtures instead: 50 CFM each for a toilet, a shower, and a tub, and 100 CFM for a jetted tub. Check local mechanical code too. While you're shopping, look for a sone rating of 1.0 or lower, the level HVI gives for quiet ventilation β anything louder is miserable to listen to twice a day.

Check the existing housing's rough-opening dimensions before you buy a new fan β matching the hole size saves you from patching and re-cutting drywall.
Shut Off Power and Verify
Flip the breaker that feeds the bathroom fan switch at your main electrical panel and turn the fan and lights on in the bathroom to confirm they're dead. Climb the ladder with a non-contact voltage tester, pop the grille off the old fan, and hold the tester against every wire inside the housing β it should stay silent. Only then do you touch anything.

The switch leg can remain energized even when the fan is off β never skip the voltage test, and tape a note over the breaker so nobody flips it back while you're working.
Remove the Old Fan
Unplug the motor from the integrated outlet in the housing (most modern fans plug right in) or unscrew the wire-nut connections if it's direct-wired, noting which color went where. Slide out the motor assembly, then disconnect the flexible duct from the exhaust port and pull the Romex out of the internal clamp. Finally, unscrew the housing from the ceiling joist it's fastened to and lower the whole box out of the hole.

Check the Ceiling Opening
Test-fit the new housing in the existing hole. If it drops in with a little slack, you're golden. If the hole is too small, trace the new housing footprint on the ceiling and enlarge the opening with a drywall saw, cutting just shy of the line and filing to fit. If the hole is too big, screw a scrap of drywall to the joist above to shrink the opening β you can always mud and paint later.

Spread an old bedsheet on the floor below before you cut β drywall dust gets into every tile grout line and is a nightmare to mop out.
Connect the Duct
From above (in the attic if you have access) or by working through the ceiling hole, slip the flexible or rigid duct over the new fan's exhaust collar. Secure it with a hose clamp, then wrap the joint tightly with UL 181 foil HVAC tape, not cloth duct tape: the DOE Building America Solution Center checklist calls for every duct seam and connection to be sealed with mastic or UL 181 tape. A zip tie alone is not a seal; you can use one temporarily to hold the duct in place while you tape, but the finished joint must be foil-taped. If you're running new duct, use rigid 4-inch metal pipe and take the most direct route outside, with as few bends as possible and none in the first 3 feet from the fan, as the same checklist specifies.

Never terminate the duct in the attic or soffit β always run it to a roof cap or gable vent with a damper, and keep the termination at least 3 feet from any window or door.
Mount the Housing to the Joist
Feed the existing electrical cable through the internal strain-relief clamp on the new housing and tighten the clamp screw. Position the housing in the ceiling hole with the flange tight against the joist and drive 1-1/4 inch drywall screws through the mounting flange into the wood. The housing should feel rock-solid β any wobble will transmit vibration and make the fan sound loud regardless of the sone rating.

Make the Wire Connections
Inside the housing's wiring compartment, strip 3/4 inch of insulation off the house wires if needed. Connect black-to-black (hot), white-to-white (neutral), and ground-to-ground (green or bare copper) using yellow wire nuts, twisting clockwise until tight, then give each wire a firm tug to confirm it won't pull loose. Tuck the connections neatly into the compartment and replace the cover plate.

If your new fan has more wires than the old one (e.g., a separate light or heater), you may need to run 14/3 cable and add a second switch β plan for that before you open the walls.
Install the Motor and Grille
Plug the motor assembly into the integrated outlet inside the housing and screw it into place with the provided mounting screws. Squeeze the grille's spring-steel mounting wires together and push them into the matching slots in the housing until the grille seats flush against the ceiling. Run a thin bead of silicone caulk around the outside edge of the grille only if required by the manufacturer β most modern grilles seat cleanly without it.

Test and Confirm the Venting Path
Flip the breaker back on and turn the fan switch β it should start quietly and draw a steady stream of air (hold a tissue to the grille to see it pull in). Run the shower for 5 minutes with the door closed and watch how fast steam clears compared with the old fan. Finally, go outside and confirm the exterior vent flap is opening, proving the moist air is actually leaving the building envelope and not dumping into your attic.

Run the fan for at least 20 minutes after every shower, as Panasonic advises β a timer or humidity-sensing switch automates this so nobody has to remember.
Frequently Asked Questions
What size CFM bathroom exhaust fan do I need?
+
The DOE Building America Solution Center checklist sets a floor of 50 CFM for a bathroom fan that runs intermittently (20 CFM if it runs continuously). For bathrooms of 50 to 100 sq ft, the Home Ventilating Institute (HVI) recommends about 1 CFM per square foot of floor area, with 50 CFM as the minimum for smaller rooms. For bathrooms over 100 sq ft, HVI adds up the fixtures instead: 50 CFM each for a toilet, a shower, and a tub, and 100 CFM for a jetted tub. Check your local mechanical code as well. For master baths, also look for a sone rating of 1.0 or lower, the level HVI gives for quiet ventilation, so the fan is quiet enough to actually use.
Can I install a bathroom exhaust fan myself?
+
Yes β a like-for-like replacement (using the existing duct and electrical) is a 3-hour DIY project for anyone comfortable shutting off a breaker and making basic wire-nut connections. New installations that require running new electrical, cutting new ductwork, or installing a roof cap are significantly harder and may need a permit; check your local building code first.
Where can I vent a bathroom exhaust fan?
+
Vent through the roof (with a roof cap) or through a gable wall (with a wall vent). Never terminate the duct in an attic, soffit, crawl space, or between joists β the Department of Energy warns that bath-fan moisture exhausted into an attic or crawl space can cause mold and rot in building materials. Keep the exterior termination at least 3 feet from any window or door and at least 10 feet from a mechanical air intake, as DOE installation guidance specifies.
Do I need a permit to replace a bathroom exhaust fan?
+
Most jurisdictions don't require a permit for like-for-like replacement that reuses existing wiring and ductwork. Permits are typically required when you add a new circuit, cut new framing, or install a new exterior vent termination. Always check with your local building department before starting if you're unsure.
How long should I run a bathroom exhaust fan after a shower?
+
Panasonic advises running the fan during every shower and for at least 20 minutes afterward, which gives it time to clear the lingering moist air. To keep mold off grout, drywall, and ceilings, the Environmental Protection Agency recommends keeping indoor relative humidity below 60 percent, ideally between 30 and 50 percent. A timer or humidity-sensing switch automates the run time so nobody has to remember to turn the fan off.
Sources & further reading
- Bathroom Exhaust Fans β Home Ventilating Institute
- Bathroom Exhaust Fan (Home Improvement Expert checklist) β U.S. DOE Building America Solution Center
- Job Aid 18-1: Install Exhaust Fan Flex Duct (Bath Fan Only) β U.S. Department of Energy
- Job Aid 25-1: Install Roof Vent β U.S. Department of Energy
- How to Choose the Best Bathroom Exhaust Fan for Your Home β Panasonic
- A Brief Guide to Mold, Moisture and Your Home β U.S. Environmental Protection Agency
- Improving Indoor Air Quality β U.S. Environmental Protection Agency
More Electrical Guides
View all β
Medium3 hrsHow to Install Outdoor Landscape Lighting
Low-voltage landscape lighting lights up walkways, trees, and architectural features after dark, and it's an approachable electrical project for a homeowner because everything past the plug-in transformer runs on 12-volt power. A typical 8-to-10 fixture installation costs $150-300 in materials and takes an afternoon. This guide walks you through planning the layout, sizing the transformer, running burial-rated wire, connecting fixtures, and testing for voltage drop before you bury everything.
Easy1h 30mHow to Install Under-Cabinet Lighting
Adding LED strip lights beneath your kitchen cabinets is a single-afternoon project that lights the stretch of countertop the wall cabinets keep in shadow, which makes food prep easier. This guide covers plug-in LED strip lights, which require zero electrical wiring and cost $25-60 for an average kitchen.
Easy25 minHow to Replace a Light Switch
A worn, cracked, or misbehaving light switch is one of the easiest electrical fixes in the house β the job takes about 20-30 minutes and costs $2-10 in parts. This guide walks through safely replacing a standard single-pole toggle or decora switch, from cutting the power to wiring the new device and testing the circuit.
You Might Also Like
Easy40 minHow to Fix a Leaky Pipe Joint
A weeping pipe joint under the sink is usually a cheap, do-it-yourself repair. Threaded joints get resealed with Teflon tape or pipe joint compound, compression fittings need a sound ferrule, a straight fit and the right amount of tightening, and slip joints need fresh washers and careful alignment, all with a couple of wrenches.
Medium45 minHow to Fix a Refrigerator That's Not Cooling
A fridge that hums along but won't get cold is usually choking on its own dust or airflow β not dying. This guide walks the troubleshooting tree in order of likelihood, from temperature settings and blocked vents to dirty condenser coils, a frost-clogged defrost system, and the fans that move the cold air. Most causes are a free or under-$20 fix; a few mean it's time for a tech, and you'll learn how to tell them apart before you spend a dime.
Medium45 minHow to Fix a Dishwasher That Won't Drain
Standing water in the bottom of the dishwasher after a cycle usually traces back to restricted flow somewhere in the drain path: a clogged filter, debris in the sump, a kinked or blocked drain hose, or a clogged garbage disposal. The fix takes 30-45 minutes with basic tools, and most of those causes call for cleaning rather than new parts. This guide walks through every cause from simplest to most involved, starting with the checks Whirlpool says you can complete before scheduling service.