Refraction and the Formation of Rainbows: a Detailed Explanation

Rainbows are among the most captivating optical displays in the natural world. For centuries, they have inspired myths, art, and scientific inquiry, appearing across cultures as symbols of hope, promise, and wonder. But beneath their ethereal beauty lies a precise and elegant physical process governed by the behavior of light. Understanding how rainbows form requires a close look at three fundamental phenomena: refraction, reflection, and dispersion. These principles, working together within countless tiny water droplets suspended in the atmosphere, produce the vivid arc of colors that has fascinated humanity since the dawn of observation.

The science of rainbows is not merely a classroom curiosity. It offers a window into how light interacts with matter, how our eyes perceive color, and how seemingly simple natural events can be explained by the same laws that govern telescopes, microscopes, and fiber-optic communications. By dissecting the formation of a rainbow, we gain a richer appreciation for both the subtlety and the power of optical physics.

What Is Refraction?

Refraction is the bending of light as it passes from one transparent medium into another that has a different density. This change in direction occurs because light travels at different speeds in different materials. In a vacuum, light moves at approximately 299,792 kilometers per second. In air, it slows only slightly. In water, however, it travels at roughly three-quarters of that speed. This sudden reduction in velocity, combined with the angle at which the light strikes the interface between the two media, causes the light path to bend.

The relationship between the angle of incidence and the angle of refraction is described by Snell’s Law, a foundational equation in optics. Snell’s Law states that the ratio of the sines of the angles of incidence and refraction is equal to the inverse ratio of the indices of refraction of the two media. This mathematical relationship allows scientists and engineers to predict exactly how much a ray of light will bend when entering a droplet of water from the surrounding air. The index of refraction itself is a measure of how much a material slows light relative to its speed in a vacuum. For water, this index is approximately 1.33, meaning light travels about 1.33 times faster in a vacuum than it does in water.

Refraction is the critical first step in rainbow formation. Without it, sunlight would pass straight through water droplets without fanning out into its component colors, and the familiar arc would never appear. It is also the reason that a straw in a glass of water appears bent or broken at the surface. The same principle that creates this simple everyday illusion also generates one of nature’s grandest spectacles.

The Step-by-Step Process of Rainbow Formation

The formation of a rainbow can be broken down into a precise sequence of events that occurs within a spherical water droplet. Each step is essential, and the order matters. Understanding this sequence reveals why rainbows take the shape they do and why the colors appear in a specific arrangement.

Step One: Refraction at Entry

Sunlight traveling through the atmosphere strikes the curved surface of a water droplet. As the light enters the droplet, it slows down and bends toward the normal—an imaginary line perpendicular to the surface at the point of entry. Because the droplet is spherical, the angle at which light hits the surface varies depending on where it strikes. Rays that hit at a steeper angle bend more sharply, while those that hit closer to the centerline bend less. This initial refraction begins the process of separating the colors, because different wavelengths of light slow by different amounts and therefore bend at slightly different angles.

Step Two: Internal Reflection

Once inside the droplet, the light continues traveling until it reaches the far inner surface. At this boundary, some of the light passes through and exits the droplet, but a portion of it reflects back into the water. This internal reflection occurs because the light is striking the water-air boundary from inside the denser medium at an angle greater than the critical angle—the angle beyond which total internal reflection takes place. This reflection bounces the light back toward the front of the droplet from which it entered. The reflective step is what sends the light back toward the observer rather than allowing it to pass straight through and continue in the same general direction as the incoming sunlight.

Step Three: Refraction at Exit

As the reflected light reaches the front surface of the droplet once again, it encounters the water-air boundary from the inside. This time, the light passes from a denser medium (water) into a less dense medium (air), causing it to speed up and bend away from the normal. This second refraction further separates the colors and directs the light out of the droplet at a specific angle relative to the incoming sunlight. The light now travels toward the observer’s eye, carrying with it a particular color determined by the wavelength and the precise path it took through the droplet.

Why the Angle Matters

The geometry of this three-step process results in light exiting the droplet at a predictable angle. For a primary rainbow, this angle is approximately 42 degrees from the direction opposite the sun. This means that when you see a rainbow, every droplet that sends red light toward your eye is positioned along a circular arc that makes a 42-degree angle with the line connecting your eye to the sun. Droplets sending violet light are at a slightly smaller angle of about 40 degrees. This small but consistent angular difference is the reason the colors appear as distinct bands rather than as a single merged white light.

Dispersion and the Origin of the Color Spectrum

Dispersion is the phenomenon in which different wavelengths of light are separated by refraction. When white sunlight enters a water droplet, it is actually a mixture of all visible wavelengths, each corresponding to a different color. Red light has the longest wavelength, around 700 nanometers, while violet light has the shortest, around 400 nanometers. The index of refraction of water varies slightly with wavelength: it is higher for shorter wavelengths and lower for longer ones. This means that violet light bends more than red light when entering and exiting the droplet.

The result of this wavelength-dependent bending is that the colors fan out, or disperse, into a continuous spectrum. In a primary rainbow, the red band appears on the outer edge of the arc and violet on the inner edge, with orange, yellow, green, blue, and indigo arrayed in between. This ordering is a direct consequence of the differing refractive indices for each wavelength. It is the same principle that creates the spectrum when white light passes through a glass prism, except that in a rainbow, the light also undergoes an internal reflection that reverses the color order relative to a prism spectrum.

The human eye perceives these distinct bands as separate colors, but the spectrum is actually continuous. The classic seven-color naming system—red, orange, yellow, green, blue, indigo, violet—is a cultural convention popularized by Isaac Newton, who sought to draw an analogy between the seven colors and the seven notes of a musical scale. In reality, there are no sharp boundaries between the colors; each blends smoothly into the next.

The Geometry of Primary and Secondary Rainbows

Most people are familiar with the primary rainbow, but under the right conditions, a secondary rainbow can also be seen. This second arc appears outside the primary rainbow, with its colors reversed. Understanding the geometry of both types reveals the elegant mathematics underlying these phenomena.

The Primary Rainbow

The primary rainbow forms through a single internal reflection within the water droplet. As described earlier, light enters the droplet, reflects once off the inner back surface, and exits at an angle of approximately 42 degrees for red light and 40 degrees for violet light. The observer sees this rainbow as a circle of light centered on the antisolar point—the point directly opposite the sun. Because the ground usually blocks the lower half of this circle, only the familiar semicircular arc is visible. From an airplane or a high mountain, however, a full circular rainbow can occasionally be seen.

The Secondary Rainbow

The secondary rainbow is produced by light that undergoes two internal reflections within the droplet instead of one. With each reflection, some light is lost, so the secondary rainbow is fainter than the primary. The extra reflection also causes the light to exit at a larger angle—approximately 52 degrees for red light and 54 degrees for violet light. Because of this larger angle, the secondary rainbow appears outside the primary rainbow, and the color order is reversed: red is on the inner edge and violet on the outer edge. This reversal occurs because the second reflection flips the orientation of the dispersed colors relative to the observer.

The region between the primary and secondary rainbows, known as Alexander’s dark band, is noticeably darker than the surrounding sky. This band exists because no light from the droplets in that angular region reaches the observer’s eye. It was first described by the ancient Greek philosopher Alexander of Aphrodisias and serves as a striking visual reminder that rainbows are not arbitrary splashes of color but precise geometric projections.

Factors That Influence Rainbow Appearance

Not all rainbows look alike. Their brightness, width, color saturation, and even shape depend on a variety of environmental and observational factors. Recognizing these influences helps explain why some rainbows are vivid and sharply defined while others appear pale and diffuse.

Size of Water Droplets

The diameter of the water droplets plays a significant role in determining a rainbow’s appearance. Larger droplets, typically 1 to 2 millimeters in diameter, produce bright, well-separated colors because the internal reflections are more efficient and the dispersive separation is more pronounced. Smaller droplets, such as those found in fog or mist, produce much fainter rainbows with colors that may overlap and appear nearly white. In extreme cases, when droplets are very small, the rainbow becomes a diffuse white arc known as a fogbow.

Position of the Sun

The altitude of the sun above the horizon dictates the height and visibility of a rainbow. Rainbows are most commonly seen when the sun is low in the sky, typically at an elevation of less than 42 degrees. When the sun is higher than this, the rainbow center drops below the horizon, and the arc disappears from ground-level view. This is why rainbows are rarely seen around noon, except from elevated vantage points or when viewed from an aircraft. The best times for rainbow watching are early morning or late afternoon, when the sun is near the horizon and rain is falling in the opposite part of the sky.

Observer Position and Viewing Angle

Every rainbow is personal to the observer. Because the rainbow is defined by the specific angular relationship between the sun, the droplets, and the observer’s eye, no two people see exactly the same rainbow. Moving left or right shifts the apparent position of the arc, and changing elevation alters which droplets are in the correct alignment. This is why you can never reach the end of a rainbow—moving toward it changes the geometry, and the arc appears to recede. This principle also explains why rainbows appear to move when you drive through a sprinkler or a misty area.

Cloud Cover and Background Sky

A dark or overcast sky behind the rainbow enhances its visibility by providing contrast. Rainbows viewed against a bright white sky appear washed out because the background glare competes with the relatively faint colored light coming from the droplets. The most vivid rainbows are typically seen when the sun breaks through clouds in one part of the sky while rain is falling in another, creating a dramatic backdrop of dark rain clouds behind the bright arc.

Less Common Types of Rainbows

Beyond the familiar primary and secondary arcs, several rarer rainbow variants can appear under specific conditions. These phenomena deepen our understanding of light and water interactions.

Supernumerary Rainbows

Supernumerary rainbows are faint, additional bands of color that sometimes appear inside the primary rainbow arc, adjacent to the violet edge. They are caused by interference effects rather than by simple refraction and reflection. When light waves from different droplets travel slightly different distances and arrive at the eye out of phase, they can interfere constructively or destructively, producing alternating light and dark bands. These extra bands are most commonly seen when the water droplets are uniformly small, typically less than half a millimeter in diameter. They appear as pale pink, green, or blue stripes that lie close to the inner edge of the main rainbow.

Twinned Rainbows

A twinned rainbow appears when two distinct primary arcs split from a single base. This rare phenomenon occurs when two different sizes of water droplets are present in the same rain shower, with each droplet population producing its own arc that is offset slightly from the other. Twinned rainbows are not the same as double rainbows; they involve two primary arcs rather than a primary and a secondary. They are rarely observed because the conditions for their formation are highly specific and transient.

Reflected Rainbows and Reflection Rainbows

Reflected rainbows occur when sunlight reflects off a large body of calm water before striking the raindrops. The reflected light produces a secondary arc that appears below the horizon. Reflection rainbows, by contrast, form when light from a primary rainbow reflects off a water surface, creating an upward-pointing arc that appears to rise from the ground. Both types require very calm water and precise alignment of the sun, the water surface, and the observer.

Practical Tips for Observing Rainbows

While rainbows are never guaranteed, knowing the conditions that favor their formation can dramatically increase your chances of seeing one. The key requirements are simple but specific: sunlight from behind you and rain in front of you.

  • Look for rain in the opposite direction of the sun. If rain is falling in the eastern sky while the sun is low in the west, conditions are ideal for a rainbow.
  • Keep the sun at your back. Stand with the sun behind you and scan the sky opposite the sun for the arc. The center of the rainbow is always directly opposite the sun.
  • Choose early morning or late afternoon. The sun must be lower than 42 degrees above the horizon for a rainbow to be visible from ground level.
  • Use a sprinkler on a sunny day. Garden sprinklers produce a ready-made spray of water droplets that can create a small, close-range rainbow in your own backyard.
  • Look for rainbows near waterfalls or fountains. Any location with airborne water droplets and direct sunlight can produce a rainbow, often with striking intensity.

Once you have spotted a rainbow, take a moment to study it closely. Note the order and clarity of the colors. Look for a secondary arc outside the main one. Check for supernumerary bands near the inner edge. Each observation deepens your appreciation for the physics at work and trains your eye to notice subtle optical details that most people overlook.

Rainbows in Science and Human Understanding

The scientific study of rainbows dates back more than two thousand years. The Greek philosopher Aristotle wrote about rainbows in his Meteorology, correctly identifying that they result from the reflection of sunlight by clouds and that they appear opposite the sun. However, it was not until the 17th century that the true mechanism became clear. The French philosopher and mathematician René Descartes used ray tracing and a spherical model of a water droplet to demonstrate that the primary rainbow forms at an angle of about 42 degrees and that a secondary rainbow forms at about 52 degrees. A few decades later, Isaac Newton built on Descartes’s geometrical analysis by introducing the concept of dispersion, explaining that the different colors of the rainbow arise from the varying refractive indices for different wavelengths of light.

Today, the study of rainbows continues to inform research in atmospheric optics, meteorology, and even computer graphics. Accurate rainbow models are used in weather simulation software, in the design of optical instruments, and in the rendering of realistic natural scenes in video games and films. The same principles that create a rainbow also explain the formation of halos, glories, coronas, and other atmospheric optical effects, making the rainbow a gateway to a broader understanding of light in the natural environment.

Conclusion

Rainbows are far more than colorful arcs in the sky. They are a vivid demonstration of the fundamental laws of optics, a precise interplay of refraction, dispersion, and internal reflection operating within countless tiny water droplets. The 42-degree angle of the primary rainbow, the reversed colors of the secondary rainbow, the subtle interference bands of supernumerary arcs, and the personal nature of every rainbow observation all emerge from the same elegant physics. By learning to read the sky and understand the conditions that produce rainbows, we connect more deeply with the natural world and with the scientific principles that shape our everyday experience of light.

For further reading on the optics of rainbows, consider exploring resources from the Physics Classroom or the NASA Science website. A more detailed treatment of the mathematics can be found in the UK Met Office guide to rainbows or through the Atmospheric Optics blog, which documents hundreds of rare and unusual sightings. Each resource offers a different window into the same fascinating phenomenon, reminding us that even the most familiar natural wonders still have much to teach.