Home / Optics & Waves / Rainbow Formation

How a Rainbow Forms

NEETCBSE
Red angle: 42.4° Violet angle: 40.6°

The physics

A rainbow forms when sunlight enters a spherical raindrop, refracts, reflects once off the inside back surface, and refracts again on the way out. Because water's refractive index is slightly different for each color, each color exits at a very slightly different angle — spreading white light into a spectrum.

Path inside the drop: refract in → reflect once internally → refract out
Primary rainbow angle (from the antisolar point): red ≈ 42.4°, violet ≈ 40.6°
Red bends least (lower n), so it ends up on the outer edge of the rainbow; violet is on the inside

This simulation traces the actual ray path through a single raindrop using Snell's law at both refractions and the law of reflection at the internal bounce — the separation between red and violet you see comes from real dispersion (a genuine, small difference in water's refractive index for each color), not an artistic color gradient.

Exam tip: a common NEET/CBSE question asks why the rainbow is curved (an arc) rather than a straight band — every raindrop that sends light to your eye at exactly the rainbow angle lies on a cone around the line from the sun through your eye, and that cone intersected with the sky is a circle (an arc, since the ground blocks the rest).

Sample data: the primary rainbow angle for different colours

For one internal reflection the rainbow ray is at angle 4r − 2i from the line pointing away from the Sun, where cos²i = (n² − 1)/3 and sin r = sin i/n.

ColourRefractive index of waterAngle of incidence iRainbow angle
Red (656 nm)1.331159.5°42.4°
Yellow (589 nm)1.33359.4°42.1°
Green (546 nm)1.334559.3°41.9°
Blue (486 nm)1.337159.2°41.5°
Violet (405 nm)1.343558.8°40.6°

Conditions: spherical raindrop, one internal reflection, approximate refractive indices of water at 20 °C.

Notice: red appears at about 42.4° and violet at about 40.6°, so red is on the outside of the bow and violet on the inside, with the full width of the bow only about 1.8°. The larger index for violet bends it more, which brings it to a smaller angle.

🎯 Practice Zone

Puzzle 1. 🌈 You can never actually walk toward a rainbow and reach it — it always appears to stay the same distance away, no matter how far you travel toward it. Why is a rainbow fundamentally impossible to physically reach or touch?

A rainbow isn't a fixed object located at a specific point in space at all — it's an optical pattern formed by light reaching your eye at a very specific angle (about 42°) from millions of individual raindrops, each acting as a tiny prism. As you move, the specific raindrops satisfying that precise 42° geometric condition relative to YOUR new eye position constantly change — you're always seeing a "fresh" rainbow formed by whichever raindrops happen to be at the correct angle from your current position, which is exactly why the rainbow appears to recede as you approach, always maintaining that same apparent distance.

Puzzle 2. 👥 Two people standing next to each other, looking at the exact same rainbow, are technically NOT looking at the exact same physical raindrops to see the "same" rainbow. Why is each person's rainbow, in a genuine sense, actually their own personal, individual rainbow?

Since the rainbow's specific angle (42°) must be measured relative to each individual observer's own eye position, the exact raindrops satisfying this precise geometric condition are genuinely, if very slightly, different for each observer's own unique viewpoint — even standing just a few feet apart changes which specific raindrops are correctly positioned relative to that particular person's eyes. This means, quite literally, that no two people ever see the exact identical rainbow — each person's rainbow is formed by a personally unique set of raindrops, even though the resulting visual pattern looks essentially the same to both observers.

Puzzle 3. 🎨 A rainbow always shows red on the outer (upper) edge and violet on the inner (lower) edge, in that exact same consistent order — never reversed. Why does this specific color ordering happen consistently, rather than being random or varying between rainbows?

This consistent ordering comes directly from dispersion — water's refractive index is very slightly different for each color of light, with violet light bending (refracting) more strongly than red light. This small but consistent difference means each color's light exits raindrops at a very slightly different angle from the others, and working through the full geometry of the internal reflection consistently places red light at the larger observed angle (appearing on the outer/upper edge) and violet at the smaller angle (inner/lower edge) — a direct, exact geometric consequence of water's specific dispersion properties, not any arbitrary or variable factor.

Puzzle 4. 🌈🌈 A fainter, larger "secondary" rainbow sometimes appears above the main (primary) rainbow, with its colors in the OPPOSITE order (violet outside, red inside) — genuinely reversed compared to the primary rainbow. What causes this second, color-reversed rainbow to form?

The secondary rainbow forms from light undergoing TWO internal reflections inside each raindrop, rather than the single internal reflection responsible for the primary rainbow. This extra reflection changes the resulting exit angle geometry and flips the color ordering compared to the primary rainbow's single-reflection path. The secondary rainbow also appears noticeably fainter, since each additional reflection loses some light intensity (not all light reflects internally — some always escapes at each bounce), which is exactly why the double-reflection secondary rainbow is dimmer and less commonly noticed than the bright primary rainbow.

Puzzle 5. ☀️ Rainbows are only ever visible when the sun is relatively low in the sky (roughly behind the observer), and you generally can't see a rainbow at solar noon when the sun is high overhead. Why does the sun's position matter so critically for whether a rainbow is visible at all?

Since the rainbow always appears at a fixed 42° angle from the direct line between the sun and the observer's eye (the "antisolar point," directly opposite the sun from your perspective), this geometric constraint means the antisolar point itself must be above the horizon for any part of the resulting 42° circle to be visible above ground level. When the sun is high overhead (near solar noon), the antisolar point sits well below the horizon (underground, in a sense), pushing the entire potential rainbow circle below the horizon too, where the ground blocks it from view entirely — this is exactly why rainbows are typically seen in the morning or late afternoon, when the sun sits low enough in the sky for the antisolar point (and hence the rainbow) to rise above the horizon.

Problem 1 (NEET level). 📘 Light enters a spherical raindrop (n=1.33) at incidence angle 59.6°. Using Snell's law, find the refraction angle inside the drop.

sinθᵣ = sinθᵢ/n = sin(59.6°)/1.33 = 0.8631/1.33 = 0.649
θᵣ = 40.5°

Problem 2 (JEE Main level). 📗 Using the total deviation formula D=180+2θᵢ−4θᵣ for a single-internal-reflection ray, find D for the values from Problem 1.

D = 180 + 2(59.6) − 4(40.5)
D = 180 + 119.2 − 162 = 137.2° — close to the true minimum deviation of about 137.5° (small rounding from the approximate angles used)

Problem 3 (WBJEE level). 📙 The visible rainbow angle, as seen by an observer, equals 180° minus the minimum deviation angle. Using the accurate minimum deviation of 137.5°, find the rainbow's visible angle.

Rainbow angle = 180 − 137.5
Rainbow angle = 42.5° — matching the well-known standard value cited for the primary rainbow

Problem 4 (CBSE Class 10 level). 📕 Violet light has a slightly higher refractive index in water (n≈1.343) than red light (n≈1.331). Which color would you expect to have a slightly smaller rainbow angle, based on this difference?

A higher refractive index bends light more strongly, shifting the minimum-deviation geometry — working through the calculation, violet light produces a smaller rainbow angle (about 40.5°) compared to red light (about 42.5°), which is exactly why violet appears on the inner edge and red on the outer edge, confirming Puzzle 3's explanation

Problem 5 (JEE Advanced style). 📓 If the primary rainbow's angle is 42°, and the secondary rainbow (formed by two internal reflections) appears at approximately 51°, find the angular gap between the primary and secondary rainbows as seen in the sky.

Angular gap = 51 − 42
Gap = 9° — this specific dark region between the primary and secondary rainbow (sometimes called "Alexander's dark band") corresponds to angles where neither single nor double internal reflection sends light back to the observer's eye, making this band genuinely darker than the sky both above and below it
🔬
c. 1304

German monk Theodoric of Freiberg conducted careful experiments using water-filled glass spheres to model raindrops, correctly working out that a rainbow forms from light refracting and internally reflecting within each individual drop — a genuinely sophisticated result for the era.

📐
1637

René Descartes provided a rigorous mathematical derivation of the rainbow's angle using Snell's law (independently discovered around the same time), correctly calculating the 42° primary rainbow angle from first principles.

🎨
1666

Isaac Newton used a glass prism to demonstrate that white sunlight is actually composed of all the visible colors combined together, and that each color bends by a slightly different amount when refracted — providing the essential missing piece explaining exactly why rainbows show distinct, separated colors.

🌈
Present day

Modern atmospheric optics continues to study more subtle rainbow-related phenomena — supernumerary bows (faint extra bands near the primary rainbow, caused by wave interference effects beyond simple ray optics), all building on the same foundational refraction-and-reflection framework established by Theodoric, Descartes, and Newton.