How Solar Panels Work: From Sunlight to Your Home's Electricity, Explained Simply

The one-sentence version: solar panels catch sunlight and turn it directly into electricity, and a box called an inverter converts that electricity into the kind your home uses. Everything else in a home solar system — the meter, the optional battery, the monitoring app — exists to manage that simple flow. The US Department of Energy's Solar Energy Technologies Office describes the core event in one phrase: the photovoltaic effect. When sunlight strikes certain materials, it knocks electrons loose and creates an electric current.
No moving parts, no fuel, no noise. A rooftop system is just that effect, scaled up to cover a meaningful share of a household's electricity use and connected safely to the home and the grid. This guide walks the path a ray of sunlight takes, step by step, so that every quote, contract and sales claim you meet later has something solid to stand on.
Inside a panel: cells, modules and arrays
The building block is the solar cell, a thin wafer of silicon — the same base material as computer chips — treated so that sunlight creates a flow of electricity across it. One cell produces only a small amount of power, so manufacturers wire dozens of cells together, seal them under glass with a protective backing, and frame the result: that finished unit is the panel (also called a module). A typical modern residential panel is rated around 350 to 450 watts under standard test conditions.
Panels are then mounted together on the roof in an array. A common home system of 15 to 25 panels adds up to roughly 6 to 10 kilowatts (kW) of capacity. That kW figure is the system's size — the number every quote leads with — and it describes peak output in strong sun, not a constant flow.
Understanding the difference between capacity (kW, what the system can produce at a moment) and energy (kWh, what it does produce over time) is the single most useful idea in this whole topic, because your electricity bill is counted in kilowatt-hours.
The inverter: making sunlight usable at home
Panels produce direct current (DC) electricity. Your home, and the grid, run on alternating current (AC). The inverter is the device that converts DC to AC, and without it your panels cannot power a single light bulb. The DOE's homeowner guidance treats the inverter as the working heart of the system. Two main designs exist:
- String inverter: one central box (often on a garage or exterior wall) serves the whole array. Panels are wired in groups called strings. Simple and usually the lowest-cost option, but if one panel is shaded, its string's output can dip.
- Microinverters: a small inverter sits under each panel, converting at the panel itself. Shading on one panel does not drag down the others, and monitoring shows each panel separately — at a higher equipment cost.
- String inverter with optimizers: a middle path, adding panel-level electronics to a central inverter.
Which design a quote proposes — and why — is one of the key things to compare, as our guide to reading a solar quote and contract explains line by line.
Your meter and the grid: two-way traffic
Most home systems are grid-tied: they work alongside the utility grid, not instead of it. When your panels produce more than your home is using — a sunny midday when nobody is home — the extra electricity flows out to the grid. When you use more than you produce — evenings, nights, heavy appliance use — you draw from the grid as usual.
A bidirectional meter tracks both directions. How you are credited for what you send out is called net metering or a successor tariff, and the rules are set by your state and utility, not by your installer. Those rules matter enormously to the economics, which is why our cost and payback guide treats your utility's export rate as a headline number, not a footnote.
One safety fact surprises many new owners: during a grid outage, a standard grid-tied system shuts down automatically. That is a deliberate protection for line workers — and it is why backup power needs a battery, covered in our batteries and backup guide.
What decides how much power you actually get
Two identical systems on two different houses can produce very different amounts of electricity. The main factors, per DOE and ENERGY STAR guidance:
- Sunlight where you live: a system in Arizona simply receives more sun over a year than the same system in Seattle.
- Roof direction and tilt: in the US, south-facing roofs generally produce the most; east and west roofs produce somewhat less but still usefully; heavy north-facing arrays are usually poor.
- Shade: trees, chimneys and neighboring buildings can cut output sharply, especially on string-inverter systems.
- Panel efficiency and temperature: panels convert roughly a fifth of the sunlight hitting them into electricity, and like most electronics they perform slightly worse in extreme heat.
- Age and soiling: output declines slowly over the years (a typical degradation rate is around half a percent a year), and dust matters mostly where rain is rare.
A trustworthy production estimate names these assumptions openly. If a quote promises a production figure without discussing your roof's direction and shade, that is a warning sign.
What happens at night and on cloudy days
At night, panels produce nothing, and your home simply runs on grid electricity — seamlessly, with no switch to flip. On cloudy days they produce less, not zero: panels work on daylight, not just direct sunbeams, so a bright overcast day might deliver a quarter to a half of a clear day's output, and a dark stormy day much less. Over a whole year, these ups and downs average out into the annual production estimate (in kWh) that every serious quote should state.
That annual figure — compared honestly against your annual usage from your electricity bills — is what decides whether a system is sized sensibly. Oversizing wastes money on production you cannot use or export profitably; undersizing is easy to live with but saves less. With the mechanics clear, the natural next step is the money: our payback math guide shows how to run the numbers yourself, before any salesperson runs them for you.
• US Department of Energy — Homeowner's Guide to Going Solar
• DOE Solar Energy Technologies Office — Solar Photovoltaic Technology Basics
• Energy Saver (DOE) — Planning a Home Solar Electric System
• ENERGY STAR — Solar Panels
Frequently asked questions
Do solar panels work when it is cloudy?
Yes, but at reduced output. Panels generate from daylight, so bright overcast conditions might give roughly a quarter to a half of clear-sky production, while dark storm clouds cut it much further. Annual production estimates already average these days in.
Will my panels power my home during a blackout?
Not on their own. Standard grid-tied systems shut down during an outage to protect utility line workers. Keeping power during an outage requires a battery system designed for backup, covered in our batteries and backup guide.
What is the difference between kW and kWh?
A kilowatt (kW) is capacity at a moment — the size of your system. A kilowatt-hour (kWh) is energy over time — what your system actually produces and what your bill counts. A 7 kW system running at full output for one hour produces 7 kWh.
How long do solar panels last?
Panels degrade slowly, commonly around half a percent of output per year, and most carry long performance warranties. Inverters are the shorter-lived part: string inverters commonly need replacement once during the system's life, a cost honest payback math includes.
Read next
Costs and Payback Math
How Much Do Solar Panels Cost? Payback Math Explained Without the Sales Pitch
A home solar system is usually quoted as one big number. Here is how to break it into cost per watt, compare it with your real bill, and work out a simple payback period yourself — including the costs sales pitches leave out.
Quotes and Contracts
How to Read a Solar Quote and Contract: Every Line Explained Before You Sign
System size, cost per watt, production estimates, warranties, payment schedules and cancellation rights — the lines in a solar quote and contract that decide what you really get, and the red flags the FTC warns shoppers about.
Batteries and Backup
Home Solar Batteries and Backup Power: What They Do and When They Are Worth It
A battery stores your solar power for the evening — and, if it is set up for backup, keeps essential loads running in an outage. Capacity, backup vs self-consumption, lifespan, and the honest cases for and against buying one.