First Home Fixes logo

Home / Electrical Basics

How to Replace a Light Socket in a Lamp or Ceiling Fixture

4 min read · Updated 27 November 2026 ·

Part of: Electrical safety

Flat illustration for the guide about replace a light socket, showing the relevant item with simple tools
Difficulty
Easy for a lamp, medium for a fixture
Time
15 to 60 minutes
Tools
Screwdrivers, wire stripper, non-contact voltage tester, needle nose pliers, replacement socket, electrical tape
Call a pro if
the wires are brittle, scorched or aluminum, or the fixture is hardwired and you are unsure
In this guide
  1. Signs the socket is bad
  2. Step by step: table lamp
  3. Step by step: ceiling or wall fixture
  4. Signs that point to each cause
  5. Choose the right socket
  6. A quick fix for a loose bulb
  7. Prevention
  8. Related guides
  9. FAQ
  10. When to call a pro
Safety. Unplug a lamp before you touch the socket. For a fixture, turn off the breaker and confirm it is dead with a tester; the switch being off does not prove the socket is dead. A scorched or melted socket means a loose connection or an oversized bulb, so replace the socket and check the wattage. Unplug the lamp or turn off the breaker. Test for power with a voltage tester. Do not touch bare wires. Do not use a lamp with a damaged cord or socket. Keep bulbs away from fabric and paper. If a fixture is hot or discolored, stop using it.

When a bulb flickers, a lamp works only if you wiggle the cord or the bulb does not light in a good socket, the socket may be worn out. The fix is easy. You can replace a light socket in a table lamp in about 15 minutes, and a fixture socket in about an hour.

This guide is part of our wider guide to lights, ceiling fans and fixtures.

Signs the socket is bad

The light flickers or works only sometimes. The bulb is loose or will not stay in. The socket is cracked, burned or discolored. The switch inside the socket does not click. You smell burning. A bulb that keeps burning out can also point to a bad socket. See How to remove a stuck or broken light bulb.

Step by step: table lamp

1. Unplug the lamp. This is the safest step. Do not work on a lamp that is plugged in.

2. Remove the bulb and the shade.

3. Remove the socket cover. Most have a brass or plastic shell. Look for the word "press" near the base of the shell, and squeeze and pull it off.

4. Pull the socket out of the shell. Remove the insulating sleeve.

5. Take a photo of the wires.

6. Loosen the two terminal screws and detach the wires.

7. Attach the wires to the new socket. One wire goes to the brass screw and the other to the silver screw. On a lamp cord, the ribbed or marked side of the cord goes to the silver screw. Wrap the wire clockwise around the screw before you tighten it.

8. Make sure no stray strands are visible. Twist them tight.

9. Slide the socket back into the shell, with the insulating sleeve, and snap it into the base.

10. Test the lamp with a bulb of the right wattage. Plug it in and switch it on.

Step by step: ceiling or wall fixture

1. Turn off the breaker and the wall switch. See How to find your electrical panel and label breakers.

2. Test for power at the fixture wires with a non-contact voltage tester before you touch them.

3. Remove the shade or cover and the bulb.

4. Find the socket. It may be held by a screw, a ring or a clip.

5. Disconnect the socket wires from the supply wires. They may be joined by wire nuts or screw terminals. Photograph first.

6. Remove the old socket.

7. Connect the new socket with the black or hot wire to the brass terminal and the white or neutral wire to the silver terminal. Join wires with wire nuts as before.

8. Reinstall the socket, the cover and the bulb.

9. Turn the power back on and test.

If the fixture has complex wiring, or you are not sure which wires are which, stop and call an electrician. See How to replace a light fixture for a full replacement.

Signs that point to each cause

A light that flickers when you touch the cord points to a loose wire in the plug or cord. A bulb that works in another lamp points to a bad socket. A lamp with a loose bulb may have a bent center tab. A burn mark near the socket points to a loose connection or too high a wattage bulb. A switch that does not click points to a bad socket switch. If the cord is damaged, replace the cord as well.

Choose the right socket

Use a socket rated for the bulb type and wattage. Choose a standard medium base for most lamps. Choose a type with a switch or without, to match the old one. For a fixture, use a socket made for that fixture type. Check that the new socket carries a safety mark. Do not put a higher wattage bulb than the lamp's label allows.

A quick fix for a loose bulb

With the lamp unplugged, check the small brass tab at the bottom of the socket. If it is flat, lift it a little with a small screwdriver so it touches the bulb. This often solves flickers. If the tab is burned or corroded, replace the socket.

Prevention

Use the right bulb wattage. Switch to LED bulbs, which run cooler. Do not yank the cord. Replace old cords. Check lamps now and then for cracked parts.

FAQ

Can I replace a lamp socket myself?

Yes. It is a simple job when the lamp is unplugged.

How do I know which wire goes where?

Hot goes to brass and neutral to silver. On a lamp cord, the ribbed wire goes to silver.

Why does my lamp flicker?

A loose bulb, tab, wire or socket can cause it.

Is a plastic socket okay?

Yes, if it is the right type and rating.

replace a light socketreplace light socketlamp socket replacementlight fixture socketlamp repair

More from this topic

Electrical BasicsHow to Rewire a Lamp in Under an HourLearn how to rewire a lamp: unplug it, swap the cord and socket with a few basic tools, and bring an old lamp back to safe working order.Hand holding a wire connector at a ceiling light fixture with a screwdriver and voltage tester pen nearbyElectrical BasicsHow to Replace a Light Fixture SafelyLearn how to replace a light fixture safely: turn off power at the breaker, test the wires, connect the new fixture and know when to call an electrician.Illustration of hands holding a flush mount ceiling light below an open ceiling box with wires and wire nuts, a stepladder and a screwdriverElectrical BasicsHow to Replace a Ceiling Light With a Flush Mount FixtureLearn how to replace a ceiling light with a flush mount fixture. Turn off power, remove the old fixture, wire the new one and mount it securely. Easy steps.Flat illustration for the guide about outdoor light fixture filling with water, showing the relevant item with simple toolsElectrical BasicsOutdoor Light Fixture Filling With WaterOutdoor light fixture filling with water or fogging up? Turn off the power, find the leak at the gasket, cap or box, dry it out and reseal it safely.Illustration of a brick wall with an exposed electrical box and wires, a new outdoor lantern, a voltage tester and a stepladderElectrical BasicsHow to Replace an Outdoor Light FixtureHow to replace an outdoor light fixture: turn off power, test, swap the old fixture and seal against water. Steps, tools and when to call an electrician.