Detection of Elements and Functional Groups: JEE Main
Reviewed Last updated 2026-11-21. Syllabus topic: Detection of elements and functional groups.
In short. Sodium fusion converts N, S and halogens into ions: NaCN, Na2S, NaSCN and NaX. Prussian blue shows N, violet with nitroprusside shows S, blood red with Fe3+ shows N and S together, and AgNO3 after boiling with HNO3 shows the halogen. Functional groups have one reagent each.
- Lassaigne extract: N gives NaCN (Prussian blue), S gives Na2S (violet with nitroprusside, black with lead acetate), N with S gives NaSCN (blood red with Fe3+).
- Boil with HNO3 before AgNO3, to destroy CN- and S2- that would otherwise precipitate AgCN and Ag2S.
- AgNO3 gives white AgCl (soluble in dilute NH3), pale yellow AgBr (sparingly soluble in conc NH3) and yellow AgI (insoluble in NH3).
- Phenol gives violet with neutral FeCl3; carbonyl compounds give an orange-yellow 2,4-DNP precipitate; aldehydes also reduce Tollens reagent; carboxylic acids give CO2 with NaHCO3.
- Primary amines give the carbylamine smell; only primary aromatic amines give the orange-red azo dye after diazotisation and coupling.
Syllabus line: PRINCIPLES RELATED TO PRACTICAL CHEMISTRY Detection of extra elements (Nitrogen, sulphur, halogens) in organic compounds, detection of the following functional groups, hydroxyl (alcoholic and phenolic), carbonyl (aldehyde and ketones) carboxyl and amino groups in organic compounds. (NTA JEE (Main) 2026 syllabus, Chemistry, Unit 20 (https://jeemain.nta.nic.in/document/syllabus-2026/))
Before you start
Prerequisites
- Qualitative and quantitative analysis, empirical and molecular formulae: Read this first if the idea of converting covalent N, S and X into ions is unclear.
- Aldehydes and ketones: nucleophilic addition and named reactions: Read this first for Tollens, Fehling and the 2,4-DNP reaction.
- Amines: nomenclature, structure, basic character and identification: Read this first for the carbylamine reaction and the azo-dye test.
Related topics
- Qualitative and quantitative analysis, empirical and molecular formulae
- Aldehydes and ketones: nucleophilic addition and named reactions
- Alcohols and ethers: identification and dehydration
- Phenols and carboxylic acids: acidity and reactions
- Amines: nomenclature, structure, basic character and identification
- Preparations and titrimetric exercises
The concept step by step
Step 1: Why the compound is fused with sodium
Nitrogen, sulphur and halogens in an organic compound are covalently bonded and do not respond to ionic reagents such as Ag+ or Fe3+. Heating the compound with sodium metal converts them into sodium salts, which dissolve in water: NaCN, Na2S, NaX and, when N and S are both present, NaSCN. This water extract is the Lassaigne extract, and every test in this topic is carried out on it.
Step 2: Testing for nitrogen and sulphur
For nitrogen, boil the extract with iron(II) sulphate, then add iron(III) chloride and a little acid: Fe2+ with CN- gives [Fe(CN)6]4-, which with Fe3+ gives Prussian blue, Fe4[Fe(CN)6]3. For sulphur, add sodium nitroprusside to get a violet colour, or acidify with acetic acid and add lead acetate to get black PbS. If N and S are both present the extract contains SCN-, and Fe3+ alone gives a blood-red colour.
Step 3: Testing for halogens
Boil a fresh portion with dilute HNO3 so that CN- and S2- escape as HCN and H2S; otherwise they would give AgCN and Ag2S with silver nitrate. Cool, add AgNO3 and read the precipitate: white curdy AgCl dissolves in dilute NH3; pale yellow AgBr is only sparingly soluble in concentrated NH3; yellow AgI does not dissolve in NH3.
Step 4: One reagent for each oxygen group
Phenolic OH gives a violet colour with neutral FeCl3. Alcohols are separated by the Lucas test: tertiary turns turbid at once, secondary in about five minutes, primary stays clear. Carbonyl compounds give an orange-yellow precipitate with 2,4-dinitrophenylhydrazine; aldehydes then reduce Tollens reagent to a silver mirror, and aliphatic aldehydes reduce Fehling solution. Carboxylic acids give CO2 with NaHCO3, which phenols do not.
Step 5: The amino group
Primary amines, aliphatic or aromatic, heated with chloroform and alcoholic KOH give a foul-smelling isocyanide (carbylamine reaction); secondary and tertiary amines do not. A primary aromatic amine is diazotised with NaNO2 and HCl at 273 to 278 K and coupled with alkaline 2-naphthol to give an orange-red azo dye; aliphatic primary amines lose nitrogen gas with nitrous acid instead.
Step 6: Reading a table of observations
Exam questions give three or four observations and ask for the compound. Treat each observation as one yes or no on a group, strike off every option that disagrees, and check the survivor against all the observations. Watch the traps: acids and esters contain CH3CO but give no iodoform, and N with S gives blood red, not Prussian blue.
Worked examples
Each solution shows the marks every step would earn. The sanity check tests units and size of the answer.
Example 1 (easy)
A compound containing only C, H and N is fused with sodium. The extract is boiled with iron(II) sulphate, and iron(III) chloride and a little acid are added. State the observation. (Options: 1 Prussian blue, 2 blood red, 3 violet, 4 no change.)
| Step | Marks |
|---|---|
| N with sodium gives NaCN; there is no sulphur, so no thiocyanate forms. | 1 |
| CN- with Fe2+ gives [Fe(CN)6]4-, which with Fe3+ gives Fe4[Fe(CN)6]3. | 2 |
| Observation: Prussian blue, option 1. | 1 |
| Total: 4 marks | 4 |
Answer: Prussian blue (option 1)
Fast method: N alone means Prussian blue; N with S means blood red.
Sanity check: Only two outcomes involve N: with S absent the cyanide route (Prussian blue) is the only one possible, so a unique answer is consistent.
Example 2 (easy)
The acidified (HNO3) extract of an organic compound gives a pale yellow precipitate with silver nitrate, sparingly soluble in concentrated ammonia and insoluble in dilute ammonia. Which halogen is present? (1 Cl, 2 Br, 3 I)
| Step | Marks |
|---|---|
| White AgCl is soluble in dilute NH3 and yellow AgI is insoluble even in concentrated NH3. | 1 |
| Pale yellow AgBr is sparingly soluble in concentrated NH3 only. | 1 |
| The halogen is bromine, option 2. | 1 |
| Total: 3 marks | 3 |
Answer: Bromine (option 2)
Fast method: Colour deepens with atomic size: white, pale yellow, yellow; solubility in NH3 falls in the same order.
Sanity check: The ammonia solubility order AgCl > AgBr > AgI matches the trend of falling solubility in the colour order.
Example 3 (medium)
A compound contains C, H, N, S and Br and is fused with a limited amount of sodium. How many distinct sodium salts of the extra elements are present in the extract?
| Step | Marks |
|---|---|
| N and S together form NaSCN when sodium is limited. | 2 |
| Bromine forms NaBr. | 1 |
| Distinct salts: NaSCN and NaBr, a total of 2 (with a large excess of sodium it would be 3: NaCN, Na2S, NaBr). | 2 |
| Total: 5 marks | 5 |
Answer: 2
Fast method: Pair N with S into one thiocyanate, then count the rest.
Sanity check: Element count: extra elements N, S, Br are three, but N and S merge into one ion, so the salt count (2) is one less than the element count (3).
Example 4 (medium)
How many of these compounds give a violet colour with neutral iron(III) chloride: phenol, ethanol, salicylic acid, benzoic acid, resorcinol, cyclohexanol, toluene, anisole?
| Step | Marks |
|---|---|
| A violet colour needs a phenolic OH group on the ring, though not every phenol gives violet (catechol, for example, gives green). | 1 |
| Phenol, salicylic acid and resorcinol have it and give violet. | 2 |
| Ethanol and cyclohexanol are alcohols, benzoic acid is an acid with no phenolic OH, toluene is a hydrocarbon and anisole is an ether: none gives violet. | 1 |
| Count = 3. | 1 |
| Total: 5 marks | 5 |
Answer: 3
Fast method: Look for OH directly on a benzene ring, then keep the ones with the standard violet colour.
Sanity check: Three of eight is plausible when only three entries are deliberately phenolic with a violet response.
Example 5 (hard, multi-step)
An organic compound C3H6O gives an orange-yellow precipitate with 2,4-DNP, no silver mirror with Tollens reagent and a yellow precipitate with iodine and NaOH. Choose from 1 propanal, 2 propanone, 3 prop-2-en-1-ol, 4 methoxyethene.
| Step | Marks |
|---|---|
| A positive 2,4-DNP test needs a carbonyl group: this keeps propanal and propanone and removes prop-2-en-1-ol and methoxyethene. | 2 |
| No Tollens silver mirror removes the aldehyde, propanal. | 2 |
| Propanone, CH3COCH3, has the CH3CO- unit, so iodoform is positive: consistent. | 2 |
| The compound is propanone, option 2. | 1 |
| Total: 7 marks | 7 |
Answer: Propanone (option 2)
Fast method: 2,4-DNP positive means C=O; Tollens negative makes it a ketone; the CH3CO- unit gives iodoform.
Sanity check: Each test removes options: four, then two, then one. Propanone has formula C3H6O (3 C, 6 H, 1 O), matching the stem.
Example 6 (hard)
Of aniline, benzylamine, N-methylaniline, triethylamine, N,N-dimethylaniline and ethylamine, how many give the carbylamine test, and how many give the orange-red azo dye (counted together as carbylamine count x 10 + azo count)?
| Step | Marks |
|---|---|
| Carbylamine needs a primary amine group, -NH2: aniline, benzylamine and ethylamine, 3 compounds. | 2 |
| The azo-dye test needs a primary aromatic amine, where NH2 is on the ring: only aniline, 1 compound (benzylamine's NH2 is on a side-chain carbon). | 3 |
| Combined value = 3 x 10 + 1 = 31. | 1 |
| Total: 6 marks | 6 |
Answer: 31 (3 carbylamine, 1 azo dye)
Fast method: Carbylamine: count NH2 groups. Azo dye: NH2 on the ring only.
Sanity check: The azo-dye set (1) must be a subset of the carbylamine set (3), since every primary aromatic amine is a primary amine.
Example 7 (medium)
How many of these effervesce with sodium hydrogencarbonate solution: ethanoic acid, phenol, benzoic acid, ethanol, salicylic acid, ethyl ethanoate?
| Step | Marks |
|---|---|
| Carboxylic acids are strong enough to release CO2 from NaHCO3. | 1 |
| Ethanoic acid, benzoic acid and salicylic acid qualify: 3. | 2 |
| Phenol is a weaker acid than carbonic acid, ethanol is neutral, and the ester has no acidic H: none gives CO2. Count = 3. | 1 |
| Total: 4 marks | 4 |
Answer: 3
Fast method: Only -COOH counts; phenolic OH does not.
Sanity check: Salicylic acid carries both -COOH and phenolic OH and still counts once, so the count of compounds (3) does not exceed the number of -COOH groups present (3).
Formulas and units
| Result | Formula | Valid when | Units or note | Worked example |
|---|---|---|---|---|
| Sodium fusion (N) | Na + C + N gives NaCN | Lassaigne extract; nitrogen present, no sulphur, sodium in excess | sodium cyanide in extract | Example 1 |
| Sodium fusion (S) | 2Na + S gives Na2S | Lassaigne extract; sulphur present | sodium sulphide in extract | Example 3 |
| Sodium fusion (N and S) | Na + C + N + S gives NaSCN | N and S both present with limited sodium | thiocyanate, blood red with Fe3+ | Example 3 |
| Nitrogen test | 3[Fe(CN)6]4- + 4Fe3+ gives Fe4[Fe(CN)6]3 | extract boiled with FeSO4, then Fe3+ added and acidified; cyanide present | Prussian blue | Example 1 |
| Sulphur tests | S2- + nitroprusside: violet; S2- + Pb2+: black PbS | not applicable | n/a (colour) | none |
| Halogen tests (after HNO3) | AgCl white, soluble dil NH3; AgBr pale yellow, conc NH3; AgI yellow, insoluble | extract boiled with HNO3 first to remove CN- and S2- | precipitate colour | Example 2 |
| Alcohol classes (Lucas) | tertiary: at once; secondary: about 5 min; primary: none | not applicable | n/a (time to turbidity) | none |
| Carbonyl tests | 2,4-DNP: all C=O; Tollens: CHO; Fehling: aliphatic CHO; iodoform: CH3CO-R, CH3CH(OH)-R | not applicable | precipitate or mirror | Example 5 |
| Acid and phenol tests | COOH + NaHCO3 gives CO2; phenol + neutral FeCl3 gives violet | not applicable | gas, colour | Example 7 |
| Amine tests | RNH2 + CHCl3 + KOH: carbylamine; ArNH2 + HNO2, then 2-naphthol: orange-red dye | RNH2 aliphatic or aromatic for carbylamine; azo dye needs primary aromatic amine, cold | smell, dye colour | Example 6 |
Common mistakes and speed
- Expecting Prussian blue whenever nitrogen is present. Why it tempts: The N test is taught with Prussian blue, so a compound with N and S looks like it should still give it; but SCN- forms and the blood-red colour appears instead.
- Adding AgNO3 to the extract without boiling it with nitric acid. Why it tempts: The halogen test seems to need only silver nitrate, but CN- and S2- give AgCN and Ag2S, which mask the halide.
- Calling any compound with a CH3CO group an iodoform-positive compound. Why it tempts: Ethanoic acid and its esters contain CH3CO, but the CH3CO is attached to oxygen, so the test fails.
- Saying phenols give effervescence with sodium hydrogencarbonate. Why it tempts: Phenols are called acidic and salicylic acid, a phenol, does react, but because of its COOH group.
- Giving the azo dye test for benzylamine. Why it tempts: Benzylamine contains a benzene ring and an NH2 group, but the NH2 is not attached to the ring, so it behaves as an aliphatic amine.
Time per question and fast method
Target: about 80 seconds per question.
Convert every observation to a yes or no on one group (N, S, X, phenol, C=O, CHO, COOH, NH2) and strike options off; do not recall reactions unless two options survive. Count questions: tick each item once against a single rule.
Recall quiz
Pick an option for each question. Your answers stay on this page and are not sent anywhere.
Score: 0 of 6 correct. Pick an option for each question.
Practice
- An organic compound is fused with a small piece of sodium and the extract is made up in water. The extract… Verified (T1)
- The sodium fusion extract of a compound gives a violet colour with sodium nitroprusside and no blood-red… Verified (T1)
- A neutral organic compound gives a violet colour with neutral iron(III) chloride, no effervescence with… Verified (T1)
- An alcohol of molecular formula C4H10O becomes turbid with Lucas reagent (anhydrous zinc chloride in… Verified (T1)
Previous-year questions
Previous-year questions are not imported yet. Previous-year questions are not imported yet; see the official papers on the NTA site. Official NTA papers page.
Going deeper and revision
Lassaigne sodium fusion and the extract
The dry compound is heated with a piece of sodium metal until red hot and plunged into distilled water; the fused mass is boiled and filtered. Reactions: Na + C + N gives NaCN; 2Na + S gives Na2S; Na + X gives NaX (X = Cl, Br, I); Na + C + N + S gives NaSCN. If the sodium is used sparingly, N and S together form NaSCN; with a generous excess of sodium the thiocyanate breaks down into NaCN and Na2S, so the blood-red colour may then be replaced by Prussian blue and the violet nitroprusside colour. Fusion is done in a dry ignition tube and sodium is handled with forceps under an inert liquid because it reacts with water.
Nitrogen and sulphur: reactions and colours
Nitrogen: 6CN- + Fe2+ gives [Fe(CN)6]4-; 3[Fe(CN)6]4- + 4Fe3+ gives Fe4[Fe(CN)6]3, Prussian blue (ferric ferrocyanide). Sulphur: S2- + [Fe(CN)5NO]2- gives [Fe(CN)5NOS]4-, violet. A second test is acidification with acetic acid and lead acetate, giving black PbS. Both N and S: SCN- + Fe3+ gives the blood-red [Fe(SCN)]2+; with limited sodium there is no Prussian blue in the same sample. Fluorine is not detected by silver nitrate because silver fluoride is soluble; the syllabus asks for chlorine, bromine and iodine through silver halides.
Halogens: silver nitrate test and layer test
The extract is boiled with dilute HNO3 to expel HCN and H2S. AgNO3 then gives AgCl (white, curdy, soluble in dilute NH3), AgBr (pale yellow, sparingly soluble in concentrated NH3) or AgI (yellow, insoluble in NH3). A second confirmation, the layer test, adds chlorine water and CS2 or CCl4: bromide gives an orange-brown organic layer and iodide a violet layer. Skipping the boil with HNO3 in a compound that contains S gives a black Ag2S precipitate that hides the halide result.
Hydroxyl, carbonyl and carboxyl groups
Alcohols: sodium metal gives hydrogen; ceric ammonium nitrate gives a red colour; Lucas reagent separates the classes by the rate of turbidity (tertiary immediately, secondary about five minutes, primary no turbidity at room temperature). Phenols: violet with neutral FeCl3 and a white precipitate of 2,4,6-tribromophenol with bromine water. Carbonyls: 2,4-DNP orange-yellow; Tollens silver mirror and Schiff reagent for aldehydes; Fehling red Cu2O for aliphatic aldehydes only; iodoform yellow precipitate for CH3CO-R and CH3CH(OH)-R. Carboxylic acid: effervescence of CO2 with sodium hydrogencarbonate, which phenols are too weakly acidic to give.
Amino group and what examiners test
Carbylamine: RNH2 + CHCl3 + 3KOH gives RNC + 3KCl + 3H2O, a foul smell, positive for primary amines only. Azo-dye test: ArNH2 + NaNO2 + HCl (273 to 278 K) gives ArN2+Cl-, which couples with alkaline 2-naphthol to give an orange-red dye; secondary and tertiary aromatic amines do not give it. Examiners test the extract colour from a given element set, the element set from given colours, the reason for each reagent (why HNO3, why FeSO4, why cold), which member of a list of isomers fits a set of tests, and the count of compounds in a list that give a stated test. The sodium-fusion extract is never used to detect oxygen or phosphorus within this syllabus line.
Memory hook
Suppose four steel jars in your kitchen are unlabelled and hold salt, sugar, turmeric and chilli powder, and you may not read anything or open the lid wide.
- You cannot see through a steel jar, so you add one drop of water to a pinch from each and watch what happens: one dissolves clear, one dissolves and stays colourless, one stains yellow, one stains red.
- No single check names every jar, but each check removes some jars. After two checks only one jar is left.
- Identifying an unknown organic compound works the same way: the sodium fusion makes the hidden elements visible, and each reagent removes some possibilities until one compound or one element set remains.
Each test answers one yes-or-no question about one group; the compound is whatever is left after all the answers are applied.
One reagent, one question: strike off every option that disagrees.
Revision card
Try to answer each without looking above.
- Write the sodium salts formed from N, S, N with S, and a halogen during sodium fusion.
- State the confirmatory test and colour for N, for S, and for N with S together.
- Why is the extract boiled with dilute HNO3 before silver nitrate is added?
- Give the colour and ammonia solubility of AgCl, AgBr and AgI.
- Name one test each for phenol, aldehyde (not ketone), methyl ketone, carboxylic acid and primary amine.
- What does the Lucas reagent distinguish, and what is observed for each class?
Sources and review
Reviewed Reviewed on 2026-11-20: every number recomputed by code and independently reviewed; textbook section references pending.
- Method: Every number in worked examples, recall checks and notes recomputed by code; claims recomputed independently by a separate verifier run using other numerical methods; textbook section references not yet attached; wording defects found were fixed afterwards and re-linted (code checks re-run) but not re-reviewed by a second run; syllabus scope compared with the NTA JEE Main 2026 syllabus text (by the verifier; see the report)
- Reviewer: independent verifier agent run (not the author)
- Date: 2026-11-20
- Defects found: 2; fixed: 2
- Report: content/reviews/learn8-prc-2026-11-21.md
Textbook references
- NCERT Chemistry Laboratory Manual (Class XI 2025-26 and Class XII), Class XI manual, Unit 7: Systematic Qualitative Analysis, Experiment 7.2 Detection of nitrogen, sulphur and halogens in an organic compound (read 2026-11-22)
- NCERT Chemistry Laboratory Manual (Class XI 2025-26 and Class XII), Class XII manual, Unit 8: Tests for Functional Groups in Organic Compounds, VI Amino group (-NH2) (read 2026-11-22)
- NCERT Chemistry Laboratory Manual (Class XI 2025-26 and Class XII), Class XII manual, Unit 8: Tests for Functional Groups in Organic Compounds, V Carboxyl group (-COOH) (read 2026-11-22)
Sources used
- Syllabus: NTA JEE (Main) 2026 syllabus, Chemistry, Unit 20, text as stored in syllabus/lines/jee-main/2026.json (line jee-main-2026-U54).
- NCERT Class 11 Chemistry (organic analysis) and the Class 11 and 12 chemistry laboratory manuals: named as scope reference only; not opened for this draft, so textbook section references are pending. Content written fresh from the syllabus and standard laboratory practice.
How labels work: see how answers and lessons are verified. Found a mistake? Use Report an error on any question page.