Experiment
Find the reddest sunset
Low sunlight crosses so much air that most of its blue is scattered out. Build it wrong first: clean air, no clouds, and a sunset that's just a glowing strip.
From the Short "Why the Best Sunset Comes AFTER the Sun Goes Down". ▶ Watch the Short
Clean air, no clouds
Let's build a sunset: clean air, no clouds. On its way through the air, sunlight loses some of its blue: air scatters blue out of the beam much more than red.
Lower the Sun to the horizon. Watch its colour, and how much air its light crosses.
Add a thick low bank
So add clouds. Here's a thick bank of cloud low on the horizon, on the Sun's side, with a few clouds above it.
Lower the Sun towards the horizon. What happens to the clouds above?
Put the clouds up high
Clear the horizon, and put the clouds up high. Clouds scatter all colours about equally, so they show whatever colour hits them.
Lower the Sun to the horizon and watch the high clouds. Try midday too.
After sunset
The real trick is height. Take the Sun below the horizon and you're in the Earth's shadow. But are the high clouds?
Keep the Sun going down, slowly. Find when the high clouds glow reddest.
Clouds
You can also drag up and down on the sky.
What's going on
Air scatters short waves of light much more than long ones: blue several times more than red. Near the horizon, sunlight crosses many times more air than at noon, up to about 40 times as much, so the low Sun loses most of its blue and looks orange to red. The "air crossed" number counts in units of the air straight overhead.
In clean air with no clouds, that gives a red-orange Sun and a bright glowing strip low in the sky, with blue above. The reddened light mostly flies past you, and air scatters red weakly, so little of it comes your way.
Clouds are made of droplets and ice crystals far bigger than light waves, so they scatter all colours about equally. That's why they're white by day, and why at sunset they show the colour of the light that reaches them. A thick bank low on the horizon, on the Sun's side, blocks that light, so the clouds above it stay grey. Middle and high clouds over a clear horizon catch the low sunlight from below and give the most vivid sunsets.
Higher clouds see over the curve of the Earth, so they stay in sunlight after the Sun has set where you are. The light that reaches them passes closest to the ground some way off towards the Sun, where it's just setting. For a cloud about 8 km up, the stretch from there up to the cloud is about 300 km, and it crossed a similar stretch of low air before that, so it has lost even more blue than the light that reached you at sunset. Low clouds go grey first; the highest turn last, and reddest, often a few minutes after the Sun has gone. So stay a few minutes after the Sun dips. Here, with clouds 8 km up, the deepest red comes about 10 to 15 minutes after, by the rough guide below.
Simplified: the side view stretches the air, the clouds and the angles near the horizon so you can see them; the numbers come from the real sizes. Light is worked out as three colours (red, green and blue, at 650, 550 and 450 nanometres) crossing clean air that thins with height, with no haze, no ozone and no bending of light by the air, so the most air here is about 35 times; with bending it's nearer 40. The sky's colours are painted to look right, not calculated; the Sun's and the clouds' colours are calculated. The clouds sit on the line towards the Sun, at 2.5, 3 and 8 km up; the bank starts 50 km away and reaches 6 km up; the Sun is drawn bigger. The minutes after sunset are a rough guide at about 5 minutes a degree; it's quicker near the equator and slower far from it.