What's actually in NFPA 855 (the indoor battery code)
NFPA 855 "Standard for the Installation of Stationary Energy Storage Systems" is the master safety code for residential and commercial battery storage in the US. Adopted (or referenced) by most state and local building/fire codes since 2020. The 2023 edition is the current revision.
Residential indoor battery limits (NFPA 855 + IRC R328)
| Location | Max Energy | Notes |
|---|---|---|
| Garage (attached or detached) | 40 kWh | Single most common location. Listed UL 9540 systems only. |
| Utility closet, storage/utility space | 40 kWh | Closet must be separated by approved wall/ceiling assembly. |
| Basement (finished or unfinished) | 40 kWh | Common in cold climates where outdoor install impractical. |
| Outdoor wall-mount | 80 kWh (no aggregate limit on most setups) | Setback to property line varies by AHJ (3-5 ft typical). |
| Bedroom, living room, kitchen, dining | NOT ALLOWED | No batteries in habitable spaces. |
| Sleeping room of detached one/two-family dwellings | NOT ALLOWED | Per NFPA 855 9.4 / IRC R328.6. |
| Attic | Generally NOT ALLOWED | Most AHJs prohibit due to thermal/fire access concerns. |
Required separation between battery units
- Each individual ESS unit may be up to 20 kWh (per NFPA 855 9.5.1).
- Multiple units must be separated by 3 ft horizontally OR be tested as a group via UL 9540A.
- UL 9540A-tested systems can be installed in groups without 3 ft separation. Most major brands (Tesla Powerwall 3, Enphase IQ Battery 5P, FranklinWH, Generac PWRcell) are UL 9540A tested.
Required clearances
- 3 ft from doorways (any door, including garage door).
- 3 ft from windows that open into habitable spaces.
- 3 ft from HVAC return air openings.
- 5 ft from gas meters / propane tanks / fuel-fired appliances.
- 3 ft from combustible storage (paint, gasoline, propane cylinders, lumber).
- 10 ft from emergency exits in commercial settings; usually 3 ft for residential.
Required protections
- Smoke detector in the room (or outside the closet door).
- Heat detector connected to building fire alarm in commercial.
- Sprinklers required in commercial; not residential (per IRC R328).
- Listed UL 9540 system (the energy storage system as a whole).
- UL 9540A cell-level thermal-runaway test report kept on site or referenced in installation documentation.
- Posted signage indicating "Energy Storage System" + manufacturer + kWh.
- Means of disconnection labeled at the AC and DC sides.
UL 9540 vs UL 9540A — what's the difference?
- UL 9540: the listing standard for the complete energy storage system. Equivalent to "UL listed" for batteries. Mandatory for code compliance.
- UL 9540A: a specific thermal-runaway propagation test. Tests whether one cell going into thermal runaway will propagate to neighboring cells. Required documentation for most code-compliant installs since 2020.
- Together: UL 9540 says "this product is listed and safe to install." UL 9540A says "we tested how it fails — it didn't burn down the test enclosure."
Permit / inspection process for indoor batteries
- Building permit + electrical permit. Both usually required.
- Plan review. AHJ checks: location compliance, setback to doors/windows, kWh limits, listed UL 9540 product, UL 9540A test report.
- Rough-in inspection (mid-install). Wiring, conduit, mechanical mounting before drywall closes up.
- Final inspection. Battery installed, signs posted, smoke detector verified, disconnect labeled.
- Fire department review. Some AHJs require fire marshal sign-off on plans for >20 kWh installations.
What changes between residential and commercial
- Residential (1- and 2-family dwellings): follows IRC R328 + NFPA 855. Generally simpler — up to 80 kWh outdoor / 40 kWh per location indoor. Sprinklers usually not required.
- Multi-family / commercial: follows IBC + NFPA 855. Requires sprinklers, fire detection, alarm panel integration, elevated permit fees, fire marshal review.
- Group R (apartments/condos): may have stricter aggregate limits per fire area, often 240 kWh for full fire-rated separation.
State/local variations to know
- California: CRC adopts NFPA 855. Some AHJs (LA, SF) have additional fire department permitting requirements.
- New York: NYC has a stricter local code (FDNY rules) for batteries in tall buildings; residential 1-2 family follows IRC.
- Texas: mostly follows NFPA 855 unmodified; CenterPoint (Houston) and Oncor (Dallas) have their own equipment lists.
- Florida: follows FBC which references NFPA 855; some counties (Miami-Dade) require hurricane-rated wall mounting.
- Massachusetts: 527 CMR adopts NFPA 855 with state amendments.
- Hawaii: follows NFPA 855 + state HRS additions for tropical climate.
Frequently asked questions
Can I put a Powerwall in my bedroom closet?
No. NFPA 855 / IRC R328 prohibit batteries in any sleeping room or in closets that open directly into one. Wall-mount in garage, basement, utility closet, or outdoor.
How do I check if my battery is UL 9540 listed?
Look for the UL mark + "9540" on the product nameplate. The manufacturer's spec sheet should also list "UL 9540 listed" and reference the UL 9540A test report ID.
What about a Tesla Powerwall mounted on my exterior garage wall?
Generally fine if 3 ft from doors/windows and 5 ft from gas meter / propane line. Most installers handle this without variance. Tesla Powerwall 3 is UL 9540 listed and UL 9540A tested.
Can I have 80 kWh of indoor battery (4 Powerwalls)?
40 kWh per location is the residential indoor cap. Beyond 40 kWh you need to spread across multiple separate locations (e.g., 40 in basement + 40 in garage), or move to outdoor wall-mount which has higher limits.
What about LiFePO4 vs NMC batteries — same rules?
Same NFPA 855 rules apply, but LiFePO4 (LFP) chemistry is less prone to thermal runaway. Most major residential batteries (Powerwall 3, Enphase 5P, FranklinWH, Tesla, EG4) are now LFP. NMC chemistry is less common and has the same code-compliance requirements but slightly more energetic failure mode.