📘 CodingMarble Learn

Tests for Ions: Flame Tests, Hydroxide Precipitates, Anion Tests and Flame Emission Spectroscopy

An ionic compound is made of a positive metal ion and a negative ion. Each can be found with its own test. Flame tests show metal ions by colour: lithium crimson, sodium yellow, potassium lilac, calcium orange-red, copper green. Sodium hydroxide gives coloured hydroxide precipitates: Cu²⁺ blue, Fe²⁺ green, Fe³⁺ brown, Al³⁺, Ca²⁺ and Mg²⁺ white (only Al(OH)₃ dissolves in excess). Carbonates fizz with acid and the gas turns limewater milky. Halides with acidified silver nitrate: chloride white, bromide cream, iodide yellow. Sulfates with acidified barium chloride: white precipitate. Instruments such as flame emission spectroscopy are faster, more sensitive and can measure amounts.

🎬 Step-by-step story

  1. Flame test: put a little salt on a clean wire loop and hold it in a hot flame. Sodium (Na⁺) gives a yellow flame.
  2. Add sodium hydroxide drops. A solid (precipitate) forms. Its colour names the metal ion: Cu²⁺ blue, Fe²⁺ green, Fe³⁺ brown, Al³⁺ and Mg²⁺ white.
  3. Carbonate (CO₃²⁻): add dilute acid. It fizzes. The gas turns limewater milky, so it is carbon dioxide.
  4. Halides: add dilute nitric acid, then silver nitrate. Chloride gives white, bromide cream, iodide yellow.
  5. Sulfate (SO₄²⁻): add dilute hydrochloric acid, then barium chloride. A white precipitate forms.
  6. Machine test: flame emission spectroscopy turns flame light into lines, a barcode for each metal. Pick an ion and compare.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why does each metal give a different flame colour?

Each element has its own set of electron energy levels. When heated electrons fall back, they give out light of fixed energies, so each metal has its own colours.

What exactly is a precipitate?

A solid that appears when two solutions are mixed, because the new compound does not dissolve. In step 1 the coloured layers at the bottom of the tubes are precipitates.

How do I tell aluminium from magnesium if both give white?

Add excess sodium hydroxide. Aluminium hydroxide dissolves; magnesium hydroxide stays.

Why add acid first in the sulfate and halide tests?

Acid removes carbonate as CO₂ fizz (step 2). Otherwise carbonate would also make a precipitate and fool you.

Why use a machine if the flame test works?

A spectroscope separates the light into lines, so it finds metals in mixtures, detects tiny amounts and measures how much is there.

What are we testing for?

A salt such as copper(II) sulfate is made of two parts: a positive metal ion (Cu²⁺, the cation) and a negative ion (SO₄²⁻, the anion). To name an unknown salt, we test for each part separately.

Many tests make a precipitate: an insoluble solid that suddenly appears when two solutions are mixed. Its colour is the clue.

Always use small amounts, clean equipment and eye protection. Some solutions (silver nitrate, barium chloride, sodium hydroxide) are harmful or corrosive.

Flame tests for metal ions

Dip a clean nichrome or platinum wire loop in dilute hydrochloric acid, then in the solid sample. Hold it in the hot, blue part of a Bunsen flame and look at the colour.

IonFlame colour
Lithium, Li⁺crimson (deep red)
Sodium, Na⁺yellow
Potassium, K⁺lilac
Calcium, Ca²⁺orange-red
Copper, Cu²⁺green (blue-green)

Why colours? Heat lifts electrons to higher energy levels. When they fall back, they give out light of fixed colours for that element.

Limits: in a mixture one colour can hide another (sodium's strong yellow hides lilac potassium), and a dirty loop gives false results.

Metal hydroxide precipitates with sodium hydroxide

Add a few drops of sodium hydroxide solution to a solution of the salt. Many metal ions form an insoluble hydroxide:

Telling the white ones apart: keep adding sodium hydroxide (excess). Aluminium hydroxide dissolves into a colourless solution; calcium and magnesium hydroxides stay. Then a flame test separates them: calcium gives orange-red, magnesium no colour.

Some courses also test ammonium (NH₄⁺): warm with sodium hydroxide; ammonia gas turns damp red litmus blue. Zinc (Zn²⁺) gives white, soluble in excess.

Tests for carbonates, halides and sulfates

Carbonate, CO₃²⁻

Add dilute acid. Bubbles (effervescence) of carbon dioxide appear. Bubble the gas through limewater: it turns milky. CO₃²⁻ + 2H⁺ → CO₂ + H₂O.

Halides: chloride, bromide, iodide

Add dilute nitric acid, then silver nitrate solution. Chloride gives a white precipitate (AgCl), bromide cream (AgBr), iodide yellow (AgI). Ag⁺ + Cl⁻ → AgCl.

Sulfate, SO₄²⁻

Add dilute hydrochloric acid, then barium chloride solution. A white precipitate of barium sulfate forms. Ba²⁺ + SO₄²⁻ → BaSO₄.

Why add acid first?

The acid removes carbonate ions. Carbonates would also give a precipitate with silver or barium ions and fool you. Use nitric acid (not hydrochloric) for halides, because hydrochloric acid itself adds chloride ions.

Instrumental methods and flame emission spectroscopy

Instrumental methods use machines instead of test tubes. Compared with chemical tests they are accurate, sensitive (find tiny amounts) and rapid.

In flame emission spectroscopy, a sample is put into a flame and the light it gives out goes through a spectroscope. The light is split into a line spectrum: bright lines at fixed wavelengths. Every metal ion has its own pattern, like a barcode.

Try it: in the last 3D step pick Na⁺ and then K⁺. The flame colours look different, and the lines sit in different places.

Key formulas and definitions

Worked examples

1. A white solid gives a lilac flame. Its solution with nitric acid and silver nitrate gives a cream precipitate. Name the solid.

Lilac flame → K⁺. Cream silver halide → Br⁻. The solid is potassium bromide, KBr.

2. A green solution gives a green precipitate with sodium hydroxide. After some time in air the precipitate turns brown. Explain.

Green Fe(OH)₂ shows Fe²⁺. Air oxidises iron(II) to iron(III), so the precipitate slowly becomes brown Fe(OH)₃.

3. Two white salts both give a white precipitate with a little sodium hydroxide. With excess, salt A's precipitate dissolves, B's does not. B gives an orange-red flame. Identify the metal ions.

A dissolves in excess: Al³⁺. B stays and gives an orange-red flame: Ca²⁺.

4. A solution fizzes with dilute hydrochloric acid. After the fizzing stops, barium chloride gives a white precipitate. Which ions are present?

Fizzing (CO₂) → carbonate. The white precipitate after acid → sulfate. Both carbonate and sulfate ions are present.

5. Why can a flame test not show both sodium and potassium in a mixture, while flame emission spectroscopy can?

Sodium's bright yellow hides the faint lilac of potassium to the eye. A spectroscope splits the light, so the separate lines of each metal are all seen.

Common mistakes

Practice quiz

1. Which metal ion gives a yellow flame?
2. Sodium hydroxide with Cu²⁺ ions gives a precipitate that is:
3. Which reagent is used to test for sulfate ions?
4. An iodide ion with acidified silver nitrate gives a precipitate that is:
5. One advantage of instrumental methods is that they are:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the flame test colours?

Lithium crimson, sodium yellow, potassium lilac, calcium orange-red and copper green.

How do you test for halide ions?

Add dilute nitric acid, then silver nitrate. Chloride gives white, bromide cream and iodide yellow precipitates.

How do you test for sulfate ions?

Add dilute hydrochloric acid, then barium chloride solution. A white precipitate of barium sulfate shows sulfate.

Where this is taught

Canada (Ontario)Grade 12B. Matter and Qualitative Analysis
England (GCSE, A level)Year 114.8 Chemical analysis
Germany (Bavaria)Jahrgangsstufe 12Chemical analysis
FranceTroisièmeMatter and its changes

Learn first

Learn next

Related lessons

All Chemistry lessons