← All Discoveries

Interactive Discovery · Science Explained · For ages 8+

How Do Rainbows Form?

A rainbow isn't painted on the sky. It is millions of raindrops each sending one colour to your eyes. Fire light through a raindrop yourself and discover the secret 42° angle.

  • By William, real-life teacher
  • Last reviewed
  • 6 sources
  • Video: coming soon

Level 1 Quick answer

The quick answer

When sunlight shines into a raindrop, it bends, bounces off the back of the drop and bends again on the way out. Each colour bends by a slightly different amount, so the colours spread apart. Raindrops send the brightest light back at about 42° from the point opposite the Sun, so all those drops together draw a coloured circle in the sky.

Level 2 Explore the science

A rainbow needs three things

Look for a rainbow when the Sun is behind you and rain or spray is in front of you[1]. That’s why rainbows are most common in the late afternoon or early morning, when the Sun is low[1]. The third thing is you: every rainbow is centred on the point directly opposite the Sun, the spot where the shadow of your head falls[2].

Light bends when it enters water

Light travels more slowly in water than in air. When it crosses from air into water at a slant, it changes direction. This bending is called refraction[3]. Scientists measure the angles from a line at right angles to the surface, called the normal[6].

Each colour bends a different amount

Sunlight is a mix of colours. Water slows violet and blue light slightly more than red light, so violet bends a little more[4]. This spreading of colours is called dispersion. Inside a raindrop, light refracts on the way in, reflects off the back of the drop, then refracts again on the way out[1][2].

Interactive model

Shine light through a raindrop

Illustrative model, not an exact simulation. A perfectly round drop, enlarged thousands of times. The angles are calculated with Snell’s law for each colour.

Drag the slider, or drag the yellow sunbeam handle on the drop.

Red light comes back at
– from the Sun’s opposite point
Violet light comes back at
–
Gap between red and violet
–

Challenge: find the ray that comes back at the biggest angle.

The secret 42° angle

Here is the discovery. Light that enters a raindrop at different heights comes out at different angles, but none of it can come out at more than about 42° for red light[2]. Lots of rays pile up close to that maximum angle, so the light is brightest there[2]. Violet light’s maximum is a little smaller, about 40.7°, which is why violet sits on the inside of the bow and red on the outside[2].

Millions of raindrops are falling in front of you. Only the drops sitting at about 42° from the point opposite the Sun send their bright red light into your eyes. All of those drops together make a circle around that point. The ground usually hides the bottom of the circle, so we see an arc[2].

Make a prediction

Make a prediction: As the Sun climbs higher in the sky, where does the rainbow appear?

Reveal the answer

Reveal: Lower! The rainbow is always centred on the point opposite the Sun. When the Sun climbs, that point sinks further below the horizon, so the rainbow sinks too. When the Sun is more than about 42° high, the whole primary rainbow is below the horizon. Try it in the sky view below.

Double rainbows

Sometimes a fainter second bow appears outside the first. Its light has bounced twice inside each raindrop, so it comes back at about 50°, and the extra bounce flips the colours: red is on the inside[2]. Look closely and the sky between the two bows is darker, because no light from the first or second bounce comes back at those angles.

Try it yourself

Make your own rainbow

You need: a sunny morning or late afternoon, a garden hose with a fine-spray nozzle, and an adult.

  1. Stand with the Sun behind you, so your shadow points away from you.
  2. Spray a fine mist of water in front of you, a little higher than your head.
  3. Look into the spray, near your shadow. Move the spray around until a bow appears.
  4. Can you find the red edge and the violet edge? Is red on the outside?

What to expect: a small rainbow arc around the shadow of your head, about two outstretched hand-spans away from it.

Safety first

Never look at the Sun, even when you are searching for a rainbow. Keep the Sun behind you the whole time. Ask an adult before using the hose, point the spray away from people and electrical things, and don’t waste water during water restrictions.

Level 3 Go deeper

Go deeper Why the rays bunch at 42°

For a single internal reflection, a ray that hits a drop at angle i and bends to angle r inside is turned through a total angle D = 180° + 2*i* − 4*r*. As you move the ray from the centre of the drop towards its edge, D first falls and then rises again. Where D is smallest, many neighbouring rays come out almost together: that is the bright rainbow ray. For red light (water refractive index about 1.331) the turning angle bottoms out near 137.6°, so the light comes back 180° − 137.6° ≈ 42.4° from the point opposite the Sun.

Go deeper Where the colours come from

Water’s refractive index is about 1.33[5], but it is slightly bigger for violet than for red[4]. In this Discovery we use a smooth approximation for water at about 20 °C, measured relative to the surrounding air (n ≈ 1.331 for red light at 656 nm and 1.343 for violet at 405 nm). Putting those values into the formula above gives 42.4° for red and 40.7° for violet: a band of colour about 1.7° wide. The Sun is not a point but a disc about half a degree across, which blurs each colour, so the bow we see is a little over 2° wide, roughly four times the width of the full Moon.

Go deeper About the interactive models

The raindrop model traces straight rays through a perfectly round drop using Snell’s law[6] and the law of reflection. The “Fire 60 rays” view spreads its rays evenly across one slice through the drop. Real raindrops are slightly flattened when large, and very small drops add wave effects (supernumerary bands and paler bows) that ray tracing leaves out. The sky view draws the bows with each degree the same size on screen, like a very wide-angle camera, so shapes near the edges are simplified.

Frequently asked questions

Why is a rainbow curved?

Because the bright light comes back at the same angle, about 42°, from the point opposite the Sun. Everything at the same angle from a point forms a circle, and the ground usually hides the bottom half[2].

Why can’t I reach the end of a rainbow?

A rainbow isn’t an object in one place. It is light from whichever raindrops are at the right angle for your eyes, so it moves when you move.

Why are rainbows usually seen in the late afternoon?

Because the Sun has to be low, less than about 42° high, for the bow to appear above the horizon, and showers are often around later in the day[1].

Why is the second rainbow back to front?

Its light bounces twice inside each raindrop, which reverses the order of the colours[2].

The big idea

A rainbow is sunlight bent, bounced and bent again by millions of raindrops. Each drop’s brightest light leaves at about 42°, so together they paint a circle around the point opposite the Sun.

Sources

We checked the facts in this Discovery against these sources on the dates shown.

  1. Rainbows (lecture notes), University of Texas at Austin, Department of Physics. Accessed 25 October 2026.
  2. Refraction, HyperPhysics, Georgia State University. Accessed 25 October 2026.
  3. Dispersion, HyperPhysics, Georgia State University. Accessed 25 October 2026.
  4. Indices of Refraction, HyperPhysics, Georgia State University. Accessed 25 October 2026.
  5. The Law of Refraction (College Physics, OpenStax), Physics LibreTexts. Accessed 25 October 2026.

Illustrations and the interactive model on this page explain the science; they are not photographs or records of real experiments.

Keep experimenting in the Lab

Explore more

Coming soon in Science Explained:

  • Why is the sky blue?
  • Can you see electricity?
  • Why do magnets stick to fridges?
  • Why does ice float?