Replacing a light switch is one of the most beginner-friendly electrical repairs there is. The work takes about twenty minutes, the part costs $2 to $5, and the only real skill required is knowing how to turn off the right breaker and connect two or three wires correctly. Electricians charge $75 to $150 for this repair. You should not be paying that.
That said, electricity deserves respect. The rules here are not optional: turn off the breaker, confirm the power is off with a tester before touching wires, and do not skip steps. Follow those three things and this is a safe, simple job.
What you need
A replacement light switch (standard single-pole switches cost $2 to $4 at any hardware store), a non-contact voltage tester ($12 to $20 and worth every dollar), a flathead screwdriver, and a Phillips screwdriver. That is the complete list. You do not need wire strippers for this repair unless the existing wire ends are damaged.
Turn off the power and confirm it is off
Go to your electrical panel and identify the breaker that controls the circuit you are working on. If your breakers are not labeled, turn on the light controlled by the switch, then flip breakers one at a time until the light goes off. Label it while you are there.
Once the breaker is off, go back to the switch and use your voltage tester on the switch itself before removing the cover plate. Hold the tester near the switch body and toggle it in both positions. If it lights up or beeps, the power is still on. Find the right breaker. If it shows no voltage, you are clear to proceed. Do not skip this test.
Remove the old switch
Remove the cover plate by unscrewing the center screw. Set it aside since you will reuse it. Behind the cover plate, you will see the switch mounted inside an electrical box with two screws on the mounting plate. Remove those screws and pull the switch out from the box carefully, giving yourself a few inches of slack on the wires.
Use your voltage tester again on the wires now exposed. Test each wire against the metal box and against each other. No voltage at any point means you are safe to proceed.
Before disconnecting anything, take a clear photo of the existing wiring. This is your reference if you ever get confused during reassembly.
Understand what you are looking at
A standard single-pole light switch will have two wires connected to it plus a ground. In most homes these will be a black wire (the hot wire), a white wire (often taped or marked black to indicate it is also being used as a hot wire in a switch loop), and a bare copper or green wire for the ground.
The exact configuration can vary depending on how your home was wired. The important thing is that you note which wire is on which terminal before removing anything. The photo you just took is your guide.
Connect the new switch
Disconnect the wires from the old switch. Wires may be connected via screws on the sides of the switch or inserted into push-in connectors on the back. For push-in connectors, insert a small flathead screwdriver into the release slot next to each wire and pull the wire free.
Connect the wires to the new switch in the same configuration as the old one. For a standard single-pole switch, polarity matters on some switches and not others, but following the original wiring is always the right approach. Tighten the screw terminals firmly so no copper wire is exposed outside the connector area. Connect the ground wire to the green screw on the new switch.
Fold the wires back neatly and push the switch into the box. Secure the mounting screws, making sure the switch sits straight, and replace the cover plate.
Restore power and test
Go back to the electrical panel and restore the breaker. Return to the switch and test it. If the light works correctly in both switch positions, the repair is complete. If the light does not work, turn off the breaker again and recheck your wire connections.
If you are replacing a standard switch with a dimmer switch or a smart switch, the wiring configuration may require a neutral wire which not all older switch boxes have. Check the requirements for the specific switch before purchasing it to avoid a trip back to the hardware store.
Simple repairs like this are where DIY saves the most money relative to the time invested. Twenty minutes of work at $0 in labor versus a service call fee for something that requires no specialized knowledge or equipment. For a clear picture of what those savings add up to over time and where they should go, the Family Budget Reset gives you the framework. It is $22 and takes 30 days to work through.

