To wire a three-way switch system where two switches control the same receptacle, you need a few items, less than one hour of time and basic electrical know-how. First, you need two three-way switches, some three-wire cable with a ground wire, some two-wire cable with ground to go between the last switch and the receptacle, the two-wire cable attached to the circuit you are putting the receptacle on and the receptacle itself, in this case a light and fan.
Wire the first switch
You can use color coding to understand your switches. Notice that the three-way switches have three terminals as opposed to the two terminals found on standard switches. One of the terminals is color coded, usually black. Attach the black or red wire from the two-wire cable from the existing circuit to this terminal. The black and red wires from the three wire cable go onto each of the other two terminals. Attach the white wire from the two-wire cable to the white wire from the three-wire cable, and attach the ground wires to each other and the electrical switch box.
Wire the second switch
Wire this switch the same as the first switch. The red and black wires from the three-wire cable go to the unmarked terminals. The white wire should be attached to the white wire from the two-wire cable going up to the light, and the grounds should be attached together and to the switch box. The black or red wire from the two-wire cable going up to the light gets attached to the marked black terminal on the switch.
Wire the light and fan
The black or red wire from the two-wire cable affixes to the black or red wire from the fan. The white wire connects to the white wire from the fan, and the ground wire is attached to the ground wire or terminal from the fan.