Ballpark Lab
Solar · How it works

How Do Solar Panels Work? From Sunlight to Home Electricity

Ballpark Lab Research TeamUpdated June 30, 20265 min read

The 30-second answer

Solar panels turn sunlight directly into electricity. Photons in sunlight strike silicon cells and knock electrons loose — the photovoltaic effect — producing direct current (DC). An inverter converts that DC into the alternating current (AC) your home and the grid use. The power runs your appliances first; any surplus is exported to the grid for a credit or stored in a battery. No moving parts, no fuel — just light in, electricity out.

The conversion chain: sunlight to usable power

Here is the full path, step by step:

  1. Sunlight hits the panel. Each panel is a grid of silicon photovoltaic (PV) cells. Incoming photons excite electrons in the silicon, and the cell's built-in electric field pushes them in one direction, creating DC electricity.
  2. Panels feed an inverter. Your home and the grid run on AC, not DC, so the inverter is the translator. It also handles safety functions like shutting down if the grid goes dark.
  3. AC powers your home. The converted electricity flows to your main electrical panel and out to whatever is running — fridge, AC, EV charger.
  4. Surplus goes somewhere useful. Whatever you don't use in real time is exported to the grid or sent to a battery (more on that below).

That whole chain happens continuously, silently, any time the sun is up.

Where the energy actually goes

Solar production rarely matches your usage minute by minute, so every kilowatt-hour follows one of three paths:

  • Self-consumption — used immediately by appliances that happen to be running. This is the most valuable kWh because it offsets power you'd otherwise buy at full retail price.
  • Export to the grid — sent back through your meter when you produce more than you use. Under net metering you earn a credit, but the value varies a lot by state: some still offer 1:1 retail credit, while net-billing rules (like California's NEM 3.0) credit exports well below retail. Our net metering and permits by state guide breaks down where you live.
  • Battery storage — stashed in a home battery to use after sunset or during an outage, instead of exporting it cheaply. Batteries are optional; whether they pay off depends on your export rate and backup needs.

The core hardware

A rooftop system is simpler than most people expect. Here's what each part does:

ComponentWhat it does
Solar panels (PV modules)Convert sunlight into DC electricity. Rated in watts (e.g. 400 W); more panels and higher wattage mean more capacity.
InverterConverts DC to AC and manages safety. A string inverter serves a whole row at once (cheaper, but shade on one panel drags the string); microinverters sit under each panel for shade tolerance and per-panel data.
Racking / mountingAnchors panels to the roof at the right tilt and orientation, with an air gap so they shed heat.
Production meterMeasures total kWh generated, separate from your utility meter, so you can verify output.
MonitoringAn app or portal that tracks real-time and historical production, flagging underperformance.
Battery (optional)Stores surplus DC/AC for nighttime use or backup power.

For a deeper split of what you actually need versus nice-to-haves, see essential vs. optional components.

What drives how much a panel produces

Two systems with identical panels can produce very different amounts. The biggest factors:

  • Peak sun hours — not hours of daylight, but the equivalent hours of full-strength (1,000 W/m²) sun your location gets per day. A desert site might see 6+; a cloudy northern one closer to 3.5.
  • Roof orientation and pitch — in the U.S., a south-facing roof tilted near your latitude captures the most. East/west roofs still work, just with a modest haircut.
  • Shading — trees, chimneys, and neighboring buildings cut output, especially on string-inverter systems where one shaded panel affects the rest.
  • Panel wattage — higher-wattage panels pack more capacity into the same roof area.
  • System losses — every system loses energy to the inverter, wiring, heat, dust, and snow. Installers fold this into a performance ratio of about 0.8, meaning real output is roughly 20% below the panels' lab-rated capacity.

Do they work in winter and on cloudy days?

Yes — panels run on light, not heat. On an overcast day they typically make 10–25% of full output, which adds up across a year. Winter days are shorter, but cold temperatures actually improve panel efficiency, so a bright, freezing day can outproduce a hot summer afternoon. Snow that covers the glass stops production until it slides or melts off, which usually happens quickly on a tilted array.

How production is measured — and estimated

Output is measured in kilowatt-hours (kWh), the same unit on your power bill. You don't need a roof analysis to ballpark it. Our transparent methodology uses:

Annual kWh ≈ system size (kW) × daily peak sun hours × 365 × ~0.8

The 0.8 is that performance ratio covering real-world losses. So a 7 kW system in a region with 5 peak sun hours produces roughly 7 × 5 × 365 × 0.8 ≈ 10,220 kWh per year. That's the exact math behind our sizing calculator — plug in your bill and state to see the system size and panel count you'd need, then check what it costs with the solar cost calculator.

Want the bigger picture first? Start with the full solar guides library, or jump straight to sizing your own system.

Open the solar sizing calculator →

Run your own number

How many solar panels do you need? Size a system from your electricity use and local sun hours.

Estimate my cost →

Frequently asked questions

How do solar panels make electricity?
Sunlight (photons) strikes silicon cells inside the panel and knocks electrons loose, creating a flow of direct current — this is the photovoltaic effect. An inverter then converts that DC into the alternating current your home uses. There are no moving parts and no fuel.
Do solar panels work on cloudy days or in winter?
Yes, just at reduced output. Panels run on daylight, not heat, so they still generate on overcast days (often 10–25% of full output) and through winter. Crisp, sunny winter days can outproduce hot summer ones because panels lose efficiency as they heat up.
What's the difference between a string inverter and microinverters?
A string inverter is one central unit that converts DC from a whole row of panels at once, so heavy shade on one panel can drag down the string. Microinverters sit under each panel and convert independently, which limits shade losses and gives per-panel monitoring, but they cost a bit more.
How is solar production measured?
In kilowatt-hours (kWh) — the same unit your utility bill uses. A rough annual estimate is system size in kW × your area's daily peak sun hours × 365 × about 0.8 for system losses. A 7 kW system in a 5-peak-sun-hour region makes roughly 10,200 kWh a year.
Related guides

A ballpark estimate for planning — not a final quote. Solar data last updated June 30, 2026 · Sources: NREL, EIA, DSIRE.