How does a solar panel make electricity when nothing inside it spins?

The World in 5 Minutes · In depth · Approximately 6–8 minutes to read

In a hydroelectric power station, flowing water turns a turbine. In a nuclear power station, steam does the turning, using heat released by splitting atoms. A generator then converts mechanical energy into electrical energy. Yet a solar panel sits quietly on a roof, without a turbine, a rumbling engine or a supply of steam. It can still help power a refrigerator, a computer and the lights.

How? Photovoltaics converts light energy into electrical energy directly within a material. To understand it, we need to follow four things: light, electrons, an electric field and a complete circuit. One distinction matters especially: separated charges and an electric current are not the same thing.

1. The Sun does not send electrons into your sockets

For this explanation, we can think of light as packets of energy called photons. They are not tiny charged balls, and they do not all carry the same energy. A photon's energy depends on the frequency of the light: a blue-light photon carries more energy than a red-light photon.

The electrons are already inside the panel. They belong to its material, just as electrons are present in metal wires and in our bodies. The Sun does not supply the panel with a fresh stream of electrons. It supplies energy that allows some of the existing electrons to contribute to electrical conduction.

This is the first essential idea: a photon does not become an electron. It transfers energy to one. Electrons are not used up in a lamp, either. An appliance converts electrical energy into another form, while electric charge is conserved. [1]

2. Why use silicon?

The most widespread photovoltaic cells use silicon. It is a semiconductor: its electrical properties can be strongly influenced by its composition, temperature and exposure to light. That controllability makes it useful in a solar cell.

Inside a crystal, silicon atoms form an ordered structure connected by bonds. In a simplified picture, some electrons participate in these bonds. When a photon with sufficient energy is absorbed, an electron can reach a state in which it can move through the material and carry charge.

Physicists describe these states using the valence band and the conduction band, separated by a band gap. The terminology is less important than the idea: an electron needs a suitable amount of energy to participate in conduction. Not every incoming photon can provide it. [1],[2]

3. What exactly is a positive hole?

When an electron leaves a bond, it leaves an unoccupied state behind. We call this a hole. It is not a physical opening through the panel, nor a new positive ball manufactured from sunlight.

A hole behaves as a mobile positive charge within a semiconductor. If a neighbouring electron fills the empty state, an empty state appears where that electron came from. As electrons move, we can describe the corresponding hole as moving in the opposite direction.

Imagine a row of occupied seats with one empty seat. As people move into the vacancy, the empty seat appears to travel the other way. Electrons obey quantum physics rather than literally changing seats, but the analogy explains how something missing can have a meaningful direction of motion.

Absorbed light therefore creates an electron–hole pair. If the carriers come together again, they can recombine. Energy can then be released as heat or, through some processes, as light. A useful cell must separate and collect carriers efficiently before too many are lost this way. [2],[3]

4. Two regions that help give the motion direction

A basic silicon solar cell can be explained using two differently treated regions: n-type and p-type. These need not be two different materials. Both can be silicon containing carefully controlled, very small quantities of added impurities.

In the n-type region, electrons are the majority mobile carriers; in the p-type region, holes are. The names do not mean that one entire layer is negatively charged and the other positively charged. Away from the junction region, both materials are generally close to electrically neutral.

Where the regions meet, carriers redistribute. This leaves fixed, charged impurity atoms near the junction and establishes an internal electric field. That field exists even in darkness. It is therefore not, by itself, an inexhaustible energy source.

The field near the junction helps separate light-generated carriers: electrons move toward the n-type region and holes toward the p-type region. Carriers generated farther away can also reach the junction by diffusion. An animation with two arrows shows a crucial part of the process, rather than every movement throughout the cell. [3],[4]

5. There is a voltage. So where is the current?

Under illumination, effective carrier separation allows a voltage to develop between the cell's contacts. Voltage is a difference in electric potential: one volt corresponds to one joule of energy per coulomb of charge.

Current measures something different: how much charge passes a point per unit of time. One ampere means one coulomb per second. Voltage and current are related, but they are not interchangeable.

An illuminated cell can have a voltage across disconnected contacts while no current flows through an external circuit. Connecting the contacts through a suitable appliance completes that circuit. The electric field in the wires then gives the electrons already present a net direction of motion, while the source delivers energy to the appliance.

A pressure difference and water flow offer a useful comparison. A pressure difference can exist across a closed valve; opening a path allows flow. Electricity is not water, however, and the analogy does not describe every detail.

Nor does the lamp wait for one particular electron to travel all the way from the roof. Electrons are already distributed through the wiring. Changes in the electromagnetic field propagate through the circuit much faster than the electrons' average drift speed. [4],[5],[11]

6. Why are there so many cells in a panel?

One cell produces a relatively small voltage. Connecting cells in series increases the voltage, while parallel connections allow their currents to add. A panel also includes electrical contacts, interconnections and protective layers that shield its delicate cells from the environment.

On the direct-current side, electrical power is voltage multiplied by current: P = V × I. If a source supplies 10 amperes at 40 volts at a particular operating point, it delivers 400 watts. This is an illustrative calculation, not a specification for every panel.

The highest voltage alone does not give the greatest power, and neither does the highest current alone. Electronics therefore seek a suitable combination of both. This is called maximum power point tracking, or MPPT. The best operating point changes as conditions change. [5],[6]

7. What does the inverter do?

A panel supplies direct current, or DC. Its contacts retain their polarity during normal generation, although voltage and current vary with illumination and electrical load. Household mains electricity uses alternating voltage, whose polarity reverses repeatedly.

An inverter performs the conversion using power electronics. Rapid semiconductor switching, together with filtering, creates an appropriate alternating-current output. When connected to the electricity grid, the equipment must synchronise its output with that grid.

The inverter does not create additional energy. Some energy is lost in conversion, mainly as heat. It connects the panel's electrical output to the form needed by the household and the grid. [7]

8. Light helps. Heat may not

More incoming sunlight generally means more potential electricity generation. A higher cell temperature, however, reduces the voltage of a typical silicon panel and usually reduces its power at the same illumination. A sunny, cool day can therefore be particularly favourable.

Clouds do not automatically reduce output to zero: diffuse light still reaches the panel. The amount of light may nevertheless be much lower. At night, an ordinary rooftop system cannot be relied upon to produce useful power. Panels do not store sunshine; a separate battery can store energy for later use.

Shade also matters. Because cells and panels are often connected in series, shading a small section can affect a larger part of the array. Bypass diodes and suitable electronics can reduce the consequences, but they cannot replace missing sunlight. [2],[8],[9]

9. Why not turn all the light into electricity?

Some light is reflected. Some photons lack the energy needed to create a useful electron–hole pair. For more energetic photons, energy above the required threshold is generally dissipated as heat. Recombination and electrical resistance cause further losses.

Efficiency describes the fraction of incoming radiant power converted into electrical power. It does not mean that a panel works for a certain fraction of the day and rests for the remainder. Improving cells means reducing these losses and making better use of incoming light. [2]

10. Rooftop solar is not automatically backup power

A conventional grid-connected system disconnects when the grid fails. Having panels on the roof therefore does not guarantee that a home will remain powered during an outage. Backup operation requires a suitable inverter, safe isolation from the grid and a properly designed system, often including a battery. Even a battery does not automatically provide backup for the entire home. [10]

The underlying process remains elegant. Light supplies energy. The cell's structure enables charges to be separated and collected. A voltage develops between the contacts, and current can flow through a completed circuit. The inverter then adapts the electrical output for use in the home.

Not a single mechanical component on the roof needs to turn. Beneath the quiet surface of a panel, light, the properties of matter and electromagnetism work together.

The world is more beautiful when you understand it.

Sources and further reading

  1. U.S. Department of Energy — Solar Photovoltaic Cell Basics
  2. U.S. Department of Energy — Solar Photovoltaic Performance and Efficiency Basics
  3. UNSW — Understanding the p–n Junction
  4. PVEducation — Drift
  5. Analog Devices — Characteristics of Photovoltaic Solar Cells
  6. MathWorks — Analysis of Solar Photovoltaic System Shading
  7. U.S. Department of Energy — Inverters and Grid Services Basics
  8. U.S. Energy Information Administration — Photovoltaics and Electricity
  9. Penn State — Wiring within a PV Module and the Shading Effect
  10. Australian Government — Batteries
  11. OpenStax — University Physics, Model of Conduction in Metals

Sources checked on 15 November 2026. Reading time is approximate and excludes the reference list.