Open the 3D lab
Machine 31 · ENERGY

Solar
panel

Sunlight knocks electrons loose in silicon, a built-in electric field pushes them one way, and an inverter turns the flow into AC for your home and the grid.

TitleHow a solar panel worksDwg no.FIG. 31
DrawnTestIt3DUpdatedRevC
ScaleNTSReading9 minModelLive 3D
FIG. 31 · live model · drag to turn Solar panel 3D model, paused
410 Wone panel in full sun
~21%of the sunlight turned into power
0.59 Vfrom each silicon cell
~380 VDC from a string of 12
15-25 kWha sunny day from 4.9 kW
Sun to socket

How do solar panels work?

A solar panel turns light straight into electricity. A photon with enough energy knocks an electron loose in a silicon cell, and a built-in electric field at the cell's p-n junction pushes it out to the wires. Fifty-four cells in series give about 32 V, twelve panels about 380 V DC, and an inverter makes household AC.

Light into kWh

What the cells, the string and the meter are doing

About 9 minutes of reading.

How does a solar cell make electricity?

Stand beside a rooftop array at noon, on a terrace in Nagpur or a shingle roof outside Phoenix, and nothing seems to move. Yet the 410 W panel in our model is pushing 12.9 A at 31.8 V out of thin slices of purified silicon.

Each cell is a wafer about 0.15 mm thick, treated two ways. The thin top layer carries a trace of phosphorus, which gives it spare electrons (n-type). The thick base carries boron, which leaves gaps where electrons could sit (p-type). Such a gap is called a hole, and it moves through the crystal like a positive charge.

Light comes in packets of energy called photons. One carrying at least 1.1 electron-volts, which covers visible light and near infrared, can knock an electron free and leave a hole behind. That's the photovoltaic effect. Weaker photons only warm the glass.

A freed electron would soon drop back into a hole. The p-n junction, where the layers meet, holds a built-in electric field that sweeps electrons up to the top and holes down to the base. An idle cell shows about 0.70 V, settling near 0.59 V once current flows.

Silver fingers on the front gather the electrons into busbars, which pass them to the next cell. Fifty-four cells in series make 31.8 V; twelve panels in a string make about 381 V DC. The model follows one electron to the inverter and back to fill a hole at the rear of its own cell. (Real electrons would need days for that lap; the energy arrives almost at once, see the electric cable page.)

How many units does a 1 kW solar system generate per day?

On an Indian bill a unit is one kilowatt-hour (kWh); US bills just say kWh. How many you get depends on sunshine, which installers count in peak sun hours, meaning the day's sunlight packed into hours of full 1,000 W/m², the strength panels are tested at. Clear days in most of India and the southern US give about 4 to 6. Northern states get fewer, especially in winter.

Rated kW times peak sun hours is the ideal. Hot cells, dust, wiring and the inverter take roughly a fifth. So 1 kW of panels makes about 4 to 5 units on a clear day, and around 1,200 to 1,500 a year across most of India once monsoon weeks and winter haze are counted. US figures spread wider, roughly 1,100 to 1,700 kWh per kW a year, because a Seattle sky is not an Arizona sky.

One 410 W panel gives about 1.3 to 2 kWh on a sunny day, and the model's 4.9 kW system 15 to 25 kWh.

Do solar panels work on cloudy days?

Yes, at a discount that tracks the light. Current depends on how many photons land, so half the light gives about half the current, while the voltage barely moves.

Drag the Sunlight slider and watch This panel. Clear noon at 1,000 W/m² gives 31.8 V · 12.9 A · 410 W. At 500 it's 197 W. Heavy cloud near 300 W/m² leaves 115 W, and at 200 the voltage still reads 29.2 V, only about 8% down, while the current has shrunk to 2.6 A.

So a grey monsoon afternoon in Mumbai or an overcast February in Ohio still makes power, just less. At 300 W/m² the system's 1.34 kW of AC falls a little short of the model's 1.5 kW home load, and the house starts drawing 160 W from the grid.

At night there's nothing. The inverter sleeps once the string drops below about 60 W DC, around 20 W/m² at the tail of dusk, and evening power comes from the grid or a battery.

Why does a little shade cut solar output so much?

A dry leaf on panel 1 covers about 1.7% of its glass. Press Shade one cell and the panel drops from 410 W to 268 W, about 35%. Nobody expects that.

The cells are in series, so they all carry one current. A shaded cell passes only what its light allows, about 15% in our model. Either it throttles its row, or the other 11 panels force their 12.9 A through it and turn it into a small heater. Such hot spots can crack glass over time.

Bypass diodes give the current a way round. Each panel has three, one per third of its cells, in the junction boxes on the back. A diode is a one-way valve; when one third can't keep up, its diode carries the current past it for about 0.4 V. The panel drops from 31.8 V to 20.8 V, that third greys out as BYPASSED, and the String of 12 readout slips from 4.92 kW to 4.78 kW, about 3%.

Real shadows vary. A leaf over one half-cell costs less; a chimney or overhead tank (roof water tank) whose shadow crosses every afternoon costs far more. Good placement beats clever electronics.

Why do solar panels produce less power in hot weather?

Panels love bright, cool days. Every degree the cells climb above 25 °C (77 °F) costs about 0.37% of the output, mostly through lower voltage. Press Hot day and the cells go to 65 °C (149 °F), an ordinary figure for a dark panel in an Indian May or a Texas July. Output falls from 410 W to 350 W or about 15%.

Cells usually sit 20 to 30 °C above the air on a sunny roof, so in summer most panels run below their label. Installers leave an air gap under the frames for that reason, and a crisp spring morning can post the best wattage of the year.

Sun and heat age panels too, by about 0.5% a year, so today's 410 W panel might give around 360 W in full sun after 25 years. A 25-year warranty is normal, and many panels outlive it.

Net metering explained: where the spare noon power goes

At clear noon the model's inverter sends out 4.77 kW of AC and the house uses 1.5 kW, so 3.27 kW flows backwards through the meter to the street. A two-way (net) meter counts both ways. Its plate reads EXPORT ▲ by day and IMPORT ▼ after sunset.

Under net metering you're billed for units imported minus units exported, settled monthly or yearly. US rules are set by each state and utility, and some credit exports at less than the import price (often called net billing). In India the local DISCOM (electricity distribution company) approves the connection under state rules. Those rules shape the payback more than the panels do, so check the current ones first.

The inverter matches its grid, 230 V at 50 Hz in India (three-phase for bigger homes) or 240 V split-phase at 60 Hz in the US. The home inverter page covers how DC becomes AC. Its other job is MPPT, maximum power point tracking, which keeps nudging the string voltage to find where volts times amps peaks. That's the red dot on the plot, 31.8 V × 12.9 A = 410 W.

On-grid, hybrid or off-grid: does solar work in a power cut?

This part disappoints people. When the grid fails, a plain on-grid (grid-tied) inverter shuts down within a fraction of a second, even in blazing sun. Crews fixing the line expect it to be dead, and a roof of panels feeding it would make it live. The rule is called anti-islanding.

A hybrid inverter adds a battery. It still disconnects from the grid in an outage, but it can run chosen circuits from the battery, refill it next morning and save the midday surplus for evening. Off-grid systems have no grid link and need batteries big enough for cloudy spells.

Either way the roof wiring runs at several hundred volts DC, enough to kill, and a DC arc doesn't snuff itself out the way an AC one tends to. Fitting and repairs belong with a licensed installer. Your job is to watch the inverter's daily kWh and call them if a clear day falls well short.

One electron's trip

Knock. Split. Gather. Work.

Not to time scale: knock, split, gather, work.

Solar panel in 3D: absorb
01

Absorb

knock

Light passes the glass and the anti-reflective coating and hits the silicon. A photon with enough energy knocks an electron free, leaving a hole behind.

Solar panel in 3D: separate
02

Separate

split

Where the thin n-type layer meets the p-type base, a built-in electric field pushes the electron up to the front and the hole down to the back, so they cannot recombine.

Solar panel in 3D: collect
03

Collect

gather

Thin silver fingers and busbars gather the electrons. Cells in series add up their half-volts: about 32 V a panel and 380 V for a string of twelve.

Solar panel in 3D: convert and use
04

Convert and use

work

The inverter turns the DC into AC for the house. Anything the home does not use flows out through a two-way meter to the grid, and the circuit closes back at the cell.

Model readings

One panel and the whole roof, from clear noon to night

Numbers straight from the model's readouts. Set the Sunlight slider and the buttons to repeat any row.

Sky (Sunlight)This panelInverter outHome · grid
Clear noon, 1,000 W/m²31.8 V · 12.9 A · 410 W4.77 kW AC3.27 kW to grid
Bright sun, 800 W/m²31.4 V · 10.3 A · 324 W3.77 kW AC2.27 kW to grid
Cloudy, 500 W/m²30.7 V · 6.4 A · 197 W2.30 kW AC800 W to grid
Heavy cloud, 300 W/m²29.8 V · 3.9 A · 115 W1.34 kW AC160 W from grid
Dawn or dusk, 100 W/m²28.1 V · 1.3 A · 36 W420 W AC1.08 kW from grid
Night, 0 W/m²0 W · no light0 W, inverter asleep1.50 kW from grid
Clear noon + Hot day (65 °C cells)27.2 V · 12.9 A · 350 W4.08 kW AC2.58 kW to grid
Clear noon + Shade one cell20.8 V · 12.9 A · 268 W4.63 kW AC3.13 kW to grid

From the model's rounded single-diode curve with cells at 25 °C (77 °F) unless Hot day is on, an inverter at a fixed 97% and a home load fixed at 1.5 kW. Real roofs run hotter, so expect somewhat less.

Daily units

From peak sun hours to kWh on a clear day

The sum behind the model's 15 to 25 kWh figure, done for an ordinary clear day.

Panels on the roof, 12 × 410 W4.92 kW
Peak sun hours, clear day (India, southern US)4 to 6 h, take 5
Ideal energy, 4.92 × 524.6 kWh
Heat, dust, wiring and inverter, about 20% off× 0.8
Delivered on that day, 24.6 × 0.8about 19.7 kWh
Same day for the 4 and 6 hour endsabout 15.7 to 23.6 kWh
Per kW of panels, 19.7 ÷ 4.92about 4 kWh (units)
Per 410 W panel, 19.7 ÷ 12about 1.6 kWh

A teaching estimate. Real losses swing from about 10% on a cool, clean, unshaded roof to well over 20% on a hot, dusty one, and cloudy days follow the light. Your installer's software uses local weather records for a proper yearly figure.

Roof to pole

Twelve parts between the sun and the street

Every one is labelled in the 3D lab. Turn the model to find them.

Exploded view of the parts of a solar panel
Illustration of the main parts. Find each one moving in the 3D lab.
  1. Tempered glass
  2. EVA encapsulant
  3. Silicon cells
  4. Backsheet
  5. Aluminium frame
  6. Junction box and bypass diodes
  7. Solar connectors
  8. Mounting rails
  9. Grid-tied inverter (MPPT)
  10. Breaker panel (DB)
  11. Two-way net meter
  12. p-n junction
Rooftop myths

Solar beliefs that don't survive a cloudy week

"Solar panels work best on the hottest days." Light helps and heat hurts. Cells at 65 °C (149 °F) give about 15% less than at 25 °C (77 °F), so cool, clear days set the best peaks.

"If 2% of a panel is shaded, it loses 2%." Cells in series share one current. In the model a leaf over about 1.7% of the glass cuts the panel by 35%, and only the bypass diodes stop it from being worse.

"With panels on the roof, my lights stay on when the grid fails." A grid-tied inverter has to shut down in an outage to protect line workers. Backup needs a battery with a hybrid inverter or a backup mode.

"Panels save up the day's sunshine for the evening." They store nothing. Output ends at dusk, and night-time power comes from the grid or from a battery charged during the day.

Hands on

Shade it, heat it, then switch off the sun

Open the full 3D model and work down this list. Each step changes one thing, so you can see what that one thing does.

  1. Leave Sunlight at 1,000 W/m² · clear noon and pick the 1/4 speed. In DETAIL A, follow the yellow photon wave into the cell, the blue electron and red hole it leaves, and the ochre field arrows that drive the two apart.
  2. Turn off Glass + EVA. The cells, fingers and busbars show bare, and the stepped corner of panel 1 still shows each layer from glass down to backsheet.
  3. Drag Sunlight down to about 300. The PANEL POWER gauge falls to about 115 W, the blue current curve sinks while its right-hand end hardly shifts, and Home · grid turns to 160 W from grid.
  4. Go back to 1,000 and press Shade one cell. One third of panel 1 greys out as BYPASSED, its diode glows, and the curve grows a step. Press Remove the leaf to clear it.
  5. Press Hot day. The curve slides left as voltage drops, and This panel settles at 350 W. Cool day restores it.
  6. Press India / US grid. The AC label changes from 230 V · 50 Hz to 240 V · 60 Hz, and the distribution board (DB) becomes a breaker panel.
  7. Slide Sunlight to zero. This panel reads 0 W · no light, the inverter screen says STANDBY, and the meter plate flips to IMPORT ▼.
Before you sign

Rooftop solar questions people ask first

Short, straight answers. Open one to read it.

How much electricity does a solar panel produce per day?

A 410 W panel like the one in our model gives roughly 1.3 to 2 kWh on a sunny day, depending on peak sun hours and heat. Multiply the watt rating by your peak sun hours, then take off about a fifth for real-world losses. Cloudy days give less, roughly in step with the light.

How many solar panels do I need?

Divide your yearly use by what 1 kW makes where you live, then by the panel size. A US home using 10,800 kWh a year where 1 kW makes about 1,400 kWh needs about 7.7 kW, roughly 19 panels of 410 W. An Indian home using 250 units a month (3,000 a year) needs about 2.1 kW, five or six panels. Roof space, shade and export rules often trim the answer.

Do solar panels work during a power outage?

A plain grid-tied system switches off when the grid goes down, even in full sun, so that line workers aren't hurt by power fed back into the street. Keeping lights on in an outage needs a hybrid inverter with a battery, or an inverter with a dedicated backup mode. Ask the installer which circuits it can carry.

How much do solar panels cost, and how long is the payback?

Prices move quickly and differ by country, roof and incentive, so get current quotes rather than trusting a figure online. Payback is the price after any tax credit or subsidy, divided by the yearly saving (kWh made times your tariff). High tariffs, strong sun and fair export rules pay back fastest; incentive rules change, so check them with your utility or the official government site.

How long do solar panels last?

Most carry a 25-year performance warranty and lose about 0.5% of their output a year, so they still give most of their rated power at 25. The inverter usually needs replacing sooner, often once in the panels' life. Cracked glass, tired connectors or hot spots show up as a drop in daily kWh, which is a good reason to glance at the numbers.

How do I clean solar panels safely?

Use plain water and a soft brush or sponge, early or late in the day while the glass is cool, working from the ground with a long-handled brush. Skip detergent, pressure washers and anything scratchy, which can wear the anti-reflective coating. If the panels can't be reached from the ground, hire a professional cleaner or ask your installer rather than climbing onto the roof.

How much roof space does a 3 kW solar system need?

With 410 W panels, 3 kW means seven or eight panels, each 1.72 × 1.13 m (5.6 × 3.7 ft), so roughly 14 to 16 m² (150 to 170 sq ft) of panel alone. Rails, walkways and shade-free margins push the real figure higher, which is why installers do a site survey first.

Is it safe to touch or work on solar panels?

Treat them as live whenever light falls on them. A string like the one in our model sits near 380 V DC, nothing makes the panels themselves dead in daylight, and a loose DC connector can arc. Leave installation, repairs and junction boxes to a licensed solar installer.

On a real roof

Three things the drawing can't show you

  • Shade from one tree branch or chimney can cut a panel's output far more than the shaded area suggests.
  • Panels lose a little power in heat; keep a gap under them so air can flow.
  • Rooftop solar runs at several hundred volts DC. Installation and repairs are a job for a licensed installer, and net-metering rules depend on your local utility.
Datasheet words

Terms printed on a panel's spec label

Photovoltaic effect
Light freeing electrons in a material so they can be driven round a circuit as current.
Photon
One packet of light energy; silicon needs at least about 1.1 eV per photon to free an electron.
Hole
The gap left where an electron used to be, which drifts through silicon like a positive charge.
p-n junction
The boundary between phosphorus-treated and boron-treated silicon, where a built-in field pushes electrons and holes apart.
Busbar
A thin metal strip on the cell's face that collects current from the fingers and carries it to the next cell.
Bypass diode
A one-way electronic valve in the junction box that lets current skip a shaded third of the panel.
MPPT
Maximum power point tracking, the inverter's constant search for the voltage at which the panels give the most watts.
Peak sun hour
One hour of sunlight at 1,000 W/m², used to turn a day's uneven sunshine into one simple number.
Net metering
A billing setup that charges for the units you import minus the units you export.
Your turn

Tell us what to build next

Name a machine you have always wondered about. We build the most requested ones first.

We read every idea. The most asked-for machines get built first. See our privacy policy.