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.
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 () attacks the electrophilic carbon bearing the halogen, and the halide leaves as .
where: is the haloalkane, is the attacking nucleophile (hydroxide, cyanide, amine, etc.), and is the halide ion that departs. The mechanistic detail of how the substitution proceeds ( versus ) 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:
| Reagent | Product | Type |
|---|---|---|
| (aq) | - (alcohol) | O-nucleophile |
| - + (hydrolysis) | O-nucleophile | |
| (dry acetone) | - (Finkelstein) | halide exchange |
| (alc., excess, sealed tube) | - (1° amine, then further alkylation) | N-nucleophile |
| / | secondary/tertiary amine | N-nucleophile |
| (aq./alc.) | - (alkyl cyanide/nitrile) | C-linked |
| - (alkyl isocyanide) | N-linked | |
| - (nitroalkane) | N-linked | |
| -- (alkyl nitrite) | O-linked | |
| (ester) | O-nucleophile | |
| - (alkane, reduction) | hydride nucleophile |
Two pairs — / and / — look like they should give identical products, since and are each single ions. They do not: this is ambident-nucleophile behaviour, and it is the single most-tested idea in this reagent list.
Reaction with metals. Two more transformations replace the halide with a fresh C–C bond entirely: the Wurtz reaction, , couples two haloalkane molecules on sodium metal to give a longer alkane; and the Grignard reagent, , turns a haloalkane into a carbanion-like nucleophile that adds across a carbonyl group (e.g. ) and is then hydrolysed to an alcohol.
Why it works
Why does the same ion, or , bond through a different atom depending on whether its partner is or ? The answer is a contest between the ionic character of the reagent and the bonding preference of silver.
Step 1. In , the bond between and is highly ionic — in solution the cyanide ion is essentially free, behaving as the naked ion . Both ends of this ion carry a lone pair, but the carbon end is the better nucleophile in this largely -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 , 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 – 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 / pair: the ionic potassium salt lets the more nucleophilic nitrogen end of attack to give a C-bonded nitroalkane (-), while covalent silver nitrite frees the oxygen end instead, giving an O-bonded alkyl nitrite (--). 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) and (b) , and explain the difference.
Step 1. Identify the common electrophile and the two nucleophile sources. Both reagents supply cyanide, , but its mode of attack depends on the counter-cation, as established above.
Step 2. With (ionic), the free carbon end of cyanide attacks the electrophilic carbon of ethyl bromide:
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 (covalent), silver holds the carbon end, so the nitrogen end attacks instead:
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. — 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 from bromoethane and magnesium in dry ether, then add it to formaldehyde, , and hydrolyse with dilute acid to get (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 and give the same product — they are the textbook ambident-nucleophile pair, giving C-bonded and N-bonded products respectively.
- Confusing (C-bonded nitroalkane) with (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, , is an ambident nucleophile — it has two atoms that could bond, carbon and nitrogen. With the ionic salt , cyanide behaves as a free ion and its more nucleophilic carbon end attacks, giving an alkyl cyanide. With the covalent salt , 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, , 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 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.