Home / Trades / Solar install

How rooftop solar and home batteries work

Understand how panels, inverters, batteries and the grid connect, what rapid shutdown and the 120 percent rule are, who is allowed to install solar, and what a homeowner can safely do.

Beginner · 11 min read · Updated December 3, 2026

A rooftop solar system turns sunlight into electricity you use in your home. Any extra flows out to the utility grid or charges a battery. The parts are few, but they carry enough voltage and current to kill, which is why solar is installed by trained, licensed crews under permit.

The parts and how power flows

  1. Solar modules (panels) are made of silicon cells. Light knocks electrons loose and makes direct current (DC), current that flows one way. Modern residential modules are typically 400 watts or more each.
  2. Racking holds the modules to the roof with flashed attachments screwed into the rafters.
  3. Module-level power electronics (MLPE), either microinverters or optimizers, sit under each module on most new homes. They manage each panel separately, so shade on one panel does not drag down the rest, and they make rapid shutdown possible.
  4. The inverter turns DC into alternating current (AC), the kind your home uses. With microinverters, each module has its own. Otherwise one string inverter or a hybrid inverter sits near the panel.
  5. The AC connects to your electrical panel at a breaker or at a special tap.
  6. A battery (most today use lithium iron phosphate, LFP, a safer and longer-lived chemistry) stores energy for later or for outages.
  7. The utility's meter counts power in both directions.
Modules (DC)InverterACMain panelBatteryHome loadsMeterGrid
Sunlight makes DC on the roof. The inverter turns it into AC for the home, the battery and the grid.

Grid-tied, backup and off-grid

Most systems are grid-tied. When the sun is up, your home uses solar first, and the extra goes to the grid. The utility credits you under net metering or a newer net billing plan, which varies a lot by state and utility.

Here is the part that surprises people: a grid-tied system with no battery shuts off during a power outage. This is called anti-islanding. It protects line workers who are repairing the lines from being shocked by your panels. To keep power during an outage you need a battery or other backup system with equipment that disconnects your home from the grid first.

Off-grid systems have no utility connection at all and need much larger batteries. They are less common for homes.

The code rules that shape every install

In the United States, the National Electrical Code (NEC, also called NFPA 70) sets the rules. The 2026 edition is the newest, but each state or city adopts an edition on its own schedule, so the code in force where you are may be older. The main articles are:

  • Article 690: solar photovoltaic (PV) systems.
  • Article 705: connecting any power source, like solar, to the home's wiring and the grid.
  • Article 706: energy storage systems, like home batteries.

Two ideas from these articles come up on every job.

Rapid shutdown lets firefighters make the roof safer. When someone flips the rapid shutdown switch (often the main disconnect or a labeled switch outside), wiring more than 1 foot outside the array must drop to 30 volts or less within 30 seconds, and wiring inside the array must be reduced to safe levels too, typically 80 volts or less, or meet a listed hazard control system. MLPE makes this easy. The 2026 edition kept these performance targets and cleaned up the rules for the switches and labels.

The 120 percent rule limits how much solar can back-feed through a breaker in your main panel. In the common method, 125 percent of the inverter's output current plus the main breaker rating cannot exceed 120 percent of the panel's busbar rating, and the solar breaker goes at the opposite end of the busbar from the main. For a 200 amp panel with a 200 amp main, that leaves room for a 40 amp solar breaker. Bigger systems need another method, such as a supply-side connection or a smaller main breaker, which the designer works out.

Who can install solar

The main industry credentials come from NABCEP (North American Board of Certified Energy Practitioners). The PV Associate is an entry-level credential earned by training or experience plus an exam. The PV Installation Professional is a board certification for experienced installers, with requirements for training hours, completed projects with a decision-making role, and OSHA 10 safety training. Some states and utilities require NABCEP or similar for incentives.

Roof work also falls under OSHA fall protection rules. Crews use anchors, harnesses and lifelines, guardrails or other protection when working 6 feet or more above a lower level.

What a homeowner can safely do

  • Monitor the system in the maker's app. A sudden drop in production can mean a failed microinverter or a tripped breaker. Call your installer.
  • Keep the area around equipment clear and keep labels readable.
  • Learn where your rapid shutdown switch and main disconnect are, and show family members.
  • Clean only if the maker allows it, from the ground with a soft brush or hose. Rain does most of the work. Never walk on panels.
  • Gather facts before you buy: roof age (a roof near the end of its life should be replaced first), shade, your electric bills, and your main panel size.

Quick check

  1. Why does a grid-tied system without a battery go dark in an outage?
  2. What does rapid shutdown do, and who is it for?
  3. For a 200 amp panel with a 200 amp main, what is the largest solar back-feed breaker under the 120 percent rule?
  4. What approvals are needed before a new system can be turned on where you live?