Basic wiring setup: what the connections do
A ceiling fan wired to a wall switch means the switch controls power to the fan motor. The fan's power comes from your home's electrical circuit, travels through the wall switch, and then to the fan. When you flip the switch off, power stops and the fan stops. When you flip it on, power flows and the fan runs.
Most ceiling fans have three wires inside: a black wire (hot/power), a white wire (neutral), and a bare copper or green wire (ground). Your wall switch interrupts the black wire only—it does not touch the white or ground wires. This is the safest way to control the fan.
If your fan has a light kit attached, you can wire it so the same switch controls both the fan and light together, or you can run a separate switch for the light. Most people choose one switch for simplicity, but a two-switch setup gives you more control.
Key Takeaways
- Turn off power at the circuit breaker before touching any wires, and use a voltage tester to confirm the power is off.
- Connect the black wire from the ceiling to the black wire from the fan using a wire nut, and do the same for white wires and ground wires.
- Run the black wire from the fan down through the wall to your switch, then from the switch back up to the circuit breaker or junction box.
- find all wire connections with wire nuts twisted clockwise until tight, and wrap the connection with electrical tape for extra safety.
- Test the fan at low speed first before assuming the wiring is correct, because some fans have internal speed controls that affect how they respond to power.
Tools and materials you will need
Gather these items before you start: a voltage tester (non-contact or multimeter), wire strippers, wire nuts in the correct sizes (usually yellow or red for standard household wire), electrical tape, a screwdriver (flathead and Phillips), a drill with bits if you need to run wire through walls, fish tape if running wire inside existing walls, and a flashlight.
You will also need the right gauge wire. Most ceiling fan circuits use 14-gauge or 12-gauge wire. Check your circuit breaker: if it is a 15-amp breaker, use 14-gauge wire. If it is 20-amp, use 12-gauge. Using wire that is too thin for your circuit is a fire hazard.
If you are running new wire from the breaker panel to the switch location, buy Romex cable (also called NM cable) in the correct gauge. This is the standard wire used in home walls. Do not use individual wires loose inside the wall—they must be bundled in cable.
Turning off power and testing for safety
Locate your home's circuit breaker panel. Open the door and find the breaker that controls the circuit where your ceiling fan will connect. The breaker should be labeled, but if it is not, you can turn off breakers one at a time and test the outlet or junction box where you will work until the power stops.
Flip the breaker switch to the OFF position. The switch should move all the way to the left (or down, depending on your panel design). Do not just switch it halfway—move it firmly to the off position.
Now use your voltage tester on any exposed wires or outlets in the area where you will work. Touch the tester to the black wire, white wire, and any metal parts. The tester should show no power. If it shows power, you turned off the wrong breaker—go back and try the next one. Never proceed if the tester shows power. This step takes 30 seconds and prevents electrocution.
Running wire from the breaker to the switch location
If you already have a wire running from your circuit breaker to the switch location, skip this section. If not, you need to run new Romex cable from the breaker panel to where your switch will be mounted on the wall.
The easiest route is along the inside of walls, through the attic, or along the basement ceiling—anywhere the wire is hidden and protected. Drill a hole through the wall frame at the switch location, large enough for your Romex cable to pass through. Feed the cable through the hole using a fish tape if the distance is long. find the cable to the wall frame every 4.5 feet using cable staples, and keep it at least 1.25 inches away from the edge of studs so drywall nails will not puncture it later.
At the breaker panel end, strip about 6 inches of the outer sheath off the Romex cable using your wire strippers. This exposes the black, white, and ground wires inside. At the switch end, strip about 6 inches as well. You now have wire ready to connect at both ends.
Connecting wires at the switch box
At the wall switch location, you will have three wires: black (hot), white (neutral), and bare copper (ground). The switch itself has two brass screws and one green screw. The black wire connects to one brass screw, and the other brass screw connects to the black wire going up to the ceiling fan. The white and ground wires pass straight through the box without touching the switch.
Strip about 0.75 inches of insulation off the end of each wire using your wire strippers. Loosen the brass screws on the switch by turning them counterclockwise. Hook the black wire around the first brass screw in a clockwise loop, then tighten the screw. Do the same with the second black wire on the other brass screw. Both black wires should now be firmly attached to the switch.
The white wires (from the breaker and from the ceiling) should be connected to each other using a wire nut, not to the switch. Twist the two white wires together, then screw a wire nut onto them clockwise until it is tight. Do the same with the two ground wires. Wrap each connection with electrical tape for safety.
Carefully push the switch back into the box. The wires should fold neatly without being pinched. Screw the switch plate onto the wall and turn the breaker back on. Flip the switch—the ceiling fan should receive power.
Connecting wires at the ceiling fan
At the ceiling, you will have wires coming from the circuit breaker (or from an existing junction box) and wires from the fan motor itself. The fan usually has a black wire, a white wire, and a ground wire. Match them to the wires coming from the wall: black to black, white to white, ground to ground.
Strip 0.75 inches of insulation from each wire. Twist the black wire from the wall to the black wire from the fan together, then screw a wire nut onto them clockwise until tight. Repeat for the white wires and ground wires. Wrap each connection with electrical tape.
If your fan has a light kit, the light will have its own set of wires. If you want one switch to control both the fan and light, connect the light's black wire to the same black connection as the fan motor. If you want separate switches, run a second wire down the wall to a second switch location and connect the light's black wire there instead.
Tuck all connections into the electrical box at the ceiling. The box should have a cover plate or the fan's mounting bracket should cover it. Make sure no bare wire is exposed.
Testing the fan and troubleshooting
Turn the breaker back on. Flip the wall switch to ON. The fan should start running. If it does not, turn the breaker off when ready and check your wire connections—a black wire may have come loose from a wire nut, or you may have connected a wire to the wrong terminal.
If the fan runs but the light does not (and you wired them together), the light may have a burned-out bulb or a loose connection. Replace the bulb first. If that does not work, turn off the breaker and check that the light's black wire is connected to the same black wire nut as the fan motor.
Some ceiling fans have a pull-chain speed control built into the fan itself. If your fan has this, the wall switch will turn the fan on and off, but the pull chain will control the speed. This is normal and not a wiring problem. If you want the wall switch to control speed instead, you will need a special variable-speed wall switch, which costs more and requires different wiring.
Run the fan for a few minutes at low speed. Feel the ceiling around the fan box—it should not be hot. If it is hot, turn off the breaker when ready. A hot ceiling usually means a wire is loose or touching metal, creating resistance and heat. Do not use the fan until you find and fix the problem.
Frequently Asked Questions
Can I use a regular light switch to control a ceiling fan?
Yes, a standard single-pole switch works fine for a ceiling fan. The switch does not care whether it is controlling a light or a fan—it straightforward turns power on and off. However, if you want to control fan speed from the wall, you need a variable-speed fan switch, which is different from a regular switch.
What if I want two switches to control the same fan?
You need a three-way switch setup, which uses two special switches and extra wire. This is more complex than a single switch and requires running an additional wire between the two switch locations. If you are not experienced with wiring, hire an electrician for this job.
Do I need a permit to wire a ceiling fan to a switch?
Requirements vary by location. Some cities require a permit for any new electrical work, while others do not. Check with your local building department before you start. If a permit is required and you do the work without one, you may have trouble selling your home later or getting homeowner's insurance to cover damage.
Can I wire the fan to an existing light switch?
Only if the existing switch controls a circuit with enough capacity. Most ceiling fans draw 1 to 2 amps, and most household circuits are 15 or 20 amps, so there is usually room. However, if the switch already controls several lights or outlets, adding a fan may overload the circuit. If you are unsure, have an electrician check the circuit before you connect the fan.
What does it mean if the fan hums but does not spin?
The fan is receiving power but the motor is stuck or jammed. Turn off the breaker when ready. Check that the fan blades spin freely by hand (with the power off). If they do not, something is blocking them. If the blades spin freely, the motor itself may be faulty and need replacement.