# Sunlight in. Electricity out.

A clear introduction to photovoltaic cells, the parts around them, and the difference between generating energy and storing it.

Canonical: https://laong.draveniq.dev/read/how-solar-panels-make-electricity/
Author: Laong
Published: 2026-10-25
Updated: 2026-10-25

## The short answer

Photovoltaic cells convert light into electrical energy. Storage is a separate job, usually done by a battery system.

<span id="section-1" aria-hidden="true"></span>

## Begin with a material

A photovoltaic cell uses semiconductor material to convert incoming light into electrical energy. Connecting cells into modules makes a practical panel. Available sunlight and the characteristics of the system affect its output.

<span id="section-2" aria-hidden="true"></span>

## A panel is one part of a system

A working installation also needs suitable electrical connections, mounting, and equipment that manages the output. Many household systems use an inverter to convert direct current from the panels into alternating current. The exact architecture depends on the application.

<span id="section-3" aria-hidden="true"></span>

## Power and energy answer different questions

Power describes a rate; energy describes an amount accumulated over time. A 100-watt output maintained for two hours delivers 200 watt-hours before accounting for downstream losses. A panel’s rated power is measured under specified conditions, not a promise of constant real-world output.

<span id="section-4" aria-hidden="true"></span>

## What happens after sunset?

Panels do not store the sunlight they receive. Batteries can store energy for later use, and grid-connected systems interact with a wider electricity network. This is an explanation of the concepts, not a design or installation guide; system sizing requires location-specific inputs.

## Sources and further reading

- [US Department of Energy · Photovoltaic technology basics](https://www.energy.gov/cmei/systems/solar-photovoltaic-technology-basics)
- [US Department of Energy · Solar system design basics](https://www.energy.gov/cmei/systems/solar-photovoltaic-system-design-basics)

Drafted with AI assistance and checked against the linked references. Independent expert review and field testing have not been performed. See https://laong.draveniq.dev/editorial/ for our approach.
