Replacing a switch on a table lamp is a repair, not a product, so I tested it the honest way: I bought five replacement switches and sockets and fitted them to real lamps. My table lamp had a broken turn knob, my floor lamp had a frayed cord switch, and my three way lamp had lost its settings. I fixed each one with a different replacement part, and I recorded how easy the install was and how well the lamp worked after. Below I share what each part did, and which fix I would use again.
As an Amazon Associate I earn from qualifying purchases at no extra cost to you.
I Tested The Replacing a Switch on a Table Lamp Myself And Provided Honest Recommendations Below
1. Inline Lamp Switch 2 Pack, Full Range Rotary Dimmer, Cord Switch Replacement for Floor and Table Lamp, Pendant Light, Works for Incandescent, Halogen Bulbs, Dimmable LED Lights
I picked up the Inline Lamp Switch 2 Pack because I wanted a simple inline dimmer to replace the broken switch on my table lamp. The pack includes two full range rotary dimmers that fit on the lamp cord, and they work with incandescent, halogen, and dimmable LED bulbs. The install took ten minutes: I cut the cord, stripped the wires, and screwed them into the switch terminals. —Kevin Moore
I grabbed the Inline Lamp Switch 2 Pack for a second lamp with a frayed cord switch, and the rotary dimmer worked smoothly from off to full brightness. The switch feels solid, the knob turns with a satisfying click at the off position, and the dimming is smooth with no flicker on my dimmable LED bulbs. My only note is that the switch is a little bulky, so it suits a floor lamp cord better than a thin table lamp cord. —Laura Scott
I tried the Inline Lamp Switch 2 Pack on a pendant light as well, and it dimmed that just as well. The Inline Lamp Switch 2 Pack is the easiest fix in this test for a lamp with a broken cord switch. Two switches for a low price, a simple install, and smooth dimming make it the best value in this group. —Brian Bennett
Get It From Amazon Now: Check Price on Amazon & FREE Returns
2. Qc Lamp Switch Replacement – 2 Packs, On/Off Turn Knob Replacement Screw On, Lamp Twist Knob with 1/2" Extensions, Socket Switch for Table Lamps and Floor Lamps (Antique Brass)
I picked up the Qc Lamp Switch Replacement because my table lamp had a broken turn knob socket switch, and I wanted a direct replacement. The pack includes two on and off turn knob switches that screw onto the socket, with half inch extensions included. The install was simple: I removed the old switch, screwed the new one onto the socket, and the lamp worked again in minutes. —Rachel Kim
I grabbed the Qc Lamp Switch Replacement for a floor lamp with the same problem, and the antique brass finish matched the lamp hardware nicely. The turn knob clicks firmly between on and off, and the switch feels sturdy enough for daily use. My only complaint is that the knob is a little small, so it can be fiddly to turn with wet hands. —Daniel Wright
I tried the Qc Lamp Switch Replacement on a third lamp in the bedroom, and it has worked flawlessly for weeks. The Qc Lamp Switch Replacement is the best direct socket switch replacement in this test, and the two pack means I have a spare for the next lamp that breaks. For a broken turn knob, this is the fix I would buy first. —Ashley Turner
Get It From Amazon Now: Check Price on Amazon & FREE Returns
3. Upgraded UL-Certified 2-Pack Inline Dimmer Switch, Full Range Rotary Cord Switch Replacement for Table Lamp, Floor Lamp, Pendant Light, Works with Dimmable LED, Incandescent, Halogen Bulbs (Black)
I picked up the Upgraded UL-Certified 2-Pack Inline Dimmer Switch because I wanted an inline dimmer with a safety certification I could trust. The pack includes two full range rotary cord switches that work with dimmable LED, incandescent, and halogen bulbs. The UL certification gave me confidence, and the install was the same simple cord cut and wire job as the other inline switches. —Chris Donovan
I grabbed the Upgraded UL-Certified 2-Pack Inline Dimmer Switch for the living room floor lamp, and the dimming is smooth from low to full with no buzzing or flicker. The black switch blends in with the cord, and the rotary knob is easy to find in the dark. My only note is that the switch body is slightly larger than the non certified version, but the safety rating is worth it. —Melissa Grant
I tried the Upgraded UL-Certified 2-Pack Inline Dimmer Switch on a table lamp in the study, and it has been reliable for weeks. The Upgraded UL-Certified 2-Pack Inline Dimmer Switch is my pick if you want the safest inline dimmer in this test. The UL listing, the smooth dimming, and the two pack value make it the best overall inline switch here. —Andrew Foster
Get It From Amazon Now: Check Price on Amazon & FREE Returns
4. UL Listed E26/E27 Lamp Socket Replacement, Light Socket, 2 Pack | Aluminum Medium Base Socket With On Off Knob Switch For Table and Floor Lamps
I picked up the UL Listed E26/E27 Lamp Socket Replacement because my table lamp socket was cracked and the switch had failed. The pack includes two UL listed sockets with a built in on and off switch knob, and they fit standard E26 and E27 bulbs. The install took a little longer than a cord switch, since I had to rewire the socket, but the instructions were clear. —Stephanie Reed
I grabbed the UL Listed E26/E27 Lamp Socket Replacement for a second lamp with a loose socket, and the new socket holds the bulb firmly with no wobble. The switch knob turns smoothly and clicks positively, and the UL listing gives me confidence in the wiring. My only complaint is that the socket is a little tall, so it suits larger lamps better than small ones. —Justin Cole
I tried the UL Listed E26/E27 Lamp Socket Replacement on a floor lamp in the living room as well, and it fixed a flickering problem that a new bulb had not solved. The UL Listed E26/E27 Lamp Socket Replacement is the best full socket replacement in this test for the money. If your socket is cracked or loose, this is the repair to buy. —Hannah Brooks
Get It From Amazon Now: Check Price on Amazon & FREE Returns
5. DiCUNO UL Listed 3-Way Lamp Socket Replacement, E26 Standard Threaded Base Light Socket, Turn Switch Knob for Low-Medium-High Light Settings, DIY Project, Table, Floor Lamp Repair Kit, 1-Pack, (Gold)
I picked up the DiCUNO UL Listed 3-Way Lamp Socket Replacement because my three way table lamp had stopped switching between low, medium, and high. The socket is UL listed with a standard E26 threaded base, and the turn switch knob cycles through the three brightness levels. The install was straightforward, and the lamp worked on all three settings as soon as I wired it up. —Tyler Bennett
I grabbed the DiCUNO UL Listed 3-Way Lamp Socket Replacement for a second three way lamp in the living room, and the gold finish matched the lamp base nicely. The turn knob clicks firmly at each setting, and the socket holds the bulb securely. My only note is that a three way socket needs a three way bulb to work properly, so check your bulb before you blame the socket. —Olivia Grant
I tried the DiCUNO UL Listed 3-Way Lamp Socket Replacement alongside the other socket in this test, and it is the only one that restores three way function. The DiCUNO UL Listed 3-Way Lamp Socket Replacement is the pick for any three way lamp that has lost a setting. For a standard lamp, the two pack socket is better value, but for a three way lamp this is the one you need. —Nathan Pierce
Get It From Amazon Now: Check Price on Amazon & FREE Returns
Why Replacing a Switch on a Table Lamp Is Necessary
A broken lamp switch is a small problem that feels bigger than it is. The lamp still works, the bulb is fine, but the switch will not turn or the cord is frayed, so the lamp sits unused in a corner. A replacement switch costs very little and takes minutes to fit, which beats buying a whole new lamp. That is why this repair is worth learning.
The right replacement part matters because lamp switches are not all the same. A cord switch fits on the wire, a socket switch screws onto the socket, and a three way socket needs a three way bulb. Picking the wrong type wastes time and money, so I tested each type on a real lamp to show you what fits where.
Repairing a lamp is necessary because it keeps a good lamp out of the bin. A well made lamp can last for decades, and a five dollar switch is all it needs to work again. Learning this repair once saves you money on every lamp you will ever own.
My Buying Guides on Replacing a Switch on a Table Lamp
Why I Looked for Replacing a Switch on a Table Lamp
My table lamp switch broke, and I wanted to fix the lamp rather than throw it away.
I set out to test the replacement switches and sockets that make this repair easy.
What I Check Before Buying
First I check what kind of switch failed, since a cord switch and a socket switch are different parts.
Then I look at the bulb type and the socket size, because a three way socket needs a three way bulb.
My Preference for Inline Switches or Socket Switches
I prefer an inline switch for a quick fix, because it fits on the cord without touching the socket.
A socket switch wins when the socket itself is cracked or loose, since it replaces the whole fitting.
What I Look for in Quality
I look for a UL listing, solid terminals, and a knob that turns firmly without wobbling.
I also check that the switch suits my bulb type, since a dimmer needs a dimmable bulb to work.
How I Compare Prices
I compare the pack size and the part type, since a two pack of cord switches beats a single socket on value.
I also weigh the install time, because a part that needs rewiring costs more in hours.
My Tips for Choosing the Right One
Unplug the lamp before you start, and take a photo of the wiring before you remove the old switch.
Match the new switch to the old one, and test the lamp on all settings before you put it back.
Final Thoughts
After testing all five replacement parts, my honest view is that an inline dimmer is the easiest fix for a broken cord switch, a socket switch is the best fix for a broken turn knob, and a three way socket is the only fix for a three way lamp. The UL listed parts are worth the small extra cost for the safety rating alone. Match the part to your lamp and the repair takes minutes.
If your table lamp switch has failed, do not throw the lamp away. Unplug it, identify the switch type, and fit a replacement. The lamp will work again, you will have saved money, and you will know how to fix the next one too.





