Going off grid with solar is legal in most of the United States, but the answer usually comes from your county or city, not the federal government. The real hurdles are the certificate of occupancy, electrical permits, local building codes, and sometimes your HOA. Here is what to check before you cut the cord.
- No federal law requires a home to have a utility connection. Legality is decided by state law, local building codes, and your utility’s tariff.
- Disconnecting an already-connected home can affect its certificate of occupancy in some jurisdictions.
- Off-grid systems still need electrical permits and must meet the National Electrical Code (NEC Articles 690 and 706).
- HOAs and local ordinances can restrict visible panels, ground mounts, and battery sheds even in states with solar-access laws.
- Rural counties rarely object; cities add more hurdles. Rules change, so verify your state’s policies at dsireusa.org.
The Short Answer
Going off grid means one of two things: physically disconnecting an existing utility service, or building a home that never had one. The law treats these very differently, and most of the legal drama lives in the first.
Generating your own electricity is not illegal in the United States; no federal statute forces a homeowner to buy power from a utility. The complications are all local: habitability and building codes, the permit process, your utility’s disconnection rules, and HOA covenants. Off-grid trouble stories are almost always about one of those local layers, not a state ban on solar.
Many homeowners never need to disconnect at all: a grid-tied system with batteries covers outages while the grid handles cloudy weeks, as our guide to solar panels during a power outage explains. Full disconnection makes the most sense for remote properties.
Disconnecting a Home Already on the Grid
Leave through a formal service disconnection, not by stopping payment. Call your utility and request a disconnect: they take a final meter reading, remove the meter, and often disconnect the service drop. Stopping payment without a formal request gets you a nonpayment disconnect, which leaves the account open and base charges accruing. Get the procedure and fees in writing first.
Some local codes define a habitable dwelling as one served by an approved electrical system. A permitted off-grid solar system usually satisfies that, since the requirement is about safe service, not who sells it. The risk sits with homes that disconnect without permitting the replacement system.
Price the reverse trip before you commit. Reconnecting later typically runs from a few hundred to several thousand dollars, and far more for a rural property distant from the nearest lines.
Homes That Were Never Connected
A cabin, homestead, or new build that never had utility service skips almost all of this drama. You are not breaking a contract or touching the utility’s equipment; you are simply building a home whose electrical system happens to be solar.
This is why off-grid solar is routine in rural America. County building departments in places like rural Texas, Arizona, Nevada, and Colorado process off-grid electrical permits regularly. The system gets permitted and inspected like any other electrical work, the inspector signs off, and life goes on. If you are sizing a system for this kind of property, our off-grid cabin sizing guide walks through the panel, battery, and inverter math for weekend versus full-time use.
The same habitability logic applies to water and waste. In 2014, a Cape Coral, Florida homeowner made national news after the city cited her for living without utility connections, mostly over water and sewer service under local codes. Local codes, written around conventional hookups, are the real battleground.
Two practical hurdles remain even where the law is friendly: some lenders hesitate to finance homes without utility service, and a permitted, inspected system is far easier to insure than an unpermitted one.
Permits and Electrical Codes Still Apply
Going off grid does not mean leaving the electrical code behind. In most jurisdictions you need an electrical permit for a solar-plus-storage system whether or not the utility is involved, and the installation must meet the National Electrical Code as adopted by your state or county. The relevant articles are Article 690 for photovoltaic systems and Article 706 for energy storage systems. Your local Authority Having Jurisdiction, usually the city or county building department, inspects the work, not the utility.
Equipment listings matter. Inspectors typically require inverters listed to UL 1741 and battery systems listed to UL 9540. This is one reason the cheapest no-name battery packs can become expensive: if the inspector will not pass them, you buy twice. Confirm UL 1741 and UL 9540 listings on the spec sheet before you purchase.
Battery placement has its own code layer: current residential codes cap individual battery units at 20 kWh and limit total storage in certain locations, with spacing and garage rules. Rooftop PV must meet rapid-shutdown rules under NEC 690.12 and fire setbacks. It is the same safety framework that applies to every solar installation.
One genuine advantage of full disconnection: there is no interconnection agreement, no utility application queue, and no export approval to wait for. Your timeline is the permit office and the inspection schedule, nothing else.
HOAs and Local Ordinances
If your property is in a homeowners association, read the CC&Rs before you buy a single panel. Off-grid setups create more surface area for conflict than a standard rooftop array: ground-mounted panels, battery sheds, generator pads, and visible conduit all give an architectural committee something to object to.
Many states have solar-access laws that limit what HOAs can prohibit, with California, Texas, and Arizona the well-known examples. The caveat is that these laws were generally written to protect rooftop solar, and they do not always clearly cover ground-mounted arrays, battery enclosures, or the act of disconnecting from the grid. An HOA that cannot stop your rooftop panels might still fight your ground mount or equipment shed. Rules change, so verify your state’s current statute at dsireusa.org and read your own CC&Rs with the specific equipment in mind.
How States Handle It: Three Patterns
The rules live at the state and local level, so there is no single national answer. Three rough patterns have emerged; treat them as patterns, not statutes.
| Pattern | What it looks like | Typical states and areas | What to verify |
|---|---|---|---|
| Rural-friendly | Counties process off-grid permits routinely | Rural Texas, Arizona, Nevada, Colorado, Alaska, much of the rural West and Midwest | Well and septic rules; fire-district requirements |
| Regulated but workable | Fully legal, with strict electrical and fire codes | California, Oregon, Washington, New York, New England | Battery placement and fire-code limits; electrician licensing rules |
| Watch out | Local habitability codes used against disconnected homes | Parts of Florida and some Southeastern jurisdictions | Certificate-of-occupancy language; reconnection costs |
Urban versus rural predicts the hassle better than the state line: rural departments see off-grid cabins regularly, urban ones rarely do. Confirm what applies to you through building-code resources at energy.gov and state policy details at DSIRE.
How to Check Before You Cut the Cord
1. Call the building department. Ask whether a permitted off-grid electrical system satisfies the certificate-of-occupancy requirements, and what the electrical permit process looks like.
2. Size the system first. The most common off-grid failure is mathematical: a system too small for the loads. See how many batteries you need off grid and 5 kW off-grid system costs for real numbers.
3. Read the utility tariff. Ask for the formal disconnection procedure, the fees, and what reconnection would cost if you changed your mind.
4. Read your CC&Rs and local ordinances. Check HOA rules for ground mounts and outbuildings, and municipal rules for setbacks and generator noise.
5. Check insurance and financing. Confirm your homeowner’s carrier will cover the planned system, and understand how the lack of utility service affects resale.
6. Get permits and pass inspection. Pull the electrical permit, install to code with listed equipment, and get the final sign-off. Our permit requirements guide and installer questions help you vet contractors.
Pros of full grid disconnect
- No monthly minimum charges or rate hikes from the utility
- No interconnection application, utility approval queue, or export limits
- Full energy independence and immunity to grid outages
Cons of full grid disconnect
- Every cloudy week is your problem: batteries or a generator must cover it
- Reconnection later can cost thousands if the service drop was removed
- Possible friction with occupancy rules, insurers, lenders, and buyers
Is it legal to go off grid with solar in the United States?
In most places, yes. No federal law requires utility service, and generating your own power is legal. The limits come from local building codes, permits, HOA rules, and your utility’s disconnection procedure.
Can my utility stop me from disconnecting?
Generally no, but it controls its equipment and tariff. It can charge disconnection and reconnection fees, bill minimum charges while the drop remains, and require a formal request. Get the procedure in writing.
Do I still need a permit for an off-grid solar system?
In most jurisdictions, yes. Off-grid PV and battery systems must meet the National Electrical Code (Articles 690 and 706) and pass local inspection, typically with UL-listed inverters and batteries.
Will going off grid affect my home insurance or mortgage?
It can complicate both. A permitted, inspected system with listed equipment is far easier to insure and finance than an unpermitted one. Talk to your carrier and lender first.
Can my HOA stop me from going off grid?
It depends on your state and your CC&Rs. State solar-access laws limit HOA bans on rooftop solar in many states, but they do not always cover ground-mounted arrays, battery sheds, or disconnection itself. Verify your state’s current law at dsireusa.org.
What is the hardest part of going off grid legally?
Usually it is not the law, it is the math. Most failed off-grid attempts come from undersized batteries, not from code enforcement.
Ready to compare real solar prices?
Get free, no-pressure quotes from vetted local installers and see what solar costs for your roof.






