A SMALL EXPERIMENT IN WONDER

Double rainbow simulator

Explore primary and secondary rainbows. Change the sun angle and compare the reversed colours of a double rainbow in this interactive simulator.

Put a rainbow in your world. Your camera picture stays on this device.

YOUR LITTLE PATCH OF SKY
01 / SUMMER SHOWER
02 A second reflection
01 The primary bow
The sun is behind you
Gathering a little light…
Summer shower
12° sun · 0.55 mm drops Made in your browser

A LITTLE SOMETHING TO NOTICE

Primary and secondary rainbows

The second rainbow comes from light reflecting twice inside a drop. That extra bounce reverses its colours—and leaves it a little fainter.

Try this rainbow experiment

A double rainbow contains two different paths through water droplets. Light forming the primary bow reflects once inside a drop. Light forming the secondary reflects twice before returning towards the observer. The extra reflection changes the direction of the outgoing light and produces a larger, fainter bow with its colours reversed.

This page starts with both bows enabled in the Summer shower preset. Look for red on the outside of the primary and on the inside of the secondary. Switch the second bow off and on to compare their positions. Both are centred on the antisolar point, the direction directly opposite the Sun, rather than on a fixed spot in the landscape.

Next, raise Sun elevation slowly. As the Sun rises behind you, the centre of the rainbow moves further below the horizon in front of you. Around 42 degrees, the primary disappears below this level ground horizon. The wider secondary can remain above it until roughly 51–53 degrees, depending on colour. Lower the Sun to bring the arches back.

Try changing droplet size while keeping the Sun low. The fine bands just inside the primary are supernumeraries, not additional secondary rainbows: they come from interference between light waves. This simulator approximates spherical-drop scattering and uses an illustrated landscape. An observer above the rain may see parts of a bow below their horizon, a viewpoint this ground-level scene does not model.

Explore the full rainbow simulator

FOLLOW THE LIGHT

How rainbows form: experiments to try

Sunlight bends as it enters and leaves a water droplet, and reflects inside it. Different colours bend by different amounts. One internal reflection produces the primary rainbow; two produce the fainter secondary with reversed colours. Light waves also interfere, creating fine extra bands when conditions are right.

For teachers: suggested for grades 5-8, with a 10-minute activity. Predict what will happen when the Sun rises, then test it. Compare two droplet sizes while holding other settings fixed, and describe how the bands change. Finish by explaining the reversed colours of the second bow. Use Share this sky to save the settings or copy an embed for your lesson page.

Rainbow simulator questions

Why is a rainbow about 42 degrees from the antisolar point?

Refraction and one internal reflection concentrate sunlight near a particular outgoing angle. The primary bow lies roughly 40-42 degrees from the direction opposite the Sun, depending on colour. The angle describes the bow's radius, not the Sun?s height.

Why does the rainbow disappear when the Sun is high?

As the Sun rises, the antisolar point sinks below the horizon. Above about 42 degrees of solar elevation, the primary bow falls below a level ground horizon. The larger secondary may remain visible until roughly 51-53 degrees. From above the rain, an observer can see parts of a bow below their horizon.

Why are the colours of the second rainbow reversed?

The secondary rainbow comes from two internal reflections in each drop instead of one. This changes the outgoing directions, reversing the colour order: red lies on the inner edge of the secondary and the outer edge of the primary.

What makes a fogbow look white?

Tiny fog droplets spread the light over a wider range of angles. The colours overlap strongly, making a broad, pale bow with possible faint colour at its edges. Choose Morning fog to explore this approximate effect.

What are supernumerary rainbows?

Supernumeraries are fine extra bands caused by interference between light waves taking different paths through droplets. They are easiest to see when drops have similar sizes. Choose Extra bands, then increase Size variation to see the fringes soften.

Does raindrop size change a rainbow?

Yes. Smaller droplets broaden the bow and its wave features; larger spherical drops make narrower, more closely spaced features. A mixture of drop sizes smooths fine bands. This model approximates spherical drops, so very small fog droplets and large flattened raindrops have limits.

Rainbow Simulator · Open this sky in the full simulator

THE SCIENCE, AND A LITTLE ART

How rainbows form

Sunlight enters a drop, bends, reflects inside it, and bends again on the way out. One internal reflection makes the primary bow; two make the fainter, reversed secondary.

Why the extra bands?

Light is a wave. Different paths through a drop interfere, reinforcing some directions and cancelling others. Similar-sized drops keep those delicate fringes visible. A mixture of sizes blurs them together.

What this toy calculates

Rainbow Simulator uses a spherical-drop Airy approximation, with water dispersion, Fresnel reflection, a lognormal mixture of drop sizes, and the softening effect of the Sun’s 0.53° disk. A background worker samples 41 wavelengths and converts their combined light to display colours using an approximation to the CIE colour-matching functions.

Sun elevation sets the bow’s position around the point opposite the Sun. At ground level, the main bow slips below the horizon when the Sun rises above about 42°. The secondary can remain visible a little longer.

Your camera, your sky

Camera mode blends the rainbow over live video on your device. Drag to place it, adjust its scale, and move the horizon to keep the effect above the ground. Placement is manual: the toy does not detect the real Sun, track your surroundings, or recognise buildings and trees. Capture photo saves one frame with the effect. Camera access stops when you switch away from the page.

Where imagination comes in

The landscape, clouds, and fog background are illustrative. Rain amount adjusts brightness, not a measured rain rate. Exposure is fixed. This is not a full Mie simulation: tiny fog drops and large, flattened raindrops are only approximate, and multiple scattering is omitted. Colours are limited by your screen.

Try the raindrop size experiment, double rainbow, fogbow, or supernumerary rainbow.

PASS A LITTLE WONDER ALONG

This sky is yours to share.

The link remembers the sun, the droplets, and all your settings.

Embed this sky

Paste this code into a lesson or blog to include the interactive sky with these settings. Adjust the iframe height to suit your page; narrow embeds can scroll to the controls.

A LITTLE SKY TO KEEP

Take the view with you.

Your rendered sky with its sun and droplet settings

Your sky is ready as a PNG, with the settings tucked underneath.

Download PNG