Ceiling fan wiring isn't much different from wiring a light fixture, and it becomes only slightly more complex when the fan comes with its own lights. The light kits and the ceiling fan motors are connected by a common neutral wire and ground wire, and each one has its own hot wire. Wire colors vary from manufacturer to manufacturer, so one of the best tips is for one to check the fan installation instructions before beginning. Another tip is to use the same size cable that is used in the live circuit. With or without a light kit, a ceiling fan installation involves only basic wiring.
When there is no light kit, the usual procedure for ceiling fan wiring is for the installer to run a single length of three-strand household electrical cable, such as is used for lights and electrical outlets, between the fan and the switch. The black wire is hot and connects to the switch. When there is a light kit, four-strand cable is used instead, and the two hot wires can be connected to separate switches. The common neutral and ground wires are connected back to the panel via the neutral and ground wires in the cable, respectively.
A slight complication arises in ceiling fan wiring when the light kit or the fan are controlled by a pull chain. There still will be two hot wires, but only one goes to a switch, and the other must remain hot. This is usually accomplished by pig-tailing two short lengths of wire to the hot circuit wire feeding the switch and connecting one of them to the switch. The hot wire from the fan component without the pull chain goes to the free terminal on the switch, and the other hot wire gets connected to the other length of wire in the pigtail.
A third possible configuration in ceiling fan wiring is to connect the light kit and fan to the same switch so that they go on and off at the same time. This is done by connecting both hot wires to the same switch terminal. When using four-strand cable, this means either twisting the two hot wires together and hooking them around the terminal screw or back-feeding one of them into the hole behind the terminal and hooking the other around the screw.
When doing ceiling fan wiring, it is recommended for one to use the same size cable as the one in the live circuit. This is a requirement of most electrical codes. Changing wire size in the middle of a circuit can overheat the smaller wire and start a fire.