Batteries & Backup

Home Battery Safety: How to Keep a Solar Battery Safe at Home

Home Battery Safety: How to Keep a Solar Battery Safe at Home

Home batteries are generally safe when they are listed, installed to code and kept clear. Here is what the rules say and what to watch for.

Home battery safety mostly comes down to three things: a battery that is listed to the UL 9540 safety standard, an installation that follows your local fire and building code, and a clear, well-chosen spot that you keep free of clutter. The Electric Power Research Institute (EPRI) says failures are rare, but when they happen they can cause fire or explosion, usually through lithium-ion "thermal runaway," and a wet or damaged unit can also pose a shock hazard.

Key takeaways

  • Choose a battery listed to UL 9540; many codes require it, and UL 9540A fire test data can support reduced spacing.
  • Codes keep batteries out of living spaces and limit how much storage can go in garages, closets and outdoors.
  • Keep at least the manufacturer's clearance, or 3 feet, free of anything that can burn, per EPRI's guidance.
  • Never fight a battery fire with an extinguisher. Leave the home and call 911.
  • Safety does not change the money question: batteries still cost thousands of dollars, so weigh backup and bill savings separately.

How safe are home batteries?

A home battery stores electricity from your solar panels or the grid and releases it later, either during an outage or during expensive peak hours. Most modern home batteries use lithium-ion cells. Several popular models use lithium iron phosphate (LFP) chemistry, including the Enphase IQ Battery 5P and the FranklinWH aPower 2, according to their data sheets.

EPRI's residential storage safety guide says failures are rare but may result in fire or explosion hazards, and that physical damage, such as a car bumping the unit, can cause a failure. The underlying process is usually thermal runaway. The Pacific Northwest National Laboratory (PNNL) explains this as a battery heating up faster than it can shed heat. It can then vent hazardous gases and may ignite or explode. PNNL also notes that battery fires can start from an internal malfunction or from extreme heat or an outside fire nearby.

The good news is that most of the risk is controlled before the battery ever turns on: by the product's listing, the installer's work, and where the battery goes.

Home battery safety standards: UL 9540, 9540A and 9540B

You will see several UL numbers on battery spec sheets. Here is what they mean in plain English.

  • UL 9540 is the safety standard for the whole energy storage system. The 2021 International Residential Code (Section R328.2) requires residential storage systems to be listed and labeled to UL 9540, according to IAEI Magazine.
  • UL 9540A is a fire test procedure. Tesla's documentation describes it as exposing the storage system to a thermal event to see whether it can contain fire and stop it spreading. Tesla notes it became a compulsory requirement for residential systems meant for indoor locations under the second edition of UL 9540. The test data can support requests to use fire-code exceptions that reduce spacing and setback requirements.
  • UL 9540B was released in 2024 at fire marshals' request, according to Solar Power World. It tests residential systems of 20 kWh or smaller installed side by side, stacked, on a wall or under an eave. It is voluntary, but some places, especially California, want it.

As an example of what a spec sheet shows, the FranklinWH aPower 2 datasheet lists UL 9540, UL 9540A and UL 1973 among its certifications. The Enphase IQ Battery 5P data sheet says it was evaluated to UL 9540A for thermal runaway fire propagation. Always ask your installer for the listing documents for the exact model being quoted.

Where code allows a home battery

Location rules are one of the biggest parts of home battery safety. IAEI Magazine explains that Section R328.4 of the 2021 International Residential Code lists the allowed spots: detached and attached garages (separated from living space by code-compliant gypsum wallboard), exterior walls at least 3 feet from doors or windows that open into the home, and enclosed utility closets, basements or storage spaces that meet wall and ceiling covering rules and do not open directly into a bedroom. Living spaces are not on that list. IAEI adds that a unit can only go in a habitable space if it has passed UL 9540A cell-level criteria and is marked as suitable for residential habitable spaces, and the earlier 2018 code banned storage in habitable space outright.

The code also limits how much storage can go in each place. A UL summary of the 2021 residential requirements lists these limits:

Rule (2021 residential code summary)Limit
Maximum size of each unit20 kWh
Spacing between unitsAt least 3 feet, unless a UL 9540A report supports less
Utility closets, basements, storage or utility spaces40 kWh total
Garages, accessory structures, exterior walls, outdoors on the ground80 kWh total
ListingListed and labeled to UL 9540

Local codes differ. California uses its own fire code limits, and San Francisco's fire department publishes higher aggregate limits for some outdoor and detached locations along with heat-alarm rules. Your installer and local permit office decide which version applies. Our guide to the best place to install a home battery covers location choices in more detail.

Home battery safety checklist for the installation

EPRI's guide and the code summaries above point to a short list you can check before and after installation:

  1. Listing: confirm the battery is listed to UL 9540, and ask whether it has UL 9540B test data.
  2. Installer: EPRI recommends a licensed electrician certified by the battery manufacturer, with all components (battery, inverter, controller and solar) confirmed compatible.
  3. Permit and inspection: make sure the job is permitted and inspected. San Francisco, for example, requires a permit for a unit or total capacity over 20 kWh.
  4. Detection: EPRI advises working smoke and heat detectors installed per NFPA 72. Some jurisdictions, like San Francisco, require heat alarms near the battery.
  5. Vehicle protection: in a garage, EPRI suggests keeping the bottom of the unit above hood height or adding barriers.
  6. Surroundings: mount on non-flammable material such as masonry, metal or gypsum, and avoid flood-prone areas, heating equipment and hot south-facing walls in hot climates (EPRI).

Everyday habits that keep a home battery safe

Once the battery is in, most of the work is simple housekeeping:

  • Keep it clear. EPRI recommends keeping the manufacturer's clearance, or at least 3 feet, free of objects and especially flammable materials. Trim plants near outdoor units.
  • Keep it online. Register the battery, connect it to Wi-Fi so it can be monitored, install firmware updates and watch for recalls (EPRI). Tesla's warranty also says it may not honor the full 10-year term if a Powerwall is offline for an extended period.
  • Do not open or move it. Tesla's warranty excludes opening the casing and unauthorized relocation. Any service should go through a qualified technician.
  • Watch the garage. PNNL notes that garages can get much hotter or colder than the rest of the house. Most batteries have an operating range, such as -4°F to 122°F for the Powerwall 3, per Tesla's datasheet.
  • Test your alarms on a regular schedule.

Warning signs and what to do if something goes wrong

EPRI and PNNL give clear, simple steps:

  • Chemical smell or gas: leave the home immediately (EPRI).
  • Smoke or fire: get everyone out and call 911 (EPRI). Tell the fire dispatcher a battery system is involved, and move to a ventilated area upwind, because battery fires release toxic gases (PNNL).
  • Swelling, damage or strange behavior: stop using it and contact the manufacturer's support line or a qualified technician (EPRI).

EPRI is blunt on one point: do not try to stop a battery fire with a fire extinguisher. Keep an extinguisher for ordinary small fires, but a battery in thermal runaway is a job for the fire department.

If you also have rooftop solar, our article on solar panel fire risk and safety explains the separate shutdown features on the solar side.

Safety, cost and warranty: what else to weigh

A safe battery is not automatically a good buy. According to EnergySage marketplace data from the first half of 2026, a typical 13.5 kWh battery cost about $15,647 before incentives. That is a large outlay, so consider what you want it for: backup during outages, lower bills on time-of-use electricity rates, or both.

A note on tax credits: the federal residential clean energy credit (Section 25D) does not apply to expenditures made after December 31, 2025. For this credit, an expenditure counts as made when installation is complete, so a battery finished in 2026 generally does not qualify. State and utility programs may still exist, so check what applies where you live.

Warranty terms are part of the picture too. Tesla's US Powerwall warranty runs 10 years. The Enphase IQ Battery 5P data sheet lists up to 15 years or 6,000 cycles, and FranklinWH lists 15 years or 60 MWh of throughput for the aPower 2. Warranties typically exclude damage from improper installation or unauthorized repairs, which is one more reason to use a qualified, manufacturer-certified installer. For a full look at the value question, see are solar batteries worth it.

Next steps

Before you sign, ask each installer which listing documents they will provide, where they plan to put the battery, and whether the job will be permitted and inspected. You can compare installers in our solar company reviews, and run any quote through the solar quote checker to see whether the price and equipment line up with what you expect.

Frequently asked questions

Is it safe to have a solar battery in my garage?

Garages are an allowed location under the 2021 International Residential Code, with limits on total storage. EPRI advises protecting the unit from vehicles and keeping flammable items at least 3 feet away.

Can a home battery be installed inside my living space?

Generally not. The 2021 International Residential Code lists garages, exterior walls and qualifying utility or storage spaces as allowed locations, and IAEI Magazine notes a unit may go in a habitable space only if it is tested and marked as suitable for that use.

What does UL 9540 mean on a home battery?

UL 9540 is the safety standard for the whole energy storage system. Many codes, including the 2021 International Residential Code, require residential batteries to be listed and labeled to it.

Should I use a fire extinguisher on a burning home battery?

No. EPRI advises against trying to stop a battery fire with an extinguisher. Leave the home, call 911 and tell responders a battery system is involved.

Are LFP batteries safer than other lithium batteries?

Several home batteries use lithium iron phosphate (LFP) cells, but safety depends on the whole system, its listing and its installation. Look for UL 9540 listing and UL 9540A or 9540B test data regardless of chemistry.

Sources

Related guides

Questions and comments

Be the first to ask a question or share your experience.

Comments are checked before they appear. No links or advertising. Guidelines.

Calculators for this topic

More batteries & backup guides

All batteries & backup guides →