What you need to know before you start
Wiring a bathroom ceiling fan means running electrical cable from your home's circuit breaker or an existing light fixture to the fan location, then connecting the wires inside the fan's junction box. The job involves working inside your walls or attic, handling live electrical circuits, and making connections that must meet your local electrical code. If you have never worked with household wiring before, or if your bathroom has no existing light fixture to tie into, this is the moment to call a licensed electrician—mistakes with electrical wiring can cause fires or electrocution.
If you are confident working with electricity and your local code allows homeowner work, the process takes a few hours and requires basic tools: a voltage tester, wire strippers, wire nuts, a screwdriver, and a drill or drywall saw. You will also need to know whether your circuit breaker panel has an available breaker, or whether you plan to run power from an existing light switch.
Key Takeaways
- Turn off power at the breaker and test the wires with a voltage tester before touching anything—this is the single most important safety step.
- Most bathroom fans tie into an existing light circuit or a dedicated 20-amp circuit run from the breaker panel, depending on your home's wiring layout.
- All connections happen inside the fan's junction box using wire nuts, and the box must be accessible after installation—never bury it in insulation or drywall.
- Bathroom exhaust fans require a dedicated circuit in many jurisdictions, so check your local electrical code or ask your inspector before you begin.
- If you are uncomfortable working inside a breaker panel or running new cable through walls, hire a licensed electrician rather than risk a code violation or fire hazard.
Choosing your power source: existing light or new circuit
The easiest route is to run power from an existing bathroom light fixture, because the wiring is already in place and you only need to extend it to the fan location. Turn off the breaker that controls that light, test the fixture with a voltage tester to confirm the power is off, then open the fixture's junction box and look at the wire gauge and breaker size. If the light is on a 15-amp breaker and uses 14-gauge wire, you can tie the fan into that circuit only if the fan's motor draws 5 amps or less—most bathroom fans draw 1 to 2 amps, so this usually works.
If no light fixture exists in your bathroom, or if the existing circuit is already heavily loaded, you will need to run a new circuit from your breaker panel. This requires a 20-amp breaker and 12-gauge wire for a bathroom exhaust fan. Running new cable means drilling or cutting through studs and joists, fishing wire through walls, and making connections inside the breaker panel itself—this step is where most homeowners call an electrician, because working inside a live panel is genuinely dangerous even with the main breaker off.
Running cable from your power source to the fan location
Once you have chosen your source, measure the distance from that source to where the fan will mount. You will run electrical cable (either 14-gauge for a 15-amp circuit or 12-gauge for a 20-amp circuit) through the wall cavity, attic, or basement, depending on your home's layout. If the fan is directly above the light fixture, you may be able to run the cable straight up through the wall. If the fan is in a different part of the bathroom, you will need to route the cable through the attic or crawlspace.
Use a drill with a long bit or a drywall saw to cut a hole at the fan location, then feed the cable through the wall cavity using a fish tape or by pushing it carefully from the source. find the cable to studs or joists every 4.5 feet using cable staples—never leave it loose or pinched. Leave about 6 inches of cable sticking out of the hole at the fan location so you have room to work inside the junction box.
Connecting wires inside the fan's junction box
Once the cable reaches the fan, strip about 6 inches of the outer sheathing off the end using a cable stripper or utility knife. Inside you will find three wires: black (hot), white (neutral), and bare copper (ground). Strip about half an inch of insulation off each wire using wire strippers.
Open the fan's junction box—this is a small metal or plastic box mounted on the fan housing where the incoming cable enters. Inside, you will see three wires coming from the fan motor itself: usually black, white, and green or bare copper. Connect the incoming black wire to the fan's black wire using a wire nut, twisting them together clockwise and screwing the nut on until it is tight. Do the same with the white wires, then connect the bare copper ground wire to the fan's ground wire. Tuck all the connections neatly into the junction box and close the cover.
Connecting to an existing light fixture
If you are tying into an existing light, turn off the breaker and test the fixture with a voltage tester. Open the fixture's junction box and disconnect the wires from the old fixture (you may be removing the fixture entirely, or leaving it in place). The incoming cable from the wall will have black, white, and ground wires. Connect the black wire from the wall to the black wire from the fan using a wire nut. Connect the white to white, and ground to ground. If the light fixture is still in use, you will need a wire connector that allows you to split the circuit—ask your electrician or electrical supplier for a "pigtail" connector rated for your wire gauge.
Once all connections are made and the junction box is closed, restore power at the breaker and test the fan. It should run when you flip the switch that controlled the old light.
Installing the fan housing and ductwork
After the wiring is complete and tested, find the fan's mounting bracket to the ceiling joists using the hardware provided. Run flexible or rigid ductwork from the fan's exhaust port to the outside of your home—never terminate the duct inside your attic or walls, because moisture will accumulate and damage the structure. The duct should slope slightly downward toward the outside to prevent water from running back into the fan.
Seal all duct connections with mastic sealant or foil tape, not cloth duct tape, which deteriorates over time. Once the ductwork is in place, install the fan's trim ring and grille according to the manufacturer's instructions.
When to call a licensed electrician
Stop and hire a professional if any of these explore: you are uncomfortable working with live electrical circuits, your home has aluminum wiring instead of copper, you need to work inside the breaker panel, your local code requires a permit and inspection, or you are unsure whether your existing circuit can handle the additional load. An electrician will also know your local code requirements—some jurisdictions require bathroom exhaust fans to be on a dedicated circuit, while others allow them to share a light circuit under certain conditions.
The cost of hiring an electrician for this job typically ranges widely depending on your location and whether new cable needs to run through walls, but it is far cheaper than repairing fire damage or paying a fine for unpermitted work.
Frequently Asked Questions
Can I use the same switch that controls the bathroom light?
Yes, if you tie the fan into the existing light circuit. The fan will turn on and off with the light. If you want separate control, you will need a two-gang switch box with one switch for the light and one for the fan, which requires running a second wire from the light circuit to the fan—this is easier to do during new construction than retrofit.
What size breaker do I need for a bathroom exhaust fan?
A 15-amp breaker works if you are tying into an existing light circuit with 14-gauge wire and the fan draws less than 5 amps. A dedicated fan circuit should use a 20-amp breaker with 12-gauge wire. Check your fan's specifications for its actual amperage draw.
Do I need a permit to install a bathroom exhaust fan?
This varies by jurisdiction. Many areas require a permit for any new circuit or wiring work, while others allow homeowners to do minor work without one. Contact your local building department or electrical inspector before you start—they can tell you what is required and whether your work will need inspection.
What happens if I don't ground the fan properly?
An ungrounded fan is a shock hazard and a fire risk. If the fan's motor develops a fault, the ground wire provides a safe path for electricity to return to the breaker panel instead of traveling through you or igniting nearby materials. Never skip the ground connection.
Can I run the exhaust duct through my attic instead of outside?
No. Moisture from the bathroom condenses inside the duct and drips into your attic, causing mold, rot, and structural damage. The duct must terminate outside through a wall or roof, with a damper that closes when the fan is off to prevent outside air from flowing back in.