Smoke detectors do not have to be hardwired—battery-powered models are legal in most homes
Building codes in most U.S. states and cities allow either hardwired or battery-powered smoke detectors, or a combination of both. The choice depends on your home's age, your local fire code, and your own preference. A hardwired detector plugs into your home's electrical system and usually has a battery backup. A battery-powered detector runs entirely on replaceable batteries. Both types sound an alarm when they detect smoke, and both meet code requirements in most jurisdictions.
The one exception: if you are doing a major renovation or building a new home, your local fire marshal may require hardwired detectors in certain rooms. Even then, battery backups are almost always permitted as a secondary layer. The key is to check your specific city or county code before you buy, because requirements do vary by location.
Key Takeaways
- Battery-powered smoke detectors are legal in most homes and do not require an electrician to install.
- Hardwired detectors plug into your electrical system and include a battery backup for power outages.
- New construction or major renovations may require hardwired detectors in bedrooms and hallways, depending on your local fire code.
- The most reliable setup combines hardwired detectors in high-traffic areas with battery-powered units in rooms where running electrical wire is difficult.
- Battery-powered detectors need new batteries once or twice a year, while hardwired units require no battery maintenance.
How hardwired detectors work and why some homes use them
A hardwired smoke detector connects to a 120-volt circuit in your home, usually the same circuit that powers lights or outlets. The detector draws power from that circuit continuously. Inside, it has a small battery—typically a 9-volt or AA—that takes over if the power goes out. This battery backup means the detector keeps working even during a blackout, which is why hardwired units are considered more reliable in some situations.
Hardwired detectors are common in newer homes and in homes where the owner has had electrical work done. They are also standard in apartments and rental properties because the landlord or building owner controls the installation and maintenance. The downside is that you need an electrician to run the wire and connect it to a circuit breaker, which costs money and takes time. If you want to add a hardwired detector to an older home with no nearby outlet, the cost can be significant.
Battery-powered detectors: the simpler alternative
Battery-powered smoke detectors need no wiring and no electrician. You mount them on a wall or ceiling with screws or adhesive strips, insert batteries, and they are ready to work. They cost less upfront and are faster to install. The trade-off is that you have to replace the batteries regularly—usually once or twice a year, depending on the model and how often the detector runs self-tests.
Many people set a calendar reminder when they change their clocks for daylight saving time, since that is twice a year and straightforward to remember. Some newer battery-powered detectors use 10-year batteries that you cannot replace; when the battery dies, you replace the whole unit. These are convenient if you do not want to think about batteries, but they cost more per unit.
What your local fire code actually requires
Most fire codes require at least one smoke detector on every level of your home and one in or near each bedroom. Some codes specify that detectors in bedrooms must be hardwired, while detectors in living areas can be battery-powered. Others allow either type anywhere. A few jurisdictions—mostly in newer developments—require all detectors to be hardwired and interconnected, meaning they all sound if one detects smoke.
The fastest way to know your local rule is to call your city or county fire marshal's office or visit their website. They can tell you in minutes whether hardwired detectors are required, recommended, or optional in your situation. If you are renting, your landlord is responsible for meeting code, so ask them what type they have installed.
Interconnected detectors and why they matter
Interconnected detectors are wired together so that if one sounds an alarm, all of them sound. This is especially useful in a multi-story home or a home with long hallways, because a fire detected in one room will alert you no matter where you are sleeping. Hardwired detectors are easier to interconnect because the wiring is already in place. Battery-powered detectors can be interconnected wirelessly using radio signals, though this requires buying models designed to work together.
Wireless interconnected battery detectors are more expensive than standalone units but cheaper than hiring an electrician to hardwire a system. If you live in a home where hardwiring is not required and you want the safety benefit of interconnection, wireless battery detectors are a practical middle ground.
Mixing hardwired and battery detectors in the same home
You do not have to choose one type or the other. Many homes use hardwired detectors in bedrooms and main living areas—where the electrical work is easiest—and battery-powered detectors in closets, basements, or other rooms where running wire would be expensive or difficult. This approach meets code in most places and gives you the reliability of hardwired units where it matters most.
If you go this route, make sure all detectors are the same brand or are compatible for wireless interconnection. A hardwired detector in your bedroom and a battery-powered detector in your basement will both sound their own alarms, but they will not trigger each other. That is still better than having no detector in the basement, but it is not as good as full interconnection.
Maintenance differences between the two types
Battery-powered detectors require you to replace batteries once or twice a year and test the alarm monthly by pressing the test button. Hardwired detectors require the same monthly test but no battery replacement—except for the backup battery, which typically lasts three to five years before it needs changing. Some hardwired models will chirp or flash a light when the backup battery is low, so you know when to replace it.
Both types should be vacuumed or dusted every six months to keep dust and cobwebs from blocking the smoke sensor. If you have pets or live in a dusty area, you may need to clean them more often. A detector that is clogged with dust will not sense smoke as quickly, which defeats the purpose of having it.
When to call an electrician
If you want hardwired detectors but your home has no nearby outlet or circuit breaker, an electrician can run new wire and install a dedicated circuit. This is a straightforward job that usually takes a few hours and costs between $200 and $500 per detector, depending on how far the wire has to run and how difficult the installation is. Get a quote before you commit.
If you already have hardwired detectors and one stops working, do not assume the whole system is down. Test each detector individually by pressing the test button. If one does not sound, it may have a tripped breaker, a dead backup battery, or a faulty unit. Check the breaker first—if it is in the off position, flip it back on. If the detector still does not work, the unit itself may need replacing.
Frequently Asked Questions
Can I use only battery-powered detectors in a new home?
It depends on your local building code. Many new homes are required to have hardwired detectors in bedrooms and hallways, but some jurisdictions allow all battery-powered. Check with your local building department or fire marshal before you buy. If you are building, the contractor should know the requirement.
How often do I really need to replace batteries in a smoke detector?
Most manufacturers recommend replacing batteries once a year, though some detectors last longer. The safest approach is to replace them when you change your clocks for daylight saving time—twice a year—or whenever the detector chirps to signal a low battery. Do not ignore the chirp; it means the battery is nearly dead.
What happens if the power goes out and I have a hardwired detector?
The backup battery takes over when ready. The detector will keep working and will sound an alarm if it detects smoke. The backup battery typically lasts three to five years, so it is not a permanent solution, but it covers you through most power outages.
Do wireless interconnected battery detectors work as well as hardwired ones?
Yes, wireless interconnected detectors work just as well for alerting you to smoke. The only difference is that they rely on batteries and radio signals instead of electrical wiring. Make sure all units are the same brand or certified compatible, and test the wireless connection monthly by pressing the test button on one unit and confirming the others sound.
Can I install a hardwired smoke detector myself?
No. Hardwired detectors require connecting to your home's electrical system, which is a job for a licensed electrician. Doing it yourself risks electrical shock or fire. Battery-powered detectors you can install yourself with just screws or adhesive strips.