Virtual lab

Flame Test Simulator: Colours of the Metal Ions

Pick a metal and watch the test: the wire is cleaned, takes up the salt and goes into the flame. A second picture shows the electron that jumps and falls back, which is where the colour comes from.

By Sunil Kumar. Updated 26 November 2026.

The film loads here. It needs JavaScript.

How to use the film

  1. Pick an experiment from the row of buttons.
  2. Press Play. The film runs step by step, and the caption beside it says what is happening and why.
  3. Pause at any time. Back and Next move one step. Tap a bar under the picture to jump to that step. Speed changes how fast the film runs.
  4. Change the metal at any time: the film starts again with the new flame colour.

Flame colours

IonFlame colourThrough blue cobalt glass
Lithiumcrimson red
Sodiumgolden yellownot seen
Potassiumlilac (pale violet)crimson
Rubidiumred violet
Caesiumblue
Calciumbrick redlight green
Strontiumcrimson redpurple
Bariumapple greenbluish green
Copperbluish green
Berylliumno colour
Magnesiumno colour

How the test is done, and why it works

  1. Clean a platinum wire by dipping it in concentrated and heating it until it gives no colour to the flame.
  2. Make a paste of the salt with concentrated : metal chlorides are volatile, so they reach the flame as vapour.
  3. Hold the wire in the non-luminous (blue) part of the Bunsen flame.

The heat of the flame lifts an electron of the metal atom to a higher level. When it falls back, the energy comes out as light of a fixed colour. In beryllium and magnesium the electrons are held too strongly for the flame to excite them, so these two give no colour.

Frequently asked questions

Why is concentrated HCl used in the flame test?

It turns the salt into the metal chloride. Chlorides are the most volatile salts of these metals, so enough metal reaches the flame as vapour to colour it.

Why is blue cobalt glass used?

It absorbs the strong yellow light of sodium, which is present as an impurity in almost every sample. The lilac of potassium, hidden behind the yellow, then shows as crimson.

Why do beryllium and magnesium give no flame colour?

Their atoms are small and hold their electrons strongly. The energy of the Bunsen flame is not enough to excite them.

More of the virtual lab