Have you ever marveled at a rainbow that appears after a summer rain? Each brilliant arc of color is a fascinating display of physics in motion. Let’s explore the science behind the formation of rainbows, and the rich history and myths associated with these stunning bands of light. Gary Yeowell / Getty ImagesWhen you think of a 'rainbow,' you may picture the sky clearing after a rainstorm, a Pink Floyd album cover, or even the fabled pot of gold. But how are rainbows actually formed? The science behind it is simple and straightforward.
What Happens Inside a Prism
It all begins with a prism. Picture a triangular piece of glass or plastic. This prism acts like the magician behind the scenes of the rainbow’s creation. When white light enters one side of the prism, it’s as though the magician says, 'Separate!' and the light breaks apart.

Light enters the prism, and the magic unfolds. The process of splitting occurs because of the glass's refractive index. You might wonder, what is that? Well, each material, from air to water, has its own refractive index, which dictates how much light bends when passing from one medium to another.
Refraction and Dispersion: The Art of Creating Colors
When light encounters the prism, it bends, or refracts, due to the difference in refractive index between the air and the glass. But that's not the end of the story; as the light travels through the prism, it breaks apart into a range of colors.
This phenomenon is called dispersion, and it’s how a spectrum of colors is formed, from the red light with the longest wavelength to violet light with the shortest wavelength.
What Are the Seven Colors of a Rainbow?
Rainbows display a beautiful array of colors: red, orange, yellow, green, blue, indigo, and violet. This classic order is famously remembered by the acronym Roy G. Biv.
The Magic of How Raindrops Become Miniature Prisms

What causes a rainbow to appear in nature?
Good news: You don't need a glass prism to see this amazing light show. Nature’s very own raindrops create the rainbow spectacle for you.
Indeed, raindrops in the atmosphere function as tiny prisms that split light into a spectrum of colors.
Light travels through each raindrop, bending as it enters and reflecting off the inner surface before it exits. This phenomenon—entering, bending, and exiting—is known as refraction.
The Geometry of Angles and Arcs in Optics
To grasp how rainbows appear in the sky, consider the angles involved. Light entering a raindrop bends at certain angles based on its color. Red light exits at an angle of 42 degrees, while violet light exits at a slightly smaller angle of 40 degrees.
The varying angles from many droplets combine to create a full circle of color in the sky — a rainbow. Ever wonder why you usually see only part of it? It’s because the ground blocks the rest of the circle!
A Double Rainbow: A Spectacular Sight
A double rainbow forms when light inside the raindrops reflects twice, resulting in a second reflection. The secondary rainbow appears outside the primary one, with its colors in reverse order. If you’re fortunate enough to witness one, it’s because the raindrops are just the right size to create this double display.
What is the Symbolism Behind a Rainbow?
Across many cultures, rainbows are seen as symbols of hope, often signifying the promise of rain to come. So next time you spot a rainbow, remember — it’s not only a stunning natural phenomenon but also a global sign of good fortune ahead!
The Science of How Our Eyes See Rainbows
To clarify scientifically, a rainbow isn’t a physical object but rather an optical illusion. What we perceive as a rainbow is actually visible light, which our eyes process into the distinct bands of color we associate with it.
The Physics of Light
Light is made up of photons — minute particles that act both as light waves and rays. When light bends or refracts, it occurs because the waves of light are interacting with whatever medium they are passing through, whether that be air, glass, or water.
The next time you observe a rainbow, you'll view it from an entirely different perspective. To delve deeper, visit How Rainbows Work for further insights.
