Smoke alarms don't have to be hardwired, but local fire codes often require at least some to be

Whether your smoke alarm needs to be hardwired depends on your local fire code and where the alarm is located in your home. Most jurisdictions require hardwired smoke alarms on every level of the house and inside each bedroom, but battery-powered alarms are legal in some rooms or as backups. The catch: hardwired alarms must have a battery backup, and battery-only alarms must meet current safety standards. Your local fire marshal's office or building department can tell you exactly what your area requires.

The practical difference matters. A hardwired alarm connects directly to your home's electrical system, so it never runs out of power—but it still needs a working battery in case of a power outage. A battery-powered alarm is cheaper to install and works anywhere, but you have to replace the battery every year or when it beeps. Neither type is inherently "better"; the choice depends on your code, your home's wiring, and your willingness to maintain batteries.

Key Takeaways

  • Most fire codes require hardwired alarms on every level and in bedrooms, with battery backup for power outages.
  • Battery-only alarms are legal in some locations and rooms, but you must replace batteries annually and test them monthly.
  • Hardwired alarms cost more to install because they need an electrician, but they eliminate the risk of forgetting a battery replacement.
  • Your local fire department or building department publishes the specific rules for your area—call them before buying or installing anything.
  • Interconnected alarms (hardwired or wireless) alert every alarm in the house when one detects smoke, which is safer than isolated alarms.

What your local fire code actually requires

Fire codes are written by your state or local authority, not by a national standard everyone follows. The National Fire Protection Association publishes a model code called NFPA 72, and most jurisdictions base their rules on it, but they can add stricter requirements or allow exceptions. Some states require hardwired alarms everywhere; others allow battery-only in certain rooms. Some require interconnection (so all alarms sound when one detects smoke); others do not.

The fastest way to know your own rules is to call your local fire marshal's office or building department and ask: "What type of smoke alarms does my jurisdiction require, and where must they be installed?" They will tell you whether hardwired is mandatory, whether battery-only is permitted, and whether you need interconnection. If you are renting, your landlord is responsible for meeting code, but it is worth asking what type is installed so you know whether the batteries are your job or theirs.

Hardwired alarms: how they work and what they cost

A hardwired smoke alarm connects to a 120-volt circuit in your home, usually the same circuit as a light or outlet. An electrician runs wire from the breaker panel to the alarm location and installs a junction box in the ceiling or wall. The alarm plugs into that box. Because it draws power from your home's electrical system, it never needs a battery—except for the backup battery that keeps it working during a power outage.

Installation typically costs $150 to $300 per alarm if you hire an electrician, plus the cost of the alarm itself ($30 to $100). If you already have an unused circuit nearby, the cost is lower. If the electrician has to run wire through walls or attic, it costs more. Hardwired alarms are interconnected by default—when one detects smoke, it triggers all the others—so you get whole-house coverage without buying wireless equipment.

The main advantage is that you never have to remember to replace a battery. The main disadvantage is the upfront cost and the need for an electrician. If your home is already wired for hardwired alarms and you are just replacing one, the job is straightforward and cheap. If you are adding hardwired alarms to a home that has none, it is a bigger project.

Battery-powered alarms: when they are allowed and how to maintain them

Battery-powered smoke alarms run on AA or 9-volt batteries and can be mounted anywhere—no electrician needed. They cost $15 to $50 per alarm and take 10 minutes to install. The trade-off is that you must replace the battery every 12 months, whether it looks dead or not. Many people forget, which is why fire departments consider hardwired alarms more reliable.

Some jurisdictions allow battery-only alarms in certain rooms (like a guest bedroom or basement) but require hardwired alarms in high-traffic areas like hallways and bedrooms where people sleep. Others allow battery-only alarms as a backup to hardwired ones. A few states or municipalities allow battery-only throughout the home. Check your local code before assuming battery-only is permitted.

If you use battery-powered alarms, test them monthly by pressing the test button and replace the battery every year—many fire departments recommend doing this on the same day you change your clocks for daylight saving time, so you remember. If an alarm beeps once every 30 to 60 seconds, the battery is low and needs replacement when ready, even if it is not yet a year old.

Interconnected alarms and why they matter

An interconnected alarm system means that when one alarm detects smoke, all the alarms in the house sound at once. This is much safer than isolated alarms because a fire detected in the basement will wake someone sleeping upstairs. Hardwired alarms are interconnected automatically through the electrical wiring. Battery-powered alarms can be interconnected wirelessly using radio signals, but wireless interconnection costs more and requires compatible models.

Many fire codes now require interconnection, especially in homes with multiple levels or long hallways. If your code requires it and you choose battery-only alarms, you will need to buy wireless-interconnected models, which cost $40 to $80 each instead of $15 to $30. Hardwired alarms with battery backup give you interconnection without the extra cost.

Mixing hardwired and battery alarms in the same home

You can install both types in the same house if your code allows it. A common setup is hardwired alarms in bedrooms and hallways (where people sleep and need early warning) and battery-only alarms in the garage, basement, or attic (where code may not require them or where running electrical wire is difficult). If you mix types, make sure they are interconnected—either all hardwired, or all wireless-interconnected, or hardwired alarms with wireless receivers that trigger battery-powered alarms.

If you are unsure whether your mixed setup meets code, ask your local fire marshal to inspect it. Many departments offer free inspections and will tell you exactly what needs to change. This is worth doing before you finish a renovation or before you sell your home, because a code violation can delay a sale or result in a fine.

Replacing an existing hardwired alarm

If your home already has hardwired alarms and one stops working, you can usually replace it yourself without calling an electrician. Turn off the breaker for that circuit, unscrew the old alarm from its mounting bracket, disconnect the wires, and connect the new alarm's wires to the same terminals (usually labeled N, L, and G for neutral, load, and ground). Screw the new alarm onto the bracket, turn the breaker back on, and test it. If the wires are not labeled or you are unsure which goes where, take a photo of the old alarm before disconnecting it, or call an electrician.

If the alarm is hardwired but the battery backup is dead and will not hold a charge, replace the battery first—it is usually a 9-volt that costs $5 to $10. If the battery is new and still will not hold a charge, the alarm itself may be failing and needs replacement.

Frequently Asked Questions

Can I install a hardwired smoke alarm myself, or do I need an electrician?

If the junction box and wiring are already in place, you can install the alarm yourself by connecting the wires and screwing it to the bracket. If you need to run new wire from the breaker panel, you must hire a licensed electrician—this is a code requirement in most places and a safety issue. Do not attempt to tap into an existing circuit or run wire yourself unless you have electrical training.

What happens if my hardwired alarm loses power?

The battery backup takes over when ready. The alarm will continue to detect smoke and sound the alarm, but it will also beep once every 30 to 60 seconds to tell you the power is out. Once power is restored, the beeping stops. If the battery backup is dead, the alarm will not work during a power outage, so test the backup battery monthly by pressing the test button.

How often do I need to replace the battery in a hardwired alarm?

The backup battery should last one to three years, depending on the model and how often the power goes out. Replace it when the alarm beeps to signal low battery, or every year as a precaution. Check your alarm's manual for the recommended battery type and replacement schedule.

Is a wireless interconnected system as safe as hardwired?

Wireless interconnection works well if the alarms are compatible and within range (usually 100 feet in an open space, less through walls). The main risk is that the wireless signal can fail if batteries are low or if there is interference. Hardwired interconnection is more reliable because it does not depend on batteries or radio signals, but wireless is better than no interconnection at all.

Do I need a permit to install hardwired smoke alarms?

Most jurisdictions require a permit for any electrical work, including hardwired alarm installation. Your electrician will usually handle the permit and inspection. If you are doing the work yourself, contact your local building department to ask whether a permit is required and what the inspection process is.