How Rainbows Form

The short answer

Rainbows form when sunlight enters raindrops, bends and splits into colors (refraction and dispersion), reflects off the back of the droplet, and then bends again as it exits, sending specific colors at precise angles to an observer's eye. Each droplet acts as a tiny prism and mirror, collectively forming a circular arc centered on the observer's anti-solar point.

This lesson explains how white sunlight interacts with water droplets in the atmosphere to produce the colored arc we call a rainbow, by breaking down the fundamental optical principles at play.

By BasicsTutor · Created with AI and fact-checked · Updated Nov 1, 2026 · How we make lessons

Physics·intermediate·35 min

White Light is a Spectrum of Colors

What we perceive as 'white' light, such as sunlight, is actually a composite of all the visible colors, each corresponding to a different wavelength within the electromagnetic spectrum. This foundational truth was famously demonstrated by Isaac Newton, who passed a beam of sunlight through a prism, observing it separate into a band of colors (red, orange, yellow, green, blue, indigo, violet). When he then passed this separated spectrum through a second, inverted prism, the colors recombined to form white light again. This experiment proved that the prism wasn't 'adding' color but merely separating components already present in the white light. A common misconception is that white light is 'pure' or fundamental, and colors are somehow created or added when light interacts with matter. People might think a prism 'colors' the light or that pigments 'add' color. However, colors are intrinsic properties of light, inherent in its wave structure. Since colors are intrinsic components of white light, any phenomenon that separates them, like a rainbow, isn't creating new light but merely revealing its pre-existing structure. Understanding this means we must look for mechanisms that separate wavelengths, not generate them.

Think of a seemingly 'plain' orchestra playing a single, unified chord. The 'white light' is that chord. When a conductor asks each instrument section (violins, trumpets, cellos) to play its part solo, you then hear the distinct individual notes and harmonies that make up the whole. The instruments are the different color wavelengths, and the unified chord is white light.

  • White light is a combination of all visible colors.
  • Each color corresponds to a specific wavelength of light.
  • Phenomena like rainbows separate these pre-existing colors.

Light Bends (Refracts) When Changing Mediums

When light passes from one transparent medium into another (e.g., from air into water, or water into air) at an angle, its speed changes, causing its path to bend. This phenomenon is called refraction. This bending occurs because light travels at different speeds in different transparent materials. As light waves enter a new medium at an angle, one side of the wavefront slows down or speeds up before the other side, causing the wave direction to pivot. This behavior is precisely described by Snell's Law, which relates the angles of incidence and refraction to the refractive indices (a measure of how much light slows down in a medium) of the two materials. Many people assume light always travels in perfectly straight lines, or that any bending is due to reflections only. They might not connect the visual distortion of a straw in water to the fundamental physics governing light's path through rain. The crucial insight is the change in speed, which directly causes the change in direction. The precise angle at which light enters and exits a water droplet is critical for rainbow formation. Even small changes in the refractive index of water or the angle of incidence will alter the exit path of the light, determining whether it reaches an observer's eye or not.

Imagine a marching band moving from a paved road (air) onto a muddy field (water) at an angle. The musicians on the side that hits the mud first will slow down, while those still on the pavement continue at speed. This difference in speed will cause the entire marching line to pivot, changing its direction of travel. The mud's resistance is like the refractive index; the greater the resistance, the more the band turns.

  • Light changes speed when moving between different transparent materials.
  • This change in speed causes light to bend (refract) if it hits the surface at an angle.
  • The amount of bending is determined by the materials' refractive indices and the angle of incidence.

Different Colors Bend at Different Angles (Dispersion)

Because the refractive index of a material is not a single, fixed value but varies slightly with the wavelength of light passing through it, different colors of light bend by slightly different amounts when refracting. Shorter wavelengths (like violet and blue) bend more than longer wavelengths (like red). This separation of colors due to differing refraction is called dispersion. This phenomenon, known as 'dispersion of light,' means that for most transparent materials, the refractive index is slightly higher for shorter wavelengths (violet/blue) than for longer wavelengths (red). Consequently, according to Snell's Law (Principle 2), shorter wavelengths experience a greater change in direction upon refraction, leading to their separation from longer wavelengths. A common belief is that a prism (or water droplet) simply 'filters' light, or that it bends all colors equally but somehow separates them by magic. People might not realize that the differential bending for each specific wavelength is the precise mechanism for color separation. This principle is the direct reason why we see distinct colors in a rainbow. Without dispersion, all colors would refract and reflect at the same angles within the water droplet, and white light would simply be reflected back, without separating into its constituent hues.

Consider a group of friends (different colors of light) trying to run through a patch of thick mud (water droplet). While everyone slows down, some friends (shorter wavelengths) find the mud slightly stickier or offer more resistance, causing them to veer off course more sharply than others (longer wavelengths) who find it slightly easier to navigate. Each friend's unique interaction with the mud determines their specific angle of deviation.

  • The refractive index of a medium varies slightly for different wavelengths (colors).
  • Shorter wavelengths (blue/violet) bend more than longer wavelengths (red).
  • This differential bending is what separates white light into its spectrum.

Light Can Reflect Internally Within a Medium

After light enters a water droplet and refracts, it can then reflect off the inner back surface of the droplet, bouncing back towards the observer, before refracting again as it exits the droplet. This is called internal reflection. When light traveling within a denser medium (like water) encounters a boundary with a less dense medium (like air), some of it will refract out, but some will also reflect back into the denser medium. The proportion of light reflected versus refracted depends on the angle of incidence at the inner surface. For a rainbow, light typically undergoes a single internal reflection within the droplet. This internal bounce is crucial for directing the light back towards the observer. People might imagine light simply passing through the droplet, or reflecting off the front surface like a mirror. They may not realize that the light dives into the water, refracts, then bounces internally off the curved back surface before coming back out. The internal reflection is crucial because it redirects the dispersed light (from Principle 3) back towards the observer. Without this reflection, the light would simply pass through the droplet, exiting on the opposite side, and no rainbow would be seen. The water droplet acts not just as a tiny prism, but also as a tiny curved mirror.

Imagine a diver jumping into a swimming pool (light entering water). After going underwater, they might push off the far wall of the pool (internal reflection) to propel themselves back towards the surface where they first entered (light exiting towards observer). The pool wall isn't the primary surface they interacted with upon entry, but it's essential for their return path.

  • Light can reflect off the inner surface of a transparent medium.
  • This internal reflection redirects the light's path within the water droplet.
  • It's essential for sending the dispersed light back towards an observer.

Rainbows are Observer-Specific Optical Illusions

A rainbow is not a physical object located at a specific point in space, but rather an optical phenomenon observed when specific angles of sunlight, refracted, dispersed, and internally reflected by numerous water droplets, reach the eye of a particular observer. Each observer sees a unique rainbow, centered on their 'anti-solar point.' Due to the combined effects of refraction, dispersion, and internal reflection within each raindrop, sunlight exits the droplets at a maximum intensity around a specific angle relative to the incoming sunlight. For the primary rainbow, this angle is approximately 42 degrees from the anti-solar point (the point directly opposite the sun from the observer's perspective). Your eye only catches light from droplets positioned at precisely this 42-degree angle relative to your eye and the sun. Since the sun's rays are parallel, and your position is unique, the set of droplets forming your 42-degree cone is unique to you. The most common misconception is that a rainbow is a tangible arc 'out there' that everyone can point to in the same place, like a distant mountain. People often try to 'go to' the end of a rainbow, or assume a photo captures a universal image. This intuition fails because the rainbow's existence depends entirely on your specific vantage point. Because your rainbow is specific to your position, you are always at its center. This means you can never 'chase' a rainbow, nor can you stand next to someone and point to the exact same raindrop forming their rainbow. Furthermore, since the 42-degree angle forms a cone, if the ground didn't block the bottom, you would see a full circle. This is why rainbows are sometimes seen as full circles from an airplane.

Imagine you are standing at the center of a circular theater stage, and spotlights around the perimeter are focused on you at a very specific angle, say 42 degrees. Only the lights at that exact angle, relative to your position, illuminate you. Someone else standing elsewhere on the stage would have a different set of spotlights focused on them at their 42-degree angle. The 'rainbow' is the collection of spotlights hitting your eyes.

  • Rainbows are optical illusions, not physical objects.
  • Each person sees a unique rainbow, centered on their anti-solar point.
  • The phenomenon relies on light arriving at the observer's eye from many droplets at a precise angular range (around 42 degrees).

Put it into practice

  • Create a miniature rainbow: On a sunny day, stand with your back to the sun and spray a fine mist of water from a garden hose. Adjust the spray until you see a small, personal rainbow arc, demonstrating the role of water droplets and the sun's position.
  • Observe a full circular rainbow (if possible): If you ever fly in an airplane during a rain shower with the sun behind you, look out the window. You might be able to spot a complete circular rainbow, unhindered by the ground, revealing its true shape.
  • Photograph a rainbow with a friend: Take photos of the same rainbow from slightly different positions (e.g., a few feet apart). Compare the photos to notice subtle differences in the rainbow's apparent position or height, illustrating its observer-dependent nature.

Keep learning

Browse all lessons