Water drops bend and reflect light

As sunlight enters a drop, it bends. Light reflects inside the drop and bends again as it leaves. Different colors bend by different amounts, spreading white sunlight into a band of colors. 1 2

Your view changes where the rainbow appears

A rainbow is not a solid object in one spot. It depends on the Sun, water drops, and where the viewer stands, so two people may not see exactly the same rainbow. 1 2

A rainbow depends on the observer

Each person sees light from a different set of water drops, so a rainbow is positioned from that person’s viewpoint. If you move, the rainbow’s apparent position changes too. This explains why nobody can walk to the end of a rainbow. 1 2