How do solar panels work?

How-solar-works
Last updated on 4 September 20245 min read

Wondering how solar panels produce electricity? We look at the science behind the photovoltaic effect.

Photo of author Melody Abeni
Written byMelody Abeni
open yellow book

Why you can trust our content

We know that the solar industry is full of misinformation, but we only use reliable sources, including:

  • Our experienced solar experts, installers and system designers
  • Our own database of solar & battery system designs
  • Authoritative bodies like MCS and the UK government
Which trusted trader logo.Partnered with Octopus energy logoDESNZ + GHFA logo
The sun rising behind an array of polycrystalline solar panels

At a glance

⚡ Solar cells are able to create electricity because they contain an electric field

Each solar cell is formed of two slices of semiconducting material - this is most commonly silicon, but scientists are also testing newer materials like perovskite and kesterite.

Solar cells are able to generate electricity because they contain an electric field, which is created when opposite ‘charges’ are separated. To create it, manufacturers ‘dope’ the two layers of silicon with different materials.

The top layer of the cell is infused with phosphorus to add extra electrons, and this gives the layer a negative charge. Conversely, the bottom layer is laced with boron, which results in fewer electrons and a positive charge.

☀️ Photons dislodge electrons, which then creates an electric current

Light is composed of many photons, which are essentially tiny packets of energy.

When photons hit the solar cell, they transfer their energy to the valence electrons in the silicon atoms. This energy boost is enough to knock the electrons out of their atomic bonds, freeing them to move around.

The electric field between the two layers of silicon then pushes the free electrons out into an external circuit, creating an electric current.

🏠 Your inverter converts DC electricity to AC electricity you can use in your home

Once photons set the electrons loose in a solar cell, metal contacts on the edges of the cell collect the freed electrons and transfer them to the wires. This movement of electrons creates direct current (DC) electricity, which is then sent to an inverter.

However, alternating current (AC) electricity is the best choice for homes, because it's more efficient for sending power over long distances and works with both the electrical grid and most household appliances, lights, and other electrical devices.

The inverter uses transistors to make the DC electricity act in the same way as AC electricity, and then sends it through a transformer. In essence, the transformer is basically conned into thinking that the DC electricity is AC electricity, and so produces AC electricity at the other end.

🔋 Any excess solar electricity goes to your battery or the grid

When your solar panels produce more electricity than your home can use, you can store it in a battery and use it in the evenings. And if your battery is full, any excess electricity gets sent to the grid.

By exporting this excess energy, you can earn money through a solar export tariff, which pays you for every single kilowatt-hour (kWh) of electricity that you send to the grid.

This system makes sure none of your solar gets wasted and is a key part of the financial benefit of switching to solar.

🌧️ Solar panels work well everywhere in the world, even in the rainy UK

Contrary to popular myths, solar panels work well in all weather conditions, including British winters.

On average, solar output in winter is about 10-12% of annual production, while summer accounts for around 40%.

In winter, you'll be relying more on the grid for electricity because of this seasonal imbalance, however you make up for this in the summer when you export (and get paid for) all your excess solar-generated electricity.

From baking hot deserts through cloudy countries to outer space, solar panels are a powerful tool for helping us convert sunlight into electricity and combat climate change. 

This guide will take you through the key steps of how solar panels work, from the initial capture of light to the powering of your home.

If you're interested in finding out how much money a solar & battery system can save you, just answer a few quick questions below and we'll provide an estimate.

How solar panels work: step by step

Below, we’ll take a closer look at each of the five key phases of how light from the sun leads to savings on your energy bills. 

  1. Solar cells are given an electric charge
  2. Light from the sun hits the solar panel
  3. The inverter converts DC to AC
  4. Your household uses electricity
  5. Any excess goes to your battery / the grid

1. Solar cells are given an electric charge

Solar or photovoltaic (PV) cells are the building blocks of solar panels. Each PV cell is formed of two slices of semiconducting material - this is most commonly silicon, but scientists are also testing newer materials like perovskite and kesterite.

PV cells are able to generate electricity because they contain an electric field, which is created when opposite ‘charges’ are separated. To create it, manufacturers ‘dope’ the two layers of silicon with different materials. 

The top layer of the cell is infused with phosphorus to add extra electrons, and this gives the layer a negative charge. Conversely, the bottom layer is laced with boron, which results in fewer electrons and a positive charge.

When these two layers are sandwiched together, an electric field forms between them. This setup ensures that when light excites electrons in the silicon, they are directed into an external circuit, creating a flow of electricity.

2. Light from the sun hits the solar panel

Light is composed of many photons, which are essentially tiny packets of energy.

Each silicon atom in the solar cell has 14 electrons, but only the outer four, called valence electrons, are involved in the photovoltaic effect. And given that just a gram of silicon contains about 21.4 quadrillion atoms, there are plenty of valence electrons available for this process.

When photons hit the solar cell, they transfer their energy to the valence electrons in the silicon atoms. This energy boost is enough to knock the electrons out of their atomic bonds, freeing them to move around. The electric field between the two layers of silicon then pushes the free electrons out, creating an electric current.

Silicon solar panels in today's market are designed to absorb light primarily in the visible spectrum, but they can also capture light in the infrared and ultraviolet ranges. This means that a solar cell doesn't depend on direct sunlight - daylight is enough to trigger the photovoltaic effect. 

But not all the light that hits the solar panel gets converted into electricity. Monocrystalline solar panels typically have an efficiency range of 18% to 24%, so a lot of the light energy is wasted, either as a reflection or lost as heat.

Verified expert

People think that you need perfectly sunny weather to make solar panels worthwhile, but this isn’t the case - all solar panels need in order to generate electricity is daylight, not sunlight. There are many other factors beyond location that have an impact on generation, including roof size, pitch, orientation and shading.

Alfie Ireland, Head of Operations & Technical at Sunsave

Alfie Ireland

Head of Operations & Technical at Sunsave

Alfie has worked in green tech for over a decade. During his four years at OVO, he helped develop the world’s largest domestic vehicle-to-grid trial.

3. The inverter converts DC to AC

Once photons set the electrons loose in a solar cell, metal contacts on the edges of the cell collect the freed electrons and transfer them to the wires. This movement of electrons creates direct current (DC) electricity, which is then sent to an inverter

DC electricity flows in a single direction and provides a constant voltage, but it doesn't travel well. In contrast, alternating current (AC) electricity changes direction periodically, typically 50 times per second (50 Hz) in the UK.

AC is the best choice for homes because it's more efficient for sending power over long distances and works with both the electrical grid and most household appliances, lights, and other electrical devices.

The inverter uses transistors to make the DC electricity act in the same way as AC electricity, and then sends it through a transformer. In essence, the transformer is basically conned into thinking that the DC electricity is AC electricity, and so produces AC electricity at the other end. The inverter basically contains a very successful partnership built on deception.

4. Your household uses electricity

The end result is AC electricity that matches the voltage and frequency of your home's electrical system, and you can use it right away for your appliances, lights, and other devices.

As solar panel output peaks in the middle of the day, that's the ideal time to focus most of your electricity usage. If you’re not at home to do this, you can use smart apps and plugs to schedule when various devices turn on.

5. Any excess goes to your battery or the grid

When your solar panels produce more electricity than your home can use, you can store it in a battery and use it in the evenings. And if your battery is full, any excess electricity gets sent to the grid.

By exporting this excess energy, you can earn money through a solar export tariff, which pays you for every single kilowatt-hour (kWh) of electricity that you send to the grid. This system makes sure none of your solar gets wasted and is a key part of the financial benefit of switching to solar.

To find out how much you could earn from exporting to the grid, check out our guide to the best solar export tariffs.

An array of black solar panels across two sides of a rooftop, with the sun rising above them

When and where do solar panels work best?

Solar panels work best during the summer. This is because the days are longer, the sun is higher in the sky, and skies are generally clearer.

Most homes will get the most out of their panels if they are installed at a 35-degree angle with no shading from nearby structures.

Solar panels work well everywhere, even in stereotypically rainy places like here in the UK. According to Which? (2024), we receive about 60% of the solar radiation found at the equator, just like parts of France, Spain, and Germany.

Do solar panels work in all weather?

Contrary to popular myths, solar panels work well in all weather conditions, including British winters. On average, solar output in winter is about 10-12% of annual production, while summer accounts for around 40%.

In winter, you'll be relying more on the grid for electricity because of this seasonal imbalance, however you make up for this in the summer when you export (and get paid for) all your excess solar-generated electricity.

Do solar panels work at night?

Solar panels don't generate electricity at night since they rely on daylight to produce power. 

But if you have a solar battery, at night time you can rely on the excess solar-generated electricity that you’ve stored during the day - although in some cases you may still need to import from the grid to supplement your nighttime electricity consumption.

Do solar panels work in space?

Yes, solar panels work exceptionally well in space and are a primary power source for satellites and space stations. Space offers ideal conditions for solar panels: no atmospheric interference, 24/7 exposure to direct sunlight, and no weather-related disruptions.

According to a 2024 experiment, space-based solar panels could be up to 13 times more efficient than Earth-based panels, which opens up exciting potential for zero-carbon orbiting solar farms.

Summary

Solar panels are a versatile and efficient source of renewable energy, capable of operating in various conditions - from the sunniest days to the greyest winters. By transmuting daylight through a series of well-coordinated processes, solar panels provide clean electricity, reduce households’ reliance on the grid, and offer long-term financial and environmental benefits.

Want to find out how much a solar & battery system could save you? Answer a few quick questions below and we’ll provide an estimate for you.

How solar works: FAQs

Do solar panels work on cloudy days?

Solar panels do work on cloudy days, albeit producing less electricity than they do on clear sunny days. 

While heavy cloud cover can block some light, the photovoltaic effect still works with diffused light - and although the output isn't as high, it still helps to contribute towards your household’s electricity needs. 

Modern solar panels are designed to be effective even in less-than-ideal weather conditions.

Do solar panels work with moonlight?

Technically, solar panels can produce a tiny amount of electricity from moonlight, since it's basically just reflected sunlight. 

However, the intensity of moonlight is so low that the power produced is negligible. Solar cells need photons from daylight to work at their best, so moonlight doesn't cut it. 

Do solar panels work in winter?

Shorter days and lower sun angles don't stop solar panels from producing electricity in winter, although in the UK a solar panel’s output in winter is usually only about 11-12% of its total annual electricity production.

Sometimes a clear sunny day in winter can actually be ideal, as once the temperature of solar panels starts to go above 25°C, their output starts to fall slightly.

Related articles

Snow on a rooftop solar panel system, yellow cartoon snowflakes in the background

Do solar panels work in winter and on cloudy days?

Photo of solar panel writer Josh Jackman against blank backgroundJosh Jackman
A solar panel with light reflecting off it, a carton yellow lightning bolt, and a turquoise background

How much energy do solar panels produce?

Photo of author Charlie ClissittCharlie Clissitt
Cartoon sun shining down on a house with solar panels, turquoise background.

The best angle and direction for solar panels in the UK

Photo of author Melody AbeniMelody Abeni
Photo of author Melody Abeni

Written byMelody Abeni

Based in London, Melody is a specialist green technology writer who has been covering sustainability, climate action and ESG for the past five years, after gathering operational experience in green investing and financial services. She has written for various industry publications, including renewable technology advisor The Eco Experts, and she holds a Master’s degree in law from Birkbeck University.

Copyright © 2024 Sunsave

Sunsave Group Limited (company number: 13741813) and its affiliates, Sunsave UK Limited (company number: 13941186) and Sunsave Energy Limited (company number: 13952135), together trading as “Sunsave”, provide renewable energy systems and finance and are registered in England and Wales at 71-75 Shelton Street, Covent Garden, London, WC2H 9JQ. Sunsave UK Limited (FRN: 1008450) is a credit broker and can introduce you to a panel of lenders for the purpose of arranging finance. Sunsave Energy Limited (FRN: 979494) is a lender. Both Sunsave UK Limited and Sunsave Energy Limited are authorised and regulated by the Financial Conduct Authority.