How to Wire a Light Socket: Wiring a light socket starts with identifying the hot, neutral, and ground wires. On a conventional two-wire lamp socket, the smooth hot wire connects to the brass screw, while the ribbed neutral wire connects to the silver screw. A ground wire connects to the green grounding screw when the socket is designed for one.
However, wiring a table-lamp socket is different from wiring a ceiling light or working inside a household electrical box. This guide explains a basic, unplugged lamp-socket replacement and helps you recognize situations that need a qualified electrician.
Direct Answer
A conventional two-wire lamp socket connects the smooth hot wire to the brass screw and the ribbed neutral wire to the silver screw. Other wiring arrangements need specific instructions.
Experience
Before disconnecting an old lamp socket, take a clear photo of its connections and check the cord for cracks or heat damage. Use the photo as a reference, not proof that unfamiliar or previously modified wiring is correct.
Which Wires Connect to Which Light Socket Terminals?
For a conventional two-wire lamp socket, the hot wire connects to the brass terminal, and the neutral wire connects to the silver terminal. The ground wire, when included in a grounded socket, connects to the designated green terminal.
Here is a simple diagram:
TWO-WIRE LAMP SOCKET
Smooth wire (HOT)
|
v
BRASS SCREW
|
v
Center contact
of the socket
Ribbed wire (NEUTRAL)
|
v
SILVER SCREW
|
v
Threaded metal shell
Ground wire (if required)
|
v
GREEN GROUND SCREW
The connections have different purposes.
- Brass screw: Connects to the hot conductor. In a conventional lamp socket, hot supplies power to the center contact at the bottom.
- Silver screw: Connects to the neutral conductor. Neutral connects to the threaded metal shell around the bulb.
- Green screw: Connects to the grounding conductor when the socket and fixture are designed for grounding.
This arrangement helps maintain correct electrical polarity. It also reduces the risk of making the exposed metal shell the electrically hot part of the socket.
Remember that these connections apply to the appropriate conventional lamp socket. Ceiling fixtures, switched lighting circuits, and unfamiliar sockets may have different wiring arrangements.
Identify Your Light Socket Before Starting

Before replacing a socket, find out what type of lighting equipment you have. Not every light socket uses the same parts or connections.
A replacement socket should match the original socket’s design, electrical rating, mounting method, and switch arrangement.
Lamp Socket vs. Ceiling Light Socket
A lamp socket is usually part of a portable lighting product, such as a table lamp, desk lamp, or floor lamp.
You can disconnect a portable lamp from its power source by unplugging its cord. This makes a suitable two-wire lamp-socket replacement a different task from working on fixed household wiring.
A ceiling light socket is connected to household electrical wiring. Its wires may run through a ceiling box and connect to a wall switch or other lighting controls.
Turning off the wall switch does not prove that every conductor inside the ceiling box is de-energized. Multiple circuits or unusual wiring arrangements may be present.
For this reason, beginners should not treat ceiling-fixture wiring as an extension of a simple lamp repair. Have an appropriately qualified electrician handle unfamiliar fixed wiring.
Common Light Socket Types
You may encounter several socket designs when shopping for a replacement.
Keyless socket: This is a basic socket without a built-in switch. A separate wall switch or another control operates the light.
Pull-chain socket: This socket has a small chain that controls the light. Pulling the chain changes the switch position.
Rotary socket: A small turning knob controls the light. Some lamps use this design because it is easy to operate.
Three-way socket: This socket works with a compatible three-way bulb. It provides different light levels through separate bulb contacts and switching positions.
Grounded socket: This socket has a grounding connection designed for a compatible grounded lighting assembly.
Do not choose a replacement only because it looks similar. Check the original socket’s markings and follow the replacement manufacturer’s compatibility instructions.
Understand Hot, Neutral, and Ground Wires

Understanding the wires is one of the most important parts of a lamp-socket repair.
Electrical terms can sound complicated at first, but each wire has a specific job.
What Is a Hot Wire?
The hot wire carries electrical energy from the power source to the lamp.
On a conventional lamp cord, the hot conductor is usually identified by smooth insulation. It connects to the brass terminal on a suitable lamp socket.
For a polarized lamp plug, the narrow blade is hot.
A polarized plug has two blades of different widths. This design helps maintain the intended hot and neutral connections when plugged into a compatible outlet.
What Is a Neutral Wire?
The neutral wire provides the intended return path for electrical current.
On common two-conductor lamp cords, the neutral wire usually has ribbed or ridged insulation. It connects to the silver terminal of a conventional lamp socket.
On a polarized plug, the neutral blade is wider than the hot blade.
The neutral wire is not the same as the ground wire. They serve different electrical purposes and must not be connected together at a lamp socket as a substitute for proper wiring.
What Is a Ground Wire?
The ground wire provides a safety path for fault current when a grounded electrical assembly develops a fault.
In many US lighting products, the ground conductor is green or bare copper.
A grounded lamp or fixture designed for this connection may have a green grounding screw or another designated grounding terminal.
Not every lamp socket has a ground terminal. A conventional two-wire lamp may not use a separate ground conductor.
Never attach a ground wire to a neutral terminal simply because the socket does not have a green screw. Follow the fixture manufacturer’s grounding instructions.
How Can You Identify the Wires?
Use these markings as a starting point for identifying a conventional lamp cord.
| Wire or marking | Common identification |
| Smooth insulation | Hot conductor |
| Ribbed insulation | Neutral conductor |
| Black insulation | Often hot in US household wiring |
| White insulation | Often neutral in US household wiring |
| Green insulation | Ground |
| Bare copper | Ground |
These are common conventions, not a guarantee that every wire has the expected function.
For example, a white conductor inside a household switch box may be used as a switched hot wire rather than neutral. Leviton explains this variation in its guide, How Do I Know If I Have a Neutral?.
If wire markings are missing, insulation is damaged, or the conductors do not match the expected lamp-cord arrangement, do not guess.
Tools and Materials Needed for a Lamp Socket Replacement

Preparing the correct materials makes a suitable lamp repair easier to manage.
You do not need a large collection of electrical tools for a basic replacement, but every part must be suitable for the lamp.
Essential Tools
Screwdriver: Use the correct screwdriver for the socket terminal screws and mounting hardware.
Wire stripper: A suitable wire stripper helps remove insulation without cutting or damaging the copper strands.
Pliers: Pliers can help handle small parts when the replacement instructions call for them.
Replacement lamp socket: Choose a socket that matches the original lamp’s mounting, switch type, and electrical rating.
Good lighting: Work in a clear, well-lit area so you can inspect the wires and small socket components.
Check the Replacement Socket
Look at the socket’s voltage and maximum wattage markings before installation.
The replacement must be suitable for the lamp and the bulb you plan to use. Never exceed the socket or fixture’s stated limits.
Also check:
- Whether the socket has a pull chain, rotary switch, or no switch.
- Whether it has brass and silver terminals.
- Whether a grounding terminal is required.
- Whether the mounting parts fit the existing lamp.
- Whether the insulating sleeve and outer shell are included.
- Whether the manufacturer provides special assembly instructions.
A replacement that has the wrong switch type or mounting design may not work correctly, even when it looks almost identical.
Inspect the Existing Lamp Cord
Check the cord before removing the socket.
Look for cracked insulation, exposed copper, cuts, crushed sections, loose connections, or signs of overheating.
Do not simply install a new socket onto a damaged cord. A defective cord can remain an electrical hazard even when the socket itself is new.
Replace damaged parts with compatible components or have the lamp assessed by a qualified repair professional.
How to Wire a Basic Two-Wire Lamp Socket

The following process applies to a suitable conventional two-wire lamp socket on a portable lamp with an intact, clearly identified cord.
It does not apply to ceiling wiring, unidentified conductors, damaged electrical equipment, or unfamiliar multi-wire arrangements.
Step 1 — Unplug the Lamp and Prepare the Work Area
Before opening the socket, unplug the lamp from the wall outlet.
Turning the lamp switch off is not enough. The plug must be physically disconnected from the electrical supply.
Allow the bulb and socket to cool completely before handling them.
Place the lamp on a dry, stable work surface. Keep loose objects, liquids, and unnecessary tools away from the repair area.
Do not begin if the lamp has exposed copper, damaged insulation, evidence of burning, or a history of giving electric shocks.
Step 2 — Remove the Bulb and Existing Socket Cover
Remove the bulb after it has cooled.
Depending on the lamp design, you may need to remove the shade, harp, or other surrounding parts to reach the socket.
Many common lamp sockets have several parts:
- Outer metal shell.
- Insulating sleeve.
- Inner socket body.
- Terminal screws.
- Base or mounting cap.
Some shells separate by pressing a marked area. Others use a different release or fastening method.
Follow the instructions for your specific socket. Do not force a shell open because its release mechanism may be different.
Once the socket is accessible, check how the existing cord enters the assembly and how it is secured against pulling.
Step 3 — Inspect and Identify the Lamp Wires
Look carefully at the existing cord.
A typical polarized two-wire lamp cord has one smooth conductor and one ribbed conductor.
The smooth conductor is generally hot, while the ribbed conductor is generally neutral.
Take a clear photograph of the original connections before disconnecting anything. This can help you compare the existing arrangement with the replacement manufacturer’s instructions.
Check the insulation around both conductors.
Stop if you find any of these problems:
- Both conductors have unclear or missing markings.
- The copper strands are damaged.
- The insulation is cracked or brittle.
- The original socket has burned or melted.
- The cord has unusual connections or additional conductors.
- The socket’s original grounding arrangement is unclear.
A photograph is a useful record, but it cannot prove that an old socket was wired correctly.
Step 4 — Understand the Correct Terminal Connections
On a conventional two-wire lamp socket, the connections are:
Smooth hot wire → Brass screw
Ribbed neutral wire → Silver screw
The two connections should remain separate.
If the replacement socket uses screw terminals designed for hooked wires, follow its instructions for preparing and attaching the conductors.
Some screw terminals require a small hooked wire end wrapped clockwise around the screw. Tightening the screw should pull the hook securely into place.
Other socket designs use different connections. Follow the actual manufacturer’s instructions rather than applying one method to every socket.
Do not guess the insulation-stripping length. The required length depends on the terminal design and the manufacturer’s directions.
No loose copper strands should extend outside the intended terminal connection. Also make sure the insulation is not trapped where it prevents a secure electrical connection.
A green grounding screw should be used only for the grounding conductor when the socket is designed for that connection.
Step 5 — Secure the Connections and Reassemble the Socket
Check that the connections are secure according to the manufacturer’s instructions.
Give each conductor a gentle check to confirm that it remains properly secured. Do not pull hard enough to damage the connection.
The lamp cord must also have suitable strain relief. Strain relief prevents normal pulling on the cord from placing force directly on the electrical terminals.
Some lamp designs use an underwriter’s knot or another approved cord-retention method. Keep or replace the existing arrangement according to the socket manufacturer’s instructions.
Next, restore the insulating sleeve and outer shell.
Make sure the components fit correctly. No electrical connection should remain exposed outside its intended protected area.
Never leave out an insulating part simply because the shell appears to fit without it.
Step 6 — Check the Completed Lamp Before Use
Keep the lamp unplugged while performing the final inspection.
Check the following:
- The correct wires are connected to their designated terminals.
- No loose copper strands are visible outside the connections.
- The terminal connections are secure.
- The cord insulation is intact.
- The cord has proper strain relief.
- The socket’s insulating sleeve is correctly positioned.
- The outer shell is fully assembled.
- The bulb matches the socket’s rating.
If anything looks loose, damaged, or different from the manufacturer’s instructions, do not plug in the lamp.
Once the repair is fully assembled and visually checked, use a suitable bulb within the marked wattage limit.
If the lamp flickers, sparks, produces a burning smell, becomes unusually hot, or trips the circuit breaker, unplug it when safe to do so and stop using it. Have the problem checked by a qualified professional.
What Changes When a Light Socket Has Three or Four Wires?

A three-wire or four-wire arrangement needs more careful identification than a conventional two-wire socket.
The number of wires alone does not tell you where each one belongs.
Three-Wire Connections: Grounded Cords and Three-Way Sockets
A three-conductor lamp cord may contain:
- Hot.
- Neutral.
- Ground.
In an appropriate grounded lamp assembly, hot and neutral serve the lamp’s normal electrical circuit, while ground connects to the designated grounding point.
However, a three-way lamp socket is a different design.
A three-way socket works with a compatible three-way bulb and provides different lighting levels through additional contacts and switching functions.
Its internal terminal arrangement may not match an ordinary single-contact socket.
Do not treat every three-wire socket as a hot-neutral-ground arrangement.
Identify the exact socket model and use its wiring diagram. A metal lamp with an unfamiliar grounding arrangement should be inspected by a qualified lamp repair professional.
Four-Wire Configurations: Why Identification Matters
Four wires can appear in different lighting arrangements.
They may represent separate switched conductors, multiple circuit connections, or another special configuration.
There is no reliable universal rule that says a particular wire count always requires the same terminal connections.
Do not join wires together based only on their colors or positions.
The safe approach is to identify the exact socket, understand its electrical design, and follow its manufacturer’s wiring diagram.
If the original arrangement is missing, altered, or unclear, stop the repair and get qualified assistance.
Light Socket Switches, Ceiling Fixtures, Plugs, and Extension Cords
Several related wiring questions appear alongside searches for light-socket wiring. They deserve separate explanations because these applications are not interchangeable.
How a Lamp Socket Switch Works
Some lamp sockets have a built-in switch.
A pull chain or rotary control operates an internal switching mechanism. In a compatible conventional lamp assembly, the switch controls the hot side of the circuit.
A three-way socket uses additional switching contacts to work with a compatible three-way bulb.
The replacement socket must match the original switch design.
If the old switch has melted, burned, broken, or developed an unusual connection, replace the appropriate assembly rather than attempting to repair damaged internal contacts.
Why Ceiling Light Wiring Is Different
Ceiling light fixtures connect to fixed household electrical wiring, which is different from a portable lamp cord.
A ceiling box may contain hot, neutral, ground, and switched conductors. It may also contain more than one circuit.
Wire colors can provide clues, but they do not prove the function of an unfamiliar conductor. A white wire can be used as a switched hot conductor in certain switch arrangements.
The Leviton neutral-wire guide explains why household wiring cannot always be identified by color alone.
Turning off the wall switch does not make the wiring safe to touch.
Working on fixed wiring requires appropriate circuit isolation, verification, tools, and knowledge. OSHA’s electrical-work guidance describes why de-energizing and verifying electrical equipment are important safety practices.
For a beginner, the sensible choice is to have a qualified electrician handle an unfamiliar ceiling fixture or household circuit. Renters should also contact their landlord before arranging electrical work.
Connecting a Light Socket to a Plug
A portable lamp should use a suitable, properly assembled power cord and plug.
The plug, cord, socket, and strain-relief parts must be compatible with the lamp’s electrical design.
A damaged plug or cord should not be repaired with exposed wire joints, ordinary tape, or an improvised connection.
Use a complete compatible replacement cord set or seek help from a qualified lamp repair professional.
A wall plug socket, also called a receptacle, is not the same component as a light bulb socket. Their wiring instructions are different.
Can You Wire a Light Socket to an Extension Cord?
An extension cord should not be used as a substitute for permanent household wiring.
If a portable lamp needs extra reach, use a suitable factory-assembled extension cord with the correct electrical rating and intact plug and connectors.
Never make a homemade connection by cutting an extension cord and attaching a light socket to its conductors.
The US Consumer Product Safety Commission explains that extension cords need suitable wire size, strain relief, and proper electrical connections. Its Guide to Home Wiring Hazards also covers damaged cords, overheating, and unsafe permanent extension-cord use.
Use an extension cord temporarily, keep it away from water and physical damage, and follow its instructions.
Common Light Socket Wiring Mistakes to Avoid
Even a small wiring mistake can create an electrical hazard. Understanding common errors helps you recognize when a repair should stop.
1. Reversing Hot and Neutral
Connecting the conductors to the wrong terminals can reverse the intended polarity.
For a conventional lamp socket, the smooth hot conductor belongs on brass and the ribbed neutral conductor belongs on silver.
2. Confusing Neutral With Ground
Neutral and ground perform different functions.
Never connect them together at a lamp socket to make an unfamiliar wiring arrangement work.
3. Guessing Which Wire Is Which
Wire colors and physical markings can vary, especially on older or modified lamps.
If you cannot identify the conductors confidently, do not guess. Obtain the correct wiring information or professional help.
4. Using an Incompatible Replacement Socket
A replacement may have a different mounting system, switch design, rating, or terminal arrangement.
Check these details before buying and installing the part.
5. Leaving Loose Copper Strands
Stray copper strands can create an unwanted electrical connection.
Use the correct preparation method and make sure the terminal securely holds the intended conductor.
6. Damaging the Cord Insulation
Cutting too deeply while stripping wires can damage copper conductors or their remaining insulation.
Use a suitable wire stripper and follow the manufacturer’s preparation instructions.
7. Ignoring the Socket’s Wattage Rating
A bulb with a higher wattage than the socket or fixture allows can cause overheating.
Always follow the lowest applicable rating marked on the socket, fixture, or manufacturer’s instructions.
8. Leaving Out Insulating Parts
The insulating sleeve and other protective parts help prevent contact with electrical components.
Never use a socket with missing, broken, or incorrectly installed insulation.
9. Ignoring Cord Strain Relief
When a cord is pulled, the force should not transfer directly to its electrical connections.
A missing or damaged strain-relief arrangement can allow wires to loosen over time.
How to Check a Light Socket and When to Call an Electrician
A completed lamp repair deserves a careful inspection before the lamp returns to normal use.
A bulb lighting up is not proof that the wiring is safe.
Check the lamp’s visible condition:
- Is the socket housing fully assembled?
- Is its insulating sleeve in the correct position?
- Is the cord free from cuts and cracks?
- Are the electrical connections properly covered?
- Does the cord enter the lamp securely?
- Is the installed bulb within the socket’s rating?
Do not touch exposed electrical connections or open a socket while the lamp is plugged in.
Warning Signs You Should Never Ignore
Stop using a lamp if you notice:
Burning smells: An odor of hot insulation or burning plastic may indicate overheating.
Unusual heat: A hot plug, cord, or socket can indicate a damaged or overloaded electrical connection.
Sparking: Sparks are not a normal part of lamp operation.
Buzzing or crackling: Unusual electrical noises may indicate a loose or failing connection.
Electric shock: Even a mild tingling sensation when touching a lamp or its metal parts is a warning sign.
Repeated flickering: Flickering may come from a defective bulb, socket, or a larger electrical problem.
The Electrical Safety recommends getting a qualified electrician to inspect warning signs such as flickering lights, burning smells, buzzing sounds, and warm switches or outlets.
Unplug a portable lamp when it is safe to do so. For a suspected problem in fixed household wiring, avoid touching the affected equipment and arrange qualified electrical inspection.
If you rent, report electrical problems to your landlord or property manager. Do not open wall boxes or modify permanent wiring without the appropriate authorization and qualified assistance.
Frequently Asked Questions
1. Which wire goes to the brass screw on a light socket?
The hot wire connects to the brass screw on a conventional two-wire lamp socket. On a standard polarized lamp cord, this is usually the smooth conductor. The ribbed conductor is neutral and connects to the silver screw.
2. What does the ribbed wire on a lamp cord mean?
The ribbed conductor on a conventional polarized lamp cord usually identifies neutral. It connects to the silver terminal of the lamp socket and the wider blade of a polarized plug. Always check the cord and socket instructions if the markings are unclear.
3. Does every light socket need a ground wire?
No. A conventional two-wire lamp socket may not have a separate ground connection. A fixture designed for grounding must have its grounding arrangement connected correctly. Never use the neutral terminal as a replacement for a missing ground connection.
4. Can you connect a light socket to an extension cord?
Do not make a homemade extension-cord connection by joining exposed conductors to a light socket. For a portable lamp, use a suitable factory-assembled extension cord temporarily. Never use an extension cord as permanent household wiring.
5. When should you call an electrician for light socket wiring?
Contact a qualified electrician when working with ceiling fixtures, wall switches, unidentified household conductors, unfamiliar multi-wire arrangements, or damaged fixed wiring. Burning smells, sparks, unusual heat, and electrical shocks also require professional attention.
Final Thoughts
Wiring a light socket begins with identifying the correct socket and understanding the wires. For a suitable conventional two-wire lamp socket, smooth hot connects to brass, while ribbed neutral connects to silver.
A safe repair also depends on correct parts, secure connections, intact insulation, and proper assembly. Never guess when wires or socket arrangements are unfamiliar.
A simple lamp repair may be manageable with the right replacement parts and manufacturer instructions. Fixed household wiring and uncertain electrical connections deserve qualified professional attention.
Disclaimer
Electrical conditions, home wiring, and product designs vary. This guide provides general information, not a substitute for product-specific instructions or professional electrical advice. Contact a qualified electrician for unfamiliar wiring, fixed electrical installations, or potentially dangerous electrical problems.