When a smoke detector runs on battery power alone, a dead cell leaves the home unprotected without anyone noticing. Hardwired smoke detectors solve that problem by connecting to a 120-volt branch circuit, so they draw continuous power from the electrical system and keep a battery only as a backup. Residential electrical codes require smoke alarms in nearly every dwelling because the smoke from smoldering fires can kill occupants long before flames become visible, and detectors that stay awake around the clock sense that early smoke while people sleep. The project takes 6 to 8 hours at an advanced skill level and costs $50 to $100 in materials. Before buying anything, read the home fire safety and code compliance guide to confirm which rules apply in your area.
Plan Placement Before You Touch the Wiring
The mounting location decides how well a detector works, and local code decides where you are allowed to put it. Most jurisdictions follow the model residential code, which requires smoke alarms on every habitable level, outside each sleeping area, and inside every bedroom. Hallways serving bedrooms need their own units, and detectors on stairs belong near the top, where heat and smoke collect differently. The room-by-room rules for where to place smoke detectors in your home cover the specific distances that matter.
Code Requirements and Permits
Smoke alarms must be hardwired with a battery backup in most new and renovated construction, and interconnected so that when one unit alarms, every unit alarms. Some municipalities add their own amendments, such as requiring carbon monoxide detectors on levels with fuel-burning appliances. Check with the local building department before starting, because many areas require a permit and an inspection for new branch circuits.
Interconnection Rules
Interconnection means all alarms on the system sound together, which is what wakes a family when a fire starts on the opposite end of the house. Most hardwired systems use a three-wire cable in which the third conductor carries the interconnect signal, and the wiring must follow the manufacturer instructions for the detectors you buy. National Fire Protection Association guidance caps an interconnected group at 18 devices, and mixing brands in one system is not recommended because the signaling protocols differ.
Choosing Mounting Locations
Smoke rises, so the ceiling is the preferred surface. Keep these distances in mind when marking the box locations:
- Ceiling mounts sit at least 4 inches from the nearest wall to avoid the dead air space in the corner.
- Wall mounts sit 4 to 12 inches below the ceiling for the same reason.
- Detectors stay at least 10 feet from cooking appliances to limit nuisance alarms.
- Locations within 3 feet of a bathroom door are poor choices because steam triggers false alarms.
- Keep units away from HVAC supply registers, where airflow blows smoke past the sensor.
Sloped ceilings work fine; mount the detector within 3 feet of the peak, measured horizontally, but keep it at least 4 inches below the highest point.
Gather Tools, Materials, and Safety Gear
Hardwired installation needs basic electrical tools plus a few components specific to smoke alarms. The shopping list and the sequence match the This Old House guide to installing smoke and carbon monoxide detectors, with the addition of the electrical box and cable described here.
Tools You Will Need
- Non-contact voltage tester to confirm the circuit is dead
- Wire strippers and a combination screwdriver set
- Drill with a 2-1/2-inch or 3-inch hole saw for retrofit boxes
- Fish tape for pulling cable through finished walls
- Ladder tall enough to work at the ceiling comfortably
- Safety glasses and work gloves
Materials and Cost
- Hardwired smoke detectors with battery backup, $15 to $40 each
- 14/2 or 12/2 NM cable for single units, 14/3 or 12/3 for interconnected systems
- Old-work or new-work electrical boxes sized for smoke detectors
- Wire nuts, cable clamps, and cable staples
A three-bedroom house with five or six detector locations lands in the $50 to $100 range, assuming the cable runs are short.
Choose the Right Detector
Buy units listed to UL 217, the standard for smoke alarms, and match the sensor type to the fire risk in each room. Dual-sensor models combine both technologies and cost a few dollars more. If the bedrooms sit on a level with fuel-burning appliances, combination smoke and carbon monoxide alarms replace two separate devices.
Match Models for Interconnection
Interconnected units must speak the same signaling language, so buy the same brand and family for the whole system. The boxes list the compatible model numbers; keep them with the home paperwork so a future replacement matches the group.
Safety Gear and Power Rules
Turn off the branch circuit at the breaker panel before opening any box, then confirm the power is dead with a non-contact voltage tester. The tester beeps when live voltage is present and costs about $15. Treat every wire as live until the tester says otherwise.
Step-by-Step: Wiring and Mounting the Detectors
With locations marked and power off, the installation follows the same sequence at every unit:
- Install the electrical box at the marked location, using an old-work box for retrofit work and a nailed new-work box before drywall goes up.
- Run the cable from the previous detector or the power source, and secure it within 12 inches of each box.
- Strip about 8 inches of outer jacket and 1/2 inch of insulation from each conductor.
- Make the connections: white to white, black to black, and the red interconnect wire to red.
- Fold the wires into the box, mount the base, and twist the detector head into place.
- Restore power and press the test button on each unit.
Install the Electrical Box
New construction gets a new-work box screwed to a ceiling joist or wall stud. For existing homes, an old-work box grips the drywall with flip-out tabs, so no framing access is needed. Use a box deep enough for the cable and wire nuts, and check that the detector base covers the opening completely.
Connect the Wires
Match the cable colors to the detector wires with wire nuts, twisting the conductors together clockwise before threading on the cap. The white neutral connects to the white circuit wire, the black hot connects to black, and the interconnect conductor ties the units together. No switch may control the circuit, because a detector on a switched line goes dark whenever someone flips the switch.
Three-Wire Cable for Interconnection
A single hardwired detector works on two-wire cable. An interconnected system needs three-wire cable, where the red conductor carries the alarm signal from unit to unit. Pull the cable between detector locations in a continuous run, and label the interconnect conductor at both ends so future work is obvious.
Mount the Detector Base
Align the base so the mounting screws hit the box ears, then seat the detector head and twist it clockwise until it locks. Newer smart smoke detectors add app alerts and self-testing, but they mount exactly the same way, so the upgrade path is a simple swap later.
How Hardwired Detectors Work: Power, Sensors, and Interconnection
A quick look inside the system explains why hardwired units outperform battery-only models. The detector electronics run on the 120-volt circuit, and the battery covers power outages. Understanding how smoke detectors work at the sensor level also helps you choose units and diagnose nuisance alarms.
Photoelectric vs. Ionization Sensors
The two sensor technologies detect different fire stages. Photoelectric sensors use a light beam that smoke particles scatter, so they respond fastest to smoldering fires with heavy smoke. Ionization sensors use a small chamber and respond faster to fast-flaming fires with less visible smoke. Dual-sensor units include both.
| Sensor type | Detects fastest | Best suited for |
|---|---|---|
| Photoelectric | Smoldering fires with heavy smoke | Bedrooms, living areas, hallways |
| Ionization | Fast-flaming fires | Kitchens, utility areas, with distance rules |
| Dual sensor | Both fire types | Whole-home coverage, one unit per location |
Why Interconnection Matters
A fire in the basement can fill the first floor with smoke while the bedroom doors stay closed. Interconnection solves this by sending the alarm signal through the red conductor to every unit at once, so the detector in the hallway sounds when the one in the basement trips. Test interconnection after installation by pressing one test button and confirming that every unit alarms.
The Role of the Backup Battery
Code requires a battery backup so the system still works during an outage. Most detectors use a 9-volt battery, while newer models seal a lithium cell inside for 10 years of service. The low-battery chirp is the detector telling you the backup is weak, and replacing it within a few days keeps the system whole.
Testing, Maintenance, and When to Call a Professional
A detector that is never tested is a guess, not a safety system. Budget two minutes a month for testing and an hour a year for maintenance.
Test the System After Installation
Restore power, then press and hold the test button on each detector. The unit sounds its own alarm within a few seconds, and on an interconnected system every other unit follows. Walk the house to confirm each one sounds, then silence the system with the test button.
Routine Maintenance Schedule
- Press the test button monthly on every detector.
- Vacuum the vents twice a year to clear dust and cobwebs.
- Replace the backup battery annually unless the unit has a sealed 10-year cell.
- Replace the whole detector 10 years after the manufacture date printed on the unit.
- Never paint a detector; paint blocks the sensor openings.
Common Installation Mistakes
Most callbacks trace back to a few errors. Wiring the detectors on a switched circuit leaves them dead half the time. Mounting too close to the kitchen produces a nightly false alarm that trains everyone to ignore the system. Using two-wire cable where code requires interconnection means the units never sound together. And drilling into a ceiling joist or wall stud at the wrong angle splits the framing; locating the structure first prevents it, using the same technique woodworkers rely on for finding hidden fasteners before they cut lumber.
When to Call a Professional
Do-it-yourself wiring makes sense when the panel is accessible, the attic or crawl space offers a cable path, and the circuit layout is simple. Call a licensed electrician when the panel has no free space, when you have no experience with electrical work, or when the local inspector requires a licensed contractor for the permit. The same judgment applies to other trades: a homeowner who tackles electrical work carefully might still hand off a project like installing tile murals in shower walls, where a waterproofing error ruins everything behind it. Get the work inspected, keep the paperwork, and replace detectors on schedule.
