My Easy Science

Guide

How Do Solar Panels Work?

A solar panel turns sunlight into electricity, with no moving parts and no smoke or emissions while it generates. Making, transporting and installing the panels does use energy and produce emissions. On a sunny day, the panels on a roof can power a whole house, and any extra electricity can be stored in a battery or sent back to the grid. This guide explains how solar panels work, what happens at night and in winter, and how they work on a house with batteries.

Dark blue solar panels on a house roof on a sunny day with a blue sky
Solar panels on a roof. Sunlight in, electricity out, no moving parts.

The short answer: sunlight knocks electrons loose inside silicon solar cells, the cell pushes them one way to make a current, and an inverter turns that current into the mains power your home uses.

Sunlight is packets of energy

Light travels in tiny packets of energy called photons. When sunlight hits a solar panel, the photons hand their energy to the material inside the panel. The panel is made of solar cells, and each cell is made mostly of silicon, the same material used in computer chips. Silicon is a semiconductor: it does not conduct electricity well on its own, but it can be tuned so that light sets its electrons free. A single panel holds many cells wired together, and a roof holds many panels, so the small effect in one cell adds up to real power.

How a solar cell makes current

A solar cell is built from two layers of silicon. One layer has extra electrons, and the other has gaps where electrons are missing. Where the two layers meet, an electric field forms, like a slope that pushes things one way. When sunlight knocks an electron loose, the field pushes it in one direction, and the gaps move the other way. Connect a wire across the cell, and the electrons flow through it. That flow is an electric current, called direct current, or DC.

Inside a solar cellSunSunlight (photons)Top layer: extra electronsn-type siliconBottom layer: missing electronsp-type siliconBulbPhotons knock electrons loose. The field between the layers pushes them one way, making a current.
Sunlight frees electrons in the silicon, and the cell pushes them through a wire as direct current.

From DC to the power in your home

The current from the panels is direct current, but homes run on alternating current, or AC. In a conventional system, a box called an inverter sits between the panels and the house and turns DC into AC. Some systems work differently, using a small microinverter on each panel, or DC optimisers, so there is not always a single inverter box. From the inverter, the power goes to the fuse box and then to the lights, the fridge and the sockets, just like power from the grid. Many systems also have a meter or a monitoring app that tracks how much power the panels make and how much the house uses, so you can see the panels working in real time. A basic utility meter on its own may only record what goes in and out of the grid.

How do solar panels work at night?

They do not make power at night, because there is no sunlight to catch. After dark the house draws power from the grid, or from a battery that was charged during the day. At dawn the panels wake up as the light returns, and they make the most power around solar noon, when the sun is highest in the sky, though the exact peak time depends on which way the panels face, their tilt, the season and where you live. A panel can still make a little power on a cloudy day, because clouds scatter light but do not block it all. Moonlight is far too weak to matter.

Power through a typical sunny day (relative output, illustrative only)0100%06 am30%9 am100%Noon70%3 pm20%6 pm09 pmTime of day
Output rises with the sun, peaks at midday, and falls to zero after dark. Real output varies with location, season, panel direction and tilt, weather and daylight hours.

How do solar panels work in winter?

Panels work in winter too, as long as there is daylight. They run on light, not heat, and cold weather actually helps them work a little better, because solar cells lose some efficiency when they get very hot. What winter costs is daylight: the days are shorter and the sun is lower, so the panels make less power than in summer. Snow can block the panels, but a tilted roof usually sheds it, and a thin layer of snow on the ground can even reflect extra light onto them.

How do solar panels work on a house with batteries?

In a house with a battery, the main parts are the panels, the inverter and the battery, plus mounting hardware, wiring, safety switches and monitoring equipment, and a charge controller in some systems. During the day the panels power the house first. In many systems, any extra power charges the battery instead of going to the grid, though some systems are set up differently: some send power to the grid first, and some split the extra between the battery and the grid. In the evening, when the panels stop, the house runs on the battery. A home battery commonly holds 5 to 15 kilowatt-hours, and whether that covers an evening's lights, cooking and television depends on the size of the battery, how much power the house uses, and how much charge it received that day. It recharges the next day when the sun is out. Panels themselves last a long time. Most carry a 25 year performance warranty, and many keep working well beyond that, losing roughly 0.5 percent of their output each year. They need little care, though in dusty or snowy places they may need cleaning more often.

Last reviewed 17 November 2026 by Masood Ur Rehman, PharmD.