The basic wiring setup for a ceiling fan with light
A ceiling fan with an integrated light uses a single power supply from your wall switch, but splits that power into two separate circuits inside the fan's canopy—one for the motor and one for the light. The wall switch controls both together, or a dual switch lets you run them independently. The wiring itself is straightforward: the hot wire (usually black) connects to the fan's hot terminal, the neutral wire (white) connects to neutral, and the ground wire (bare copper or green) connects to ground. Everything else—the internal wiring that separates motor power from light power—is already built into the fan's wiring harness.
Before you touch anything, turn off power at the breaker and test the wires with a non-contact voltage tester to confirm the power is actually off. This is the single most important safety step. A ceiling fan installation involves working above your head with electricity, so there is no room for guessing.
Key Takeaways
- Turn off power at the breaker and test with a voltage tester before you start—this prevents electrocution and is non-negotiable.
- The fan's wiring harness already separates motor and light circuits internally, so you only need to connect three wires from the ceiling to the fan's canopy: hot, neutral, and ground.
- If your wall switch is a single switch, both the fan and light turn on together; a dual switch lets you control them separately, but requires running two hot wires from the switch to the fan.
- The canopy (the decorative cover that hides the wiring) must be secured to the mounting bracket before you push the wires up into the ceiling, or you will be holding it in place while trying to wire.
- If you are replacing an old fan and the existing wiring does not match what the new fan needs, call a licensed electrician rather than improvising connections.
What you need before you start
Gather a non-contact voltage tester (the kind that beeps when it detects live current), a wire stripper, wire nuts (usually included with the fan), a screwdriver, and a ladder or step stool. You will also need the instruction manual that came with your fan—do not skip this. Different manufacturers route wires differently inside the canopy, and the manual shows you exactly where each wire goes.
Check your wall switch before you buy the fan. If it is a single switch, the fan and light will turn on and off together. If you want to control them separately, you will need either a dual switch (two switches in one box) or a remote control fan. A dual switch requires running two separate hot wires from the switch to the fan, which means your existing wall box may not have enough room or enough wires. If the wall box only has one hot wire coming in, you cannot add a second one without calling an electrician to run new wire from the breaker panel.
Turning off power and preparing the ceiling
Go to your breaker panel and flip the breaker that controls the ceiling light or fan to the off position. Return to the room and flip the wall switch up and down a few times to confirm nothing happens. Then use your non-contact voltage tester on the existing wires in the ceiling (if you are replacing a fan) or on the wires coming from the ceiling box (if this is a new installation). The tester should not beep. If it does, you turned off the wrong breaker—go back and find the right one.
If you are replacing an old fan, remove it completely. Disconnect the old wires by unscrewing the wire nuts, unscrew the old mounting bracket from the ceiling box, and set the old fan aside. If you are installing a new fan where there was no fan before, you will need a ceiling fan-rated electrical box already installed in the ceiling. A regular light fixture box is not strong enough to hold a fan's weight. If the box is not there, call an electrician to install one.
Connecting the wires in the canopy
Screw the new mounting bracket to the ceiling box using the bolts provided. The bracket should be rock-solid with no wobble. Unpack the fan and lay out all the pieces. The canopy (the decorative cover) will have a wiring harness hanging from it—this is the pre-assembled set of wires that splits the incoming power between the motor and the light. Do not cut or modify this harness.
Strip about half an inch of insulation from the end of each wire coming from the ceiling: the black (hot) wire, the white (neutral) wire, and the bare copper or green (ground) wire. Strip the same amount from the corresponding wires on the fan's harness. Hold the ceiling's black wire next to the harness's black wire, twist them together clockwise, and screw a wire nut onto the twisted pair. Pull gently on the nut—the wires should not slide out. Repeat this process for the white wires and the ground wire. If the harness has a blue wire, that is for a remote control receiver and should be left alone unless your fan has a remote.
Tuck all the connected wires back into the ceiling box. They should fit without being crammed. If they do not, you may have too much wire or the box may be too small—do not force it, as this can damage the insulation.
Securing the canopy and installing the blades
Slide the canopy up toward the ceiling and align the mounting holes with the bracket bolts. Screw the canopy to the bracket using the provided hardware. The canopy should sit flush against the ceiling with no gaps. Once it is find, you can let go and use both hands for the rest of the installation.
Install the fan blades according to the manual. Most fans have a blade holder that screws to the motor housing, and each blade slides into a slot on the holder. Tighten everything firmly but do not over-tighten, as this can crack the plastic. Install the light fixture (usually a small glass or plastic shade) and any light bulbs. Screw the light cover or trim ring to the bottom of the canopy.
Testing and troubleshooting
Go back to the breaker panel and turn the breaker back on. Return to the room and flip the wall switch. The light should come on, the fan should run, or both should happen depending on your switch type. If nothing happens, turn the breaker back off, check that all wire nuts are tight, and verify that you connected black to black, white to white, and ground to ground. A loose wire nut is the most common cause of a dead fan.
If the light works but the fan does not, or vice versa, the problem is usually inside the fan itself—a manufacturing defect or a wire that came loose during shipping. Do not try to disassemble the motor or the light fixture. Turn off the breaker, take photos of how you wired it, and contact the fan manufacturer's support line with those photos.
If you smell burning plastic or see scorch marks on the wires or wire nuts, turn off the breaker when ready and do not touch the fan. This indicates a serious electrical problem. Call a licensed electrician.
When to call a professional electrician
Call an electrician if your existing ceiling box is not rated for a fan, if you need to run new wire from the breaker panel to support a dual switch, if the existing wires in the ceiling do not match the fan's requirements, or if you see any signs of burning or damage. You should also call if you are uncomfortable working at height or if the fan does not work after you have checked all the connections.
An electrician can also help if you want independent control of the fan and light but your current wiring does not support it. They can run a second hot wire from the breaker panel or install a remote control receiver, either of which solves the problem without rewiring the entire circuit.
Frequently Asked Questions
Can I wire a ceiling fan with light to a dimmer switch?
Not all fans work with dimmers. Check your fan's manual first. If it is compatible, the dimmer connects the same way as a regular switch—black wire to black, white to white, ground to ground. If the manual says the fan is not dimmable, using a dimmer can damage the motor or light.
What if the ceiling box is loose or wobbles?
A loose box is a safety hazard and the fan can fall. Do not install the fan. Call an electrician to find or replace the box before you proceed.
Do I need a separate switch for the light and fan?
Not necessarily. A single switch turns both on and off together, which is fine for most people. A dual switch or remote control lets you run them separately, but requires either two hot wires from the switch or a remote receiver inside the fan. Check your wall box and the fan manual to see what is possible in your setup.
What size wire do I need for a ceiling fan?
Use the wire that is already in your ceiling. Most ceiling fans run on standard 14-gauge wire on a 15-amp circuit, which is what most homes have. If you are running new wire, an electrician will size it correctly based on the breaker and the distance from the panel.
Can I install a ceiling fan in a bathroom?
Yes, but it must be rated for damp or wet locations. Check the fan's label. A standard fan in a bathroom can fail due to moisture. Use a GFCI-protected circuit if your bathroom does not already have one.