QuestionAtoms
How Do Fireworks Get Their Colors? The Chemistry of Light

Fireworks get their colors from metal atoms that are heated in the burst. Heat lifts electrons in these atoms to higher energy levels, and when the electrons fall back, they release light at particular wavelengths. Strontium gives red, sodium gives yellow, barium gives green and copper gives blue, so each color depends on which element is present.
Contents
The full answer
A firework’s color comes from light emitted by atoms, not from paint or dye. Atoms are made of a nucleus surrounded by electrons, and each electron can occupy only certain energy levels. Energy can move an electron up to a higher level, but that state is unstable. The electron soon drops back to a lower level and releases the energy difference as a particle of light, called a photon.
Light is a wave, and its color depends on its wavelength. The energy of a photon is related to its frequency by the Planck constant, 6.62607015 × 10⁻³⁴ J·s, which is exact in the SI system. Because each element has its own set of energy levels, the photons it emits have a set of wavelengths that are characteristic of that element. This set is called its emission spectrum.
In a firework, a mixture of metal compounds burns in the burst. The heat excites electrons in the metal atoms, and as they drop back, they emit light. Strontium compounds emit strongly at wavelengths around 650 nanometers, which look red. Sodium emits strongly near 589 nanometers, which look yellow. Barium gives green light, and copper gives blue light when its molecules are formed in the flame.
A typical burst contains several metals at once. Their colors combine, and the result is the bright, multicolored display that observers see. Fireworks makers choose compounds for their light output and stability, but the colors themselves follow from the physics of electron energy levels.
The science behind it
Emission lines are the reason fireworks look sharp rather than blurry. When a gas or vapor is heated, its atoms emit light only at certain wavelengths. A prism or diffraction grating splits this light into bright lines against a dark background, and each element’s line pattern is unique. This is the principle behind spectroscopy, which astronomers use to identify the elements in stars.
The flame test shows the same effect on a small scale. A metal compound is put into a clear, hot flame, and the color that appears identifies the metal. Sodium’s bright yellow is so strong that it hides other colors, which is why flame tests are often done with a filter. The test is a simple way of seeing emission spectra with the eye.
Blue is harder to produce than red or yellow. Blue light has a shorter wavelength and higher energy than red light, so the molecules that emit it must be stable enough to survive the very hot burst. Copper compounds can form such molecules, but they are easily broken apart by heat, so much of the light comes out in other colors. Achieving a deep, saturated blue is one of the difficult problems in firework chemistry, which is why blue effects are often less intense than red or green ones.
Sparkles and white light follow a different rule. Hot metal particles, such as tiny pieces of burning metal, glow because they are very hot solids, emitting light across a range of wavelengths. This is thermal light, similar to the glow of a heated iron bar. It is not the sharp, single-color light produced by excited atoms.
An everyday example: colors in a gas flame
Everyday life shows the same chemistry. A kitchen gas flame usually looks blue, because gas burns so completely that little soot is produced. When salt is dropped into a flame, the flame turns yellow, because sodium atoms in the salt emit yellow light. Observing this with a simple flame and a common household material is a safe way to see emission at work.
Street lights and some neon signs use the same principle. Sodium vapor lamps give a warm yellow glow because sodium atoms emit light strongly at 589 nanometers. Neon signs glow red-orange because neon atoms emit light from their own energy levels when an electric current passes through the gas. Each color is set by the element, not by the glass or tube that contains it.
A related question readers ask: why do fireworks make smoke?
People often ask why fireworks leave a cloud of smoke. The burst is a fast reaction, and some of the fuel and metal compounds do not fully react. Their solid particles drift in the air as smoke, which can dull the colors and make the display harder to see. The smoke is also a mixture of gases and particles from the same chemistry that makes any fire smoky, described in what smoke is made of.
The colors themselves come from the atoms in the burst and do not depend on the smoke. Smoke can still scatter and absorb light, however, so the light that reaches the eye may look paler or shifted. This is why a windy evening or a dense cloud can change how a display appears. The broader process of burning that drives the burst is explained in combustion.
Common misconceptions
Fireworks get their colors from dye. The colors come from light emitted by excited atoms or hot particles, not from pigment. A firework with no metal compounds would produce only white or orange light from hot gas and carbon particles.
Any metal can make any color. Each element gives its own set of wavelengths, so the color depends on the metal. Copper gives blue, but many other metals do not give blue at all.
Brightness changes the color. Brightness and color are separate properties. Using more of a metal makes the light brighter, but a dimmer burst of strontium is still red. Only changing the element, and so its energy levels, changes the color.
Frequently asked questions
What makes fireworks red or green?
Heat excites electrons in metal atoms, and when they fall back to lower energy levels they emit light of a fixed color. Strontium produces red light, and barium produces green light.
What is a flame test?
A flame test is a classroom method for identifying metal ions by the color they give to a flame. Each metal gives a characteristic color, such as the yellow of sodium, which is why it is used to recognize elements.
Why are blue fireworks the hardest to make?
Blue light has a high energy, so the molecules that produce it are easily broken apart by the heat of the burst. Without a stable molecule to emit it, the light becomes weak or shifts toward other colors.
Why are fireworks sparkly or white?
White and silver sparks come from hot metal particles, such as burning metal fuel, which glow as incandescent solids. This is thermal light, not the sharp colors produced by excited atoms.
Is the color of a firework the same as the color of its smoke?
Not always. The color you see comes from light emitted by excited atoms and molecules, while smoke is made of particles that may scatter or absorb light. The smoke can change the color that reaches the eye.
Sources and further reading
- OpenStax, "Chemistry 2e"
- W. M. Haynes (ed.), "CRC Handbook of Chemistry and Physics"
- N. N. Greenwood and A. Earnshaw, "Chemistry of the Elements" (2nd ed., 1997)
Cite this page
“How Do Fireworks Get Their Colors? The Chemistry of Light.” Atoms & Forces, https://science.bigworldlist.com/questions/how-do-fireworks-get-their-colors/.
More about Combustion
- ChemistryCombustion: Definition, Equation and Examples in Chemistry
- QuestionCan Diamonds Burn? What Happens When Diamond Is Heated
- ListChemical Changes in Everyday Life: 20 Examples Explained
- ComparisonComplete vs Incomplete Combustion: Products and Dangers
- ComparisonExothermic vs Endothermic Reactions: Differences and Examples
- QuestionHow Do Fire Extinguishers Work? The Science of Each Type
- QuestionHow Do Matches Light? The Chemistry of Striking a Match
- QuestionHow Does a Candle Burn? Wax, Wick and Flame Chemistry
- QuestionHow Does a Lighter Flint Make Sparks? Ferrocerium Explained