How it's made Where fireworks get their colours: Same flame, different metal, different colour.
Flame tests: why each metal paints the flame its own colour
Short answer: the heat of the flame pushes electrons in the metal up to higher energy levels. When they fall back down they give out the extra energy as light. The gaps between energy levels are different for every element, so every metal gives out its own set of wavelengths, and you see that mix as a colour: crimson for lithium, yellow for sodium, lilac for potassium, orange-red for calcium, green for copper.
Can you spot the hidden metal? Copper: blue-green. Lithium: crimson. Looks like plain sodium. Cobalt glass blocks sodium's yellow. Potassium was hiding. Two metals. One flame.
Flame test colours
These are the colours most courses expect you to know. For lithium, sodium, potassium, calcium and copper, the first word is the one AQA's GCSE specification uses. Other books describe the same colours a little differently, because people see colours differently.
| Metal ion | Flame colour |
|---|---|
| Lithium, Li⁺ | Crimson (deep red) |
| Sodium, Na⁺ | Yellow (strong and persistent, some books say orange) |
| Potassium, K⁺ | Lilac (pale purple) |
| Calcium, Ca²⁺ | Orange-red |
| Strontium, Sr²⁺ | Red (crimson red) |
| Barium, Ba²⁺ | Pale green |
| Copper, Cu²⁺ | Green (often described as blue-green) |
Lithium and strontium are both red, which is where people get caught. A spectroscope separates them easily, because their light splits into different lines.
Why do metals give coloured flames?
Electrons in an atom or ion can only have certain energies. Think of them as rungs on a ladder, not a ramp. In the flame, heat gives some electrons enough energy to jump up to a higher rung. They do not stay there. When an electron drops back, it releases exactly the energy difference between the two rungs as one photon of light.
ΔE = hf = hc / λΔE: energy gap · h: Planck constant · f: frequency · c: speed of light · λ: wavelength
A big gap gives high-energy light with a short wavelength (towards violet); a small gap gives longer wavelengths (towards red). Each element has its own pattern of rungs, so it gives its own set of wavelengths. That is why the flame colour works as a fingerprint, and why a spectroscope shows a few sharp coloured lines instead of a rainbow.
A detail most revision notes skip: in the flame many of the metal ions pick up electrons again and become atoms, and much of the visible light comes from those atoms. Sodium's yellow, for example, comes from an electron falling from the 3p level to the 3s level.
A quick worked example: sodium's bright yellow light has a wavelength of about 589 nm. The energy of one of those photons is (6.63 × 10⁻³⁴ J s × 3.00 × 10⁸ m s⁻¹) ÷ (589 × 10⁻⁹ m), about 3.4 × 10⁻¹⁹ J.
How to do a flame test
- Use a Bunsen burner with the air hole open, so the flame is blue and almost invisible. A yellow, smoky flame adds its own colour.
- Clean the wire loop (nichrome or platinum): dip it in concentrated hydrochloric acid, then hold it in the flame. Repeat until the wire adds no colour. A nichrome wire usually still gives a trace of orange, so learn what your clean wire looks like.
- Dip the clean, moistened loop into the solid sample, usually a metal chloride. Chlorides are used because they are more volatile than most other salts and easy to get.
- Hold the loop at the edge of the hottest part of the flame and look at the colour straight away. Some colours fade in a second or two.
- Clean the loop again before every new sample.
Some schools use wooden splints soaked in the salt solution instead of a wire. That avoids concentrated hydrochloric acid, which is corrosive and irritates the lungs.
The mistakes people usually make
- A dirty loop. Sodium's yellow is strong and lasts, so a trace of sodium left on the loop, or from your fingers, makes another colour hard to read. Clean the wire every time.
- Missing potassium. Potassium's lilac is faint. Looking through blue cobalt glass helps: the glass absorbs yellow light, so a weaker colour is easier to see.
- Mixing up the reds. Lithium, strontium and calcium all give reddish flames. Say which red, and use a spectroscope if you have one.
- A luminous flame. If the air hole is closed, the flame glows yellow by itself and every result looks wrong.
- Expecting it to work on mixtures. With more than one metal ion, some colours can be masked by others. Flame tests are for one metal ion at a time.
Safety
Concentrated hydrochloric acid is corrosive and gives off a choking vapour: wear eye protection, use a small amount and keep it away from your face. Some of the salts used are harmful if swallowed, so do not eat or drink in the lab and wash your hands afterwards. The wire stays hot after it leaves the flame.
Questions people ask
What is the purpose of a flame test?
To identify which metal ion is in a compound, quickly and with very little sample. It is a first check: a clear colour points to one metal, and a confirming test or a spectroscope settles it.
What colour is potassium chloride in a flame test?
Lilac, a pale purple. It is faint, so it is easy to miss.
Why does sodium give a yellow flame?
When an electron in a sodium atom falls from the 3p level to the 3s level it gives out light of about 589 nm, which is yellow.
Why use cobalt blue glass in a flame test?
The blue glass absorbs yellow light, such as sodium's, so a fainter colour like potassium's lilac is easier to see.
Can a flame test identify every metal?
No. Not every metal gives a clear colour, and in mixtures some colours are masked. A spectroscope, which separates the light into its lines, gives a firmer answer.
Sources
- AQA, GCSE Chemistry 8462 specification, 4.8 Chemical analysis (flame test colours, Required practical 7)
- Royal Society of Chemistry, Flame tests using metal salts (teacher sheet)
- Royal Society of Chemistry, Flame tests: the wooden splint method
- Jim Clark, Chemguide: Flame tests
- LibreTexts Chemistry, Atomic emission spectra and the Bohr model
- HyperPhysics, Georgia State University: the sodium spectrum (589.0 and 589.6 nm)
Checked on 3 November 2026. Colour words, ranges and safety rules vary between books and schools; your teacher's method and risk assessment come first.