Where a home battery can go: the code limits by location
Under the 2025 California Residential Code, in force since January 1, 2026, each home battery unit may hold up to 20 kWh. Totals are capped by location: 40 kWh in a closet or basement, 80 kWh in an attached garage, up to 600 kWh per property, and never in a bedroom. The limits come from the same table as the state fire code, which is based on NFPA 855.
Building codes decide where a home battery can sit, how much energy can be stored in each spot, and what safety equipment must go with it. This page explains the California rules in force since January 1, 2026, because they are the newest residential battery rules the research set could read in full. The rules were checked as of November 29, 2026. Local building and fire officials review the permit and decide how the code applies to a specific home.
Which code sets the rules for a home battery in California?
The 2025 California Residential Code, Section R330 "Energy Storage Systems," took effect on January 1, 2026 (CRC 2025 R330). It replaced Section R328 of the 2022 code, which no longer applies (CRC 2022 R328). In the 2025 code, section R328 now covers a different topic, and battery rules sit in R330 (CRC 2025).
The California Fire Code has a matching section for homes, 1207.11. Its location table carries the note "Material based on NFPA 855 2023 Ed." (CFC 2025 §1207.11.4). NFPA 855 is the national standard for installing stationary energy storage systems. Its current edition is 2026, and the next is planned for 2029 (NFPA 855 document page). The changes the 2026 edition made to home rules were not reviewed for this page.
How much battery capacity is allowed in each location?
Each battery unit may hold up to 20 kilowatt-hours (kWh), and the total on one property may not exceed 600 kWh (CRC 2025 R330.5). Within that, Table R330.5 sets a total for each type of location (CRC 2025 Table R330.5):
| Location | Total allowed | Higher total, and the condition for it |
|---|---|---|
| Utility closet, basement, storage or utility space | 40 kWh | None |
| Attached garage | 80 kWh | None |
| On an outside wall, or within 3 feet of one | 100 kWh | 200 kWh if the wall and eaves are noncombustible 5 feet to each side, 1 foot below and 8 feet above |
| Detached garage or accessory building | 200 kWh | 600 kWh if at least 10 feet from lot lines and homes |
| On the ground outdoors | 200 kWh (at least 3 feet away) | 600 kWh if at least 10 feet away |
The same table appears in the fire code as Table 1207.11.4 (CFC 2025). For comparison, the 2022 code allowed 40 kWh in closets and basements and 80 kWh in garages, on outside walls and on the ground, with nothing higher for a home without going to the fire code (CRC 2022 R328.5).
Where is a home battery not allowed?
A battery may not go in a sleeping room or in a closet that opens into a sleeping room (CRC 2025 R330.4). Allowed locations are a detached garage or accessory building, an attached garage separated from the home as Section R302.6 requires, outdoors at least 3 feet from doors and windows, and utility closets, basements and storage or utility spaces with finished walls and ceilings (CRC 2025 R330.4). Where the framing is wood, the finish is 5/8-inch Type X gypsum board. An outdoor unit can be closer than 3 feet to a door or window only when its UL 9540 listing and the maker's instructions allow it (CRC 2025 R330.4).
Battery systems that can release toxic gases are not allowed in homes at all (CRC 2025 R330.12).
How far apart must battery units be?
Units must be at least 3 feet apart unless the product's listing or the maker's instructions allow less (CRC 2025 R330). The fire code allows closer spacing when it is backed by large-scale fire testing (CFC 2025 §1207.11.2.1).
One cross-reference does not line up. R330.5 points to fire code Section 1207.1.5 for large-scale fire testing, but in the 2025 fire code that test is in 1207.1.7, and 1207.1.5 lists the documents needed for a permit (CFC 2025). The local fire official decides how the reference is read.
What safety equipment does the code require?
Three rules apply in addition to the location limits (CRC 2025 R330.7 and R330.8):
- Detection. A smoke alarm is required in the room with the battery. Where a smoke alarm cannot be used, a heat detector linked to the home's smoke alarms is required.
- Vehicle impact. In a garage, a battery in the path of a car needs protection such as bollards or wheel barriers, covering the width of the door opening and a height of 48 inches.
- Permit documents. The fire code lists what the permit set includes, such as the site plan, the number and type of units, the specifications, the battery management system, signs, and any suppression or ventilation systems (CFC 2025 §1207.1.5).
The national electrical code is changing too. In the 2026 National Electrical Code, Article 480 covers all stationary batteries, not only standby ones, and section 480.14 requires overcharge protection, according to a Minnesota state summary of the changes (Minnesota DLI NEC 2026 committee).
What listing does a home battery need?
An energy storage system must be listed to UL 9540 (CRC 2025 R330.2). UL Solutions describes three related documents (UL Solutions):
| Document | What it is |
|---|---|
| UL 9540 | Safety certification of the whole energy storage system |
| UL 9540A | Test method for how thermal runaway spreads; not a certification |
| UL 9540B | Outline for large-scale fire testing of home systems |
Section R330.1 lists two exceptions: systems listed to UL 9540 for use in homes and installed by the instructions and the California Electrical Code, and systems under 1 kWh (CRC 2025 R330.1). Used electric vehicle batteries that are not listed may be allowed outdoors or in a shed at least 5 feet from walls, lot lines and public ways, with the building official's approval (CRC 2025 R330.2).
The California Energy Commission (CEC) list of storage systems shows the UL 9540 edition for each model. Among models of 40 kWh or less, about 58% were certified to the third edition (2023 or 2025), as of November 23, 2026 (CEC Energy Storage System List). The median listed size in that group was 16.6 kWh (CEC Energy Storage System List).
Why are garage batteries treated so carefully?
Fire research shows how home battery fires behave in enclosed spaces. A study by the UL Fire Safety Research Institute and the International Association of Fire Fighters, funded by the Department of Energy, counted at least 60 documented home battery fires worldwide, 19 in 2022 and 21 in 2023 as of its publication (UL FSRI and IAFF, December 4, 2023). These counts come from public reports, not a registry.
In tests with three 17 kWh units in a two-car garage, gases from the batteries ignited in one test at 36 minutes 26 seconds (UL FSRI and IAFF). The study found that a gas explosion in a garage can happen before outward signs of trouble, and that portable gas detectors were not reliable warning tools (UL FSRI and IAFF). Those findings help explain the detector, spacing and vehicle-impact rules.
Do new California homes have to include a battery?
No, but they must be ready for one. The 2025 California Energy Code requires new one- and two-family homes with service over 125 amps to be "battery energy storage system ready" (Title 24 Part 6, §150.0(s)). That means either a ready connection with at least 60 amps of backup capacity and at least four backed-up circuits, such as the refrigerator, a light near an exit and a bedroom outlet, or a raceway of at least 1 inch to a labeled subpanel. The main panel busbar must be at least 225 amps, with space for a transfer switch within 3 feet (Title 24 Part 6, §150.0(s)). The requirement does not apply if a battery is installed. The required solar size on a new home can be cut by 25% when a battery of at least 7.5 kWh is installed (Title 24 Part 6).
Do other states follow the same limits?
Not necessarily. California's 2025 residential code is based on the 2024 International Residential Code (CRC 2025). According to the International Code Council's April 2026 adoption chart, only California, Georgia, Iowa, Mississippi, New York and North Dakota had adopted the 2024 residential code statewide; many states use the 2021, 2018 or 2015 editions, and some leave adoption to local governments (ICC adoption chart, April 2026). Section numbers and limits can differ by edition. The building department that issues the permit can say which edition applies to an address.
For how common home batteries are by utility, see the utilities ranked by solar battery share. For California rules and programs, see the California solar guide.
Questions people ask
How big can a home battery be?
Under the 2025 California Residential Code, each battery unit may hold up to 20 kWh. The total on one property may not exceed 600 kWh, and lower totals apply inside the house and in an attached garage.
Can a home battery go in a bedroom?
No. Section R330.4 of the 2025 California Residential Code does not allow energy storage systems in sleeping rooms or in closets that open into sleeping rooms.
How much battery capacity can go in an attached garage?
Up to 80 kWh in total, under Table R330.5 of the 2025 California Residential Code. The code also requires protection from vehicle impact, such as bollards or wheel barriers, where a battery sits in the path of a car.
Does a home battery need a UL listing?
Yes. Section R330.2 of the 2025 California Residential Code requires energy storage systems to be listed to UL 9540. UL 9540A is a test method, not a certification.
Do other states use the same limits?
California's code is based on the 2024 International Residential Code. Other states adopt different editions on their own schedule, so the local building department is the place to confirm which rules apply.
Sources
- 2025 California Residential Code, Section R330 Energy Storage Systems (Title 24, Part 2.5) — California Building Standards Commission (via UpCodes viewer), 2026-01-01
- 2025 California Fire Code, Chapter 12 Energy Systems, Section 1207 (Title 24, Part 9) — California Office of the State Fire Marshal (via UpCodes viewer), 2026-01-01
- 2022 California Residential Code, Section R328 (superseded) — California Building Standards Commission (via UpCodes viewer), 2023-01-01
- NFPA 855, Standard for the Installation of Stationary Energy Storage Systems (document information) — National Fire Protection Association, 2026-09-25
- Energy storage system testing and certification (UL 9540, 9540A, 9540B) — UL Solutions, 2026-11-29
- Considerations for Fire Service Response to Residential Battery Energy Storage System Incidents — UL Fire Safety Research Institute, IAFF and UL Solutions (DOE award DE-EE0009454), via OSTI, 2023-12-04
- 2025 Building Energy Efficiency Standards (Title 24, Part 6), CEC-400-2025-010-F — California Energy Commission, 2025-07
- Energy Storage System List (Full Data) — California Energy Commission, 2026-11-23
- NEC 2026 Adoption Review Committee, agendas and minutes — Minnesota Department of Labor and Industry, 2025-10-28
- International Codes: Adoption by State (April 2026) — International Code Council (copy hosted by MiTek), 2026-04