On the Fourth of July, the night sky fills with red, green, gold and blue. Most people never stop to wonder where those colors come from. The answer is not paint or dye. It is chemistry. Every color in a firework comes from a metal that is heated until it glows.
A firework shell that bursts high in the sky is built in layers. At the bottom is the lift charge, a small amount of gunpowder that launches the shell out of a tube called a mortar. A fuse burns while the shell climbs. Inside the shell are small pellets called stars, packed around a burst charge. When the fuse reaches the burst charge, the shell breaks open and throws the burning stars outward. The way the stars are arranged decides the shape you see, such as a round ball or a ring.
The stars hold the color. Each one contains a fuel, a chemical that helps it burn and a metal compound. When a metal gets very hot, the tiny particles called electrons inside its atoms take in energy. A moment later, they give that energy back as light. Each metal gives off its own colors of light. Strontium glows red. Barium glows green. Sodium glows a strong yellow-orange, and copper glows blue. Mixing strontium and copper can make purple.
Blue is the hardest color to make. The copper compounds that create blue light break down if the flame gets too hot. If that happens, the blue fades to a dull white. Fireworks makers must keep the temperature in a narrow range to get a deep, clear blue.
Fireworks began in China more than a thousand years ago, after gunpowder was invented there. For centuries, they could only glow orange, gold and white. In the 1800s, chemists found new ingredients that burned hotter, and bright reds, greens and blues finally became possible.
Have you ever noticed that you see a firework burst before you hear the boom? Light travels nearly a million times faster than sound. Sound needs about five seconds to travel one mile. If you count the seconds between the flash and the bang, you can estimate how far away the firework is.
Science teachers show the same idea in a flame test. They hold a tiny amount of a metal compound in a flame, and the flame changes color. It is a small, safe version of the chemistry that lights up the sky.