Home Battery Installation Location Code: Where It Can Go
Under the model codes most US jurisdictions build on, a home battery can usually go in a garage, on an outside wall at least 3 feet from doors and windows into the home, in a detached structure, or in an enclosed utility space such as a basement or utility closet. It cannot go in living space, and bedrooms are the clearest example. The home battery installation location code that actually applies to your house is whatever your state and local building department have adopted, and the placement is designed by a licensed electrician and approved through a permit.
This page covers US homes only and explains the rules so you can read a proposal intelligently. It is not installation guidance. Mounting, wiring and connecting a battery is licensed electrician work, done under a permit and inspected.
Home battery installation location code: which rules apply
There is no single national rule. Two model documents set the pattern, and each state and city decides which edition to adopt and what to change:
- The International Residential Code (IRC), which from its 2021 edition has a section on energy storage systems (Section R328) covering listing, allowed locations, size limits and fire detection. Some states renumber or amend it.
- NFPA 855, the National Fire Protection Association's standard for installing stationary energy storage systems. HeatSpring's summary of the 2023 edition (published September 11, 2024, read September 25, 2026) describes its chapter on one- and two-family dwellings as allowing four kinds of location: attached or detached garages, detached garages or accessory structures, outdoor walls with a 3-foot clearance, and enclosed utility closets and storage or utility spaces where approved by the local authority.
Your local building department, sometimes with the fire marshal, is the "authority having jurisdiction". It decides which edition applies to your permit and what local amendments sit on top. Two neighboring towns can answer the same question differently, and a rule that changed in the last code cycle may not have reached your town yet. Ask the building department directly which edition it enforces before you rely on any summary, including this one.
Where the model codes allow a home battery

The pattern across the model codes and the state code text we read is consistent. A battery is allowed in:
- A detached garage or detached accessory structure, such as a shed built for the purpose.
- An attached garage, provided the garage is separated from the living space the way the building code requires.
- Outdoors, or on the outside face of an exterior wall, at least 3 feet from doors and windows that open directly into the home.
- An enclosed utility closet, basement, or storage or utility space inside the home, subject to conditions on how the walls and ceilings are finished.
That fourth location carries a condition people miss. An unfinished basement or utility room with exposed wood framing may need fire-rated wall and ceiling covering around the battery before it qualifies. That is a construction cost, and it may not be in the battery quote. The hidden costs of solar works the same way: the extras that make an install legal are real line items.
Where a home battery cannot go
Living space is off limits. The location rules are written as a list of allowed places, so anywhere not on the list, including the rooms people live in, is not allowed. UL Solutions, the organization behind the UL 9540 safety standard for energy storage systems, describes the same direction in its Q&A on residential energy storage marking (published November 18, 2021, read September 25, 2026): residential batteries limited to garages, sheds, utility closets, basements and storage spaces, and kept out of habitable and living spaces, with a narrow exception for systems whose cells did not go into thermal runaway in testing.
In practice, that means no battery in a bedroom, a living room, a kitchen or a finished family room. The reasoning is straightforward: if a battery fails, the people most at risk are the ones who are asleep beside it.
A battery that "fits nicely" in a finished room is not a question of taste. If an installer suggests a location inside living space, ask which code section allows it, and confirm the answer with the building department.
Size limits, spacing and the garage rules
Location rules come with limits on how much battery can sit in one place. The UL Solutions Q&A notes that the IRC and NFPA 855 both reference UL 9540 and typically cap individual residential units at 20 kWh of stored energy.
The state fire code text we read, New York State's residential energy storage section as published on UpCodes (read September 25, 2026), sets aggregate limits by location: 40 kWh in utility closets and storage spaces, and 80 kWh in garages, detached structures, on exterior walls and on the ground outside. It also requires individual units to be at least 3 feet apart unless large-scale fire testing documents that less spacing is adequate. Your jurisdiction's numbers may differ by edition, so treat these as the shape of the rule, not your answer.
Garages add two requirements worth knowing before the site survey:
- Vehicle impact protection. Under that same state text, a battery in a location subject to vehicle damage has to be protected by approved barriers, such as bollards. On a crowded garage wall, that can change where the battery goes.
- Fire detection. The same text calls for smoke alarms, and heat detectors interconnected with the smoke alarms where smoke alarms cannot be installed, which is common in garages.
Outdoor installs: the 3-foot rule and the weather
Outdoors solves the living-space problem, but not every outside wall qualifies. The 3-foot clearance from doors and windows into the home rules out a lot of wall. Setbacks from property lines, homeowners association rules and local zoning can remove more.

The weather is the other constraint. Batteries have operating temperature ranges set by the manufacturer, and EnergySage's battery warranty guide (updated September 12, 2024, read September 25, 2026) notes that temperature restrictions and indoor or outdoor location requirements can void warranty coverage if they are not met. A location that satisfies the code can still fail the warranty. In a hot climate, a south-facing wall in full sun, or in a cold one, an unheated shed, deserves a direct question to the installer about the manufacturer's limits.
Who benefits from where the battery ends up
The best location for the installer is often the quickest one: close to the main panel, with a short wire run and easy access. That is not wrong, and a short run can also mean a lower price. But the choice has consequences the homeowner lives with for years: floor space in the garage, a barrier in front of the car, wall work in the basement, or a wall facing the afternoon sun.
A proposal should say where the battery will go and why that spot was chosen. If two installers propose different locations, their prices are not directly comparable until you know what each location requires. Add location to the questions to ask before you sign: the proposed spot, the code basis, any barrier or wall work, and whether that work is in the price.
What stays with the professionals
The homeowner's part is knowing the rules well enough to ask good questions. Everything past that belongs to licensed trades and the permit process:
- A licensed electrician designs and installs the battery, including its location, wiring and connection to the home's electrical system. Do not mount, move or connect a battery yourself, and do not open the main panel.
- The permit and inspection are how the location is approved. Some installers handle permits for you; make sure the contract says so.
- If a battery has already been installed in living space, or somewhere you now suspect does not meet code, contact the building department or the installer rather than moving it. Moving an installed battery is licensed work.
If a utility or state program is paying part of the cost, its rules may add conditions of their own. Home battery rebates in 2026 covers what those programs typically ask for.
FAQ
Can a home battery be installed in a garage?
Usually yes, in the model codes, provided an attached garage is separated from the living space as the building code requires. Garages typically bring extra requirements such as protection from vehicle impact and heat detection. Your local building department decides which edition and amendments apply.
Can a home battery be installed inside the house?
Only in certain spaces. The model codes allow enclosed utility closets, basements and storage or utility spaces, with conditions on the wall and ceiling finish. Living spaces such as bedrooms, living rooms and kitchens are not on the allowed list.
Can a home battery go in a bedroom?
No. Bedrooms are living space, and the location rules keep residential batteries out of living space.
How far from a door or window does an outdoor battery need to be?
The model codes and the state code text we read set at least 3 feet from doors and windows that open directly into the home. Local amendments, setbacks and HOA rules can add more.
Who decides where my home battery goes?
A licensed electrician designs the installation, and your local building department approves it through the permit and inspection. Ask which code section allows the proposed spot.