socket and switch for house wiring
Learn how to connect a switch with 2-pin and 3-pin sockets. Phase goes through the switch, Neutral directly to socket, and Earth to the 3-pin socket.

2 pin socket wiring with switch
In 2-pin and 3-pin socket wiring, the Phase wire is connected through a switch to the socket, Neutral goes directly to the socket, and Earth connects only in the 3-pin socket.
3 pin socket wiring with switch
A 2-pin and 3-pin socket wiring with switch is a common household connection. The principle is simple: the Phase (Line) wire is always connected through the switch before reaching the socket, so when the switch is OFF, the socket is disconnected from the supply. The Neutral wire connects directly to the socketโs Neutral terminal. In case of a 3-pin socket, an additional Earth wire is connected to the Earth terminal (usually the upper pin).
- 2-Pin Socket: Phase โ Switch โ Socket Live terminal, Neutral โ Socket Neutral terminal.
- 3-Pin Socket: Phase โ Switch โ Socket Live terminal, Neutral โ Socket Neutral terminal, Earth โ Earth terminal.
This setup ensures safety: switching OFF cuts power only from the Phase side while Neutral and Earth remain fixed. It is important for appliances like mobile chargers, TVs, refrigerators, and irons.
Work / Installation (Inputs โ Outputs)
2-Pin Socket
- Input: Phase โ Switch โ Socket Live terminal
- Neutral: Direct โ Socket Neutral terminal
3-Pin Socket
- Input: Phase โ Switch โ Socket Live terminal
- Neutral: Direct โ Socket Neutral terminal
- Earth: Direct โ Socket Earth terminal
Testing and Final Adjustments
You may either turn ON the main supply and test using a tester or plug after wiring. Insert 2-pin plug: the attached device must be able to turn on only when the switch is pressed. In a 3-pin plug, the Earth pin has to be tested by continuity - a tester has to be connected between the Earth and the Neutral to check correct earthing. Should the socket fail, re-examine that the Phase is properly fed through the switch and that the Neutral is hard-wired. Do not connect Phase to anything without a switch because it is unsafe. Always code the correct wire color: red/brown phase, black/blue N, and green/yellow E. Lastly, cover up any exposed joints and screw tighten socket screws.
Frequently Asked Questions - socket and switch for house wiring:
What is a 2-pin socket?
A socket with only Phase and Neutral terminals, no Earth connection.
What is a 3-pin socket?
A socket with Phase, Neutral, and an additional Earth terminal for safety.
Where does the switch connect in socket wiring?
The switch is always connected in the Phase line before the socket.
Is Neutral connected through switch?
No, Neutral goes directly to the socket.
Why is Earth needed in a 3-pin socket?
Earth provides safety against electric shock by grounding leakage current.
Can I use a 3-pin plug in a 2-pin socket?
Yes, but the Earth pin will remain unused, reducing safety.
Which wire goes to the switch?
Only the Phase (Live) wire is connected through the switch.
What is the standard wire color code?
Phase: Red/Brown, Neutral: Black/Blue, Earth: Green/Yellow.
What if I connect Neutral through switch?
It is unsafe, as Phase remains live in the socket even when switched off.
Where is socket wiring commonly used?
In homes, offices, and industries for appliances like TV, fan, iron, and charger.
Related Posts

DOL Starter Circuit Diagram
Learn DOL starter power and control wiring diagram with contactor, overload relay, push buttons, and motor connection for safe motor starting.

Single Phase split AC indoor-outdoor
Learn air conditioner wiring diagram with step-by-step guide for safe installation, including power supply, MCB, earth connection, and indoor-outdoor unit wiring.

3-phase Motor Contactor Wiring Circuit Diagram
Learn how to control a 3-phase motor using a monopolar switch, including wiring diagram, start/stop operation, and safety precautions for industrial motors.

Voltmeter connection circuit diagram
Voltmeters are connected in parallel with whatever device's voltage is to be measured. A parallel connection is used because objects in parallel experience the same potential difference.

Fan Capacitor Wiring
Learn the ceiling fan capacitor connection diagram with main and auxiliary winding for proper fan operation, smooth start, and speed control.

SSR Connection with Sensor Wiring
Learn SSR connection with sensor wiring for automatic AC load control, including DC input, AC output, protection, and proper earthing.




