Carbylamine Reaction (Isocyanide Test): Mechanism, Which Amines Pass and Exam Traps
The carbylamine reaction turns a primary amine into an isocyanide (also called a carbylamine), R–NC. The amine is warmed with chloroform and ethanolic potassium hydroxide, and the isocyanide is recognised by its very unpleasant smell. Secondary and tertiary amines do not show this reaction, so it is the isocyanide test for primary amines, aliphatic or aromatic. It is in the Class 12 NCERT chapter on amines, and JEE Main and NEET ask which amines give the test and what the product is.
- General:
- Aniline:
- Positive: primary amines, both aliphatic () and aromatic ().
- Negative: secondary and tertiary amines.
- Electrophile: dichlorocarbene, , made from chloroform by the base.
- Product: the isocyanide R–N≡C (better written ), an isomer of the nitrile R–C≡N.
1. Mechanism
The base first turns chloroform into dichlorocarbene, the same electrophile as in the Reimer-Tiemann reaction: removes the H of , and loses . The lone pair of the amine nitrogen then attacks the carbene carbon, which has only six electrons.
- Carbene. + gives , and water.
- Addition. The amine N bonds to the carbene C; a proton shift gives .
- First elimination. The base removes the proton from N and chloride leaves from C: .
- Second elimination. The base removes the proton from C and the last chloride leaves, giving the isocyanide .
"Two H on N, two HCl, one smell." The reaction needs two N–H bonds to lose two molecules of HCl, and only a primary amine has two. A secondary amine has one N–H, a tertiary amine none.
2. The isocyanide test
| Amine | Class | Carbylamine test |
|---|---|---|
| Ethanamine, | 1°, aliphatic | Positive: ethyl isocyanide |
| Aniline, | 1°, aromatic | Positive: phenyl isocyanide |
| Benzylamine, | 1°, aliphatic ( on , not on the ring) | Positive: benzyl isocyanide |
| Hexane-1,6-diamine | 1° (two ) | Positive at both ends |
| Diethylamine, | 2° | Negative |
| N-Methylaniline, | 2° | Negative |
| Triethylamine, | 3° | Negative |
The test separates primary amines from the other two classes, but it cannot tell a secondary amine from a tertiary one; Hinsberg's reagent (benzenesulphonyl chloride) does that.
Isocyanides and nitriles. An isocyanide, R–N≡C, is joined to R through nitrogen; a nitrile, R–C≡N, through carbon. Alkyl halides give mainly isocyanides with AgCN and nitriles with KCN. Their reactions differ too:
Acid hydrolysis of an isocyanide gives a primary amine and methanoic acid (a nitrile, R–C≡N, gives the acid RCOOH instead); reduction gives a secondary amine with an N-methyl group.
The isocyanide carbon. In the terminal carbon has a lone pair and a formal negative charge, like the carbon of carbon monoxide. That is the carbon the carbene brought in (the chloroform carbon), and it ends with a lone pair, just as the carbene had.
One carbene, two named reactions. Dichlorocarbene from chloroform and base reacts with a phenoxide ion at the ring (Reimer-Tiemann, aqueous NaOH) and with a primary amine at the nitrogen (carbylamine, alcoholic KOH).
Reading a sequence backwards. A foul-smelling product made with and KOH means the step before it gave a primary amine, for example from a Hoffmann bromamide degradation or from reducing a nitrile.
3. Worked examples
Aniline and methylamine, the two primary amines. Dimethylamine and N-methylaniline are secondary, and trimethylamine is tertiary.
Y is ethylamine (the Hoffmann bromamide degradation removes one carbon), and the carbylamine reaction turns it into Z, ethyl isocyanide, . X is AgCN, which gives the isocyanide from ; KCN would give the nitrile instead.
Warm each with and alcoholic KOH. Ethylamine, a primary amine, gives the foul smell of ethyl isocyanide; diethylamine, a secondary amine, gives none.
4. Exam traps
- Only primary amines respond, aromatic ones included; secondary and tertiary amines do not.
- The product is an isocyanide, R–NC, not a nitrile, R–CN.
- The reagent is chloroform with alcoholic KOH; the reactive species is dichlorocarbene.
- AgCN with an alkyl halide also gives an isocyanide, but that is not the carbylamine reaction.
- Acid hydrolysis of an isocyanide gives a primary amine and HCOOH; reduction gives a secondary amine.
- A compound with no group, such as an N-alkylphthalimide, gives no isocyanide.
- The test cannot separate secondary from tertiary amines; use Hinsberg's reagent for that.
Past-paper questions on Carbylamine reaction
Our past papers: JEE Main 2025-2026, JEE Advanced 2022-2026, NEET 2018-2019, 2022-2026. We found 11 questions in them that test this:
- JEE Main 7 (2025-2026)
- JEE Advanced 3 (2023, 2025)
- NEET 1 (2026)
- JEE Main 2026 Apr 5 Shift 1, Chemistry Q16Benzylamine gives benzyl isocyanide by the carbylamine reaction (so does benzyl bromide with AgCN); aniline would give phenyl isocyanide.
- JEE Main 2026 Apr 2 Shift 1, Chemistry Q17Ethylamine (1°) gives the carbylamine test and diethylamine (2°) does not, so + KOH tells them apart.
- JEE Main 2026 Jan 24 Shift 2, Chemistry Q15Statement II ends with the carbylamine reaction: the primary amine and /KOH give .
- JEE Main 2026 Jan 23 Shift 2, Chemistry Q20x (aniline) gives an unpleasant-smelling isocyanide with and alcoholic KOH, which marks it as a primary amine.
- JEE Main 2026 Jan 23 Shift 1, Chemistry Q18Cyclohexyl isocyanide comes from cyclohexylamine with /alcoholic KOH, which fixes the amine and so P.
- NEET 2026, Chemistry Q42Ethylamine with and ethanolic KOH gives the foul-smelling , the same Z as from and AgCN.
- JEE Main 2025 Apr 7 Shift 1, Chemistry Q2Which amines give the carbylamine test: only the primary ones, aniline and methylamine.
- JEE Main 2025 Jan 28 Shift 2, Chemistry Q18Statements: both aliphatic and aromatic primary amines give the carbylamine test; secondary and tertiary amines do not.
- JEE Advanced 2025 Paper 2, Chemistry Section 2 Q3Statement B is false: the N-alkylphthalimide Y has no group, so it gives no isocyanide.
- JEE Advanced 2025 Paper 1, Chemistry Section 3 Q5The Nylon 6,6 monomer that gives the carbylamine test is hexamethylenediamine, a primary amine.
- JEE Advanced 2023 Paper 2, Chemistry Section 1 Q3Statement D: the primary amine from the nitrile gives an isocyanide, which reduces to a secondary amine, so S is not primary.
Each question was read and checked by hand (list checked 2026-10-15). A question that shows its structures only as pictures can be missed by our search. Each opens in a new tab, with the question to try and our step-by-step solution.
Learn it with the chapter
Related named reactions
Practise questions like these
Concept-wise questions with instant solutions, and full mock tests, on Fundamenthol.