November 2026
Rainbows
A rainbow is one of the few things in nature that looks like it was drawn with a compass. It's a perfect arc of color hanging in the sky, and it seems to stand somewhere in the distance, yet nobody has ever reached its end. It appears only at certain moments, only in certain directions, and it vanishes as quickly as it came.
The demonstration below shows what you might see when you stand in a field with the Sun at your back and rain falling in front of you. The slider changes how high the Sun is in the sky behind you:
Notice that the higher the Sun climbs, the lower the rainbow sinks, and when the Sun is high enough the main bow disappears completely. You may also have spotted a second, fainter bow above the first one, with its colors in the opposite order, and that the sky inside the main bow is brighter than the sky outside it. The dark shape at the bottom is your own shadow, and as you move the slider you might notice that the bow is always centered on the shadow of your head.
All of these details have a reason, and in this article I'll explain them one at a time. We'll see that a rainbow isn't an object at all, but a kind of reflection that every observer sees in a slightly different place. To get there, we first have to look at what happens to light when it meets water.
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.
Light in Water
Light is fast. In empty space it covers about 300,000 kilometers every second, which is enough to go around the Earth seven times. When light enters water, however, it slows down to about 225,000 kilometers per second. In the demonstration below, two short pulses of light start at the same moment. The upper one travels through air the whole way, and the lower one has to cross a block of water:
As you can see, the lower pulse falls behind while it's inside the water, and then continues at full speed again once it leaves. The ratio between the speed of light in empty space and its speed in a material is called the refractive index of that material. For water it's about 1.33, which means that light in water is about a quarter slower than in empty space. Air slows light down too, but so little that I'll ignore it.
A change of speed alone wouldn't be very interesting, but it has a surprising consequence when light meets the surface of water at an angle. To see it, it helps to think of light as a wave. In the next demonstration I'm drawing the crests of a light wave as gray lines. The arrow shows the direction in which the wave travels, and the slider changes the angle at which it arrives at the water:
Notice what happens to a crest as it reaches the surface. The part of the crest that enters the water first is slowed down first, while the rest of it is still moving quickly through the air. The crest pivots around, a little like a row of marching people when the people at one end start walking through mud, and the wave continues in a new, steeper direction. The dashed line shows where the light would go if the water weren't there.
This bending of light at the boundary between two materials is called refraction. The amount of bending depends on the angle. Light that arrives straight down slows down but doesn't change direction at all, because the whole crest enters the water at the same moment. Light that arrives at a shallow angle bends the most. Notice also that the crests are closer together in the water. The wave is just as frequent, but because it moves more slowly, each crest has less distance to cover before the next one arrives.
Refraction is the reason a straw in a glass of water looks broken, and the reason a swimming pool always looks shallower than it is. It's also the first ingredient of a rainbow. The second ingredient is color.
Colors
The light from the Sun looks white, but it's really a mix of all the colors we can see, from red to violet. What makes these colors different is the length of the wave: red light has the longest waves we can see, about 0.7 thousandths of a millimeter from crest to crest, and violet light has the shortest, about 0.4 thousandths of a millimeter.
So far I've pretended that water slows down all light by the same amount, but that's not quite true. Water slows down short waves a little more than long ones. The refractive index of water is about 1.331 for red light and 1.343 for violet light. The difference is less than one percent, but it means that each color bends by a slightly different amount. In the demonstration below a beam of white sunlight enters water, and you can change its angle with the slider:
The real difference is too small to see at this size, so I've made the spread between the colors ten times larger than it really is. Notice that the violet light is bent the most and the red light the least. The colors that were mixed together in the white beam now travel in slightly different directions, and they slowly separate. This is called dispersion.
When the beam arrives almost straight down, the colors barely separate. When it arrives at a shallow angle, they fan out the most. Even then, the spread is small. A glass prism shows dispersion better than water does, because glass is more dispersive and because a prism bends the light twice, on the way in and on the way out. A drop of water bends light twice as well, and we'll soon see that it does something else in between.
Reflection
Not all of the light that arrives at the surface of water gets through it. Some of it bounces back, which is why you can see the sky reflected in a lake. For a raindrop the most important case is light that's already inside the water and hits the surface from below. In the demonstration below, a beam of light travels up through water and meets the surface. You can change its angle with the slider, and the numbers show what fraction of the light gets out and what fraction is reflected back into the water:
When the beam meets the surface straight on, only about 2% of it is reflected. That fraction grows slowly as the angle gets shallower, and then very quickly as it gets close to 49°. Notice also that the light that does get out leaves at a shallower angle than it arrived, because it speeds up as it enters the air.
Past an angle of about 48.6°, something remarkable happens. The light can't get out at all, and all of it is reflected. This is called total internal reflection, and it's what keeps light trapped inside optical fibers. A raindrop, however, never reaches that limit. We'll see that inside a drop the light always meets the surface at an angle where most of it escapes, and only a few percent reflects. That small reflected part is the light that makes the rainbow, which is one reason rainbows are never very bright.
We now have everything we need. Light slows down and bends when it enters water, each color bends by a different amount, and a little bit of it reflects every time it meets the surface. Let's put these pieces together inside a single raindrop.
One Drop
Small raindrops are very nearly perfect spheres. Larger ones are a little flattened by the air rushing past them, but I'll treat them all as spheres. Since sunlight arrives in parallel rays, I'll also look at a single slice through the center of a drop, which turns it into a circle. In the demonstration below, a ray of sunlight arrives from the left. The slider changes the height at which it hits the drop:
The ray bends as it enters the drop, crosses it, and meets the back surface. Most of the light leaves the drop there, which I've drawn faintly on the right. A few percent is reflected and crosses the drop again. At the front surface the ray bends a second time as it leaves, and it heads back roughly towards where it came from. I've also drawn faintly the small part of the light that reflects off the drop's front surface without ever entering it.
The number shows the angle between the ray that leaves the drop and the direction straight back toward the Sun. I'll call it the exit angle. It depends on where the ray hits the drop. A ray that hits the exact center goes straight through, reflects straight back, and leaves with an exit angle of 0°. As the ray hits farther from the center, the exit angle grows. But if you keep moving the slider, you'll notice that the angle stops growing at about 42°, and then, for rays that hit near the edge of the drop, it starts to shrink again.
This turning point is the key to the whole rainbow, so let's look at it more carefully. The sunlight that falls on a drop isn't a single ray, but a whole beam of parallel rays that cover its entire face. In the next demonstration I've drawn many such rays, evenly spaced, and followed each one through the drop:
The rays that hit near the center leave close to the direction they came from, and the rays farther out leave at larger and larger angles. But no ray leaves at more than about 42°, which I've marked with a dashed line. And notice how the rays crowd together near that line. Many of them leave the drop in almost exactly the same direction, while the space between 0° and 40° is filled more sparsely.
To see this crowding more clearly, it helps to plot it. On the left side of the next demonstration you can see the exit angle of a ray, plotted against how far from the center it hits the drop. On the right I've split the angles into slices one degree wide, and the length of each bar shows how many of the evenly spaced rays leave the drop in that slice. The slider again moves the ray:
The curve climbs steadily, flattens out at the top, and then falls steeply. Where the curve is steep, a small change in where the ray hits makes a big change in where it goes, so the rays spread out over many angles. Where the curve is flat, at its very top, a whole range of rays leaves at almost the same angle. That's why the bar for the slice just below 42° is by far the longest. If you looked at an illuminated drop from that direction, you'd see it shine much more brightly than from any other.
The ray at the top of the curve is called the rainbow ray, and it hits the drop at about 86% of the way from the center to the edge. In 1637 the French philosopher René Descartes worked this out by following rays through a drop by hand, one at a time, which is essentially what the demonstration above does. He found that the light leaving a drop piles up at an angle of about 42°, and he saw that this was exactly the angle of the rainbow in the sky.
There's no color in the picture yet, however. Everything we've done so far used a single refractive index, as if all of sunlight were one color.
Splitting White Light
Each color has its own refractive index, so each color takes its own path through the drop. In the next demonstration a single ray of white sunlight enters a drop, and I've followed seven of the colors it contains. The slider changes where the ray hits:
Inside the drop the paths are almost on top of each other, but by the time the light leaves, the colors fan out, with red leaving at a larger angle than violet. This time I haven't exaggerated anything. Since the light is bent twice and reflected once, the small differences in refraction add up to a spread of almost two degrees, about four times the width of the Sun in the sky.
The fanning out of a single ray is only half the story, though. What matters most for the rainbow is where each color piles up. In the plot below I've drawn the exit angle curve, from the previous section, for each of the seven colors. I've zoomed in on the region near the top of the curves:
Every color has a curve with the same shape, so every color has its own rainbow ray and its own angle where its light piles up. For red light that angle is about 42.4°, and for violet light it's about 40.6°, with all the other colors in between. Notice also that for each color, the light leaves only at angles below its maximum. A drop sends no red light at all at angles larger than 42.4°.
We now know what a single drop does with sunlight. But we still haven't seen a rainbow. A drop sends its brightest red light in one direction and its brightest violet light in a slightly different direction, so an eye can't catch both colors from the same drop. To explain the bow, we have to bring in many drops, and the person looking at them.
Drops and Eyes
The demonstration below shows a side view of an observer standing in a field, with the Sun low behind them and rain falling in front of them. Of course, the rain is really much farther away than I'm drawing it here. You can drag the drop around in the rain:
The dashed line starts at the Sun, passes through the observer's head, and continues into the ground, where it marks the shadow of their head. The point that this line points to is called the antisolar point: it's the point in the sky directly opposite the Sun. Every drop in the sky is lit by the same parallel sunlight, so each drop sends its light out in the same pattern around the direction of the Sun's rays. The angle that matters is the one between the antisolar line and the line from the observer's eye to the drop, which the figure shows in pink. It's the same exit angle as in the drop figures, seen from the other end.
If you put the drop at 42.4° from the antisolar line, it sends red light into the eye. If you move it a little lower, to 40.7°, the light that reaches the eye is violet. A drop farther inside sends a weak mix of all the colors, which looks whitish, and a drop farther outside sends nothing to the eye at all. Notice that it doesn't matter how far away the drop is. You can drag it along a line from the eye and the color won't change, only the angle matters.
So the color you see in a given direction doesn't depend on any particular drop. It depends only on the direction itself, measured from the antisolar point. And as the rain falls, new drops constantly take the place of the old ones in each direction, which is why the bow looks steady even though the drops that make it are falling through it.
So far we've looked at a flat slice of the world. But the angle between two directions doesn't care about up, down, left, or right. All the directions that are 42° away from the antisolar point form a cone around the antisolar line. In the demonstration below, you can drag the scene to look at it from different sides, and the slider again changes the height of the Sun:
I've drawn the rain as a flat curtain to keep the picture simple. The colored arc marks the drops that send their color into the observer's eye. The thin lines from the eye to the arc are a few of the lines on the cone, and the dashed line is the axis of the cone, which goes through the shadow of the observer's head. From the observer's position this arc looks like a perfect circle centered on the antisolar point, which you can see if you look along the axis from behind the observer.
Now we can understand why the rainbow sinks as the Sun rises. The antisolar point is always as far below the horizon as the Sun is above it, so when the Sun is on the horizon, the center of the circle is on the horizon too, and we see exactly half of it. As the Sun climbs, the circle sinks, and more of it ends up below the ground, where there's no rain to light up. When the Sun is higher than about 42°, the whole bow is below the horizon. In the figure this happens a little later, because I've drawn the observer much taller than they really are compared with the distance to the rain. That's why rainbows are a morning and late-afternoon sight, and why in summer you'll rarely see one around midday. From an airplane or a mountain top, where there are drops below you as well, you can sometimes see the whole circle.
This also explains why you can never reach the end of a rainbow. The rainbow isn't in any particular place. It's a set of directions, fixed relative to the Sun and your own eye, and when you walk, the cone walks with you. A person standing next to you sees light from a different set of drops, so in a sense everyone sees their own rainbow.
The Bright Sky Inside
We've followed rays and found where each color piles up. Now we can use the same rays to compute what a rainbow actually looks like. For every direction in the sky I've added up the light from all the rays that reach the eye from that direction, for every color in sunlight, with the right amount of reflection at each surface. I've also included the fact that the Sun isn't a point but a small disc, half a degree across, which blurs everything by that amount.
The strip at the top of the next figure shows the result, as it would look against a dark rain cloud. Its left end is the antisolar point, and the strip runs outward from there, so the numbers below give the angle from the antisolar point. The plot under the strip shows how bright the sky is at each angle:
The rainbow is the bright, colored edge just below 42°. Notice that the bow is sharp on the outside and soft on the inside, just like the piles of rays we saw in each drop: the light stops abruptly at its maximum angle, and fades gradually on the other side. Notice also that the colors aren't as clean as in the ray figures. Only the outer edge looks really red. Farther in, each angle receives a mix of several colors, so the orange, yellow, green, and blue bands blend into each other, and the violet end mostly dissolves into a pale, bluish white.
The plot also explains the bright sky inside the bow, which we saw in the very first figure. The drops inside the bow send a weak mix of all colors to the eye, and that adds up to a faint white glow. Outside the bow, in this picture, the drops send nothing at all.
But in a real sky, the region above the bow isn't completely dark, and in the first figure, there was another bow up there. To explain it, we have to go back into the drop.
The Second Bow
When the light that reflected off the back of the drop arrives at the front surface, most of it leaves, and we've followed that part. But a few percent is reflected again, and goes around the drop once more. In the demonstration below I'm following such a ray, which reflects twice before it leaves. The slider again changes where it hits the drop:
This time the ray travels the other way around the drop, and it crosses its own incoming path on the way out. The exit angle behaves like a mirror image of what we saw before. Rays that hit near the center leave at large angles, and as the ray moves out, the angle shrinks, until it reaches its smallest value of about 51°, then it grows again near the edge.
So light that reflects twice also piles up at one angle. This time it's a minimum, not a maximum, which means the light fills the sky outside the circle of about 51°, and its edge is on the inside. And since the curve is flipped, so is the order of the colors: red piles up at about 50.4° and violet at about 53.6°, so the secondary bow has red on the inside and violet on the outside.
Here's the same strip and plot as before, now with the light from both bows and from the reflection off the front of the drops. I've filled in the part of the light that comes from the second bow:
The secondary bow is much fainter than the primary one. Each internal reflection keeps only a few percent of the light, and this light has to survive two of them. Its colors are also spread out over a wider band, which dilutes them further.
Notice the stretch between the two bows. The light that reflects once goes only inside 42°, and the light that reflects twice goes only outside 50°, so the drops in between send very little light to the eye. This dark stripe is called Alexander's band, after Alexander of Aphrodisias, who described it around the year 200. If you go back to the first figure, you'll see all three features at once: the bright sky inside the primary bow, the dark band, and the faint secondary bow with its reversed colors.
The light can of course go around the drop three, four, or more times, and in principle each number of reflections makes its own bow. The third and fourth bows, however, appear in the direction of the Sun, where the glare is overwhelming, and each additional reflection makes the light fainter still. They were photographed for the first time only in 2011.
With rays alone we've explained almost everything about the rainbow: its angle, its colors, their order, the second bow, and the dark band between them. But if you look closely at a bright rainbow, you may see something that no ray picture predicts.
Waves
Sometimes, just inside the violet edge of the primary bow, there are a few extra narrow bands of pale green and pink. They're called supernumerary bows, which means "extra in number", and the ray picture can't explain them at all. In 1803 the English scientist Thomas Young realized where they come from. He was one of the first to argue that light is a wave, and he had shown that two waves that meet can strengthen or cancel each other.
Let's go back to the plot of the exit angle. Except at the very top, every value on that curve is reached twice: once by a ray on the rising side, and once by a ray on the falling side. In the demonstration below I've drawn two such rays, a blue one and an orange one. The slider changes their common exit angle:
The two rays leave the drop in exactly the same direction, so they reach the same eye together. But they've traveled through the drop along different paths, of slightly different lengths. When the crests of the two waves arrive at the same time, they add up, and when the crests of one arrive with the troughs of the other, they cancel. When the angle is close to the rainbow angle, the two paths are almost the same. Farther from it, they differ more and more, and the two rays go in and out of step many times as the angle changes.
The full wave theory of the rainbow was worked out by the English astronomer George Airy in 1838. In the plot below I've used his result to show the brightness of red light around the rainbow angle. The dashed line is what we'd get from rays alone. The slider changes the radius of the drops:
The waves turn the smooth ray result into a series of bright and dark bands. The brightest band is the rainbow itself, and the others are the supernumerary bows for this one color. Notice, also, that the main peak sits a little inside the angle that rays predict, and that it doesn't shoot up to infinity like the dashed line does. For large drops, the bands are narrow and packed closely together. For small drops, they become wide and far apart, and the main peak moves farther in.
In a real rainbow, the bands of all the colors overlap, each with its own spacing, and the Sun's disc blurs them some more. The strip below shows the result for the region around the primary bow, computed the same way as before, but now with waves. The slider again changes the radius of the drops:
For large raindrops, a millimeter in radius, the bands of different colors are so narrow that they blur together, and the bow looks just like the one we computed with rays. For drops a quarter of a millimeter in radius, the first few bands survive inside the bow as pale stripes of green and purple. These are the supernumerary bows. They're easiest to see near the top of the rainbow. Large drops are flattened, and a flattened drop doesn't send its light to the top of the bow, so that part is made mostly by smaller drops that are round and of similar size. If the drops differ a lot in size, each size puts its bands in a different place and they wash out.
For the tiny droplets of fog and clouds, a hundredth of a millimeter in radius, the bands of all colors become so wide that they overlap almost completely, and the colors mix back into white. What remains is a broad, pale arc called a fog bow. You can sometimes see one when the Sun shines on a bank of fog behind you. For drops this small even Airy's theory is only an approximation, but the picture is right in its broad outlines.
There's more to rainbows than I've covered here. The light of a rainbow is strongly polarized, because of the way reflection treats different polarizations, which is why a polarizing filter can make parts of a bow disappear. Large raindrops are flattened, which changes the bow near its top. And bows can appear in reflected sunlight, in the spray of a waterfall, or under a bright Moon. All of them, however, follow from the same few ideas we've seen.
Further Reading
Atmospheric Optics by Les Cowley is a large and beautifully illustrated website about rainbows, halos, glories, and every other optical effect in the sky. It has photographs of nearly everything mentioned in this article, including supernumerary bows, fog bows, and the higher-order bows.
The Rainbow Bridge: Rainbows in Art, Myth, and Science by Raymond Lee and Alistair Fraser tells the long history of how people have tried to understand the rainbow, from ancient myth to Airy's theory, with the science explained carefully and without heavy mathematics.
"The Theory of the Rainbow" by H. Moysés Nussenzveig, published in Scientific American in 1977, is a short and very clear account of the wave theory of the rainbow, written by one of the physicists who completed it.
Final Words
The rainbow has been explained, piece by piece, over more than two thousand years. Aristotle already noticed its fixed shape, Theodoric of Freiberg followed light through glass globes filled with water in the early 1300s, Descartes found the 42° by tracing rays by hand, Newton added the colors, and Young and Airy found the waves hiding in the bands at its edge. Each step needed a new idea about light itself, and the rainbow was there to test it.
What I find most striking is how little the rainbow needs. There's no special material, no structure, nothing arranged on purpose. There are only billions of falling drops, each one bending and reflecting sunlight in the same simple way, and the crowding of rays at one particular angle that turns their combined light into a perfect circle of color.
The next time you see a rainbow, turn around and find the Sun, then look at the shadow of your head and the circle around it. The bow you're looking at is made by drops that nobody else sees from that angle, and it will move with you as you walk.