Diazonium Salts: Preparation and Reactions

A single functional group swap — turning –NH2\text{–NH}_2 into –N2+\text{–N}_2^+ — hands an organic chemist one of the most versatile tools in the whole syllabus. Treat a primary aromatic amine with cold nitrous acid and you get an aryl diazonium salt, a compound so reactive that its –N2+\text{–N}_2^+ group can be swapped out for chlorine, bromine, fluorine, iodine, a cyanide group, a hydroxyl group, or even a bare hydrogen atom — none of which are easy to install directly on a benzene ring by ordinary substitution chemistry. The same diazonium ion can also stay intact and attack an electron-rich ring instead, stitching two aromatic rings together through a –N=N–\text{–N=N–} bridge to build the vividly coloured azo dyes that colour half the textiles in your wardrobe. This article builds on aniline's reaction with nitrous acid and covers diazotisation, the full set of named replacement reactions (Sandmeyer, Balz–Schiemann, hydrolysis, deamination), and azo coupling — the reaction chemistry examiners test most heavily in the Amines chapter.

The core insight

A primary aromatic amine, chilled to 00–5 °C5\ \text{°C} with NaNO2/HClNaNO_2/HCl, forms a resonance-stabilised aryl diazonium salt whose –N2+\text{–N}_2^+ group can either be replaced by –Cl\text{–Cl}, –Br\text{–Br}, –F\text{–F}, –CN\text{–CN}, –OH\text{–OH} or –H\text{–H} (releasing N2N_2), or left intact to couple with an electron-rich ring and form a coloured azo compound.

The core idea

Diazotisation — making the diazonium salt. Aniline reacts with nitrous acid, generated in situ from NaNO2NaNO_2 and HClHCl (or H2SO4H_2SO_4), strictly between 00 and 5 °C5\ \text{°C}:

C6H5NH2+NaNO2+2HCl→0−5°CC6H5N2+Cl−+NaCl+2H2OC_6H_5NH_2 + NaNO_2 + 2HCl \xrightarrow{0-5°C} C_6H_5N_2^+Cl^- + NaCl + 2H_2O

where: C6H5NH2C_6H_5NH_2 is aniline, NaNO2+HClNaNO_2 + HCl generates nitrous acid (HNO2HNO_2) in the reaction flask, and C6H5N2+Cl−C_6H_5N_2^+Cl^- is benzenediazonium chloride, the diazonium salt. The low temperature is not a formality — above about 5 °C5\ \text{°C} the diazonium salt decomposes by losing N2N_2 gas faster than it can react further, and that same instability is what makes aliphatic diazonium salts (from primary alkylamines) useless: they decompose the instant they form. Aromatic diazonium ions survive briefly at low temperature because the positive charge on –N≡N+\text{–N}\equiv N^+ can delocalise into the benzene ring, a stabilisation the aliphatic case does not have.

Two directions from here. Once formed, the diazonium salt does one of two things: it either loses N2N_2 and lets another group take its place (replacement), or it keeps N2N_2 intact and attacks a second, electron-rich aromatic ring (coupling).

Figure
A branching flow diagram showing aniline converted to a diazonium salt which then splits into replacement products chlorobenzene bromobenzene fluorobenzene iodobenzene benzonitrile phenol and benzene on one branch and an azo dye on the other branch
One diazonium salt, two families of reaction aniline NaNO2 HCl 0-5C benzenediazonium chloride CuCl/CuBr, KI chloro/bromo/iodobenzene HBF4 then heat fluorobenzene CuCN/KCN benzonitrile H2O warm, or H3PO2 phenol, or benzene replacement branch — N2 gas leaves the ring phenol or aromatic amine, cold azo compound Ar-N=N-Ar coloured, used as an azo dye coupling branch — N2 stays intact, bridges two rings

Why it works

The replacement reactions and the coupling reaction pull the diazonium ion in opposite directions, and both make sense once you look at what –N2+\text{–N}_2^+ actually is: a very good leaving group attached to a mildly electrophilic nitrogen.

Replacement works because N2N_2 is an exceptional leaving group. Nitrogen gas is thermodynamically stable and chemically inert, so once it detaches from the ring it never re-attacks — the reaction is effectively irreversible and pulls whatever substitution mechanism is operating (radical, in the copper-catalysed Sandmeyer case; ionic, in hydrolysis) strongly toward products. This is precisely why diazonium chemistry is the standard workaround for substituents — –F\text{–F}, –CN\text{–CN}, –OH\text{–OH} — that electrophilic aromatic substitution cannot install cleanly or at all.

Different reagents intercept the diazonium ion in different ways. Cuprous salts (CuClCuCl, CuBrCuBr, CuCNCuCN) supply a radical pathway specific to the Sandmeyer reaction; HBF4HBF_4 instead swaps the counter-ion to give a solid, isolable tetrafluoroborate salt that only releases fluorine on gentle heating (Balz–Schiemann); warm water simply hydrolyses the diazonium ion to phenol; and H3PO2H_3PO_2 is a mild reducing agent that replaces –N2+\text{–N}_2^+ with –H\text{–H} (deamination), useful when an amino group was only ever needed to direct an earlier substitution and must now be removed.

Coupling works because the diazonium ion is a weak electrophile, not a strong one. It cannot attack an ordinary benzene ring, but it readily attacks rings made electron-rich by a strongly activating –OH\text{–OH} or –NR2\text{–NR}_2 group, bonding at the position of highest electron density (para to the activator, or ortho if para is blocked). Because N2N_2 is retained rather than expelled here, the product is a new, larger conjugated system — the –N=N–\text{–N=N–} azo linkage bridging two rings — and that extended conjugation is what pushes the absorption of light into the visible range, giving azo compounds their characteristic strong colour.

Worked example

Starting from aniline, prepare 2.15 g2.15\ \text{g} of fluorobenzene by the Balz–Schiemann route, and calculate the minimum mass of aniline needed if the overall yield across all three steps is 60%60\%.

Step 1 — Diazotise aniline. Treat aniline with NaNO2/HClNaNO_2/HCl at 00–5 °C5\ \text{°C}:

C6H5NH2→NaNO2, HCl, 0−5°CC6H5N2+Cl−C_6H_5NH_2 \xrightarrow{NaNO_2,\ HCl,\ 0-5°C} C_6H_5N_2^+Cl^-

Step 2 — Exchange to the tetrafluoroborate salt. Adding HBF4HBF_4 swaps the chloride counter-ion for tetrafluoroborate, precipitating C6H5N2+BF4−C_6H_5N_2^+BF_4^-, which is stable enough to isolate and dry — unlike the chloride.

Step 3 — Thermally decompose (Balz–Schiemann reaction). Gentle heating releases N2N_2 and BF3BF_3 gas, leaving fluorobenzene:

C6H5N2+BF4−→ΔC6H5F+N2↑+BF3↑C_6H_5N_2^+BF_4^- \xrightarrow{\Delta} C_6H_5F + N_2\uparrow + BF_3\uparrow

Direct fluorination of benzene with F2F_2 is far too violent to give clean monosubstitution, which is exactly why this three-step diazonium route is the standard method.

Step 4 — Mass of fluorobenzene, in moles. The molar mass of C6H5FC_6H_5F is 6(12)+5(1)+19=96 g/mol6(12) + 5(1) + 19 = 96\ \text{g/mol}. Moles of fluorobenzene needed: 2.15/96=0.0224 mol2.15/96 = 0.0224\ \text{mol}.

Step 5 — Scale back through the 60% overall yield to aniline. Since each step is one-to-one in the aromatic ring (aniline →\to diazonium salt →\to tetrafluoroborate salt →\to fluorobenzene), moles of aniline theoretically required =0.0224/0.60=0.0373 mol= 0.0224/0.60 = 0.0373\ \text{mol}. The molar mass of aniline, C6H5NH2C_6H_5NH_2, is 6(12)+5(1)+14+2(1)=93 g/mol6(12)+5(1)+14+2(1) = 93\ \text{g/mol}.

Step 6 — Convert to mass. Mass of aniline =0.0373×93=3.47 g= 0.0373 \times 93 = 3.47\ \text{g}. Answer: about 3.47 g3.47\ \text{g} of aniline must be taken to obtain 2.15 g2.15\ \text{g} of fluorobenzene at 60%60\% overall yield.

Common traps

  • Forgetting the strict 00–5 °C5\ \text{°C} requirement — above this the diazonium salt decomposes before you can use it; one of the most frequently tested details in this topic.
  • Mixing up Sandmeyer and Balz–Schiemann conditions — Sandmeyer uses cuprous salts (CuClCuCl, CuBrCuBr, CuCNCuCN) for chlorine, bromine and cyanide; Balz–Schiemann uses HBF4HBF_4 followed by heating, specifically for fluorine. There is no "Sandmeyer route to fluorobenzene."
  • Assuming diazonium salts are stable like ordinary aryl halides — they must be used immediately in solution, or isolated only as the more stable tetrafluoroborate salt.
  • Applying diazonium chemistry to aliphatic amines — only aromatic diazonium ions are stabilised enough (by ring delocalisation) to survive at 00–5 °C5\ \text{°C}; aliphatic ones decompose instantly and are synthetically useless.

Ask the tutor: if the Sandmeyer, Balz–Schiemann and coupling conditions keep blurring together, ask the AI tutor for a quick reagent-matching drill — it is one of the highest-yield memorisation points in the Amines chapter.

Why can't we just heat benzene with fluorine to make fluorobenzene directly?

Direct fluorination of benzene with F2F_2 is far too violent and uncontrollable — fluorine is so reactive that it tends to destroy the ring or over-substitute rather than cleanly replace one hydrogen. The Balz–Schiemann route sidesteps this entirely: diazotise aniline, exchange to the stable tetrafluoroborate salt, then release fluorine only on gentle, controlled heating. This is the standard, syllabus-tested way to introduce a single fluorine atom onto an aromatic ring.

Why does coupling happen with phenols and amines but not with plain benzene?

The diazonium ion is only a weak electrophile, so it needs an unusually electron-rich ring to attack. Groups like –OH\text{–OH} and –NR2\text{–NR}_2 donate electron density into the ring by resonance, making certain positions (mainly para to the activator) electron-rich enough for the diazonium ion to bond there. Plain benzene has no such activating group, so it simply is not reactive enough to couple.

If aliphatic diazonium salts are useless, why does the syllabus even mention them?

Mainly as a contrast that sharpens the aromatic case. A primary alkylamine treated with HNO2HNO_2 does form a diazonium ion in principle, but it decomposes within seconds even at low temperature because there is no ring to delocalise the positive charge into — it collapses to a carbocation and gives a messy mixture of alkenes, alcohols and halides. Aromatic diazonium salts survive briefly at 00–5 °C5\ \text{°C} precisely because the ring stabilises the charge, which is why every reaction in this chapter starts from an aromatic amine like aniline.

Before this