← All articles
sciencehow do rainbows formrefractionlight spectrumAugust 14, 20266 min read

How Do Rainbows Form? How Sunlight and Water Make Colour

By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.

Rainbows appear when sunlight enters water droplets, bends, reflects inside them, and bends again as it leaves. Different colours change direction by slightly different amounts, so white sunlight spreads into a visible spectrum.

Inside a single water droplet

Sunlight looks white, but it contains many wavelengths of visible light. When light passes from air into water, its speed changes and the ray bends. This bending is called refraction. Different wavelengths bend by slightly different amounts, which begins to separate the colours.

Inside the droplet, some of the light reflects from the back surface. It then travels back toward the front of the droplet and refracts again as it leaves the water. By the time the light reaches your eye, the colours have spread out enough for you to see them separately. Red appears on the outer edge of a primary rainbow, while violet appears closer to the inner edge.

This sequence is the central answer to how rainbows form. A single droplet does not send a complete miniature rainbow into your eye from every direction. Instead, different droplets send different colours toward you at particular angles. Your brain combines light from huge numbers of droplets into one bright arc.

Why a rainbow appears opposite the Sun

To see a primary rainbow, the Sun needs to be behind you and water droplets need to be in front of you. The rainbow forms around the point in the sky directly opposite the Sun. That geometry is why rainbows are often seen when a shower is moving away and sunlight breaks through behind the observer.

A rainbow is actually part of a circle centred on that opposite point. From the ground, the horizon usually blocks the lower part, so you see an arc. From a high viewpoint such as an aircraft, it is sometimes possible to see much more of the circle because fewer parts are hidden by the ground.

The exact droplets creating the rainbow for you are not the same droplets creating it for someone standing somewhere else. Move your position and the viewing geometry changes. This is a useful detail when learning how rainbows form because it explains why a rainbow has no fixed location that you can simply walk up to.

Double rainbows and brighter colours

A secondary rainbow can form when light reflects twice inside a droplet before leaving. This extra reflection sends the light out at a different angle and reverses the colour order, so red appears on the inner edge and violet on the outer edge of the secondary bow. The extra reflection also loses more light, making the second rainbow fainter.

Large, nearly spherical droplets can produce bright, well-separated colours, while very tiny droplets can make the rainbow look paler. Sometimes extra faint bands appear just inside the main bow because light waves interfere with one another. These are called supernumerary bows.

When you revise how rainbows form, focus first on the three main processes: refraction, internal reflection, and dispersion. Once those are clear, the shape, colour order, and location of a rainbow follow naturally from the path that light takes through millions of droplets.

The takeaway

Sunlight refracts as it enters water droplets, reflects inside them, and refracts again as it leaves. Because different wavelengths bend by different amounts, the light spreads into colours. The geometry places the rainbow opposite the Sun, with countless droplets each contributing light to the arc you see.

Practise this

Questions from Light and Optics

Reading about something is not the same as being able to recall it. These are real questions from the Light and Optics unit in our Physics track, answers and explanations included. The unit has 119 in total across 20 steps.

  • Multiple choiceLevel 2

    1. What does the law of reflection state about a ray of light striking a mirror?

    • The angle of incidence equals the angle of reflectioncorrect
    • The angle of incidence is twice the angle of reflection
    • The reflected ray always bends toward the normal
    • The angle of reflection is always 90 degrees

    The law of reflection states the angle of incidence equals the angle of reflection, both measured from the normal.

  • Fill the blankLevel 2

    2. The splitting of white light into its separate colours as it passes through a prism is called ____.

    • dispersioncorrect
    • reflection
    • diffraction
    • absorption

    Dispersion happens because each colour is refracted by a slightly different amount.

  • Fill the blankLevel 3

    3. Visible light spans wavelengths from roughly 400 nm to 700 ____.

    • nmcorrect
    • mm
    • cm
    • m

    The visible spectrum runs from about 400 nm (violet) to 700 nm (red), all measured in nanometres.