You may not need an electrician, but the answer depends on what "hardwired" means in your case

A hardwired smoke detector is connected directly to your home's electrical wiring instead of running on batteries alone. If your detector is straightforward plugged into an outlet, you can replace it yourself — unplug the old one and plug in the new one. If it's wired directly into the circuit (the wires are connected inside a junction box behind the detector), you can still replace it yourself in most cases, as long as you follow basic safety steps and your local code allows it. The real question is whether your detector has a battery backup and whether you're comfortable working with live wires.

The most common reason to call an electrician is not because you can't do it, but because you want to add a new hardwired detector to a circuit that doesn't have one, or because you're unsure whether the circuit is live. Replacing an existing detector is a different task from installing one from scratch.

Key Takeaways

  • Replacing a hardwired smoke detector that's already in place is usually a homeowner task — you don't need an electrician unless the wiring is damaged or you're uncomfortable working with electrical connections.
  • Before you touch anything, turn off the breaker that powers the detector at your electrical panel to eliminate the risk of shock.
  • Most hardwired detectors have a battery backup, so you'll need to disconnect both the wiring and remove the battery to fully power down the old unit.
  • If you're adding a new hardwired detector to a circuit or running new wire, you will need an electrician or a licensed electrician in your area, depending on local code.
  • Check your local building code before you start — some jurisdictions require a licensed electrician for any hardwired detector work, while others allow homeowners to do replacements.

The difference between replacing and installing

Replacing an existing hardwired smoke detector is not the same as installing a new one. When you replace, the circuit is already there, the junction box is already in the ceiling, and the wire is already run. You're straightforward swapping out the old detector for a new one. This is well within the scope of homeowner work in most places.

Installing a new hardwired detector means running wire from the electrical panel to a new location, adding a new junction box, and connecting it to a circuit. This requires knowledge of load calculations, code compliance, and panel work. Most jurisdictions require a licensed electrician for this. Check your local building department's website or call them directly to confirm what your area allows homeowners to do.

How to safely replace a hardwired detector yourself

Start by turning off the breaker that powers the detector. Go to your electrical panel and flip the switch to the "off" position. If you don't know which breaker controls the detector, turn it on and have someone watch it while you flip breakers one at a time until it goes dark. Label that breaker so you know it next time.

Once the breaker is off, unscrew the old detector from its mounting bracket. Most detectors twist counterclockwise to release from the base. You'll see wires connected inside — usually a black wire (hot), a white wire (neutral), and a bare copper or green wire (ground). There may also be a red wire if the detector is interconnected with other detectors in your home. Disconnect these wires by loosening the terminal screws or releasing the wire connectors, depending on your model.

Remove the battery from the old detector. Even with the breaker off, the battery can cause a spark if you accidentally touch the terminals together. Keep the old detector away from the new one while you work.

Connect the wires to the new detector in the same order: black to black, white to white, ground to ground, and red to red if present. Tighten the terminal screws firmly but don't overtighten — you want a solid connection without stripping the screw. Twist the new detector onto the mounting bracket, install a fresh battery, and turn the breaker back on. Test the detector by pressing the test button.

When you should call an electrician instead

Call an electrician if the wires are damaged, corroded, or if you find more than three wires and don't know what the extra ones do. Also call if the junction box is cracked, loose, or if you're not confident turning off the breaker or making the wire connections.

You should also hire an electrician if your local code requires it. Some jurisdictions have rules that any work on hardwired detectors must be done by a licensed electrician, even replacement. Call your local building department before you start — a code violation can affect your homeowner's insurance claim if there's ever a fire.

If the old detector is interconnected with others in your home (you'll see a red wire), and you're not sure how the system works, an electrician can make sure the new detector is wired correctly so all detectors still trigger together.

What to know about interconnected detectors

Many homes have hardwired smoke detectors that are interconnected — when one goes off, they all go off. This is done with a red wire that runs between detectors. If you're replacing a detector in an interconnected system, you need to connect the red wire to the red terminal on the new detector, in addition to the black, white, and ground wires.

If you connect the wires incorrectly, the other detectors won't trigger when this one does. Test the entire system after replacement by pressing the test button on each detector and listening for all of them to sound. If one doesn't go off, turn the breaker back off and check your red wire connections.

Battery backup and power considerations

Most hardwired detectors have a battery backup that keeps them working during a power outage. This battery is separate from the electrical circuit and will hold a charge even when the breaker is off. Always remove the battery before you disconnect the wires — this prevents accidental sparks and makes the old detector completely safe to handle.

When you install the new detector, insert a fresh battery. Some detectors come with a battery already installed; others require you to add one. Check the instructions that came with your new detector. The battery should last about a year, and most detectors will chirp once every 30 to 40 seconds when the battery is low — that's your signal to replace it.

Tools and materials you'll need

You'll need a screwdriver (usually Phillips head), a new smoke detector that matches the voltage and type of your old one, and a fresh battery if the new detector doesn't come with one. Some detectors use wire connectors instead of terminal screws — if that's the case, you may need wire strippers and a wire connector tool, but most modern detectors don't require these.

Before you buy a new detector, check the voltage rating on your old one. Most hardwired detectors run on 120 volts, but some older homes use 240 volts. The label is usually on the back or bottom of the detector. Buy a replacement rated for the same voltage.

Frequently Asked Questions

Can I replace a hardwired smoke detector while the power is still on?

You can, but you shouldn't. Even with the breaker off, it's safer to assume the wire is live until you've tested it. If you must work with the power on, use a non-contact voltage tester to confirm the wires are de-energized before you touch them. The safest approach is always to turn off the breaker first.

What if my new detector doesn't fit the old mounting bracket?

Most hardwired detectors use the same standard mounting bracket, but some older or specialty models don't. If the new detector doesn't fit, you can buy a universal mounting bracket at any hardware store for about $5 to $10. Unscrew the old bracket from the junction box and screw the new one in its place, then mount the detector to that.

Do I need to turn off the breaker if I'm just replacing the battery?

No. The battery is isolated from the electrical circuit, so you can remove and replace it without turning off the breaker. Just twist the detector counterclockwise to release it from the bracket, pop out the old battery, and insert a new one.

What should I do if I accidentally touch the wires together while the breaker is off?

Nothing will happen — the breaker is off, so there's no current flowing. That's why turning off the breaker first is so important. Once the breaker is off, the wires are safe to touch, even if you accidentally short them together.

Can I use a wireless detector instead of replacing the hardwired one?

Yes, but you'll need to decide what to do with the old wiring. You can cap off the wires with wire nuts and leave them in the junction box, or you can hire an electrician to remove the wire and close the junction box. Many homeowners leave the hardwired detector in place and add wireless detectors in other rooms for extra coverage, rather than removing the hardwired one entirely.