Solar Panel Energy Lab

A single-junction cell can never convert more than about 33.7% of sunlight to electricity — the Shockley-Queisser limit — and real panels fall further short of even that. Set the panel area, tilt angle, cell efficiency and inverter efficiency, then place the panel anywhere on Earth with a latitude and day of year, and watch the power track the sun's real elevation and angle of incidence across a simulated day, with a loss bar showing exactly where the rest of the sunlight goes. Feed that day-only output into a battery — capacity, load and round-trip efficiency — and watch the state of charge climb by day and ride out the night. It all runs on your device.

You are in the Physics lab.

Elapsed (sim-day)00:00 / 24:00
Energy produced0 kWh
Stored in battery0 kWh (0%)

Panel

Sunlight in, electricity out — and the losses along the way.

Electrical power
SQ-limit power
Net capture
Rated power (STC)
E NOON W α t Sun & panel — drag the sun
Irradiance over the day — plane-of-array
Energy loss breakdown
Power output

Storage

Charging by day, discharging by night, against a steady load.

Autonomy
Unmet-load time
Capacity factor
Battery charge — fills as the day plays
No single-junction cell beats about 33.7% of the sunlight. The Shockley-Queisser limit caps the fraction of incoming sunlight any silicon cell can convert to electricity — photons too weak to free an electron pass straight through, and photons that are too strong lose their extra energy as heat, so the ceiling sits between those two losses. Real panels fall short of even that: cell efficiency measures how close a real cell gets to the Shockley-Queisser ceiling, and inverter efficiency takes a further cut turning DC into usable power. What survives both only exists while the sun is up — so a battery stores the daytime surplus and discharges it overnight, at a cost in round-trip efficiency and a capacity factor well under 100%.

Reading the simulation

What the sky view, the irradiance curve and the loss bar are telling you — then what the battery does with the result.

1

The sun path and the gauge

The sun arcs across the sky as the day plays, and the gauge beside the panel fills toward the rated power — the panel's output under standard test conditions. Before sunrise and after sunset the sun sits below the horizon and the gauge sits at zero, exactly where it should.

2

The irradiance curve and the loss bar

The irradiance curve plots the plane-of-array power across the day: zero in darkness, rising and falling with the sun's changing angle of incidence on the tilted panel. The loss bar breaks that same instant down into four slices of the incoming sunlight: the share no single-junction cell can ever reach (Shockley-Queisser), the further shortfall between your real cell efficiency and that ceiling, what the inverter loses, and what's left as net electrical capture — the smallest slice, and the only one you actually get.

3

The battery rides out the night

The Storage card feeds a simulated day of sunlight — built from your latitude, day of year and tilt angle — through the same panel into a battery serving a constant load. The state-of-charge trace climbs while generation beats the load and falls through the night; if it would fall below zero that stretch counts against unmet-load time. Autonomy is simply capacity divided by load, and capacity factor compares the energy actually delivered over the day to what the panel would deliver running at its rated power the whole time.

How It Works

A hard ceiling on conversion, a curve shaped by real sun geometry, and a battery to bridge the night.

1

The Shockley-Queisser limit sets a hard ceiling

Sunlight arrives as a spectrum of photon energies, but a single-junction cell has one band-gap energy: photons below it aren't absorbed at all, and photons above it give up their excess as heat the instant they free an electron. Balancing those two losses against each other, the best any single-junction silicon cell can do under standard sunlight is about 33.7% — a limit set by the physics of the junction itself, not by manufacturing.

2

Latitude, tilt and day of year set the angle of incidence

A panel's power scales with the cosine of the angle between its face and the sun's rays, and that angle is set by latitude, tilt and the sun's declination, which shifts with the day of year. Electrical output is irradiance · area · min(cell efficiency, 33.7%) · inverter efficiency, and it falls to zero whenever the sun's elevation drops to or below the horizon.

3

Storage turns a day-only supply into a round-the-clock one

Because a panel only generates in daylight, a battery is what actually lets a constant load be served overnight: it charges on the daytime surplus and discharges through the dark, at a round-trip efficiency below 100%. Its capacity sets how many hours of autonomy it buys against the load, and over a full day the capacity factor — actual energy over rated-power energy — tells you what fraction of the panel's nameplate rating the sun really delivered.

How solar panels work with the sun

Sunlight frees electrons in the panel's silicon cells (the photovoltaic effect), producing direct current; an inverter turns it into AC for your loads, a battery banks the daytime surplus, and any excess flows to the grid. How much a fixed panel captures is pure geometry — it comes down to three angles.

Zenith Sunlight incidence Zenith angle (θ) Elevation (α) Tilt (t) θ + α = 90° t + α = 90° t = θ
The sun's elevation (α) and the panel's tilt (t) are exactly the sliders in this lab. A fixed panel captures the most when its face points straight at the sun — when the tilt equals the zenith angle (t = θ), which is why the best year-round tilt sits close to your latitude.
What is the Shockley-Queisser limit?
The Shockley-Queisser limit is the theoretical ceiling on how much sunlight a single-junction cell — the kind in almost every rooftop panel — can convert to electricity: about 33.7% for silicon under standard sunlight. Photons below the material's band-gap energy pass straight through unabsorbed, and photons above it lose their extra energy as heat the instant they're absorbed. Both losses are set by the physics of a single semiconductor junction, not by manufacturing quality, so no single-junction cell design can beat that fraction.
Why does a panel's output depend on tilt and latitude?
A panel receives power in proportion to the cosine of the angle between its face and the sun's rays — square-on to the sun is best, edge-on gathers almost nothing. The sun's elevation and direction depend on latitude, the time of day, and the day of year (through the sun's declination), so a panel's tilt has to compromise across the day and across seasons. Tilting roughly toward the sun's average midday position — closer to flat near the equator, steeper toward the poles — keeps the incidence angle small for more of the day.
Where does the sunlight's energy go before it reaches the wall?
Start with the sunlight striking the panel's plane of array. A fixed share is unreachable by any single-junction cell — the Shockley-Queisser limit, about 33.7%. Of what a real cell could capture, its actual cell efficiency falls short of that ceiling because of resistive and material losses, and the inverter that turns the panel's DC output into usable power loses a further share set by its efficiency. What's left after all three deductions is the net electrical power actually delivered, the smallest slice of the loss bar.
How does battery storage handle a solar panel's day-only output?
A solar panel generates only while the sun is up and its output still swings with the sun's angle through the day, while a load typically draws power around the clock. A battery absorbs the daytime surplus when generation exceeds load and discharges overnight to cover the shortfall, charging and discharging at a round-trip efficiency below 100%. Its capacity divided by the load sets an autonomy in hours; if the battery empties before the sun returns, that stretch counts as unmet-load hours. Capacity factor — actual energy delivered over a period divided by what the panel would deliver running at its rated power the whole time — summarizes how much of the nameplate rating the sun actually supplies.