HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Identifying Ions and Gases: Flame Colours, Precipitates and Gas Tests
  1. 1Flame tests and emission: why metal ions colour a flame
  2. 2Cations with sodium hydroxide and aqueous ammonia
  3. 3Anions and gases: the confirming tests
  1. Chemistry
  2. /Identifying Ions and Gases: Flame Colours, Precipitates and Gas Tests
  3. /Flame tests and emission: why metal ions colour a flame

Course 40.1·Lesson 1 of 3

Flame tests and emission: why metal ions colour a flame

A drop of soup on a gas stove makes a bright yellow flash. That yellow is the same light a chemist uses to find sodium in a salt. This lesson shows how a flame test is done, which colour each metal gives, and why: an excited electron falls back and gives out light of one energy.

about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Identifying Ions and Gases: Flame Colours, Precipitates and Gas Tests
  1. 1Flame tests and emission: why metal ions colour a flame
  2. 2Cations with sodium hydroxide and aqueous ammonia
  3. 3

Try the code and the simulations beside the lesson.

A test you have already seen

Have you seen salty water boil over onto a gas flame? The blue flame turns yellow at once. The salt holds sodium, and sodium colours a flame yellow. Many metal ions give a flame its own colour. This is the flame test, the quickest test for some cations.

How to do a flame test

  1. Clean a nichrome or platinum wire. Dip it in concentrated hydrochloric acid and hold it in the hottest part of a blue, non-luminous flame. Repeat until the wire gives no colour.
  2. Dip the wire in the acid again, then into a little of the solid.
  3. Hold it at the edge of the flame and look at the colour.

Why the acid? It turns the salt into a chloride. Metal chlorides turn to vapour easily in a flame, so the colour is bright. A wooden splint soaked in the solution also works. The splint must not catch fire, or its own yellow light hides the colour.

Seven flames in a row, each over a burner, with the metal and the colour written under it. Lithium: crimson red. Sodium: golden yellow. Potassium: lilac, a pale purple. Calcium: brick red, an orange red. Strontium: crimson red. Barium: apple green, a pale green. Copper: blue green.
Metal ionFlame colour
lithiumcrimson red
sodiumgolden yellow
potassiumlilac
calciumbrick red
strontiumcrimson red
bariumapple green
copper(II)blue green

Books use slightly different words. Indian texts say brick red for calcium and apple green or grassy green for barium. A-Level and IGCSE texts say orange red for calcium and light green for barium. These are the same colours.

Where the colour comes from

The flame is hot. It gives energy to the atoms of the metal, and an electron moves up to a higher energy level. We call this an excited atom. The electron soon falls back. It gives out the energy as one photon, a small packet of light.

The energy of the photon is the gap between the two levels:

E=hν=hcλ\displaystyle E = h\nu = \dfrac{hc}{\lambda}E=hν=λhc​

Here h=6.626×10−34 J sh = 6.626 \times 10^{-34}\ \text{J s}h=6.626×10−34 J s is the Planck constant, c=2.998×108 m/sc = 2.998 \times 10^{8}\ \text{m/s}c=2.998×108 m/s is the speed of light, ν\nuν (the Greek letter nu) is the frequency and λ\lambdaλ (lambda) is the wavelength.

Each element has its own set of levels. So each element gives light of its own wavelengths. Sodium gives two lines very close together, at 589.0 nm and 589.6 nm. They look yellow. Let us find the energy of one photon at 589 nm. First multiply the two constants:

hc=1.986×10−25 J m\displaystyle hc = 1.986 \times 10^{-25}\ \text{J m}hc=1.986×10−25 J m

Then divide by the wavelength in metres:

E=1.986×10−25 J m589×10−9 m\displaystyle E = \dfrac{1.986 \times 10^{-25}\ \text{J m}}{589 \times 10^{-9}\ \text{m}}E=589×10−9 m1.986×10−25 J m​

This gives E=3.37×10−19 JE = 3.37 \times 10^{-19}\ \text{J}E=3.37×10−19 J. For a mole of photons we multiply by NA=6.022×1023 mol−1N_A = 6.022 \times 10^{23}\ \text{mol}^{-1}NA​=6.022×1023 mol−1 and get 203 kJ/mol203\ \text{kJ/mol}203 kJ/mol. A useful short cut is E=1240 eV nm/λE = 1240\ \text{eV nm}/\lambdaE=1240 eV nm/λ, which gives 2.11 eV2.11\ \text{eV}2.11 eV.

Move the slider to 671 nm, the red line of lithium, and to 766 nm, the red line of potassium. Red light carries less energy than yellow light. Violet light carries the most.

Lines, not a rainbow

A hot solid, such as the filament of an old bulb, gives every colour. A flame with a metal salt gives a few bright lines. Seen through a spectroscope, a prism or grating that spreads light out, these lines form a line spectrum. The positions of the lines identify the element, even when two flames look alike. Lithium and strontium both give red flames, but their lines sit at different wavelengths.

Calcium, strontium and barium give bands as well as lines. Part of their colour comes from small molecules in the flame, such as CaOH. So their colours are less pure than the yellow of sodium.

Sodium hides other colours

Sodium is everywhere: in dust, in sweat, on glass. A trace of it gives a strong yellow that hides a weak colour such as the lilac of potassium. So we look at a potassium flame through blue cobalt glass. The glass absorbs the yellow light of sodium and lets the red and violet light of potassium through. The flame then looks pink or crimson.

Which ions give no colour?

Magnesium and beryllium ions give no colour. Their electrons are held more tightly, so the energy gaps are larger. The light they give out lies in the ultraviolet, which we cannot see. Ions such as zinc and aluminium also give no useful colour.

Practise with new numbers

Try it in Python

The program finds the energy of the main flame lines of three metals.

Read it first. Predict which line has the largest energy. Then run it.

1. Add the violet line of potassium at 404.4 nm. Where does it come in the order?

2. Change the energy unit from kJ/mol to eV by dividing by 1.602×10−191.602 \times 10^{-19}1.602×10−19 instead. Do the answers match the sliders?

Common mistakes

  • Forgetting nanometres. Change nm to m (times 10−910^{-9}10−9) before you use E=hc/λE = hc/\lambdaE=hc/λ.
  • Thinking red light has more energy. A longer wavelength means a smaller energy.
  • Reading potassium without cobalt glass. The sodium yellow hides the lilac.
  • Using a dirty wire. Clean it in acid until the flame shows no colour.

Remember these

  • Li crimson, Na yellow, K lilac, Ca brick red, Sr crimson, Ba apple green, Cu blue green.
  • E=hc/λE = hc/\lambdaE=hc/λ, and E=1240 eV nm/λE = 1240\ \text{eV nm}/\lambdaE=1240 eV nm/λ.
  • Each element gives its own lines. A spectroscope tells two red flames apart.

References

  • OpenStax Chemistry 2e, Chapter 6, section 6.2 on the Bohr model and line spectra.
  • NCERT Chemistry Part I for Class 11, Unit 2, Structure of Atom, on line spectra and the energy of a photon.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Why is the wire dipped in concentrated hydrochloric acid before it touches the salt?
  1. Potassium gives a red line at 766 nm and a violet line at 404 nm. Which photon has the larger energy, and by what factor?
  1. A flame is yellow, and through blue cobalt glass it looks crimson. What does the sample hold?
  1. Why does a magnesium salt give no flame colour?

Enroll free in Identifying Ions and Gases: Flame Colours, Precipitates and Gas Tests

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A road lamp filled with sodium vapour glows yellow…Hard · High School (11–12) · by StemPy Lab
Two red flames look the same to the eye…Advanced · High School (11–12) · by StemPy Lab
A student looks at the flame of an unknown mixture of chlorides through a hand spectroscope…Hard · High School (11–12) · by StemPy Lab
Next: lesson 2Cations with sodium hydroxide and aqueous ammonia
← Identifying Ions and Gases: Flame Colours, Precipitates and Gas Tests
← PreviousCations with sodium hydroxide and aqueous ammonia →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
4 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Anions and gases: the confirming tests

Python Labs (1)

Energy of the light in a flamePython Lab · by StemPy Lab