On this page
Haloalkane questions in JEE, NEET-UG and board papers often turn on one switch: change the metal in the reagent from potassium to silver and the product changes. KCN and AgCN give different compounds, and so do KNO₂ and AgNO₂. This post explains what an ambident nucleophile is, gives the four results in a form you can recall, and works through product questions, including the isomer pair that catches most students.
Where is this in the syllabus?
The NCERT Class 12 chapter Haloalkanes and Haloarenes (Reprint 2026-27) lists all four reagents in Table 6.4 and explains them in Example 6.5. The JEE (Main) 2026 syllabus and the NEET (UG) 2026 syllabus both include "mechanisms of substitution reactions" in their unit on organic compounds containing halogens. Check the current year's document for your exam.
What makes a nucleophile ambident?
NCERT says groups like cyanides and nitrites "possess two nucleophilic centres and are called ambident nucleophiles". Cyanide is a hybrid of two structures, so it can bond through carbon or through nitrogen. Nitrite can bond through oxygen or through nitrogen. The word itself is old: it appears in the title of a 1955 paper by Nathan Kornblum and co-workers on the alkylation of ambident anions.
The four results from NCERT's Table 6.4:
KCN → R–C≡N, an alkyl cyanide (nitrile). Bond through carbon.
AgCN → R–N≡C, an isocyanide (isonitrile). Bond through nitrogen.
KNO₂ → R–O–N=O, an alkyl nitrite. Bond through oxygen.
AgNO₂ → R–NO₂, a nitroalkane. Bond through nitrogen.
Why does the metal matter?
NCERT's Example 6.5 gives the reasoning expected in an exam. KCN is predominantly ionic, so free cyanide ions are present. Both carbon and nitrogen could donate an electron pair, but attack takes place mainly through carbon, because a C–C bond is more stable than a C–N bond. AgCN is mainly covalent: the carbon is tied to silver, so the nitrogen is the atom free to donate its pair, and the isocyanide forms.
Researchers still argue about the deeper explanation. A review by Mayr, Breugst and Ofial (2011) argues that the popular hard-soft acid-base (HSAB) treatment does not correctly predict the behaviour of the prototype ambident nucleophiles and proposes an approach based on Marcus theory. You do not need that for JEE Main or NEET-UG. It is a reminder that a textbook reason is a model, and the results in Table 6.4 are what you will be tested on.
Worked example 1: four reagents, one haloalkane
Bromoethane, CH₃CH₂Br, is treated separately with each reagent.
KCN: CH₃CH₂–CN, propanenitrile. Count carbons: two from the ethyl group plus one from cyanide makes three, so the name is propanenitrile, not "ethanenitrile". Its common name is ethyl cyanide.
AgCN: CH₃CH₂–NC, ethyl isocyanide. Here the ethyl group sits on nitrogen.
KNO₂: CH₃CH₂–O–N=O, ethyl nitrite.
AgNO₂: CH₃CH₂–NO₂, nitroethane.
Worked example 2: the isomer trap
Ethyl nitrite and nitroethane have the same molecular formula, C₂H₅NO₂. A question may give you only the formula and ask which reagent was used. Draw both. In ethyl nitrite the ethyl group is joined to oxygen (C–O–N=O); in nitroethane it is joined to nitrogen (C–NO₂). The connection, not the formula, tells you the reagent: oxygen-linked means KNO₂, nitrogen-linked means AgNO₂. The same reasoning separates propanenitrile from ethyl isocyanide, which share the formula C₃H₅N.
Worked example 3: why KCN is used to add a carbon
A favourite conversion question: make propan-1-amine from bromoethane. Treat CH₃CH₂Br with KCN to get CH₃CH₂CN. NCERT's amines chapter notes that nitriles are reduced by LiAlH₄ or catalytic hydrogenation to primary amines, giving CH₃CH₂CH₂NH₂, and calls this an ascent of the series because the product has one more carbon. NCERT's aldehydes, ketones and carboxylic acids chapter adds that nitriles hydrolyse to amides and then acids, so the same nitrile gives propanoic acid. AgCN would be the wrong reagent here, because it joins the ethyl group to nitrogen instead of carbon, so no new C–C bond forms.
Which mistakes cost marks?
Swapping the silver and potassium products. Use the one-line rule above.
Counting carbons wrongly. The cyanide carbon adds one to the chain in a nitrile.
Writing R–NO₂ for KNO₂. Potassium nitrite gives the nitrite ester, R–O–N=O.
Confusing the carbylamine test with this reaction. NCERT's amines chapter makes isocyanides from primary amines, chloroform and ethanolic KOH. That is a test for primary amines, not a haloalkane substitution. Our post on amines and diazonium salts covers it.
Forgetting the mechanism question. These are still nucleophilic substitutions, so primary substrates react by SN2. Our post on SN1 vs SN2 in haloalkanes has the checklist.
A practice routine
Write Table 6.4's four ambident rows from memory, drawing the bond to the alkyl group each time.
For 1-bromopropane and 2-bromobutane, write all four products and name them, checking carbon counts.
Make two conversion chains that use KCN to add a carbon, one ending in an amine and one in an acid.
Answer NCERT Exercise 6.8 on ambident nucleophiles in under three lines.
If a conversion question stalls because you are not sure which reagent comes first, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer, so you can see why each step is chosen.
Today, write the products of CH₃I with AgCN and with KNO₂, and check that you drew the methyl group on nitrogen and on oxygen.



