Why do certain elements change color over a flame?

Join Our Community of Science Lovers!

Professors Stephen Reucroft and John Swain from the Department of Physics at Northeastern University offer the following explanation:

Image: CITY OF SAN DIEGO, STREET DIVISION
YELLOW GLOW. Low-pressure sodium vapor lamps cast a soft yellow light on certain San Diego streets.

Any element placed in a flame will change its color. Atoms are made of positively charged nuclei, about which negatively charged electrons move according to the laws of quantum mechanics. Quantum mechanics constrains them to appear in various distinct patterns, called orbitals. (Orbitals are a lot like planetary orbits, but blurrier, so that you're never quite sure just where the electrons are.)


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


Left on their own, the electrons of an atom tend to relax into orbitals that leave the atom with the lowest possible energy--its ground state. Putting atoms into a flame, though, adds energy to the looser electrons farthest from the nucleus and pushes them into other orbitals. Eventually, these excited electrons drop back to where they ought to be, and in so doing, they release the energy they stored up as particles of light, called photons.

The color of the light emitted depends on the energies of the photons emitted, which are in turn are determined by the energies required to move electrons from one orbital to another. A flame has lots of different energies existing within it all the time, and every so often, it gets lucky and has the right quantity present to push an electron from one orbital to another. When the electron drops back, it must release the same exact amount energy that it absorbed. Depending on the element you put in the flame, various different energies of photons (colors) will appear. Those colors are as distinctive to each element as fingerprints are to people.

As an easy experiment to try at home, put a little table salt in a flame. You will see the same yellow glow as that of a sodium street light, in which the sodium electrons are kicked about by an electric current instead of a flame. Also, a bit of boric acid, which you can get at a pharmacy, will produce a lovely green flame due to the element boron.

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe