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

Source: https://firsthomefixes.com/guides/how-to-replace-a-light-socket/
Summary: Learn how to replace a light socket in a lamp or a fixture. Turn off the power, test it, remove the old socket, wire the new one and test the light safely.
Difficulty: Easy for a lamp, medium for a fixture. Time: 15 to 60 minutes.

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](/guides/lighting-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](/guides/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](/guides/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](/guides/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.

## Related guides

- [How to Rewire a Lamp in Under an Hour](/guides/how-to-rewire-a-lamp/)

- [How to Replace a Ceiling Light With a Flush Mount Fixture](/guides/how-to-replace-a-ceiling-light-with-a-flush-mount/)
- [Outdoor Light Fixture Filling With Water: Causes and How to Fix It](/guides/outdoor-light-fixture-filling-with-water-how-to-fix/)
- [Ceiling Fan Light Not Working: What to Check and How to Fix It](/guides/ceiling-fan-light-not-working/)
- [Replace Photocell Sensor on an Outdoor Light](/guides/how-to-replace-an-outdoor-light-photocell/)
- [How to Install a Ceiling Fan Where a Light Fixture Is](/guides/how-to-install-a-ceiling-fan/)

## 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.

When to call a pro: the wires are brittle, scorched or aluminum, or the fixture is hardwired and you are unsure
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.

General information only, not professional advice. Rules vary by state and city. First Home Fixes, https://firsthomefixes.com
