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

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.

Differential switch wiring diagram
Learn how to control two lights from three places using ladder wiring with two-way and four-way switches for safe and efficient operation.

2-way Switch 5 Method wiring
Learn 5 practical wiring methods for two-way switch connections to control a single light from two locations with safe diagrams and a step-by-step guide.

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.

2 Way Light Switch wiring 4 Methode
A 2-way light switch wiring diagram helps control a single light from two different locations. Common in staircases, long hallways, or large rooms.

Ceiling Fan Wiring Diagram
Learn how to wire a ceiling fan with a switch and regulator. Easy-to-follow diagram, explanation, and common FAQs for safe and efficient ceiling fan installation.