Browse topics

Recently published

Science & Education · Explainer

How do solar panels work? From sunlight to electricity at home

Solar panels turn light directly into electricity with no moving parts. Here is the science inside each cell, and how a home system actually works.

Solar panels on a sunny house roof under a blue sky
Illustration

Short answerSolar panels are made of photovoltaic cells, usually silicon. When sunlight hits a cell, its energy frees electrons in the silicon, and an electric field built into the cell pushes them in one direction, creating a direct current. An inverter converts that into alternating current for your home, and any surplus can be stored in a battery or exported to the grid.

Key takeaways

  1. Solar cells use the photovoltaic effect to turn light into electricity.
  2. Most panels are made from silicon with a built-in electric field.
  3. Inverters convert the direct current into household alternating current.
  4. Panels still generate on cloudy days, but much less.
  5. Output depends on orientation, angle, shading and season.

Solar power in one sentence

A solar panel is a sheet of light-sensitive cells that produce electricity whenever light falls on them, without burning anything or moving.

The photovoltaic effect

Light arrives in tiny packets of energy called photons. When a photon with enough energy hits a silicon atom in a solar cell, it can knock an electron free. On its own, that electron would simply wander and recombine. The trick is to push all those freed electrons the same way, which is what the cell's structure does. The effect was first observed by the French physicist Edmond Becquerel in 1839.

Inside a solar cell

Two layers of silicon

A typical cell has two layers of silicon treated with small amounts of other elements. One layer has extra electrons (n-type) and the other has "holes" where electrons are missing (p-type).

The junction

Where the layers meet, an electric field forms. When light frees electrons, this field sweeps them towards one side.

Metal contacts

Thin metal lines on the surface collect the electrons and send them into a circuit, where they do useful work before returning to the cell.

From cells to panels to systems

Each cell produces a small voltage, so dozens are wired together in a panel, and panels are joined into an array. Behind the glass, a typical home panel contains around 60 to 120 cells or half-cells, protected by an aluminium frame and a weatherproof backing.

What the inverter does

Solar cells produce direct current (DC), but homes and the grid use alternating current (AC). The inverter converts DC into AC at the right voltage and frequency. It also tracks the best operating point of the panels as light changes, and many inverters let you monitor output on an app.

Types of solar panels

TypeLookNotes
MonocrystallineUniform dark blackMost common on homes today; high efficiency
PolycrystallineBlue, speckledOlder, slightly less efficient, now less common
Thin-filmFlexible or very thinLighter; used for special applications

How efficient are solar panels?

Efficiency is the share of sunlight hitting a panel that becomes electricity. Typical modern home panels convert roughly 18 to 23 per cent. Laboratory cells have reached far higher figures, but cost and durability matter for real roofs. Higher efficiency mainly means you need less roof space for the same output.

Do solar panels work on cloudy days?

Yes, but output drops, sometimes sharply under thick cloud. Panels respond to light, not heat, so a bright, cool spring day can be very productive. In fact, panels lose a little efficiency when they get very hot. Over a year, sunny summer months produce most of the electricity in places with long seasonal differences.

What affects how much electricity you get

  • Orientation: in the northern hemisphere, south-facing roofs usually produce most, with east and west also workable.
  • Tilt angle: an angle roughly matched to your latitude helps year-round output.
  • Shading: trees, chimneys and neighbouring buildings can reduce output significantly.
  • Season and location: day length and sun height vary through the year, as explained in what causes the seasons.
  • Dirt and snow: rain usually keeps panels clean enough, but heavy grime and snow reduce output.

Using, storing and exporting electricity

A home system uses solar electricity first. When panels produce more than you need, the surplus can charge a home battery or flow to the grid; in many countries you can be paid for exported electricity through a tariff. At night or on dull days, you draw from the battery or the grid.

Do you need a battery?

Advantages

Stores daytime surplus for the evening, increases how much solar power you use yourself and can provide backup in some setups.

Disadvantages

Adds significant cost, takes up space and has its own lifespan. Whether it pays off depends on your usage and tariffs.

How long do solar panels last?

Panels have no moving parts and often come with performance warranties of 20 to 25 years, guaranteeing they will still produce a set share of their original output. Output declines slowly with age. Inverters usually need replacing sooner, often after around 10 to 15 years.

Advantages of solar panels

  • Generate low-carbon electricity with no fuel.
  • Can reduce electricity bills.
  • Need little maintenance.
  • Work well alongside heat pumps and electric cars.

Limitations to consider

  • Produce nothing at night and less in winter.
  • Up-front cost can be substantial.
  • Roof orientation, shading and condition matter.
  • Planning rules can apply to listed buildings or conservation areas in some countries.

Solar panels and the environment

Making panels uses energy and materials, but over their lifetime they generate far more energy than it takes to produce them. Recycling schemes for old panels are growing, recovering glass, aluminium and silicon.

A simple experiment

Small solar garden lights are a hands-on way to see the effect: cover the little panel during the day and the battery won't charge. Similar kits for children show how a tiny cell can run a motor in sunlight. More ideas are in our guide to photosynthesis, nature's own way of capturing sunlight.

Solar panels versus solar thermal

Solar panels (photovoltaic)

Turn light into electricity for appliances, lighting, heat pumps and electric cars.

Solar thermal

Use sunlight to heat water directly, usually for a hot water cylinder. They don't produce electricity.

Measuring solar output

Panels are rated in watts (W) for their peak output under standard test conditions, and a home system is often described in kilowatts peak (kWp). The electricity you actually use is measured in kilowatt-hours (kWh), the same unit on your energy bill. A system's yearly output depends on its size, location, orientation and shading, so installers usually provide an estimate for your specific roof.

Solar beyond rooftops

Solar cells power far more than homes. Large solar farms supply electricity to the grid, small panels run calculators, garden lights and road signs, and satellites and the International Space Station rely on solar arrays for power. The same physics works at every scale, from a tiny calculator cell to a field of panels covering many hectares.

Maintenance and safety

Solar panels need little maintenance. Check your monitoring app now and then for sudden drops, which can signal a fault, and keep an eye on shading from growing trees. Cleaning is rarely needed in rainy climates; if it is, use a soft brush and water from the ground, never climb onto a roof yourself, and remember that panels produce electricity whenever light falls on them.

Common misconceptions

  • "Solar panels need heat." They need light; heat actually lowers efficiency slightly.
  • "They don't work in cloudy countries." They work, though output is lower in cloudy weather.
  • "They power your home during a power cut." Most grid-connected systems switch off during an outage for safety unless designed with backup.

Final thoughts

Solar panels turn light into electricity using a clever arrangement of silicon layers and an electric field, with an inverter making that power usable at home. Their output depends on sunlight, orientation and shading, and modern panels can last for decades. Explore more science of everyday life in the Science & Education guides on All Informations, including how gravity works.

Sources and further reading

These official and reference pages support the key facts in this guide and are good places to read more. All Informations checked every link on 25 November 2026.

Frequently asked questions

How do solar panels generate electricity?

Light frees electrons in silicon cells, and an electric field in each cell pushes them into a circuit as direct current.

Do solar panels work in winter?

Yes, but they produce less because days are shorter and the Sun is lower.

What does a solar inverter do?

It converts the panels' direct current into alternating current for your home.

Do solar panels work during a power cut?

Most grid-connected systems shut down for safety unless they are designed with backup.

How long do solar panels last?

Many come with 20 to 25 year performance warranties, and output declines slowly with age.