;colony/science  / Everyday Physics  / How do rainbows form?
Everyday Physics · Light & Colour

How do rainbows form?

Every rainbow is millions of raindrops each doing the same three-step trick with sunlight — and it only works from where you stand.

Plate 07 — A raindrop, ray-traced refract · reflect · refract · 42°
Slide the sunbeam up and down the drop — the exit angle keeps stalling near 42°.
Predict firstBefore you trace a ray through the drop: will red exit at a wider or narrower angle than violet?
sunlightone bounce inside · each colour bends its own amount
PLATE 07 · A RAINDROP, RAY-TRACED
Where the ray enters the drop 82% from centre
Slide it — the exit angle stalls near 42°. That pile-up is the rainbow.
Red exits at
42.0°
Violet exits at
40.4°
The drop bends the light going in, bounces it off the back wall, and bends it again going out. Each colour bends a tiny bit differently, so white sunlight leaves as a fan of colours. Try every entry height: the exit angle keeps landing near 42° — that's why the whole sky's drops agree on one arc.
Try with the plate
  • Trace one ray refracting, reflecting, and refracting back out
  • Compare the exit angles of the red and violet rays

Rainbows form when sunlight enters millions of raindrops, refracts, reflects off the back of each drop, and refracts again on the way out. Each colour bends slightly differently, sending red out near 42° and violet near 40°, so the drops paint a coloured arc around the point opposite the sun.

The short answer

Every raindrop is a tiny round window that bends sunlight and fans it into colours. Millions of drops together paint an arc — but only when the sun is behind you.

The common mix-up

Most people think a rainbow is a fixed object hanging at a particular place in the sky. In fact it is a relationship between the sun, the rain and your eye, so it shifts as you move and no two people see the same drops.

What's actually happening

A raindrop is a tiny glass bead. Sunlight entering it bends (refraction), bounces once off the back wall (reflection), and bends again on the way out. The bending is what splits the colours: red bends a little less, violet a little more, so each drop fans white sunlight into a tiny spread of colour.

The trick is in the angle. The geometry of a sphere concentrates the exiting light at very nearly one angle — about 42° from the direction of the incoming sunlight for red, 40° for violet. So each drop flashes you exactly one colour, decided by where it sits relative to your eye and the sun. Millions of drops at the 42° ring flash red, drops slightly inside that ring flash orange, and so on down to violet. The "bow" is just that set of rings, drawn in falling water.

Which means a rainbow is not a thing in the sky — it is a relationship between the sun, the rain, and you. Step sideways and your rainbow moves with you; the person beside you sees light from a completely different set of drops. Nobody has ever stood at the end of a rainbow because the end retreats exactly as fast as you walk toward it.

Remember this

Each raindrop bends, bounces, and bends sunlight again, fanning red out near 42° and violet near 40° — the bow is a circle of drops aimed only at you.

Try it at home Grow your own rainbow
  1. 1Pick a sunny late afternoon — a low sun makes a taller bow.
  2. 2Stand with your back to the sun and spray a fine mist from a hose or spray bottle in front of you.
  3. 3Look about 42° away from your own head's shadow. Move the spray until the arc appears — then take one big step sideways and watch the whole rainbow move with you.

Common questions

Why can you never reach the end of a rainbow?

A rainbow is not a fixed object but a relationship between the sun, the rain and your eye. As you walk towards it the arc retreats exactly as fast, so the end always stays out of reach.

Why does a double rainbow have its colours reversed?

The fainter second bow, at about 51°, comes from light bouncing twice inside each drop. That extra reflection flips the colour order, and the sky between the two bows looks noticeably dark.

Can you make your own rainbow with a garden hose?

Yes. Any fine spray of droplets works. Stand with the sun behind you and mist the air, then look about 42° from your own shadow to see a private rainbow appear.

Built & checked by Nilesh Singh · how this is made · last updated June 2026