How Do Rainbow Colors Form? The Science Behind the Spectrum

Deborah Jun 12, 2026

Rainbows appear across the sky after a storm or near a cascading waterfall, presenting a vivid arc of color that has fascinated humans for centuries. This visual phenomenon is not magic but the result of precise physical interactions between sunlight and water droplets. Understanding how rainbow colors form requires examining how light behaves when it encounters water, specifically how it bends, reflects, and separates into distinct wavelengths.

Science for Curious Kids!
Science for Curious Kids!

The Nature of Sunlight and Color

how a rainbow forms in the sky and what it does to light up your life
how a rainbow forms in the sky and what it does to light up your life

To comprehend rainbow formation, one must first recognize that white sunlight is actually a composite of many colors. While our eyes perceive sunlight as white, physicists describe it as a spectrum containing all the visible wavelengths, ranging from long wavelengths of red light to short wavelengths of violet. Each color corresponds to a specific wavelength, and when combined, these wavelengths create the illumination that enables us to see the world.

Refraction: The Initial Bending

How a Rainbow Is Made: Simple Science for Kids (Ages 6-9)
How a Rainbow Is Made: Simple Science for Kids (Ages 6-9)

The journey of rainbow creation begins when sunlight enters a spherical water droplet. As light travels from air into the denser medium of water, it slows down and bends, a process known as refraction. This bending occurs because light travels at different speeds in different materials. Shorter wavelengths, like violet and blue, slow down more than longer wavelengths like red, causing the light to spread into its component colors in a process called dispersion, much like a prism separating light.

Internal Reflection and Color Separation

an image of rainbows and how to draw them
an image of rainbows and how to draw them

After refraction, the dispersed light travels through the water droplet and strikes the inner back surface. Here, most of the light undergoes total internal reflection, bouncing off the interior surface of the droplet. During this reflection, the color spectrum maintains its separation, with each wavelength continuing at a slightly different angle. When the reflected light exits the droplet, it refracts again, further separating the colors and directing them toward an observer's eye.

The geometry of this process is remarkably consistent. The angle between the incoming sunlight, the water droplet, and the observer's eye determines which colors are visible. For the primary rainbow, this angle measures approximately 42 degrees for red light and 40 degrees for violet light. Because of this angular difference, red appears on the outer edge of the rainbow while violet forms the inner arc, creating the familiar sequence of colors.

Double Rainbows and Secondary Phenomena

Rainbow Formation - Why do we see a rainbow?
Rainbow Formation - Why do we see a rainbow?

In some conditions, a secondary rainbow appears outside the primary arc with colors in reverse order. This secondary rainbow forms when light undergoes two internal reflections within the water droplet rather than one. The additional reflection reduces the intensity of the light, making the secondary rainbow fainter. The reversed color sequence occurs because the second reflection alters the angle at which different wavelengths emerge, placing red on the inner edge and violet on the outer edge.

Factors beyond droplet size and sun angle influence rainbow visibility. The presence of many similarly sized water droplets creates a more vivid and complete arc, while varying droplet sizes can produce broader, less distinct rainbows. Atmospheric conditions, the observer's position relative to the sun, and even the specific properties of water all contribute to the precise appearance of these natural optical displays. Understanding these elements transforms a simple meteorological occurrence into a fascinating demonstration of physics in action.

How rainbow formed?
How rainbow formed?
How Are Rainbows Formed? | Worksheet | Education.com
How Are Rainbows Formed? | Worksheet | Education.com
Rainbow Facts for Kids
Rainbow Facts for Kids
Facts About Rainbows
Facts About Rainbows
How Rainbows Form 🌈 | The Physics Behind Nature's Most Beautiful Phenomenon
How Rainbows Form 🌈 | The Physics Behind Nature's Most Beautiful Phenomenon
How is a Rainbow Formed? | Worksheet | Education.com
How is a Rainbow Formed? | Worksheet | Education.com
Why Is the Rainbow Curved? Science of Rainbow Shape
Why Is the Rainbow Curved? Science of Rainbow Shape
Anatomy of a Rainbow FREE Printable + Make a Rainbow
Anatomy of a Rainbow FREE Printable + Make a Rainbow
an info sheet showing the different types of rainbows and how they are used to make them
an info sheet showing the different types of rainbows and how they are used to make them
the colors of the rainbow are shown in different shades and font styles, including red, orange, yellow, green, blue, indigo violet
the colors of the rainbow are shown in different shades and font styles, including red, orange, yellow, green, blue, indigo violet
someone is holding a cd in their hand while they are working on something with the light shining through it
someone is holding a cd in their hand while they are working on something with the light shining through it
Rainbow Paper | Color Science for Kids
Rainbow Paper | Color Science for Kids
Billy Blue Hair - Where do Rainbows Come From?
Billy Blue Hair - Where do Rainbows Come From?
The Colours of the Rainbow | Woodward English
The Colours of the Rainbow | Woodward English
Rainbow Flare Tutorial
Rainbow Flare Tutorial
a poster with the words why is the rainbow curved? and an image of a rainbow
a poster with the words why is the rainbow curved? and an image of a rainbow
Rainbow Experiment - Lessons for Little
Rainbow Experiment - Lessons for Little
How does a rainbow form , physicist guide to explain this natural phenonmenon – Askiitians | Blog
How does a rainbow form , physicist guide to explain this natural phenonmenon – Askiitians | Blog
a notebook with an image of a rainbow and the words why do we see a double rainbow?
a notebook with an image of a rainbow and the words why do we see a double rainbow?
How to Make Rainbows at Home
How to Make Rainbows at Home
four different types of rainbows on a pink and blue background with the words, step 1
four different types of rainbows on a pink and blue background with the words, step 1