Virtual lab

Qualitative Analysis of Organic Compounds: Lassaigne's Test

Detect carbon, hydrogen, nitrogen, sulphur, the halogens and phosphorus in an organic compound. Choose a compound, fuse it with sodium, make the extract and run the tests: the film shows the colour or the precipitate for that compound and explains it.

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. In Lassaigne's test, change the compound: the tests answer for the elements that compound contains.
  5. For a compound with nitrogen and sulphur together, untick Sodium in excess to see the blood red colour of thiocyanate.

Lassaigne's test at a glance

ElementIon in the extractReagentWhat is seen
Nitrogen, boil, then concentrated Prussian blue
Sulphuracetic acid and lead acetateblack precipitate
Sulphursodium nitroprussideviolet colour
Nitrogen and sulphur togetherblood red, no Prussian blue
Chlorine and white precipitate, soluble in
Bromine and yellowish precipitate, sparingly soluble in
Iodine and yellow precipitate, insoluble in
Phosphorusphosphate and ammonium molybdateyellow colour or precipitate

Lassaigne's test: N, S and halogens

The compound is fused with sodium. The elements are turned into ions and tested in the sodium fusion extract.

Fuse the compound with sodium

A small piece of sodium is heated with the compound in a fusion tube until the tube is red hot. In an organic compound the elements are held by covalent bonds and give no ions in water. Sodium turns them into ionic sodium salts.



(X = Cl, Br or I)

Make the sodium fusion extract

The red-hot tube is plunged into distilled water in a china dish. It breaks, and the sodium salts dissolve. The mixture is boiled and filtered. The filtrate is the sodium fusion extract. All the tests are done on it.

Test for nitrogen

The extract is boiled with iron(II) sulphate and then acidified with concentrated sulphuric acid. Prussian blue colour: nitrogen is present. Cyanide ions and iron(II) give hexacyanidoferrate(II). The acid oxidises some iron(II) to iron(III), and the two together give Prussian blue.


(Prussian blue)

Test for sulphur

Two portions of the extract are tested. The first is acidified with acetic acid and lead acetate is added. To the second, sodium nitroprusside is added. A black precipitate of lead sulphide in the first tube and a violet colour in the second: sulphur is present.

(black)
(violet)

Nitrogen and sulphur together

Blood red colour, and no Prussian blue. With nitrogen and sulphur together and too little sodium, sodium thiocyanate forms and there are no free cyanide ions. Thiocyanate gives a blood red colour with iron(III).


(blood red)

If the fusion is done with excess sodium, the thiocyanate is broken down to cyanide and sulphide, and both elements give their usual tests.

Test for halogens

The extract is acidified with nitric acid and silver nitrate is added. Ammonium hydroxide is then added to any precipitate.

  • A white precipitate that dissolves in ammonium hydroxide: chlorine is present.
  • A yellowish precipitate that dissolves only sparingly in ammonium hydroxide: bromine is present.
  • A yellow precipitate that does not dissolve in ammonium hydroxide: iodine is present.

Nitrogen or sulphur is present, so the extract is first boiled with concentrated nitric acid. This destroys cyanide and sulphide, which would also give precipitates with silver nitrate.


Detection of carbon and hydrogen

The compound is heated with copper(II) oxide.

  1. Set up. The compound is mixed with dry copper(II) oxide in a hard glass tube. The gases pass first over white anhydrous copper sulphate and then into lime water.
  2. Heat strongly. Copper(II) oxide gives its oxygen to the compound. Carbon is oxidised to carbon dioxide and hydrogen to water. The black oxide is left as reddish copper.

  3. Water shows hydrogen. The water vapour turns white anhydrous copper sulphate blue. So the compound contains hydrogen.
  4. Carbon dioxide shows carbon. The carbon dioxide turns lime water milky with calcium carbonate. So the compound contains carbon.

Detection of phosphorus

The compound is heated with an oxidising agent and tested with ammonium molybdate.

  1. Oxidise to phosphate. The compound is heated with an oxidising agent, sodium peroxide. The phosphorus of the compound is oxidised to phosphate.
  2. Boil with nitric acid. The solution is boiled with nitric acid. This gives phosphoric acid.
  3. Add ammonium molybdate. Ammonium molybdate is added. A yellow colour or a yellow precipitate of ammonium phosphomolybdate shows phosphorus.

Frequently asked questions

Why is an organic compound fused with sodium in Lassaigne's test?

The elements in an organic compound are held by covalent bonds and give no ions in solution. Fusion with sodium turns nitrogen, sulphur and the halogens into ionic sodium cyanide, sodium sulphide and sodium halide, which dissolve in water and can be tested.

Why is the extract boiled with nitric acid before the test for halogens?

If nitrogen or sulphur is present the extract contains cyanide or sulphide. Both give precipitates with silver nitrate. Boiling with concentrated nitric acid decomposes them first.

What happens when nitrogen and sulphur are both present?

Sodium thiocyanate forms. It gives a blood red colour with iron(III) and no Prussian blue, because there are no free cyanide ions. With excess sodium the thiocyanate is decomposed to cyanide and sulphide, which give their usual tests.

Which compound gives Prussian blue in Lassaigne's test?

Ferric ferrocyanide, iron(III) hexacyanidoferrate(II). It forms when the cyanide of the extract reacts with iron(II) and then with the iron(III) made by oxidation.

More of the virtual lab