Skip to content

How solar works

How Do Solar Panels Work?

From sunlight on the roof to electricity at the socket: what each part of a solar PV system does, and what happens to electricity you don't use straight away.

10 min read · Updated December 2026

Diagram of sunlight reaching solar panels, an inverter converting DC to AC, a home using the electricity, an optional battery and export to the grid

From light to electricity

Solar photovoltaic (PV) panels are made of cells, usually silicon, that generate a direct current (DC) when light falls on them. Each panel contains dozens of cells wired together, and panels are connected into strings so their output adds up.

Panels respond to daylight, not heat. They produce most on bright days with the sun high in the sky, less under cloud and very little at dawn and dusk. They don't need direct sunshine to work, but output rises and falls with the light.

Diagram of sunlight reaching solar panels, an inverter converting DC to AC, a home using the electricity, an optional battery and export to the grid
Panels make DC electricity, the inverter converts it to AC, your home uses it first, and surplus can be stored or exported.

The inverter: making the electricity usable

Your home runs on alternating current (AC), so the DC from the panels passes through an inverter. The inverter converts it to AC at the right voltage and frequency, keeps the panels working at their best operating point, and switches the system off automatically if the grid goes down, for safety.

Some systems use one central inverter; others use microinverters or power optimisers on each panel. Our guide to what a solar inverter is explains the differences.

Where the electricity goes

Solar electricity flows to wherever it's needed in your home first – the fridge, the router, the washing machine. If the panels produce more than you're using at that moment, the surplus either charges a battery, if you have one, or flows out to the grid through your meter.

When the panels produce less than you need – in the evening, at night or on dull days – you draw the difference from the grid (or the battery) automatically. You don't need to switch anything.

  • Self-consumption: solar electricity you use in your home as it's generated
  • Battery storage: surplus saved for later, if you have a battery
  • Export: surplus sent to the grid, which you can be paid for with an eligible tariff
  • Import: electricity you still buy from your supplier when solar isn't enough

kW, kWh and why they're different

A system's size is given in kilowatts (kW or kWp) – its peak output under standard test conditions. The electricity it actually produces over time is measured in kilowatt-hours (kWh). A 4 kW system doesn't produce 4 kWh every hour; how many kWh it makes in a year depends on location, orientation, pitch, shading and weather.

Our guide to how much electricity solar panels generate goes into this in more detail.

Inside a solar cell

A solar cell is a thin wafer of silicon that has been treated so that one side has a slight excess of electrons and the other a slight shortage. Where the two layers meet, an electric field forms. When light hits the cell, its energy knocks electrons loose; the field pushes them in one direction, and if the cell is connected to a circuit they flow out as a direct current. Thin metal lines printed on the front of the cell – the fine silver grid you can see on most panels – collect that current.

Each cell produces only a small voltage, roughly half a volt, so a panel wires dozens of cells together in series to build up a useful voltage. A typical domestic panel today has 108 or 120 half-cut cells, or 54 or 60 full cells, sealed behind toughened glass with a polymer backsheet or a second sheet of glass on the back and an aluminium frame around the edge. A junction box on the back contains bypass diodes, which let current flow around a group of cells if part of the panel is shaded or damaged, so a single leaf or chimney shadow doesn't shut the whole panel down.

Why panels are wired into strings

Panels are usually connected in series into strings, so their voltages add up while the current stays roughly the same. A string of ten panels might run at a few hundred volts DC. Higher voltage means lower current for the same power, which keeps cable losses down and suits the inverter's operating range. It also explains why DC solar cabling must only be handled by qualified installers: even on a cloudy day, a string can carry a dangerous voltage.

What the inverter is doing all day

The inverter is often described simply as a box that converts DC to AC, but it does several jobs at once. It continuously adjusts the electrical load on the panels to keep them at their maximum power point – the combination of voltage and current that extracts the most power as light levels change. This is called maximum power point tracking, or MPPT. Many inverters have two MPPT inputs, so two strings on different roof slopes can each be optimised separately.

The inverter also synchronises its output with the grid's voltage and frequency so that solar electricity can flow seamlessly into your home's wiring. And it monitors the grid constantly: if the grid supply disappears during a power cut, the inverter disconnects within a fraction of a second. This protection, sometimes called anti-islanding, stops your panels from feeding electricity into cables that engineers may be working on – see do solar panels work in a power cut? for what this means at home. UK inverters must meet the relevant engineering recommendations for connection to the network.

Get Solar Panel Quotes

Ready to talk to installers? Describe your property and the work you're considering, and request quotes from solar installers near you.

How solar electricity moves through your home

Once the inverter's AC output reaches your consumer unit, electricity behaves like water finding the easiest path. Appliances that are switched on draw power from the nearest source, and solar generation in your own wiring is effectively closer than the grid. So if your panels are producing 2 kW and your home is using 800 watts, the 800 watts comes from the panels and the remaining 1.2 kW either charges a battery or flows out through the meter to the grid.

Your smart meter records imports and exports separately, usually in half-hour periods. That's what allows a supplier to pay you for exported electricity under the Smart Export Guarantee while still charging you for what you import. If you don't yet have a smart meter, your installer or supplier can advise on getting one, because export payments generally depend on exports being measured.

  • Daytime: generation powers your home first
  • Surplus: charges a battery if you have one, then exports
  • Shortfall: the grid or battery makes up the difference automatically
  • Smart meter: records import and export separately

Extra devices that can use your surplus

Some households add devices that soak up surplus generation before it's exported. A solar diverter sends excess electricity to an immersion heater in a hot water cylinder, effectively storing it as hot water. EV chargers with a solar mode can slow down or pause charging to match the surplus available. Smart plugs and appliance timers can run dishwashers and washing machines when generation is high.

Whether these are worthwhile depends on your home. A diverter needs a hot water cylinder; a solar-aware charger needs a car that's at home during the day. A battery stores surplus for later use as electricity. Your installer can explain which options fit your house and how they'd work with the system they're proposing.

Solar PV, solar thermal and hybrid panels

This guide is about solar photovoltaic (PV) panels, which generate electricity. Solar thermal panels look similar but contain tubes or plates that heat a fluid, which then heats water in a cylinder. They don't produce electricity. Hybrid panels, sometimes called PV-T, combine both functions in one panel but are much less common on UK homes.

For most households asking for 'solar panels' today, PV is what installers will quote for, because electricity can power everything in the home, be stored in a battery or be exported. If hot water is your main interest, it's worth asking installers to compare a PV system with a diverter against solar thermal, and to explain the costs and benefits of each.

What happens over the system's life

Day to day, a solar PV system needs very little attention. Panels have no moving parts, and the inverter runs automatically. Over the years, panel output declines gradually – the manufacturer's performance warranty states how much output is guaranteed after a given number of years. Inverters, which contain electronics that work hard, usually have shorter warranties than panels and are often replaced at some point during the system's life.

Keep an eye on your monitoring app, compare each month with the same month in previous years, and call a qualified installer if output drops noticeably or the inverter shows a fault. Our guides to solar panel maintenance and how long solar panels last go into more detail.

The network operator's role

Your local distribution network operator (DNO) runs the cables and substations that bring electricity to your street. Because solar systems can send electricity back into that network, the DNO needs to know about them. Smaller systems are usually notified after installation; larger ones need approval beforehand, and the DNO may set an export limit if the local network is busy.

Your installer normally handles this paperwork. Once notified or approved, your system is part of the local network, sending surplus electricity to neighbours' homes along the same cables.

Where your exported electricity goes

Electricity you export doesn't travel far. It flows into the local low-voltage network and is used by nearby homes and businesses that are drawing power at that moment. On a sunny day in a street full of solar panels, the local network may carry surplus up to the next level of the grid.

That's one reason network operators sometimes limit exports in areas with a lot of solar: the local cables and transformers have limits on how much power they can carry in both directions.

Common questions

Do solar panels work without direct sunlight?

Yes. They generate from daylight, so they still produce electricity on cloudy days, though much less than in bright sun.

Do solar panels heat water?

Solar PV panels generate electricity. Solar thermal panels, a different technology, heat water directly. Some households use surplus PV electricity to heat water with a diverter.

What happens to solar electricity in a power cut?

Most grid-connected systems shut down during a power cut for safety. Systems designed with backup capability can keep some circuits running.

Do solar panels need direct sunlight to generate electricity?

No. They respond to light, including the diffuse light that passes through cloud. Output is highest in bright, direct sun and much lower on overcast days.

Can I use solar electricity during a power cut?

Not with a standard grid-connected system, which shuts down automatically for safety when the grid fails. Systems designed with backup capability, usually involving a battery and specific equipment, can keep selected circuits running.

Why does my inverter have two inputs?

Many inverters have two maximum power point trackers, so panels on two roof slopes, or two strings of different lengths, can each be run at their best operating point.

How do I know my solar panels are working?

Check your inverter's display or monitoring app on a bright day – you should see generation rising through the morning and peaking around midday. Compare monthly totals with the same months in previous years. If output is much lower than usual, or the inverter shows a fault, contact a qualified installer rather than investigating the equipment yourself.

Who is my network operator?

It depends on where you live. Your installer can tell you, and the information is also available from the Energy Networks Association.

Can solar panels power my home directly without the grid?

A standard grid-connected system needs the grid to operate and shuts down in a power cut. Off-grid systems, with batteries and specialised equipment, are designed to run independently, but they're rare on UK homes connected to the grid.

Compare Solar Installation Options

When you're ready, describe your project once and request quotes from installers who cover your area.

Get Solar Panel Quotes