SCScience for the Curious
science

How a Rainbow Actually Forms

A plain explanation of the light bending and splitting inside raindrops that creates a rainbow, based on NOAA and National Weather Service guidance.

A rainbow looks like it is painted across the sky, but nothing is actually drawing it there. It is light from the sun, bent and sorted by millions of individual raindrops, arriving at your eye in a very specific arrangement. Two official weather sources, NOAA's NESDIS education team and the National Weather Service, lay out exactly what happens inside a single raindrop to make that happen.

The short version, in NOAA's own words

NOAA's NESDIS summarizes the process directly: "A rainbow is caused by sunlight and atmospheric conditions. Light enters a water droplet, slowing down and bending as it goes from air to denser water. The light reflects off the inside of the droplet, separating into its component wavelengths, or colors. When light exits the droplet, it makes a rainbow." That single sentence actually contains three separate physical steps, each worth slowing down on.

Step one: light bends on the way in

Sunlight looks white, but it is actually a mix of every visible color blended together. When that white light hits the surface of a raindrop, it does not continue in a straight line; it slows down and bends, a process called refraction, because light travels at a different speed through water than through air. This bending is also what separates the mixed colors slightly from each other, since each color bends by a very slightly different amount as it crosses from air into water.

Step two: light bounces off the inside of the droplet

Once inside the raindrop, the light does not simply pass straight through and out the other side. It reflects off the curved inner surface of the droplet, essentially bouncing off the back wall of the drop from the inside, the way light bounces off a mirror. This internal reflection is what sends the light back out in the general direction it came from, rather than continuing forward through the drop.

Step three: light bends again on the way out, and the colors separate

As the light exits the raindrop, it crosses from water back into air and bends a second time. Because each color was already separated slightly during the first bend, this second bend spreads them further apart, enough that your eye can perceive them as distinct bands rather than blended white light. This is why a rainbow shows a clear sequence of colors rather than a single colored glow.

Why you see a full arc, not just one spot

A single raindrop only sends one specific color to your eye, at one specific angle. A rainbow you actually see is built from millions of different raindrops, each one reflecting a particular color to your eye depending on its exact position relative to you and the sun. The National Weather Service's Flagstaff office explains that rainbows form specifically from "sunlight interacting with raindrops," and that your position relative to both the sun and the rain is what determines whether you see a rainbow at all; you always need the sun behind you and rain (or spray) in front of you for the geometry to line up.

Why a secondary rainbow has its colors flipped

NOAA's NESDIS material also explains why a fainter, second rainbow sometimes appears above the main one: "the secondary rainbow appears above the primary rainbow. The secondary rainbow will have the order of the colors reversed, too, with red on the bottom and violet on the top." A secondary rainbow forms when light reflects twice inside the raindrop instead of once, which is also why it is dimmer than the primary rainbow: some light intensity is lost at each extra reflection, and the double bounce flips the color order compared to the single-reflection primary bow.

What this means for actually spotting one

Because the geometry of a rainbow depends entirely on the angle between you, the sun, and the rain, a few practical consequences follow directly from the physics above:

  • You need the sun behind you and precipitation (rain, mist, or spray) in front of you. If the sun is in front of you facing the rain, the geometry does not work.
  • Rainbows are more common in the early morning or late afternoon, when the sun sits lower in the sky, because the lower sun angle puts the rainbow's arc higher and more fully in view.
  • A garden hose or sprinkler can create the same effect on a sunny day, since the physics only requires sunlight and airborne water droplets, not actual rain.
  • If you see a faint second arc above the main rainbow, look closely at the color order; NOAA's explanation predicts it will run in reverse, red closest to the ground instead of violet.

Key takeaways

  • A rainbow forms through three steps inside each raindrop: light bends entering the drop, reflects off the drop's inner surface, then bends again exiting, which is what separates white sunlight into distinct colors.
  • No single raindrop shows you the whole rainbow; millions of drops each send one color to your eye depending on their exact position, building the full arc.
  • You always need the sun behind you and water droplets in front of you for the angles to line up, whether that water is rain, mist, or a garden hose.
  • A secondary rainbow comes from a second internal reflection inside the raindrop, which is why it is fainter and shows its colors in reverse order compared to the primary rainbow.
  • Lower sun angles, like early morning or late afternoon, tend to produce more visible rainbow arcs, which is a direct consequence of the same geometry that creates the colors.

Sources

  1. NOAA NESDIS, What Causes a Rainbow?
  2. National Weather Service Flagstaff, How Do Rainbows Form?
scienceweatherrainbows