November 2026
Solar Panels
A solar panel is a strange kind of machine. It has no moving parts, it makes no sound, it burns nothing, and it can sit on a roof for thirty years doing its job. All it needs is to be left out in the sun, and electricity comes out of its two wires.
In the demonstration below you can see a small array of panels on a patch of ground. You can drag the scene to look at it from any side, and the slider lets you change the time of day, which moves the Sun across the sky:
The number below the panels shows the electric power they produce. Notice how much it changes during the day, even under a perfectly clear sky, and notice that even at its best it's only a fraction of the power that the sunlight delivers to the panels. In this article I'll explain where that electricity comes from, why so much of the light's energy is lost on the way, and what the air above the panels has to do with it. At the end we'll leave the air behind and see what changes when a panel works in space.
Some demonstrations in this article are animated. You can pause or resume all of them at once, or use the button in the corner of each one.
A panel turns light into electricity, so before we look inside it we have to take a closer look at light itself.
Light
Light behaves like a wave, and the color we see depends on the length of that wave. Light also comes in small, indivisible packets. A beam of light is a stream of an enormous number of these packets, and each one carries a tiny, fixed amount of energy. In the demonstration below you can change the wavelength of the light with the slider. The bar on the right shows the energy that a single packet carries:
Notice that the shorter the wave, the more energy each packet has. A packet of violet light carries almost twice the energy of a packet of red light. The slider also reaches beyond the colors we can see. Waves that are too short for our eyes are called ultraviolet, and waves that are too long are called infrared. I've drawn those in gray.
These packets are called photons. The energy of one photon is absurdly small, so I'll measure it in a unit made for single particles, the electronvolt. A red photon has about 1.8 electronvolts and a violet one about 3. You don't need to remember what the unit means. We'll only compare these numbers with each other.
Sunlight is a mix of photons of all these wavelengths. The plot below shows how the power of sunlight is spread across them, measured above the Earth's atmosphere:
The height of the curve shows how much power arrives at each wavelength. The peak sits in the middle of the colors we can see, which is no accident: our eyes evolved to use the light that is most plentiful. Notice, however, the long tail on the right. About half of the Sun's power arrives as infrared light, which we can't see at all.
Keep this shape in mind, because it controls nearly everything that follows. A solar panel has to deal with all of these photons at once, from the energetic ultraviolet ones to the feeble infrared ones, and it turns out that it can't treat them all equally well.
Silicon
Almost all solar panels are made of silicon, the element that also makes up most of ordinary sand. In a pure crystal of silicon every atom holds on to four neighbors, and each of those bonds is made of two electrons shared between the two atoms. The real crystal is three-dimensional, but I'll draw it as a flat grid. The small blue dots are the electrons in the bonds:
In this state silicon barely conducts electricity. An electric current is a flow of electrons, and here all the electrons are stuck in their bonds. With the slider you can see what happens when a photon arrives.
The photon vanishes, and its energy knocks an electron out of its bond. That electron is now free to wander through the crystal. It leaves behind a bond with a missing electron, which I've marked with a red ring. An electron from a neighboring bond can hop into that gap, but then the gap appears where that electron came from. You can see the gap move through the crystal this way, like the empty square in a sliding puzzle.
It's very convenient to treat that moving gap as a particle of its own. It's called a hole, and because it marks a missing negative electron, it behaves like a positive charge. One photon has therefore created a pair of mobile charges, a negative electron and a positive hole.
Unfortunately, the pair doesn't last. Sooner or later the wandering electron meets a hole and falls into it. The bond is whole again, and the energy the photon delivered turns into heat. This is all that happens when sunlight falls on a plain piece of silicon: it gets warm.
Before we fix that, we have to look at the energy involved. Breaking an electron out of a bond in silicon costs a fixed amount of energy, about 1.1 electronvolts. In the demonstration below I've drawn this as a step. Electrons in bonds sit on the lower level, free electrons live on the upper level, and nothing can stay in between. The slider controls the energy of the photons that arrive:
Three different things can happen. A photon with too little energy can't lift the electron over the step. Silicon is transparent to such a photon, and it passes straight through. A photon with just enough energy lifts the electron to the upper level, and all of its energy is put to use.
Most interesting is a photon with energy to spare. The electron is thrown high above the step, but it doesn't stay there. Within a trillionth of a second it bumps its way down to the edge of the upper level and gives the extra energy to the crystal as heat. Whatever the photon carried, the electron ends up holding the same amount: the height of the step.
That height is called the band gap, and it's the most important property of a solar cell material. It sets a harsh rule: every photon either delivers exactly one band gap's worth of energy, or nothing at all. We'll count the cost of that rule later. First we have to stop the electrons from falling back.
The Junction
We need something inside the crystal that pushes the freed electrons one way and the holes the other way before they find each other. The trick that does it is to make the silicon slightly impure, and to do so on purpose.
A silicon atom has four electrons to share with its neighbors. An atom of phosphorus has five. If we replace a few silicon atoms with phosphorus, each of them makes its four bonds and has one electron left over, which wanders off into the crystal. An atom of boron has only three electrons, so it leaves one bond incomplete, which gives the crystal a free hole:
Silicon with added phosphorus is called n-type, because its free charges are negative. Silicon with added boron is called p-type, for positive. It's important that both pieces are still electrically neutral overall. The phosphorus atom brought one extra electron, but it also has one extra positive charge in its core. If its electron wanders away, the atom that stays behind is left with a positive charge. In the same way, a boron atom that has had its bond filled by a passing electron is left with a negative charge.
Now let's see what happens when the two types of silicon touch. Use the slider to bring them together and follow the first moments:
The free electrons on the left move around at random, and so some of them stray across the boundary. On the other side they find plenty of holes and fall into them. Both carriers disappear. Near the boundary, this leaves a thin zone with no free charges at all.
What stays in that zone are the atoms that can't move. On the n-type side there are phosphorus atoms that lost their electrons, so that side of the boundary is positively charged. On the p-type side there are boron atoms with filled bonds, so that side is negatively charged. A layer of positive charge next to a layer of negative charge creates an electric field between them, which I've drawn with arrows.
That field pushes electrons back to the n-type side, and it grows until it stops any more of them from crossing. The crystal settles down with a permanent field built into it, and no battery is needed to keep it there. This boundary is called a p–n junction. It works like a one-way slope for charges: any electron that drifts into the zone is swept to the n-type side, and any hole is swept to the p-type side.
This is the missing piece. Let's build a complete solar cell around it. It's a slice of silicon about as thick as two sheets of paper, with a thin n-type layer on top of a thick p-type layer. I've added thin metal lines on the top, a metal sheet on the back, and a wire that connects them through a lamp. The slider controls the brightness of the light:
Each absorbed photon creates an electron and a hole, as before. This time, the junction separates them. The electrons are swept into the top layer and the holes are left in the bottom layer. Electrons pile up at the top with no hole to fall into. Their only way back to the holes is the long way around: through the metal lines, along the wire, through the lamp, and into the back of the cell. That flow of electrons through the wire is an electric current, and on its way it lights the lamp.
Notice that with more light, more electrons flow each second. Nothing in the cell is used up. Every electron that leaves through the top returns through the bottom and fills a hole, and the cell is ready for the next photon. I've drawn far fewer particles than there are in reality. In full sunlight, a cell the size of your hand moves about a hundred billion billion electrons through the wire every second.
Volts and Amps
The electrical output of a cell is described by two numbers. The current says how many electrons flow through the wire each second. The voltage says how much energy each of those electrons delivers on its trip. The power we get is one multiplied by the other.
The two aren't independent. What we connect to the cell decides the voltage it works at, and the cell responds with a certain current. In the plot below, the dark curve shows every combination that the cell can deliver. The first slider moves along this curve by changing the voltage. The second one changes the brightness of the light. The area of the colored rectangle is the power:
At one end, we can connect the two sides directly with a plain wire. The current is as high as it can be, because every freed electron goes around the loop. But the electrons deliver no energy to anything, the voltage is zero, and so is the power.
At the other end, we can leave the wires unconnected. Electrons pile up in the top layer until the voltage is so high that they are forced back across the junction as fast as the light frees them. The voltage is at its maximum, but no current flows, and again there is no power.
Somewhere in between there is a sweet spot, close to the knee of the curve, where the rectangle is largest. The electronics attached to every solar panel hunt for this point all day long, because it moves when the light changes. Notice how it changes: dimmer light cuts the current in proportion, but it barely changes the voltage.
That voltage is the cell's weak point. A silicon cell gives a little more than half a volt, no matter how large it is. A bigger cell catches more light and gives more current, but the voltage comes from the band gap of silicon, and that doesn't depend on size. Half a volt is not enough for any practical purpose.
The solution is the same as with batteries in a flashlight: connect many of them in a chain, the top of one cell to the bottom of the next. The same electrons flow through all of them and gain a little energy in each one. A solar panel is exactly this. Use the slider to add cells to the chain:
A typical panel has sixty cells or more, which together give 30 to 40 volts. This is why a panel looks like a grid of dark squares.
A chain has an awkward property, however. The same current has to flow through every cell, so the weakest cell sets the pace for all of them. In the demonstration below you can slide a shadow over one cell of a short chain:
A leaf that covers a single cell can choke the output of the whole chain. It gets worse: the other cells try to force their current through the shaded one, which heats up and can be damaged. Panels protect themselves with a few bypass diodes, one-way valves that let the current skip a group of cells that can't keep up. The panel loses the output of that group but keeps the rest.
Where the Energy Goes
The best panels you can buy turn a little less than a quarter of the sunlight that hits them into electricity. That may sound like a poor result for an industry that has had seventy years to improve it. To see why it isn't, we have to go back to the rule of the band gap and apply it to the whole mix of photons in sunlight.
The plot below shows the power of sunlight at the Earth's surface across the wavelengths, like before. This time I've colored it by what an ideal cell does with it. The slider moves the band gap of the material. It starts at the band gap of silicon:
All photons to the right of the line have less energy than the band gap. They pass through and their energy is wasted. All photons to the left are absorbed, but each one keeps only one band gap's worth of energy, and the excess becomes heat. Only the green part can leave the cell as electricity. In the heat I've also included a few subtler losses that no cell can avoid. For example, a warm cell glows faintly with its own infrared light and loses some energy that way.
Try to do better by moving the band gap. With a small band gap the cell catches almost every photon, but it keeps very little from each one. With a large band gap it keeps a lot from each photon, but most photons pass through. The best compromise is a band gap between 1.1 and 1.4 electronvolts, and even there only about a third of the sunlight's energy becomes electricity.
This ceiling of roughly 33% for a cell with one junction is known as the Shockley–Queisser limit. It isn't a limit of engineering. It follows from the spectrum of the Sun and the all-or-nothing rule of the band gap. Silicon sits very near the best band gap, which is a lucky property for the second most common element in the Earth's crust.
Real cells fall short of the ideal for reasons that are engineering. Some light reflects off the surface. The metal lines on top cast shadows. Some electrons meet a hole before they reach the junction. The wires resist the current. The best silicon cell made in a laboratory reaches 27.8%, and panels on sale reach 20 to 24%. Seen against a ceiling of about 30% for silicon, this is a technology that is close to finished.
There is one way through the ceiling. The limit applies to a single band gap, so we can stack cells with different band gaps. The top cell has a large band gap. It takes the energetic photons and wastes little of their energy. The photons it can't absorb pass through it to a cell with a smaller band gap underneath. Use the buttons to change the number of layers:
With two layers, the ideal efficiency climbs to about 44%, and with three it reaches about 50%. Each layer handles the part of the spectrum that suits it, so less energy turns to heat. These tandem cells are hard to make, but they are no longer exotic. A cell that pairs silicon with a material called perovskite reached 34.85% in 2025, beyond anything a single junction can do. We'll meet the three-layer kind again in space.
The Angle of the Sun
So far the light has fallen straight onto the cell. On a roof it rarely does. In the demonstration below we look at a panel from the side. The first slider sets the height of the Sun in the sky and the second one sets the tilt of the panel:
I've drawn the sunlight as evenly spaced rays. The number of rays that the panel catches shows how much power it receives. When the panel faces the Sun squarely, it catches the most rays. When the light arrives at a shallow angle, the same panel catches only a few, because the same light is spread over a larger area. This is the same reason why the ground is colder in winter, when the Sun is low.
The Sun moves all day, and its path changes with the seasons, so a fixed panel is a compromise. The usual choice is to face it toward the equator and tilt it by about the latitude of the place. The plot below shows the power that reaches such a panel during one cloudless day at a latitude of 40°, about that of Madrid, Beijing, or Denver. The slider changes the day of the year:
The area under the curve is the energy collected over the day. The curve has the shape of a hill: the panel faces the Sun squarely only around noon. In December the day is short and the hill is narrow. In June it's wide. And for about half of every 24 hours, the curve is flat at zero.
Large solar farms often mount their panels on motorized frames that follow the Sun, which makes the hill wider and flatter. But if you look closely at the edges of the hill, you'll find that something else also weakens the light in the morning and the evening, something that no tracking can fix. We have to look at what's above the panel.
Air
Before sunlight reaches a panel, it has to cross the atmosphere. Air looks perfectly transparent, but it isn't. In the demonstration below a beam of white light enters a layer of air from the left. I've drawn the light as photons of a few different colors. The slider changes the thickness of the layer:
Now and then a photon bumps into a molecule of air and flies off in a new direction. This is called scattering. Notice that it's very uneven: blue and violet photons are scattered many times more often than red ones, because the tiny molecules disturb short waves much more than long ones. With a thick layer, the beam that comes out on the right has lost much of its blue.
This one effect explains the look of the whole sky. The blue light that was knocked out of the Sun's beam bounces around the atmosphere and reaches our eyes from every direction, so the sky is blue. And at sunset, when the beam has crossed a great deal of air, mostly the red and orange light is left in it.
For a panel, the scattered light isn't entirely lost. About half of it eventually reaches the ground as the soft glow of the sky. This is called diffuse light, and it's the reason a panel still produces something in the shade or under clouds. The rest is scattered back to space.
How much air does the light have to cross? That depends on the height of the Sun. In the next demonstration I've drawn the atmosphere as a blue layer around the Earth. I've made it far thicker than it is so that we can see it. On a globe the size of a football, the real layer would be about as thick as a coat of paint:
When the Sun is straight overhead, the light takes the shortest path. Let's call that amount of air one atmosphere. As the Sun gets lower the path gets longer. At a height of 42° the light crosses one and a half atmospheres, at 30° it crosses two, and near the horizon it crosses more than ten. This number is called the air mass. Solar panels are officially rated under an air mass of 1.5, which is a fair average for the places where most people live.
Scattering isn't the only thing that air does. Some gases absorb light of particular wavelengths and turn it into heat. Ozone, high in the atmosphere, removes most of the ultraviolet. Water vapor removes several wide slices of the infrared. We can see all of these effects together if we return to the spectrum of sunlight. The dashed line shows the sunlight above the atmosphere, and the colored shape shows what arrives at a panel that faces the Sun. The slider sets the amount of air on the way, from none to five atmospheres:
With no air, the two shapes are the same, and the sunlight carries 1,361 watts for every square meter. After one and a half atmospheres about 1,000 watts are left, and after five only about 700. Notice where the losses are. Scattering eats into the left, blue side of the shape. The deep notches on the right are the work of water vapor. The far left edge, the ultraviolet, is cut off by ozone. This is my own simplified model of the atmosphere, so the notches are smoother than the real ones.
The plot also shows a second number, the share of the light that an ideal silicon cell turns into electricity. Here is the surprise: as the air is taken away, that share goes down, from about 32% to 30%.
The reason is in the two rules of the band gap. Look at what the atmosphere removes. The ultraviolet and blue photons are the ones that waste most of their energy as heat. The infrared photons beyond the band gap line are the ones silicon can't use at all. The air filters out a good deal of light that the cell handles badly, and it leaves a mix that suits silicon better. So the atmosphere has two opposite effects. It takes away more than a quarter of the power, and that loss is what matters. But the light that does get through is converted slightly more efficiently.
Clouds change this picture more than anything else. A thick cloud layer blocks the direct beam completely and leaves only diffuse light, so the output drops to 10 to 25% of its clear-sky value. Dust, smoke, and humid haze act like a thicker atmosphere. A panel on a high mountain has less air above it and receives noticeably more light than one at sea level.
Heat
The air affects a panel in one more way. Most of the sunlight that a panel absorbs turns into heat, and on a sunny day a panel is easily 25 or 30 degrees hotter than the air around it. That's unfortunate, because a solar cell works worse when it's hot. The plot below shows the same curve of current and voltage as before, with the cell working at its sweet spot. The slider changes the temperature of the cell:
In a hot cell, the atoms shake more, and that shaking helps electrons to cross the junction in the wrong direction. The current barely changes, but the voltage falls. A silicon panel loses about 0.3 to 0.4% of its power for every degree. Panels are rated at 25 °C, shown by the dashed curve, but on a summer roof they reach 60 or 70 °C and give 10 to 15% less than their label says.
The air is what keeps this in check. Wind carries the heat away, which is why panels are mounted with a gap behind them. The best conditions for a solar panel aren't found in a hot desert. They are found on a cold, clear, bright day, ideally with snow on the ground to reflect some extra light.
Let's collect what the Earth does to a panel. Night takes away half of the time. The angle of the Sun takes away much of the rest. The air takes a quarter of the light at the best of times, and the clouds take more. All of these problems have the same solution, at least on paper.
Space
A few hundred kilometers above our heads there is no air, no weather, and no dust. Solar cells have worked there since 1958, when the fourth satellite ever launched carried six small ones, and almost every spacecraft since has been powered by them. Let's see what a panel gains up there, starting with the night.
A satellite circles the Earth, and for a part of each circle it passes through the Earth's shadow. In the demonstration below the sunlight comes from the left. The slider changes the height of the orbit. This drawing is to scale:
In a low orbit, at the height where the International Space Station flies, a satellite goes around in about an hour and a half, and it can spend more than a third of that time in the dark. Its panels have to charge batteries to get through sixteen short nights each day.
As the orbit gets higher, the Earth's shadow covers a smaller and smaller part of it. In the highest orbit I've drawn, 36,000 kilometers up, the dark part is less than a twentieth of the circle. In reality it's better still. I've drawn the worst case, in which the orbit passes through the middle of the shadow. Because the Earth's axis is tilted, a satellite in this orbit misses the shadow entirely for most of the year, and it's in sunlight more than 99% of the time.
Let's now compare a day on the ground with a day in such an orbit. The plot shows the power of the light on a panel over 24 hours. The hill is the panel on the ground from before, on a cloudless day. The flat line is a panel in space, which always faces the Sun. The slider changes the day of the year for the panel on the ground:
The sunlight in space is only about a third stronger than the sunlight at noon on the ground. But a panel in space gets it all day, every day, at a perfect angle. Over a clear summer day it collects about four times as much energy as the panel on the ground, and in winter more than six times. If we also count the cloudy days, the advantage over a typical place on Earth is closer to eight or ten times.
That advantage isn't free. Space is a rough place for a solar cell. With no air around it, a panel can't be cooled by wind. It can only get rid of heat by glowing in the infrared, and in a low orbit its temperature swings by about 200 degrees between sunlight and shadow, sixteen times a day. Above the atmosphere and the Earth's magnetic shield there is also a steady rain of fast particles, which knock atoms out of place in the crystal. Each of those defects is a spot where electrons and holes meet too early, so a panel in space slowly gets worse. And we've seen that the raw sunlight of space, with all of its ultraviolet and infrared, is a mix that silicon converts less efficiently.
For these reasons, and because every kilogram sent to orbit is expensive, most spacecraft don't use silicon. They use the three-layer cells that we met earlier, made of more exotic materials. These cells turn about 30% of the unfiltered sunlight into electricity, they cope better with the particles, and they cost a great deal more for the same area. On a satellite that's a good trade.
If space is such a good place for a panel, could we build power stations there and send the energy down? The idea is old and serious. A large array in a high orbit would turn its electricity into a beam of microwaves, which pass through air and clouds almost untouched, and a wide field of antennas on the ground would turn the beam back into electricity. In 2023 a small experiment from Caltech beamed a detectable amount of power from orbit to a rooftop on Earth for the first time.
The physics works. The difficulty is everything else. Each conversion, to microwaves and back, loses a part of the energy. The beam spreads out, so the transmitter has to be about a kilometer across and the receiver several kilometers. All of it has to be launched and assembled in orbit. Meanwhile, panels on the ground have become one of the cheapest sources of electricity ever built, and the factor of eight has to pay for all of that. For now, the sunlight collected in space is used in space.
Further Reading
PVEducation, by Christiana Honsberg and Stuart Bowden, is a free online textbook on photovoltaics. It covers everything in this article in far more depth, from the spectrum of sunlight to the design of cells and modules, and it has calculators for many of the quantities I've shown.
The chart of best research-cell efficiencies kept by the National Renewable Energy Laboratory shows the record for every type of solar cell since 1976. It's the best single picture of how the technology has progressed.
For the theory of the efficiency limit, the original 1961 paper by William Shockley and Hans Queisser, Detailed Balance Limit of Efficiency of p-n Junction Solar Cells, is short and more readable than its title suggests.
Final Words
It's easy to walk past a solar panel without a second look. It's a dark rectangle that does nothing you can see or hear.
But inside that rectangle, light that left the Sun eight minutes ago ends its trip by lifting a single electron over a single step, and a field that has been frozen into the crystal since the day it was made quietly sends that electron on its way. It happens countless times each second, in every cell, with no part moving and nothing wearing out.
The limits of the device are just as quiet. They were set by the color of a star, by the properties of the most common solid on our planet, and by the thin layer of air that also makes the sky blue. The next time you see a roof covered in panels on a cold, bright morning, you'll know that they're having a very good day.