Hard-wired smoke alarms are required by building code in most places, but the rule depends on whether you own or rent and when your home was built
A hard-wired smoke alarm is connected directly to your home's electrical system, usually on a circuit breaker, and often has a battery backup. Most building codes require hard-wired alarms in new construction and major renovations. If you are buying a home or doing significant work, your local building inspector will tell you whether hard-wired alarms are mandatory for your project. Existing homes have different rules: some jurisdictions require them only when you sell or do electrical work; others allow battery-only alarms to stay in place indefinitely.
The practical difference matters. Hard-wired alarms do not need battery changes, they communicate with each other (so one alarm triggers all of them), and they keep working during power outages if they have battery backup. Battery-only alarms are cheaper to install, require no electrician, and work in rental units where you cannot modify wiring. Neither type is "better"—the code tells you which one your situation requires.
Key Takeaways
- New homes and major renovations almost always require hard-wired smoke alarms under building code, but existing homes may be allowed to keep battery-only models.
- Your local building department or fire marshal's office can tell you what your specific home requires based on when it was built and what work you are doing.
- Hard-wired alarms with battery backup do not need manual battery changes and alert all connected alarms at once, while battery-only alarms are cheaper and easier to install in rentals.
- If you are renting, check your lease and local tenant laws—your landlord may be required to install and maintain hard-wired alarms, or you may be allowed to use battery models.
What building code requires in new construction
Building codes in all 50 states require hard-wired, interconnected smoke alarms in new homes. "Interconnected" means the alarms are wired together so that when one detects smoke, all of them sound. This is a safety feature: if the alarm in your basement goes off, you hear it upstairs. Battery-only alarms cannot do this unless they are wireless models with their own radio frequency, which are more expensive.
The code also specifies where alarms must go: inside every bedroom, outside sleeping areas, and on every level of the house. A single alarm in the hallway is not enough. Hard-wired alarms satisfy this requirement more reliably because they do not depend on someone remembering to buy and install batteries.
Rules for existing homes and renovations
Existing homes built before hard-wired alarms became standard (timing varies by state, but generally before the 1990s) are often grandfathered in—meaning you do not have to upgrade to hard-wired alarms just because you own the home. However, many states require hard-wired alarms when you sell the home, when you do electrical work, or when you finish a basement or add a room.
Check with your local building department or fire marshal before starting any renovation. Some jurisdictions require hard-wired alarms for any work that touches the electrical system; others only require them for major projects. A small bathroom remodel might not trigger the requirement, but adding a bedroom almost certainly will. The inspector will tell you at the permit stage, not after the work is done.
Hard-wired alarms with battery backup
Most hard-wired alarms sold today have a battery backup—usually a 9-volt battery—that keeps the alarm working if the power goes out. This battery lasts several years and the alarm will chirp to remind you when it is low, just like a battery-only alarm does. The difference is that you are not relying on the battery as the primary power source.
The battery backup is important because smoke does not wait for daylight or a convenient time. If a fire starts at night during a power outage, a hard-wired alarm with dead batteries would not work. The battery backup solves this problem. You still need to test the alarm monthly and replace the battery when it chirps, but the alarm will not fail silently the way a battery-only alarm can if someone forgets to change it.
When battery-only alarms are allowed
Battery-only alarms are permitted in existing homes in most places, as long as the home was built before hard-wired alarms became code-required. They are also the practical choice in rental units, where you cannot modify the building's electrical system without the landlord's permission. Many states have tenant laws that require landlords to provide and maintain hard-wired alarms, but if yours does not, battery-only alarms are a legal alternative.
Battery-only alarms are also cheaper upfront—usually $15 to $40 per unit versus $50 to $150 for a hard-wired alarm plus installation. If you are renting or living in a home you plan to leave soon, the lower cost makes sense. Just remember that you are responsible for checking the batteries twice a year (many people do it when clocks change for daylight saving time) and replacing them when the alarm chirps.
How to find out what your home requires
Call your local building department or fire marshal's office and describe your home: the year it was built, whether you own or rent, and what work you plan to do. They will tell you whether hard-wired alarms are required. If you are buying a home, the home inspector's report will usually flag missing or non-compliant alarms, and the seller may be required to fix them before closing.
If you are renting, check your lease for smoke alarm requirements and contact your local tenant rights organization or housing authority. Many states require landlords to install hard-wired alarms in rental units, and some require them to maintain them at no cost to the tenant. If your landlord has not installed them and the law requires it, you may have the right to withhold rent or break the lease.
Installation and cost
Hard-wired alarms require an electrician to run wiring and connect them to a circuit breaker, which costs $150 to $400 per alarm depending on how far the wiring has to run and your local labor rates. If you are doing a renovation and already have an electrician on site, adding hard-wired alarms to the project is cheaper than hiring one separately. Some jurisdictions offer rebates or grants for upgrading to hard-wired alarms, especially in older neighborhoods—ask your fire department.
Battery-only alarms cost $15 to $40 and take 10 minutes to install: drill a hole, screw in the bracket, and snap the alarm on. No electrician needed. If you are renting or in a temporary situation, this is the faster and cheaper route. Just make sure you buy alarms that meet the current standard (look for UL 217 on the package) and install them in the right locations.
Frequently Asked Questions
Can I use wireless battery alarms instead of hard-wired ones?
Wireless alarms that communicate by radio frequency can meet code in some jurisdictions, but check with your building department first. They are more expensive than hard-wired alarms and still require battery changes. Hard-wired alarms are the standard code requirement because they are more reliable and do not depend on batteries or radio signals.
What happens if I do not install hard-wired alarms when code requires them?
You may not pass a final building inspection, which means you cannot legally occupy the space or sell the home. Insurance may also deny claims if a fire occurs and the required alarms were not installed. Building departments can also issue citations and fines. It is worth doing it right the first time.
Do I need to replace hard-wired alarms that are more than 10 years old?
Yes. Smoke alarms have a lifespan of about 10 years, and manufacturers print the date on the back. After 10 years, the sensors become less reliable. Replace the entire unit, not just the battery. This applies to both hard-wired and battery-only alarms.
If my landlord installed hard-wired alarms, am I responsible for battery changes?
No. If the landlord installed and owns the alarms, they are responsible for maintenance, including battery changes. If you installed battery-only alarms yourself as a tenant, you are responsible for them. Check your lease or ask your landlord in writing to clarify who maintains what.
Can I install hard-wired alarms myself, or do I need a licensed electrician?
Most building codes require a licensed electrician to install hard-wired alarms because they involve the electrical panel. Doing it yourself may void your homeowner's insurance and will not pass inspection. Hire a licensed electrician—it is a safety issue and a code requirement.