QuestionLight
How Does a Rainbow Form? Refraction, Reflection and Dispersion

A rainbow forms when sunlight enters falling raindrops, is bent and split into colors, reflects off the back of each drop and bends again on the way out. Each color leaves at a slightly different angle, so red appears about 42° from the point opposite the Sun and violet about 40°. Together these angles make the familiar arc.
Contents
The full answer
Sunlight is a mix of colors, and each color has a slightly different wavelength. When a sunbeam strikes a raindrop, it slows down and bends, because water is optically denser than air. Blue and violet light bend more than red, so the beam fans out into a spectrum. This spread of colors is called dispersion.
Next, most of the light travels to the back of the drop and reflects off the inside surface. Before it leaves, it bends again, which spreads the colors further. Each color exits at a particular angle, roughly 42° for red and 40° for violet, measured from the point in the sky directly opposite the Sun.
Because you only see light that reaches your eyes, you see red from drops high above that point and violet from drops slightly lower. The result is a band of colors with red on the outside of the arc and violet on the inside. The arc is centered on the point opposite the Sun, and its top is about 42° above that point, so a rainbow is visible only when the Sun is lower than about 42° in the sky.
Refraction, reflection and dispersion inside a drop
Refraction is the bending of light when it passes from one material into another in which it travels at a different speed. It is the same effect that makes a straw look bent in a glass of water and is explained in more detail on the refraction page. The amount of bending depends on the refractive index, n, which compares the speed of light in a vacuum with its speed in the material:
n = c / v
Here c is the speed of light in a vacuum, exactly 299,792,458 m/s, and v is its speed in the medium. Water has a refractive index of about 1.33 for yellow sodium light, so light travels at about 225,000,000 m/s inside water, roughly three-quarters of its speed in air. Air has an index very close to 1.00, which is why the bending happens mainly at the surface of each drop.
The bending does not happen only once. A ray enters the front of the drop, bends, reaches the back, reflects and then bends again as it leaves. Each bend is a separate change of direction, so the total turning of the light is larger than a single bend would give.
Dispersion happens because the refractive index depends slightly on wavelength. Water’s index is about 1.34 for violet light and about 1.33 for red, so violet is bent more strongly at each surface. Light in a raindrop also reflects off the back surface, where a large bundle of rays leaves at the angle of minimum deviation. Many rays bunch up at that angle, which makes the bright, sharp edge of the bow. Because a drop is round, the same geometry works for every drop in the same position relative to you.
Spotting rainbows in everyday life
Rainbows appear after a shower when the Sun breaks through low clouds. Stand with the Sun behind you and look toward the rain or the mist; the bow appears in the falling water in front of you. The same effect appears in the spray of a waterfall, in the mist of a garden sprinkler on a sunny morning, or in the spray of a fountain.
To find the center of the arc, look for the point opposite the Sun. The shadow of your head is always there, so the bow curves around your shadow. Never look at the Sun to check, because even brief staring can damage the eyes. Moving your head changes which drops reach your eyes, which is why the bow seems to move with you.
A related question: why do double rainbows form?
A double rainbow appears when some light reflects twice inside each drop before leaving. The second bow sits outside the first, at about 51° for red and 54° for violet, so its colors are reversed. Readers who want the full explanation can read why double rainbows happen.
The same ideas explain why a rainbow looks different from the blue sky. The sky is blue because of scattering by air molecules, which is a different process from refraction in water. For that comparison, see why the sky is blue.
Common misconceptions
Sunlight is white, and raindrops paint it with colors. Sunlight already contains all the colors. Raindrops only separate them by bending each color by a different amount.
A rainbow is a solid arch you can walk to. A rainbow is not an object in one place. It depends on where you stand, so two people in the same field see different bows.
Rainbows happen only in rain. Mist, fog, spray and sprinkler water can all make rainbows, as long as the Sun shines behind the viewer through tiny droplets.
Rainbows are a fixed object you can reach if you walk far enough. The bow moves as you move, because the angle from the antisolar point is fixed and the drops that send light to your eyes change with your position. The next question explains this in more detail: can you reach the end of a rainbow.
Frequently asked questions
What causes a rainbow?
A rainbow is caused by sunlight that is refracted, reflected and refracted again inside falling raindrops. Refraction separates the colors because each wavelength bends by a slightly different amount, a process called dispersion. You see the colors because each one leaves the drops at its own angle.
Why is red on the outside of a rainbow?
Red light bends the least inside a raindrop, so it leaves at the largest angle, about 42°, from the point opposite the Sun. Violet bends the most and leaves at about 40°, which places it on the inside of the arc.
Why can’t you see a rainbow at midday?
The rainbow’s top sits about 42° above the point directly opposite the Sun. When the Sun is higher than about 42° above the horizon, that point is below the ground, so no complete arc is visible above it. Rainbows are easiest to see when the Sun is low.
How many colors are in a rainbow?
Sunlight contains a continuous range of wavelengths, so a rainbow has no sharp boundaries between colors. Isaac Newton named seven colors (red, orange, yellow, green, blue, indigo and violet), but many more shades can be seen.
Why is a rainbow curved?
The colors leave each drop at a fixed angle from the point opposite the Sun. All drops at that angle form a circle around that point, and the horizon hides the lower part, so you see an arc.
Sources and further reading
- OpenStax, "College Physics 2e"
- Encyclopaedia Britannica, "Rainbow"
- NIST, "CODATA Fundamental Physical Constants"
Cite this page
“How Does a Rainbow Form? Refraction, Reflection and Dispersion.” Atoms & Forces, https://science.bigworldlist.com/questions/how-does-a-rainbow-form/.
More about Refraction
- PhysicsRefraction of Light: Definition, Snell's Law and Examples
- QuestionCan You Ever Reach the End of a Rainbow? The Physics Answer
- QuestionHow Do Fiber Optic Cables Carry Light? Total Internal Reflection
- QuestionHow Do Glasses Help You See? Lenses and Refraction Explained
- QuestionHow Does a Magnifying Glass Work? Convex Lenses Explained
- ComparisonReflection vs Refraction: What Is the Difference? Examples
- QuestionWhat Causes a Halo Around the Sun or Moon? 22-Degree Halos
- QuestionWhat Is a Mirage? Why Hot Roads Look Wet on Sunny Days
- QuestionWhat Is Snell's Law? Formula and Worked Examples