☀️SolarLedger
NFPA 855 Chapter 15 (One- and Two-Family Dwellings) & International Residential Code (IRC) Section R328

NFPA 855 & IRC R328 Residential Battery Spacing, 3-Foot Setback & kWh Cap Rules

Master guide to passing municipal fire department and building department ESS inspections under NFPA 855 and IRC Section R328: the 20kWh/40kWh/80kWh capacity thresholds, the 3-foot door/window clearance rule, and how UL 9540A testing lets you stack batteries closer than 36 inches.

Capacity / Threshold Rule
20 kWh Max per Single Unit | 40 kWh Max Inside Garage/Utility Room | 80 kWh Max Exterior Wall/Outdoor
Required Clearance / Hardware Spec
36 Inches (3 Feet) Between ESS Units & From Doors/Windows (Reduced to 6–12" with UL 9540A Large-Scale Fire Test)

1. Code Compliance Rules, UL 9540A Exceptions & Battery Physics

CODE 1

Rule 1 — The 20 kWh Individual Unit Cap & 40 kWh Indoor / 80 kWh Outdoor Aggregate Limits (NFPA 855 § 15.6 / IRC R328.4): Under baseline NFPA 855 and IRC Section R328, a single residential Energy Storage System (ESS) unit cannot exceed 20 kWh nominal rating unless specifically listed and approved via UL 9540A large-scale fire testing. Aggregate storage is capped at 40 kWh inside an attached garage or utility closet, and 80 kWh on an exterior wall or detached outdoor pad—before triggering commercial NFPA 855 Chapter 4 fire-suppression engineering!

CODE 2

Rule 2 — The 3-Foot (36-Inch) Unit-to-Unit Spacing Rule & How UL 9540A Overrides It: Standard code states that individual battery units must be separated from each other by at least 3 feet (36 inches). However, both NFPA 855 (§ 15.6.2) and IRC R328.4 explicitly allow reduced spacing (down to 3–6 inches on EG4 PowerPro, Tesla Powerwall 3, and Enphase IQ Battery 5P, or vertical stacking on EcoFlow DELTA Pro Ultra) when the manufacturer provides a certified UL 9540A Unit-Level Test Report proving zero unit-to-unit thermal runaway propagation!

CODE 3

Rule 3 — The 3-Foot Door, Window & Egress Setback on Exterior Walls: When mounting batteries on an exterior wall, building inspectors require 36 inches (3 feet) of clearance from any operable window, door, or HVAC fresh-air intake into the dwelling—unless the battery’s UL 9540A report specifically certifies reduced window/egress clearance.

CODE 4

Rule 4 — Prohibited Residential Locations (Never Install Inside Living Areas, Bedrooms, or Closets Opening to Sleeping Rooms): NFPA 855 § 15.4 strictly prohibits installing lithium-ion ESS inside bedrooms, living rooms, crawlspaces, attics, or closets that open into sleeping areas. Permitted residential locations are limited to: (a) Attached/detached garages, (b) Exterior walls, (c) Outdoor ground pads, and (d) Enclosed utility rooms finished with 5/8-inch Type X fire-rated drywall.

2. AHJ Inspection Clearance & Engineering Reference Diagram

Compare UL 9540A LFP Batteries →
NFPA 855 / IRC R328 RESIDENTIAL BATTERY PLACEMENT & CLEARANCE DIAGRAM
===================================================================================
          [Operable House Window]             [Exterior Egress Door]
                     │                                   │
                     ◄──── 36" (3 Ft) Min Setback ───────►
                     ▼                                   ▼
   ┌───────────────────┐               ┌───────────────────┐
   │  ESS Battery #1   │◄─── 36" * ───►│  ESS Battery #2   │  (Max 20 kWh per Unit*)
   │ (UL 9540 Listed)  │               │ (UL 9540 Listed)  │
   └───────────────────┘               └───────────────────┘
   * Reduced to 3"–6" Spacing (or Stacked) When Accompanied by UL 9540A Test Report!

   AGGREGATE CAPACITY CAPS (NFPA 855 § 15.6):
   • Attached Garage / Enclosed Utility Room:  40 kWh Maximum Aggregate
   • Exterior Wall / Outdoor Detached Pad:     80 kWh Maximum Aggregate

NFPA 855 & Solar Fire Safety FAQ

How do I get a building permit for 3 EG4 PowerPro batteries (42.9 kWh) or 3 Tesla Powerwalls (40.5 kWh) inside my garage if the indoor cap is 40 kWh?

Look closely at how your AHJ calculates capacity or mount them on an exterior wall! Under NFPA 855, moving the batteries from the interior garage wall to an exterior wall (or detached garage) doubles the allowed aggregate capacity from 40 kWh to 80 kWh! Furthermore, some jurisdictions measure continuous AC/usable rating rather than gross DC rating, or grant an AHJ variance when you submit the LFP UL 9540A Unit-Level report showing zero flaming propagation.

Does my drywall in the garage have to be upgraded to 5/8-inch Type X Firecode sheetrock behind the battery?

Yes, in almost all jurisdictions adopting IRC R328 / California Residential Code R328: any garage wall or ceiling separating the garage from habitable living space must be surfaced with minimum 5/8-inch Type X gypsum board (or non-combustible cement board / masonry) behind the ESS installation.

Where do I get the UL 9540A certificate to hand to my building inspector so I can space my batteries 6 inches apart?

Download the manufacturer’s official "UL 9540A Executive Summary & Installation Clearance Addendum" (available on the Enphase, EG4 Electronics, Tesla, FranklinWH, and EcoFlow installer portals) and attach it directly to your permit plan set before inspection.

More NFPA 855 & Battery Fire Safety Guides