Fundamentholfundamenthol

Carbylamine Reaction (Isocyanide Test): Mechanism, Which Amines Pass and Exam Traps

ChemistryClass 12, AminesFor JEE and NEET aspirants

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.

At a glance
  1. General:
  2. Aniline:
  3. Positive: primary amines, both aliphatic () and aromatic ().
  4. Negative: secondary and tertiary amines.
  5. Electrophile: dichlorocarbene, , made from chloroform by the base.
  6. 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.

Mechanism of the carbylamine reaction Chloroform and hydroxide give dichlorocarbene, a carbon with two chlorines and only six electrons. The lone pair on the nitrogen of a primary amine bonds to the carbene carbon, giving an adduct with a positive nitrogen and a negative carbon. After a proton moves from nitrogen to carbon this is R-NH-CHCl2. The base then removes hydrogen chloride twice, first giving R-N=CHCl and then the isocyanide R-N≡C, with a positive nitrogen and a negative carbon. Isocyanides have a very unpleasant smell. Chloroform and base give the carbene CHCl3 + OH− → :CCl2 + Cl− + H2O dichlorocarbene: 6 electrons on C The amine N attacks the carbene C R N H H C Cl Cl R N H H C Cl Cl A proton shifts, then base removes HCl twice R–NH–CHCl2 −HCl R–N=CHCl −HCl R N C isocyanide (carbylamine), R–NC very unpleasant smell
Figure 1: The amine's N adds to dichlorocarbene; the proton shift and two eliminations of HCl remove both hydrogens that were on N. That is why only a primary amine gives the isocyanide.
  1. Carbene. + gives , and water.
  2. Addition. The amine N bonds to the carbene C; a proton shift gives .
  3. First elimination. The base removes the proton from N and chloride leaves from C: .
  4. Second elimination. The base removes the proton from C and the last chloride leaves, giving the isocyanide .
Exam Trick

"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

AmineClassCarbylamine test
Ethanamine, 1°, aliphaticPositive: ethyl isocyanide
Aniline, 1°, aromaticPositive: phenyl isocyanide
Benzylamine, 1°, aliphatic ( on , not on the ring)Positive: benzyl isocyanide
Hexane-1,6-diamine1° (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.

JEE Advanced

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

Solved Example 1
Which of these give the carbylamine test: aniline, dimethylamine, methylamine, trimethylamine, N-methylaniline?
Solution:

Aniline and methylamine, the two primary amines. Dimethylamine and N-methylaniline are secondary, and trimethylamine is tertiary.

Solved Example 2
with reagent X gives a foul-smelling compound Z. Propanamide with /NaOH gives Y, and Y with and ethanolic KOH gives the same Z. Identify X, Y and Z.
Solution:

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.

Solved Example 3
How can ethylamine be told apart from diethylamine?
Solution:

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

Watch out
  • 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)

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.