How to Install a Dimmer Light Switch

Installing a dimmer switch saves energy and creates a relaxing mood in any room. Dimmer switch wiring might seem intimidating, but it only requires four wire connections. For most do-it-yourselfers, installing a single-pole dimmer switch is a fairly simple task that takes less than 30 minutes.
A single-pole or one-way dimmer switch controls a light fixture or a series of connected fixtures from one wall switch.
Before you get started, consider the size of your junction box. It needs to be large enough for a new dimmer switch. If there isn't enough room or if the wires inside are already tightly packed, the wiring could overheat and short-circuit—or worse, start a fire.
If you discover that your junction box is indeed too small or too packed, you can upgrade to a larger junction box before installing a new dimmer switch.
Dimmer switches are mostly used for ceiling-mounted light fixtures, not for electrical outlets or ceiling fans .
Shutting of the power, and then double-checking that it is turned off, is absolutely crucial before tackling any electrical DIYs.
Equipment and materials
- Non-contact voltage tester
- Wire stripper
- Wire cutters
- Eye protection
- Screwdrivers (Phillips and flat-head)
- Needle-nose pliers
- Dimmer switch
- Wire connectors (wire nuts)
- Electrical tape (if needed)

Instructions
Choose a Dimmer Switch
Purchase a dimmer switch based on the wattage demands and the types of lightbulbs. Total the wattages of the bulbs served by the switch. Purchase a dimmer switch capable of dimming either LED or incandescent bulbs or both types.
Example
A track lighting fixture has four incandescent 60W bulbs, for a total wattage demand of 240W. Use a 600W-rated dimmer to control these lights.

Turn Off the Circuit Breaker
Find the circuit breaker for the circuit controlling the switch and light fixture and flip it off. Rock the switch outward to turn it off.

Remove the Switch Cover Plate
With a flat-head screwdriver, carefully remove the two screws holding the outer switch plate to the existing switch.

Remove the Switch Mounting Screws
Unscrew the mounting screws on the existing light switch. Do not touch the screw terminals on the side of the switch or any wires.

Test for Power
Check each wire in the box with the non-contact circuit tester. Touch the tip of the tester to each screw terminal on the switch. In many cases, the tester will light up even if it is close to, but not touching, a live wire.

Disconnect the Circuit Wires
Detach the wires by loosening the screw terminals on the side of the switch and pulling the wires free. If a ground wire is also attached, disconnect it from the green ground screw. Wire nuts, if any, can be screwed off by turning them counter-clockwise.

Connect the Dimmer Switch
Attach wires on the dimmer switch to the wires extending from the electrical box.
- Connect one of the black dimmer switch wires to the one black line-in wire (the live wire).
- Connect the other black switch wire (or red wire without a tag) to the one black load-out wire (the wire going to the light fixture).
- Connect the one green dimmer switch wire to the two bare copper box wires; twist all three together under a wire nut.
- Connect the two white box wires with a wire nut. These entirely bypass the dimmer switch. Some electronic dimmers will have a white (neutral) that will be connected to the two white wires.
- Ignore the tagged red/white striped dimmer switch wire for now.

Cap Off the Red-and-White Striped Wire
If the switch has an additional wire lead (usually a red-and-white striped wire), this wire is not needed for a single-pole installation. It is only used in three-way installations where two switches control a light. Cap off this wire with a wire nut, then wrap it with electrical tape.

Complete the Installation
Carefully fold the wires and tuck them into the box. Screw the dimmer switch onto the electrical box by threading the mounting screws into the threaded openings on the box. As the screws tighten, the switch will nudge the wires deeper into the box. Make sure that the dimmer switch is completely flush with the box's outer edge, then attach the switch cover plate.

Turn on the Circuit Breaker
Go to the service panel and flip the circuit breaker back on. Return to the dimmer switch and test its operation.

When to Call a Professional
As far as electrical repair projects go, replacing a dimmer switch is a relatively easy one. With any electrical repair, though, there is the potential for dangerous, or even lethal, shock. If you are not confident in your abilities, it's best to call in an electrician.
Additionally, reach out to a licensed electrician if the old wiring doesn't seem compatible with your new wiring. Also, note that some dimmer switches require neutral wiring, which may not already be installed in your home. If not, you'll likely need an electrician's help.
Finally, check your local codes and ordinances to see if you need a permit for this DIY task, and consider whether it may be easier to hire someone who is licensed.
Frequently Asked Questions
How many wires go on a single-pole dimmer switch?
On a single-pole dimmer switch, there will be a total of three wires that go on the switch. There will be two wires that attach to the circuit wires in the box. There will be a third green wire that attaches to the circuit grounding wire. The fourth wire (red/white striped) is not used.
Can you put a dimmer on a single-pole switch?
Yes, you can put a dimmer on a single-pole switch if you want to control a light fixture from that one switch. In most cases, dimmer switches are wired the same way as a regular switch. So if you already know how to install a single-pole switch, you should be able to swap it for a dimmer switch.
Why are there two black wires on a dimmer switch?
The two black wires are the hot (or live) wire that comes into the switch and the other black wire (sometimes red) that goes out to the light fixture.
Does a dimmer switch need 3 wires?
A dimmer switch needs three wires for a single-pole switch: one black, one black or red, and one green (ground). The remaining dimmer switch wire (usually, red/white striped) is not needed for single-pole operations, so it is capped off.
What is L1 and L2 on a dimmer switch?
L1 and L2 stand for "lines 1" and "2," and they supply power to electronics on the circuit of the switch. C or COM stands for "common," and it supplies power to the switch.
Source: https://www.thespruce.com/install-a-dimmer-switch-single-pole-1821559