A flickering bulb, a frayed cord, a switch that only works when you jiggle it—these are all signs that your lamp needs electrical attention. The good news is that most lamp repairs are straightforward DIY tasks that require only basic tools and about 20–30 minutes of your time.
Rewiring a lamp might sound intimidating, but a standard table lamp or floor lamp uses a very simple circuit: a cord carries power from the plug to a socket, and a switch somewhere along that path turns it on and off. Once you understand the layout, replacing any of these components is a matter of disconnecting the old part and connecting the new one.
This guide walks you through every common lamp repair—rewiring, socket replacement, cord replacement, and switch repair—with step-by-step instructions.
Essential Safety Rules Before You Start
⚠️ SAFETY WARNING: Always unplug the lamp from the mains before doing any work. Never attempt to repair a lamp while it is connected to power. Even when unplugged, wait a few minutes to allow any residual charge to dissipate.
Beyond unplugging, keep these safety principles in mind throughout every repair:
- Work on a dry, well-lit surface. Avoid working near water or on damp surfaces.
- Inspect the entire lamp before starting. If the base is cracked, the wiring shows scorch marks, or there is any sign of melting or burning, the lamp may have a deeper fault. In these cases, consult a qualified electrician rather than attempting a DIY repair.
- Use replacement parts rated for your lamp’s wattage. Sockets, cords, and switches all have maximum wattage ratings. Using under-rated components is a fire hazard.
- Never splice or tape over damaged wires. If a wire is damaged, replace the entire cord. Electrical tape is not a permanent or safe fix for exposed wiring.
Tools and Materials You Will Need
Most lamp repairs require the same basic toolkit. Gather these before you begin:
- A flat-head screwdriver
- A Phillips-head screwdriver
- Wire strippers (or a sharp knife, used carefully)
- Needle-nose pliers
- A replacement lamp cord (SPT-1 or SPT-2, depending on your lamp; SPT-2 is thicker and suitable for higher-wattage lamps)
- A replacement socket (if needed)—standard E26/E27 medium-base sockets fit most table and floor lamps
- A replacement switch (if needed)—rotary, toggle, or push-through, matching your lamp’s original type
- Electrical tape (for insulating finished connections, not for repairs)
- A multimeter (optional, but useful for testing continuity)
How to Diagnose a Lamp Problem
Before you start replacing parts, it helps to identify exactly what is wrong. Most lamp faults fall into one of four categories.
The Lamp Does Not Turn On at All
- Check the bulb first. Swap in a known-working bulb. If it lights up, the original bulb was the problem—no repair needed.
- Check the outlet. Plug something else into the same outlet to confirm it is working.
- Inspect the cord. Look for visible damage: fraying, cuts, cracks in the insulation, or a bent/damaged plug. A damaged cord needs replacing.
- Test the socket. If the bulb and cord are fine, the socket is the most likely culprit. The small brass tab inside the socket may have flattened over time and lost contact with the bulb. You can try gently prying it upward (while unplugged) with a flat-head screwdriver. If that does not work, replace the socket.
The Lamp Flickers
Flickering is almost always caused by a loose connection. Check the bulb (tighten it), the socket tab (pry it up slightly), and the cord connections. If the flickering persists, the cord or socket likely has an internal break and needs to be replaced.
The Switch Does Not Work Properly
If the switch feels loose, does not click, or only works intermittently, the switch mechanism has worn out. Switches are inexpensive and easy to replace—see the dedicated section below.
The Cord Is Damaged or Frayed
Any visible cord damage—exposed copper, cracked insulation, scorch marks, or a plug that gets unusually hot—means the entire cord should be replaced immediately. This is a fire hazard and should not be ignored.
How to Rewire a Lamp: Full Step-by-Step Guide
This section covers a complete rewire—replacing the cord, socket, and plug as a single job. This is the most thorough repair and is the best approach if your lamp is old or has multiple failing components.
- Unplug the lamp and remove the shade, bulb, and harp. Set these aside. You will reattach them at the end.
- Remove the old socket. The socket consists of four parts: the outer shell, the insulating sleeve, the socket body (with the switch), and the cap. Squeeze the outer shell just above the cap where it says “PRESS” and pull upward. The shell and insulating sleeve will slide off, exposing the socket body and the wire connections.
- Disconnect the old wires. You will see two screws on the socket body—one brass (for the hot wire) and one silver (for the neutral wire). Loosen both screws and unhook the wires.
- Remove the old cord. Pull the old cord out through the base of the lamp. If it is tight, gently wiggle it while pulling from the bottom. Note how the cord was routed through the lamp body—you will thread the new one the same way.
- Thread the new cord. Feed the new cord up through the base of the lamp and out the top where the socket sits. Leave about 8–10 cm (3–4 inches) of cord extending past the socket cap.
- Tie an underwriter’s knot. This is a simple knot tied in the two wires of the cord, just below the socket cap. Its purpose is to prevent the wire connections from being pulled loose if someone tugs on the cord. To tie it: separate the two wires about 8 cm (3 inches), loop each wire, and pass each end through the opposite loop. Pull snug. The knot should sit just inside the socket cap.
- Strip the wire ends. Use wire strippers to remove about 1.5 cm (0.6 inches) of insulation from the end of each wire, exposing the bare copper.
- Identify the hot and neutral wires. On a standard polarised lamp cord (SPT type), one wire has smooth insulation, and the other has a ribbed or ridged insulation. The smooth wire is the hot wire. The ribbed wire is the neutral wire.
- Connect the wires to the new socket. Bend each stripped wire end into a small clockwise hook using needle-nose pliers. Hook the smooth (hot) wire around the brass screw and tighten. Hook the ribbed (neutral) wire around the silver screw and tighten. The wire should wrap clockwise around each screw so that tightening the screw pulls the wire tighter rather than pushing it loose.
- Reassemble the socket. Slide the insulating sleeve over the socket body, then snap the outer shell back onto the cap. You should hear a click when it seats properly.
- Attach the plug. If your new cord did not come with a plug, attach one now. Most replacement plugs are self-clamping—insert the cord, push the prongs down, and the internal contacts pierce the insulation to make the connection. For screw-terminal plugs, strip the wire ends, connect the smooth to the narrow prong and ribbed to the wide prong, and tighten.
- Test the lamp. Reattach the harp, screw in a bulb, and plug the lamp in. If it turns on and off cleanly with no flickering, the rewire is complete. Reattach the shade and finial.
How to Replace a Lamp Socket
If the cord is in good condition but the socket has failed (the lamp does not turn on, or the switch is faulty), you can replace just the socket without rewiring the entire lamp.
- Unplug the lamp and remove the shade, bulb, and harp.
- Remove the old socket shell. Press where it says “PRESS” and pull the shell and sleeve upward to expose the socket body.
- Note the wire positions. Before disconnecting, note which wire is on the brass screw and which is on the silver screw.
- Loosen the terminal screws and disconnect the wires.
- Unscrew the socket cap from the lamp’s threaded pipe. The cap threads onto the top of the pipe that runs through the centre of the lamp body.
- Screw the new socket cap onto the pipe.
- Reconnect the wires. Hook the hot (smooth) wire around the brass screw and the neutral (ribbed) wire around the silver screw. Tighten securely.
- Slide the insulating sleeve and outer shell over the socket body and snap them into place on the cap.
- Test the lamp. Reattach the harp, insert a bulb, plug in, and switch on.
How to Remove a Lamp Socket
Removing a lamp socket is the first step in both socket replacement and full rewiring. Here is a closer look at the process, since this is where most beginners hesitate.
The outer shell of a standard lamp socket is held in place by friction and a small locking tab. Look for the word “PRESS” stamped into the shell, usually near the base. Place your thumb on this spot and press firmly while pulling the shell upward with your other hand. It may take a firm push—older sockets can be stiff.
Once the shell is off, the cardboard or plastic insulating sleeve slides off next, exposing the socket body with the terminal screws. From here, you can disconnect the wires and unscrew the cap from the lamp’s central pipe.
Tip: If the socket will not budge, try gently rocking it side to side while pressing. Avoid using pliers on the shell—they will crush the thin metal and make it harder to remove. If the socket is truly stuck, a few drops of penetrating oil around the base of the cap can help loosen corrosion.
How to Replace a Lamp Cord
If the socket and switch are working fine, but the cord is damaged, you can replace just the cord without disturbing the other components.
- Unplug the lamp, remove the shade and bulb, and remove the socket shell to access the terminal screws.
- Disconnect the old cord from the socket terminals.
- Pull the old cord out through the base of the lamp. Take note of the routing path.
- Feed the new cord up through the base and out the top. If the cord is difficult to push through, tape the end of the new cord to the end of the old cord before pulling the old one out—this threads the new cord through at the same time.
- Tie an underwriter’s knot in the new cord just below the socket cap.
- Strip the wire ends and connect to the socket terminals. Smooth wire to brass screw, ribbed wire to silver screw.
- Reassemble the socket and attach the plug.
- Test the lamp.
Cord selection tip: Match the cord gauge to your lamp’s wattage. SPT-1 (18-gauge) handles up to 300 watts and works for most table lamps. SPT-2 (16-gauge) handles up to 600 watts and is required for higher-wattage floor lamps. Always match or exceed the original cord specification.
How to Fix a Lamp Switch
A faulty switch is one of the most common lamp problems. Switches are mechanical components that wear out over time—especially rotary and push-through types that are used daily.
In most table lamps, the switch is built into the socket. This means replacing the switch usually means replacing the entire socket (covered above). However, some lamps have an inline switch—a separate switch mounted partway along the cord—or a turn-knob switch at the base.
Replacing an Inline Cord Switch
- Unplug the lamp.
- Open the old switch. Most inline switches have a small screw or snap-fit housing. Open it to reveal the wire connections inside.
- Note the wiring. Typically, only one of the two cord wires passes through the switch (the hot wire). The other passes through unbroken.
- Disconnect the old switch. Loosen the terminal screws and remove the wire ends.
- Cut the cord at the switch location if necessary. If the old switch was crimped rather than screwed, you may need to cut the cord and strip the ends fresh.
- Install the new switch. Feed the cord through the new switch housing, connect the hot wire to the switch terminals, and close the housing.
- Test the lamp.
Replacing a Socket-Mounted Switch
If your lamp’s switch is built into the socket (rotary knob on the side, pull chain, or push-through button), the most reliable fix is to replace the entire socket assembly. Individual switch mechanisms inside sockets are not usually sold as separate parts, and the socket itself is inexpensive. Follow the socket replacement steps in the section above.
When to Call a Professional Electrician
While most lamp repairs are safe DIY tasks, there are situations where professional help is the right call:
- Hardwired fixtures. If the lamp is wired directly into your home’s electrical system (ceiling lights, wall sconces, chandeliers), any repair or rewiring must be carried out by a qualified electrician. These fixtures operate at mains voltage with no plug to disconnect.
- Signs of overheating or fire damage. Scorch marks, melted plastic, burnt smells, or discoloured wiring inside the lamp base are serious. Do not attempt a DIY repair—have the lamp inspected professionally or retire it.
- Antique or high-value lamps. Vintage lamps may have non-standard wiring, unusual sockets, or components that require specialist knowledge. A professional rewire preserves the lamp’s value and ensures safety.
- If you are not confident about any step in the process, it is always better to consult an electrician. Electrical work carries inherent risks, and there is no shame in deferring to a professional.
Discover Statement Lamps at Lume Art Gallery
A freshly rewired lamp deserves to be shown off. At Lume Art Gallery, our collection of artisan table lamps, sculptural floor lamps, and decorative animal lamps are designed to be the centrepiece of any room. Whether you have just restored a beloved vintage piece or you are ready for something entirely new, our range is built for people who appreciate lighting as art.
Browse the full collection and find your next statement piece.
Frequently Asked Questions
How do you rewire a lamp?
Unplug the lamp, remove the shade and socket shell, disconnect the old wires from the terminal screws, pull out the old cord, thread a new cord through the base, tie an underwriter’s knot, strip the wire ends, connect the hot (smooth) wire to the brass screw and neutral (ribbed) wire to the silver screw, reassemble the socket, attach the plug, and test.
How do you replace a lamp socket?
Press the socket shell where stamped “PRESS” and pull it off. Disconnect the wires from the terminal screws and unscrew the socket cap from the lamp’s pipe. Screw on the new cap, reconnect the wires (hot to brass, neutral to silver), and snap the shell back into place. Test with a bulb.
How do you remove a lamp socket that is stuck?
Look for the word “PRESS” on the socket shell. Push firmly on that spot with your thumb while pulling the shell upward. If it won’t budge, rock it gently side to side. For corroded sockets, apply a few drops of penetrating oil around the base of the cap and wait 10 minutes before trying again.
How do you fix a lamp switch?
If the switch is built into the socket, replace the entire socket assembly—individual switch parts are rarely sold separately. If the lamp has an inline cord switch, open the switch housing, disconnect the old switch from the hot wire, install a new switch of the same type, and reassemble. Always unplug the lamp before starting.
How do you replace a lamp cord?
Remove the socket shell and disconnect the old cord from the terminals. Pull the old cord out through the base. Thread the new cord up through the base, tie an underwriter’s knot, strip the ends, and connect to the socket (smooth to brass, ribbed to silver). Reassemble the socket, attach the plug, and test.
What type of cord do I need for my lamp?
Most table lamps use SPT-1 (18-gauge) cord, which handles up to 300 watts. Higher-wattage floor lamps and multi-socket lamps may require SPT-2 (16-gauge), rated up to 600 watts. Check the label on your old cord or the lamp’s specification plate to match the gauge.
Is it safe to rewire a lamp yourself?
Yes, rewiring a standard plug-in table lamp or floor lamp is a safe DIY task for most people, provided the lamp is unplugged and you use correctly rated replacement parts. However, hardwired fixtures (ceiling lights, wall sconces), lamps with fire damage, and antique lamps with non-standard wiring should always be handled by a qualified electrician.
How do you know if a lamp needs rewiring?
Common signs include a frayed, cracked, or discoloured cord, a plug that gets hot during use, flickering that persists after changing the bulb, a switch that only works intermittently, and a lamp that trips a circuit breaker or blows fuses. If you notice any of these, rewire or replace the faulty component promptly.