Walk and the rainbow follows
Drag the walker left and right. Does the rainbow stay put?
Move the observer. Watch how the bow's centre, the antisolar point, moves with you.
Drag the walker. Does the rainbow come too?
Your turn
Each lab is one step from the video. Change things and see what happens.
Each lab isolates one part of the story. The geometry is computed from water's real refractive index.
Tap the buttons and slide the sliders.
Drag the walker left and right. Does the rainbow stay put?
Move the observer. Watch how the bow's centre, the antisolar point, moves with you.
Drag the walker. Does the rainbow come too?
Slide where the sunbeam hits the drop. Where do the rays come out at about 42°?
Scan the impact height. Find the minimum-deviation ray, the rainbow ray, near 42°.
Slide the sunbeam up and down the raindrop.
One drop, drawn big. Real raindrops are a few millimetres across.
Pick a colour. Which raindrops send it to your eye?
Pick a wavelength. Only drops on a thin ring at its angle send it to you.
Tap a colour. See the drops light up!
The spread of colours inside the drop is drawn bigger than real.
Drag the Sun higher. What happens to the rainbow above 42°?
Raise the Sun and watch the antisolar point, and the bow, sink below the horizon.
Slide the Sun up high. Where did the rainbow go?
Switch the second bounce on and off. Where does the new bow appear?
Toggle the two-reflection path: the secondary bow, its reversed colours and Alexander's dark band.
Tap the button. Two rainbows!
Move the Sun, walk around and switch on the second bow.
Combine Sun height, observer position and the secondary bow.
Move the Sun and the walker. Make a rainbow!
You need two things: sunshine behind you, and rain in front of you. That is why rainbows come right after a shower.
A rainbow is not a thing. It is light coming to your eyes. When you walk, it walks with you. Your friend sees a different rainbow!
Sunlight goes into a raindrop and bends. It bounces off the back of the drop, like a mirror. Then it bends again and comes out to you.
Sunlight looks white, but it is all the colours mixed. In the drop, each colour bends a different amount, so they spread out. Each drop sends you one colour. Lots of drops make the whole rainbow, with red on top.
A rainbow is really a big circle around the shadow of your head. The ground hides the bottom, so we see an arch. When the Sun is high up at midday, there is no rainbow.
Sometimes light bounces two times in the drops. Then you see a second, paler rainbow with its colours upside down.
A rainbow forms when sunlight shines into millions of falling raindrops while the Sun is behind you.1 In each drop the light bends as it goes in, bounces off the back of the drop, and bends again as it comes out.13 Each colour bends by a slightly different amount, so white sunlight fans out into its colours.4 Raindrops about 42° from the point opposite the Sun send you red light, and drops at about 40° send you violet.58 All of those drops together draw the coloured arc you see.
In one sentence: a rainbow is sunlight, bent, bounced and split by raindrops, and sent to your eyes at about 42 degrees.
Every rainbow needs three things:1811
That's why rainbows often show up in the late afternoon, as a shower moves away and the Sun comes out behind you.6 A quick test: if you can see the shadow of your own head during a shower, you're facing the right way.6
Follow one ray of sunlight into one round raindrop:137
Rays that hit different parts of the drop come out at different angles. But rays pile up near one angle, the angle where the light is turned back least. Scientists call this path the rainbow ray. So a drop sends out a concentrated, bright beam that you see about 42° from the point directly opposite the Sun.310 The French scientist René Descartes worked out this 42° concentration using the laws of optics.5 In the interactive, drag the sunbeam up and down the drop and watch the exit angle stop growing and turn back near 42°.
About 700 years ago, the Persian scientist Kamal al-Din al-Farisi (1267–1319) couldn't study tiny raindrops, so he built a giant one. He filled a large glass globe with water and shone light through it inside a darkened room (a camera obscura). His experiments showed that drops split white light into the colours of the rainbow. Theodoric of Freiberg, in Germany, did similar experiments at the same time.4
Sunlight looks white, but it's a mix of many colours (wavelengths).1 Water bends each wavelength by a slightly different amount. Violet, the shortest wavelength, bends the most and red, the longest, bends the least.15 This spreading is called dispersion. The bounce off the back of the drop doesn't separate colours at all, because reflection treats every colour the same. The two bends do the splitting.4
The differences are tiny, as this table of water's refractive index (how strongly it bends light) shows.4 They're still big enough to spread the bow over about two degrees of sky:
| Colour | Wavelength | Refractive index of water | Primary bow angle* | Secondary bow angle* |
|---|---|---|---|---|
| Red | 660 nm | 1.331 | about 42.4° | about 50.4° |
| Yellow | 580 nm | 1.333 | about 42.1° | about 50.9° |
| Green | 550 nm | 1.335 | about 41.8° | about 51.4° |
| Blue | 470 nm | 1.338 | about 41.4° | about 52.2° |
| Violet | 410 nm | 1.342 | about 40.8° | about 53.2° |
*Angle from the point opposite the Sun, worked out from the refractive index with the law of refraction. Sources round these to 42° for red, 40° for violet, and about 50° for the secondary bow.1510
Here's the part most diagrams skip: each raindrop sends only one colour to your eye. Every drop sprays out all the colours, but only one of them heads in exactly the right direction to reach you. Higher drops (at 42°) send you red. Lower drops (at 40°) send you violet. The colours in between come from the drops in between.511 That's why a rainbow is built from millions of drops, and why red sits along the top.1
How many colours are there? A rainbow is a smooth blend, but people usually name seven: red, orange, yellow, green, blue, indigo, violet ("Roy G. Biv"). Many scientists think indigo is too close to blue to count, so six is also common.94
A rainbow is centred on the antisolar point: the spot directly opposite the Sun, where the shadow of your head points.96 Every drop that sits 42° away from that spot sends you red light. All the points 42° from one centre form a circle, so the rainbow is really a ring of light around the shadow of your head.10
From the ground, the horizon cuts off the lower part of the ring, so you see an arc.1 How much of it you see depends on the Sun's height:311
| Sun height | What you see |
|---|---|
| On the horizon (sunrise or sunset) | A full half-circle, its top 42° above the horizon |
| Low (10–30°) | A lower, flatter arch |
| Higher than 42° | No rainbow: the whole circle is below the horizon |
That's why you rarely see a rainbow around midday in summer.6 The angle never changes, so a rainbow always has the same size in the sky, however near or far away the raindrops are.11
Yes. From an airplane, with drops below you as well as above, you can sometimes see the whole ring.167 You can't see rainbows from space, though, because there are no raindrops up there. Nearly all the water in the air stays in the lowest layer of the atmosphere.7
A rainbow isn't an object sitting in one place. It's light reaching your eye from a certain angle.1 Move, and your antisolar point moves with you, so the rainbow moves too. A friend standing next to you has their own antisolar point and their own horizon, so they see light from a different set of drops: a slightly different rainbow.9 That's also why you can never reach the end of a rainbow. The pot-of-gold story goes back at least to a 17th-century Irish saying.3
Sometimes a second, fainter bow appears above the first. It's made by light that bounces twice inside each drop before it gets out.110
Look between the two bows and the sky is noticeably darker. Light bounced once inside the drops brightens the sky inside the primary bow, and light bounced twice brightens the sky outside the secondary bow. Neither sends light from the gap between them. This darker strip is called Alexander's dark band, after Alexander of Aphrodisias, who described it around the year 200.12
More bounces make even fainter bows. Third and fourth bows appear towards the Sun and are very hard to see in nature. In the lab, scientists have detected a 200th-order rainbow.96
On a sunny morning or late afternoon, stand with your back to the Sun and spray a fine mist from a garden hose or sprinkler in front of you. Look about 42° away from the shadow of your head and a rainbow appears in the spray. Waterfalls and lawn sprinklers make rainbows for exactly the same reason as rain.84
Sunlight enters a raindrop and bends (refraction), bounces off the back of the drop (reflection), and bends again as it leaves. Each colour bends by a slightly different amount, so white sunlight spreads into its colours. Drops about 42 degrees from the point opposite the Sun send red light to your eye, and drops at about 40 degrees send violet. Together, millions of drops make the coloured arc.
You see rainbow light only from drops at a fixed angle, about 42 degrees, from the point directly opposite the Sun (the shadow of your head). All the points at the same angle from a centre make a circle. The ground hides the lower part, so from the ground you usually see an arc.
You need several things at once: bright sunlight behind you, rain or spray in front of you, and a Sun no higher than about 42 degrees. That's why rainbows are most common in the morning or late afternoon after a shower, and rare at midday.
The second bow is often there, but it is only about a tenth as bright as the first, so it is easy to miss. It comes from light that bounces twice inside each raindrop. It appears at about 50 degrees, outside the main bow, with its colours in reverse order.
No. A rainbow isn't an object in one place. It is light arriving at your eye from a particular angle, so when you move, the rainbow moves with you. Everyone sees their own rainbow from their own set of raindrops.
Yes. A rainbow is really a circle centred on the point opposite the Sun. From the ground the horizon cuts it off, but from an airplane you can sometimes see the whole ring.
A rainbow is a smooth spread of colours with no sharp edges. People usually list seven: red, orange, yellow, green, blue, indigo and violet ("Roy G. Biv"). Many scientists think indigo is hard to tell apart from blue, so you'll often see six listed.