Chemistry doubt, NEET and JEE

How does Lassaigne's test detect nitrogen, sulphur and halogens?

Answer: The organic compound is fused with sodium, which converts N to NaCN, S to Na2​S and halogens to NaX. These ions are then tested in the water extract: Prussian blue for N, violet with sodium nitroprusside for S, and a silver halide precipitate for halogens.

By Sunil Kumar. Updated 26 November 2026.

Why

Elements in organic compounds are covalently bonded and give no ionic tests. Fusion with sodium turns them into ions.

For nitrogen, the extract is boiled with FeSO4​ and acidified with H2​SO4​; the product Fe4​[Fe(CN)6​]3​ is Prussian blue. If both N and S are present, NaSCN forms and gives a blood red colour with Fe3+.

ElementIon formedTestResult
NCN−FeSO4​, then acidPrussian blue
SS2−Sodium nitroprussideViolet
SS2−Lead acetate + acetic acidBlack PbS
N and SSCN−Fe3+Blood red
ClCl−HNO3​ + AgNO3​White ppt, soluble in ammonia
BrBr−HNO3​ + AgNO3​Pale yellow ppt, partly soluble
II−HNO3​ + AgNO3​Yellow ppt, insoluble

Exam tip

Before the halogen test, boil the extract with HNO3​ to destroy CN− and S2−, which would also precipitate with silver. Compounds with nitrogen but no carbon (hydrazine) or diazonium salts (lose N2​) fail the nitrogen test.

Previous year questions on this

Practise the same idea

More doubts like this

10 questions on this chapter, with solutions