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

3 Phase SPD Connection
Detailed 3 phase SPD connection diagram showing how to wire surge protection devices to safeguard electrical systems from transient overvoltages.

3 Phase Forward Reverse Motor Control
Learn how to wire a 3-phase forward-reverse motor control circuit with contactors, push buttons, and protection for safe and efficient motor operation.

Day Night Sensor Using Contactor wiring
Automatic lighting control using a day-night sensor with a contactor for high-load circuits, ensuring safe, efficient, and hands-free operation.

Door Bell Wiring Multiple Switch Series Lamp
Learn how to wire a doorbell with multiple switches and series lamps for efficient control and easy installation. Step-by-step wiring guide with diagrams included.

Day Night Light Sensor Switch Circuit
Learn how to wire a day night light sensor switch for automatic lighting control. Save energy and improve convenience with this simple guide and diagram.

Light Switch Wiring
Learn convenience switch wiring diagram with input-output connections, installation, and testing for safe lighting and household electrical use.