Installing a bathroom fan that operates from a light switch is a practical and energy-efficient solution for maintaining proper ventilation and preventing moisture buildup. Understanding the wiring diagram for this setup is crucial for a safe and successful installation. Let's delve into the step-by-step process, ensuring you have the right information to tackle this DIY project.

Before we dive into the wiring diagram, it's essential to gather the necessary tools and materials. You'll need a bathroom exhaust fan, a light fixture (if not integrated), a light switch, electrical wire (14/3 or 12/3, depending on your setup), wire connectors, and basic electrical tools such as wire strippers, screwdrivers, and a voltage tester.

Understanding the Wiring Diagram
The wiring diagram for a bathroom fan connected to a light switch typically involves three wires: black (hot), white (neutral), and green or bare (ground). The black wire powers the fan and light, the white wire carries the neutral current, and the ground wire ensures safety by providing a low-resistance path to earth in case of a short circuit.

In this setup, the light switch controls both the fan and the light. When the switch is ON, power flows to both the fan and the light. When the switch is OFF, both the fan and the light are turned off.
Wiring the Light Switch

Start by turning off the power at the circuit breaker and testing the wires to ensure they're not live. Then, connect the black (hot) wire from the power source to the black wire on the light switch. Connect the white (neutral) wire from the power source to the white wire on the light switch. The ground wire should be connected to the green or bare wire on the light switch and also to a ground wire on the electrical box.
Next, connect the black and white wires from the fan/light fixture to the corresponding wires on the light switch. The ground wire from the fan/light fixture should be connected to the ground wire on the light switch and the electrical box. Ensure all connections are tight and secure, using wire connectors as needed.
Wiring the Fan/Light Fixture

At the fan/light fixture, connect the black wire from the light switch to the black wire on the fan motor. Connect the white wire from the light switch to the white wire on the fan motor (or the light fixture, if separate). The ground wire from the light switch should be connected to the ground wire on the fan motor and the fixture's metal housing.
If your fan and light are separate units, wire them accordingly. Connect the fan's black wire to the black wire from the switch, and the white wire to the white wire from the switch. For the light, connect its black wire to the remaining black wire from the switch (the one not connected to the fan), and the white wire to the remaining white wire from the switch. Ensure all ground wires are connected together and to the fixture's metal housing.
Testing the Installation

Once the wiring is complete, turn the power back on at the circuit breaker. Use a voltage tester to ensure the wires are live. Then, flip the light switch to the ON position. Both the fan and the light should turn on. If everything works as expected, your bathroom fan and light are now wired correctly and controlled by a single switch.
If you encounter any issues, double-check your wiring connections and ensure all wires are properly secured. If the problem persists, consult a licensed electrician to diagnose and resolve the issue.




















With your bathroom fan and light now wired and functional, you can enjoy improved ventilation and a well-lit space. Regularly test your fan and light to ensure they're working correctly, and don't hesitate to reach out to a professional if you have any concerns about your electrical setup.