Hard-wired smoke detectors run on your home's main power supply instead of batteries alone

A hard-wired smoke detector connects directly to a circuit in your electrical panel, the same way your lights and outlets do. Most building codes now require hard-wired detectors in new construction and major renovations because they stay powered even during a power outage if you add a battery backup. The detector itself looks similar to a battery-powered model, but it has a plug connector on the back that feeds into an electrical box in your ceiling.

Hard-wiring is not a job for someone with no electrical experience. You will be working inside your electrical panel and running wire through walls and ceilings. If you are not comfortable with basic electrical work, hire a licensed electrician—the cost is usually $150 to $300 per detector, and mistakes can create a fire hazard or electrocution risk. If you do have electrical experience, the process takes 2 to 4 hours per detector, depending on how far you need to run wire and whether you can access the space above the ceiling.

Key Takeaways

  • Hard-wired detectors must be connected to a dedicated 15-amp circuit breaker in your electrical panel, not shared with other outlets or lights.
  • You will need to run electrical wire (typically 14-gauge Romex cable) from the panel through walls or attic space to each detector location.
  • Most jurisdictions require hard-wired detectors on every level of the home and in bedrooms, hallways, and near kitchens—check your local building code first.
  • Battery backup is strongly recommended so the detector works during a power outage; most hard-wired models accept a 9-volt battery for this purpose.
  • The detector must be installed in an electrical box mounted to a ceiling joist or wall stud, and the box must be rated for the weight and vibration of the detector.

Check your local building code and plan your circuit

Before you buy materials or touch your electrical panel, call your local building department or check their website to find out exactly where detectors are required in your home. Most jurisdictions require them on every level, in every bedroom, in hallways outside bedrooms, and in living areas. Some require them in kitchens; others forbid them there because cooking smoke triggers false alarms. The code also specifies whether detectors must be hard-wired, battery-powered, or a combination of both.

Next, decide which circuit breaker in your panel will power the detectors. Hard-wired smoke detectors must be on a dedicated 15-amp circuit—meaning nothing else plugs into it, not even a light fixture. If you do not have a spare breaker slot, you will need to add one, which requires opening the panel and may require a licensed electrician depending on your local code. Do not try to add a detector to an existing outlet circuit; overloading the circuit creates a fire risk.

Sketch a rough map of your home showing each detector location and the path the wire will take from the panel to each one. Plan to run wire through the attic or crawl space if possible—it is faster and cleaner than cutting into finished walls. If you must run wire through walls, you will need to cut access holes and use a fish tape or wire puller to thread the cable through.

Gather materials and turn off power to the circuit

You will need 14-gauge Romex cable (also called NM cable or Romex), electrical boxes rated for ceiling-mounted detectors, wire connectors, a 15-amp circuit breaker that matches your panel brand, a wire stripper, a screwdriver, a drill with bits, a drywall saw, and a fish tape if you are running wire through walls. Buy hard-wired smoke detectors that include a battery backup option. Most detectors come with a plug connector on the back; the connector plugs into a socket mounted inside the electrical box.

Before you open your electrical panel, turn off the main breaker and test the panel with a non-contact voltage tester to confirm there is no power. Even with the main breaker off, some parts of the panel remain live. If you are not certain, call an electrician. Once you have confirmed the power is off, you can safely install the new breaker and begin running wire.

Run Romex cable from the panel to each detector location

Starting at the electrical panel, feed 14-gauge Romex cable out through a knockout hole in the panel box. The cable should be stapled to framing every 4.5 feet and within 12 inches of any box or connector. If you are running cable through the attic, lay it along a joist or rafter and staple it down; do not let it sag or rest on insulation, which can trap heat and damage the wire.

At each detector location, drill a hole through the ceiling and feed the cable up into the attic or down from above. Use a drywall saw to cut a hole slightly larger than the electrical box you will install. Feed the cable into the box, leaving about 6 inches of wire inside the box for connections. find the box to a ceiling joist or wall stud with the mounting brackets that come with the box. The box must be rated for ceiling-mounted fixtures and must be firmly attached—a loose box can vibrate and loosen wire connections over time.

If you are connecting multiple detectors in series (one after another on the same circuit), you will run cable from the first detector to the second, then to the third, and so on. Each detector needs its own electrical box. The last detector in the series connects back to the panel with a final run of cable.

Strip wire, make connections, and install the detector

At each electrical box, strip about 6 inches of the outer sheath from the Romex cable using a wire stripper. Inside you will find a black wire (hot), a white wire (neutral), and a bare copper wire (ground). Leave the outer sheath on the cable where it enters the box—do not strip it all the way.

Inside the electrical box, you will see a socket connector where the detector plugs in. The socket has three terminals: one for the black wire, one for the white wire, and one for the ground. Using wire connectors (small plastic caps that twist onto bare wire), connect the black wires together, the white wires together, and the ground wires together. Twist each pair of wires together first, then screw the connector cap on until it is snug. Do not over-tighten—you should not be able to pull the wires apart by hand, but the connector should not require a wrench.

Tuck the connected wires neatly into the electrical box and screw the detector's mounting bracket to the box. Slide the detector onto the bracket and twist it clockwise until it locks in place. Insert a 9-volt battery into the battery compartment on the back of the detector (even though it is hard-wired, the battery provides backup power during an outage). Press the test button on the detector—it should beep loudly. If it does not, check that the wires are connected firmly and that the battery is fresh.

Install the new circuit breaker and test the entire system

Once all detectors are wired and mounted, return to the electrical panel. Install the new 15-amp breaker in an empty slot by sliding it onto the bus bar until it clicks. The breaker should fit snugly and sit flush with the other breakers. Connect the black wire from your Romex cable to the breaker terminal by loosening the set screw, inserting the wire, and tightening the screw firmly. Connect the white wire to the neutral bus bar and the ground wire to the ground bus bar.

Close the panel cover and turn the main breaker back on. Flip the new 15-amp breaker to the ON position. Go to each detector and press the test button—all of them should beep. If a detector does not beep, turn the breaker off, check the wire connections in that detector's box, and try again. If the breaker trips when ready when you turn it on, there is a short circuit somewhere in the wire run. Turn the breaker off, check for pinched or damaged wire, and call an electrician if you cannot find the problem.

Once all detectors are working, label the breaker clearly in your panel ("Smoke Detectors") so you and future owners know what it controls. Test each detector monthly by pressing the test button. Replace the 9-volt backup batteries once a year, even if they still work—a fresh battery ensures the detector will function during a power outage.

Common mistakes that create safety hazards

The most common mistake is connecting hard-wired detectors to an existing outlet or light circuit instead of a dedicated breaker. This overloads the circuit and can cause the breaker to trip during normal use, leaving the detectors without power. A dedicated circuit means nothing else is plugged into it—not a bedroom outlet, not a hallway light, nothing.

Another frequent error is failing to find the electrical box firmly to a joist or stud. A loose box allows the wire connections to vibrate and loosen over time, which can cause the detector to lose power intermittently or fail entirely. Always use the mounting brackets that come with the box and screw them directly into framing.

Forgetting to install battery backup is also risky. Hard-wired detectors without batteries become useless during a power outage, which is exactly when a fire is most likely to go undetected. Buy detectors that accept a 9-volt battery and install one before you mount the detector.

Finally, many people run Romex cable without securing it to framing. Unsecured cable can sag, rest on insulation, or get pinched by drywall, all of which damage the wire and create a fire hazard. Staple the cable every 4.5 feet and within 12 inches of every box.

Frequently Asked Questions

Can I hard-wire smoke detectors myself if I have never done electrical work before?

No. Hard-wiring involves working inside your electrical panel and running wire through walls and ceilings. Mistakes can cause electrocution or fire. If you are not experienced with electrical work, hire a licensed electrician. The cost is usually $150 to $300 per detector and is worth the safety.

Do hard-wired detectors need batteries?

Hard-wired detectors are powered by your home's electrical system, so they do not need batteries to operate. However, a 9-volt battery backup is strongly recommended so the detector works during a power outage. Most building codes now require battery backup on hard-wired detectors.

What size wire do I need for hard-wired smoke detectors?

Use 14-gauge Romex cable for a 15-amp circuit. If your circuit is 20 amps, use 12-gauge cable instead. The gauge must match the breaker amperage—using undersized wire creates a fire hazard. Check your local electrical code or ask an electrician if you are unsure.

Can I connect hard-wired detectors to the same circuit as my bedroom lights?

No. Hard-wired detectors must be on a dedicated 15-amp circuit with nothing else connected to it. Sharing a circuit with lights or outlets overloads the breaker and can cause it to trip, leaving the detectors without power. Install a separate breaker for the detectors only.

How often should I test hard-wired smoke detectors?

Press the test button on each detector once a month to confirm it is working. Replace the 9-volt backup battery once a year, even if it still works. If a detector does not beep when you press the test button, check that the battery is installed and fresh, and that the breaker is in the ON position.