Reactions of haloalkanes

A single carbon–halogen bond turns an otherwise unreactive alkane into a synthetic gateway. The carbon is slightly positive, the halogen slightly negative, and that polarity invites almost any nucleophile — hydroxide, cyanide, ammonia, even a bare metal — to attack the carbon and push the halide out. Change the nucleophile and you change the product family: alcohols, nitriles, amines, esters, or a brand-new carbon skeleton altogether. This is why haloalkanes sit at the centre of Class 12 synthesis questions. The chemistry is not one reaction but a reagent list: swap the nucleophile, predict a different functional group, and watch for the two classic ambident-ion traps — KCN versus AgCN, and KNO₂ versus AgNO₂ — where the same-looking ion attaches through a different atom depending on its partner cation. Add the metal-mediated Wurtz and Grignard reactions, and a haloalkane becomes a one-stop route to alkanes, alcohols, and longer carbon chains.

The core insight

Because the C–X bond is polarised, haloalkanes undergo nucleophilic substitution with a wide reagent set — the product's identity (and even which atom of an ambident nucleophile bonds) is fixed entirely by which nucleophile and which counter-cation you choose.

The core idea

Every reaction on the Class 12 list is a variation on one event: a nucleophile (Nu−Nu^-) attacks the electrophilic carbon bearing the halogen, and the halide leaves as X−X^-.

R-X+Nu−→R-Nu+X−R\text{-}X + Nu^- \rightarrow R\text{-}Nu + X^-

where: R-XR\text{-}X is the haloalkane, Nu−Nu^- is the attacking nucleophile (hydroxide, cyanide, amine, etc.), and X−X^- is the halide ion that departs. The mechanistic detail of how the substitution proceeds (SN1S_N1 versus SN2S_N2) is covered separately; here the focus is on matching reagent to product.

The standard reagent set. Each row below is a reagent the syllabus names, the product it gives, and how that product is linked to the original carbon:

ReagentProductType
NaOHNaOH (aq)RR-OHOH (alcohol)O-nucleophile
H2OH_2ORR-OHOH + HXHX (hydrolysis)O-nucleophile
NaINaI (dry acetone)RR-II (Finkelstein)halide exchange
NH3NH_3 (alc., excess, sealed tube)RR-NH2NH_2 (1° amine, then further alkylation)N-nucleophile
R′NH2R'NH_2 / R2′NHR'_2NHsecondary/tertiary amineN-nucleophile
KCNKCN (aq./alc.)RR-CNCN (alkyl cyanide/nitrile)C-linked
AgCNAgCNRR-NCNC (alkyl isocyanide)N-linked
KNO2KNO_2RR-NO2NO_2 (nitroalkane)N-linked
AgNO2AgNO_2RR-OO-N=ON=O (alkyl nitrite)O-linked
R′COOAgR'COOAgR′COORR'COOR (ester)O-nucleophile
LiAlH4LiAlH_4RR-HH (alkane, reduction)hydride nucleophile

Two pairs — KCNKCN/AgCNAgCN and KNO2KNO_2/AgNO2AgNO_2 — look like they should give identical products, since CN−CN^- and NO2−NO_2^- are each single ions. They do not: this is ambident-nucleophile behaviour, and it is the single most-tested idea in this reagent list.

Figure
Two paths for cyanide attack, ionic potassium cyanide bonding through carbon to give ethyl cyanide, and covalent silver cyanide bonding through nitrogen to give ethyl isocyanide
Ambident cyanide: which end attacks depends on the counter-cation CH3CH2-Br KCN — ionic, C attacks AgCN — covalent, N attacks CH3CH2-C≡N ethyl cyanide (C-bonded) CH3CH2-N≡C ethyl isocyanide (N-bonded) Same nucleophile, same halide — different product, fixed by the cation. The same logic converts KNO2 (C-bonded nitroalkane) into AgNO2 (O-bonded alkyl nitrite).

Reaction with metals. Two more transformations replace the halide with a fresh C–C bond entirely: the Wurtz reaction, 2 R-X+2 Na→dry etherR-R+2 NaX2\,R\text{-}X + 2\,Na \xrightarrow{\text{dry ether}} R\text{-}R + 2\,NaX, couples two haloalkane molecules on sodium metal to give a longer alkane; and the Grignard reagent, R-X+Mg→dry etherR-Mg-XR\text{-}X + Mg \xrightarrow{\text{dry ether}} R\text{-}Mg\text{-}X, turns a haloalkane into a carbanion-like nucleophile that adds across a carbonyl group (e.g. HCHOHCHO) and is then hydrolysed to an alcohol.

Why it works

Why does the same ion, CN−CN^- or NO2−NO_2^-, bond through a different atom depending on whether its partner is K+K^+ or Ag+Ag^+? The answer is a contest between the ionic character of the reagent and the bonding preference of silver.

Step 1. In KCNKCN, the bond between K+K^+ and CN−CN^- is highly ionic — in solution the cyanide ion is essentially free, behaving as the naked ion :C≡N:−:C\equiv N:^-. Both ends of this ion carry a lone pair, but the carbon end is the better nucleophile in this largely SN2S_N2-like, kinetically controlled environment (carbon is the less electronegative, more polarisable, more nucleophilic terminus). So carbon attacks the haloalkane's electrophilic carbon, forming a new C–C bond and releasing an alkyl cyanide (nitrile).

Step 2. In AgCNAgCN, the bonding is far more covalent: silver is a soft, polarisable cation that binds strongly and specifically to the carbon end of cyanide (a soft–soft interaction), effectively "using up" that end inside the AgAg–CNCN unit itself. This leaves the nitrogen end as the only lone pair free to attack the alkyl halide, so the product is an alkyl isocyanide (isonitrile) with a new C–N bond.

Step 3. Exactly the same logic governs the KNO2KNO_2/AgNO2AgNO_2 pair: the ionic potassium salt lets the more nucleophilic nitrogen end of NO2−NO_2^- attack to give a C-bonded nitroalkane (RR-NO2NO_2), while covalent silver nitrite frees the oxygen end instead, giving an O-bonded alkyl nitrite (RR-OO-N=ON=O). In every ambident case, ask one question — is the counter-cation ionic (potassium, sodium) or covalent and soft (silver) — and the linkage follows automatically.

Worked example

Predict the products when ethyl bromide is treated separately with (a) KCNKCN and (b) AgCNAgCN, and explain the difference.

Step 1. Identify the common electrophile and the two nucleophile sources. Both reagents supply cyanide, C≡N−C\equiv N^-, but its mode of attack depends on the counter-cation, as established above.

Step 2. With KCNKCN (ionic), the free carbon end of cyanide attacks the electrophilic carbon of ethyl bromide:

CH3CH2Br+KCN→CH3CH2CN+KBrCH_3CH_2Br + KCN \rightarrow CH_3CH_2CN + KBr

This gives ethyl cyanide (propanenitrile), with a new C–C bond — useful because it extends the carbon chain by one atom, a classic step in organic synthesis.

Step 3. With AgCNAgCN (covalent), silver holds the carbon end, so the nitrogen end attacks instead:

CH3CH2Br+AgCN→CH3CH2NC+AgBrCH_3CH_2Br + AgCN \rightarrow CH_3CH_2NC + AgBr

This gives ethyl isocyanide, with a new C–N bond and no chain extension.

Final answer: KCN gives ethyl cyanide (C–C bond, chain-extending); AgCN gives ethyl isocyanide (C–N bond, no chain extension) — the identical nucleophile, cyanide, switches which atom bonds purely because of the counter-cation.

Competitive stretch

Starting from bromoethane, outline routes to (a) butane by the Wurtz reaction and (b) an alcohol by the Grignard route.

Step 1. Wurtz: reflux two molecules of bromoethane with sodium in dry ether. 2 CH3CH2Br+2 Na→dry etherCH3CH2CH2CH3+2 NaBr2\,CH_3CH_2Br + 2\,Na \xrightarrow{\text{dry ether}} CH_3CH_2CH_2CH_3 + 2\,NaBr — the two ethyl fragments couple to give butane, double the carbon count of the starting halide. This route only gives a single clean product when both halide molecules are identical.

Step 2. Grignard: first form CH3CH2-MgBrCH_3CH_2\text{-}MgBr from bromoethane and magnesium in dry ether, then add it to formaldehyde, CH3CH2-MgBr+HCHO→CH3CH2-CH2-OMgBrCH_3CH_2\text{-}MgBr + HCHO \rightarrow CH_3CH_2\text{-}CH_2\text{-}OMgBr, and hydrolyse with dilute acid to get CH3CH2CH2OHCH_3CH_2CH_2OH (propan-1-ol) — one carbon longer than the starting halide, because addition to formaldehyde always extends the chain by exactly one carbon.

Common traps

  • Assuming KCNKCN and AgCNAgCN give the same product — they are the textbook ambident-nucleophile pair, giving C-bonded and N-bonded products respectively.
  • Confusing KNO2KNO_2 (C-bonded nitroalkane) with AgNO2AgNO_2 (O-bonded alkyl nitrite) — the same ionic-versus-covalent logic applies.
  • Expecting the Wurtz reaction to give one clean product from a mixture of two different alkyl halides — it gives a statistical mixture of three coupled products, so it is only unambiguous with a single halide.
  • Forgetting that Grignard reagents demand strictly anhydrous (dry ether) conditions — even a trace of water protonates the reagent to the plain alkane, destroying it before it can react with anything else.

Ask the tutor: want a rapid-fire drill predicting the product for a random reagent from this list, or a deeper dive into why silver salts specifically flip ambident-ion selectivity?

Why does the same cyanide ion give two different products with KCN and AgCN?

Because cyanide, C≡N−C\equiv N^-, is an ambident nucleophile — it has two atoms that could bond, carbon and nitrogen. With the ionic salt KCNKCN, cyanide behaves as a free ion and its more nucleophilic carbon end attacks, giving an alkyl cyanide. With the covalent salt AgCNAgCN, silver ties up the carbon end, so the nitrogen end is left to attack instead, giving an alkyl isocyanide. The counter-cation, not the nucleophile's identity, decides the linkage.

Does the Wurtz reaction work with two different alkyl halides to make an unsymmetrical alkane?

Not cleanly. Mixing, say, bromomethane and bromoethane with sodium gives a statistical mixture of three products — the two symmetrical couplings plus the unsymmetrical one — because sodium reacts with whichever halide molecule it encounters next. As a synthesis method the Wurtz reaction is reliable only when you start from a single, identical alkyl halide, since then only one coupled product is possible.

Why must Grignard reagents be prepared in completely dry conditions?

A Grignard reagent, R-Mg-XR\text{-}Mg\text{-}X, has a carbon atom that behaves almost like a carbanion — strongly basic and strongly nucleophilic. Water is a ready proton source, and even trace moisture protonates that carbon instantly, converting the expensive, freshly made reagent straight into the plain alkane R-HR\text{-}H before it ever meets the intended carbonyl partner. That is why Grignard reactions are always run in dry ether under anhydrous conditions, often with glassware flame-dried beforehand.

Before this

Where this leads