Waves & Opticsundergraduate

How Rainbows Form

Also known as: Descartes Ray · Rainbow Angle

Each ray that enters a spherical drop bends in, bounces off the far wall, and bends out. Rays piling up at the angle of maximum deviation make a bright cone. Because the drop refracts red and blue by slightly different amounts, the cone's edge splits into colors — and you see an arc.

θ=4arcsin ⁣(sinθin)2θi\theta = 4\,\arcsin\!\left(\frac{\sin\theta_i}{n}\right) - 2\theta_i
Live simulation
warming up the physics…

A sun ray enters a spherical drop, refracts, reflects off the back wall and refracts out again - all three legs traced exactly from Snell's law. Dispersion fans red/green/blue exit rays apart, and as the impact point sweeps, the exit angle piles up near 42 degrees: the rainbow caustic.

Equivalent forms

cos2θi=n213\cos^2\theta_i = \frac{n^2 - 1}{3}
θrainbow42\theta_{rainbow} \approx 42^\circ
A single internal reflection plus dispersion turns every raindrop into a tiny prism, and a billion of them into a 42-degree arc.