Ambident Nucleophiles: KCN vs AgCN (Nitrile vs Isonitrile) and Nitro vs Nitrite

Chemistry · Haloalkanes And Haloarenes · NEET

An ambident nucleophile has two atoms that can attack, so it can join through either atom and give two different products. With cyanide: KCN (ionic) attacks through carbon and gives an alkyl cyanide (nitrile, R-CN), but AgCN (covalent) attacks through nitrogen and gives an isonitrile (isocyanide, R-NC). Memory hook: "Silver is Shy, so it uses Nitrogen" — AgCN gives R-NC (iso), KCN gives R-CN (normal).
Cyanide: an ambident nucleophile (attacks through C or N)R-X + CN groupionic KCN / NaCNcovalent AgCNCarbon attacksR-C≡N (nitrile / cyanide)Nitrogen attacksR-N≡C (isonitrile)Nitrite works the same way: NaNO2 → R-NO2 (nitro) · AgNO2 → R-O-N=O (nitrite)
Ionic KCN gives carbon attack (nitrile R-CN); covalent AgCN gives nitrogen attack (isonitrile R-NC). Nitrite behaves the same way: NaNO2 gives the nitro compound, AgNO2 gives the alkyl nitrite.

Your doubts, answered

What exactly is an ambident nucleophile? (in simple words)

'Ambi' means both, 'dent' means tooth. So an ambident nucleophile is a nucleophile that has TWO different atoms that both carry a lone pair and can attack the carbon. Only one atom attacks at a time, but which atom attacks decides the product. NCERT lists two main ambident nucleophiles for this chapter: the cyanide ion (C≡N, can attack through C or N) and the nitrite ion (O-N=O, can attack through N or O). This matters for NEET because the same alkyl halide can give two totally different products depending on the reagent.

Why does KCN give a nitrile (R-CN) but AgCN gives an isonitrile (R-NC)?

It is about ionic vs covalent bonding. KCN is mostly ionic, so it gives a FREE cyanide ion (CN⁻) in solution. This free ion attacks through carbon because the C-C bond formed is stronger and more stable than a C-N bond. So you get R-C≡N (alkyl cyanide / nitrile). AgCN is mostly covalent, so the cyanide is NOT free — the carbon is already tied up with silver. Only the nitrogen lone pair is free to attack. So nitrogen bonds to the carbon and you get R-N≡C (isonitrile / isocyanide). This is the exact NCERT reason and a favourite NEET question.

How do I tell R-CN and R-NC apart? Which one is 'iso'?

Look at which atom of the cyanide group is joined to the alkyl carbon. In R-C≡N (nitrile / alkyl cyanide) the CARBON is attached to R. In R-N≡C (isonitrile / isocyanide / carbylamine) the NITROGEN is attached to R. The 'iso' one is the nitrogen-attached one from AgCN, and it smells foul. Trick: iso-NitrileNitrogen attached; both start with N.

What is the nitrite ambident nucleophile, and how is NaNO2 different from AgNO2?

The nitrite ion, ⁻O-N=O, is also ambident: it can attack through nitrogen or through oxygen. When it attacks through NITROGEN you get a nitroalkane (R-NO2, the nitro group). When it attacks through OXYGEN you get an alkyl nitrite (R-O-N=O, an ester of nitrous acid). In practice, ionic sodium nitrite (NaNO2, also written KNO2) mainly gives the nitroalkane R-NO2 (nitrogen attack), while silver nitrite (AgNO2) mainly gives the alkyl nitrite R-ONO (oxygen attack). This is the same ionic-vs-covalent silver logic as the cyanide case.

Is isocyanide (R-NC) the same as the carbylamine test product?

Yes — chemically they are the same type of compound. Isocyanides (R-NC) are also called isonitrites/isocyanides/carbylamines. You can make R-NC two ways: (1) alkyl halide + AgCN, or (2) a primary amine + CHCl3 + ethanolic KOH (the carbylamine reaction). Both give the same foul-smelling isocyanide. NEET 2026 tested exactly this — two different routes reaching the SAME isocyanide product.

Why does the free cyanide ion attack through carbon and not nitrogen?

Both carbon and nitrogen in CN⁻ have a lone pair, so both CAN attack. But when the free ion is available (from ionic KCN), attack through carbon wins because it forms a C-C bond, which is stronger and more stable than a C-N bond. So the product is the nitrile R-C≡N. Nitrogen only wins when carbon is blocked (as in covalent AgCN).

⚠️ The NEET trap
KCN and AgCN both give the alkyl cyanide R-CN, since both contain the cyanide group.
KCN (ionic, free CN⁻) attacks through carbon → alkyl cyanide R-C≡N. AgCN (covalent) attacks through nitrogen → isocyanide R-N≡C. The silver salt flips the product.
🧠 See 'Ag' → think COVALENT → nitrogen attacks → ISO product (R-NC). See K/Na → think IONIC → carbon attacks → normal nitrile (R-CN).

Real NEET questions

NEET 2023 (Phase 2)

Which of the following reactions of alkyl halides produces an isocyanide (isonitrile) as the major product? (P) R-X + HCN → (Q) R-X + AgCN → (R) R-X + KCN → (S) R-X + NaCN → (H2O/C2H5OH) Choose the most appropriate answer.

A · (Q) only
B · (P) and (Q) only
C · (S) only
D · (R) and (S) only
Solution: Cyanide is an ambident nucleophile. Ionic KCN (R) and NaCN (S) give a free CN⁻ that attacks through carbon → alkyl cyanide (nitrile, R-CN), not the isonitrile. AgCN (Q) is mainly covalent, so only the nitrogen lone pair is free to attack → isocyanide R-NC as the major product. Hence only (Q). Answer: (A).
NEET 2026 (Phase 1)

The following two reactions give the same foul-smelling product Z. Reaction 1: C2H5Cl + X → Z Reaction 2: C2H5CONH2 →(Br2, NaOH) Y →(CHCl3 / ethanolic KOH, Δ) Z X and Z, respectively, are:

A · X = AgCN; Z = C2H5NC
B · X = KCN; Z = C2H5CN
C · X = AgCN; Z = C2H5CN
D · X = KCN; Z = C2H5NC
Solution: The 'foul-smelling' clue means the product Z is an isocyanide (R-NC). In Reaction 2, propanamide undergoes Hofmann bromamide degradation to ethylamine (Y), which on the carbylamine reaction (CHCl3 + ethanolic KOH) gives ethyl isocyanide C2H5NC (Z). To make the SAME isocyanide from C2H5Cl in Reaction 1, the reagent must be the covalent salt AgCN (nitrogen attacks). KCN would give the nitrile C2H5CN instead. So X = AgCN, Z = C2H5NC. Answer: (A).

Solved Haloalkanes And Haloarenes NEET PYQs

Try the real previous-year questions from this chapter — each with the answer and a full solution.

See all 39 Haloalkanes And Haloarenes NEET PYQs ›
Next concept: Optical Activity, Chirality and Enantiomers ExplainedKeep learning — 2 minFeeling ready? Solve the Haloalkanes And Haloarenes NEET PYQs ›Or practice on your phone — get the free MedicNEET app ›

Frequently asked

Which reagent gives isocyanide: KCN or AgCN?

AgCN gives the isocyanide (R-NC) as the major product because it is covalent and nitrogen attacks. KCN gives the normal alkyl cyanide (R-CN) because it is ionic and carbon attacks.

What are the two ambident nucleophiles in the Haloalkanes chapter?

Cyanide ion (⁻C≡N, can bond through C or N) and nitrite ion (⁻O-N=O, can bond through N or O). NCERT names both.

What product does NaNO2 give with an alkyl halide vs AgNO2?

Ionic NaNO2 (or KNO2) mainly gives the nitroalkane R-NO2 (nitrogen attack). Covalent AgNO2 mainly gives the alkyl nitrite R-O-N=O (oxygen attack).

Why does free cyanide attack through carbon?

Because the C-C bond it forms is more stable than a C-N bond. So the free CN⁻ from ionic KCN/NaCN prefers carbon attack, giving the nitrile R-CN.

Is isonitrile the same as isocyanide and carbylamine?

Yes, all three names mean R-N≡C. It is foul-smelling and can be made from an alkyl halide + AgCN or from a primary amine via the carbylamine reaction.