Diazonium salts

Benzene's ring is stubborn: electrophilic substitution can only ever attach a handful of groups directly, and never in a position of the chemist's choosing. Diazonium salts break that limit. Convert aniline to benzenediazonium chloride, Ar-N2+Cl−Ar\text{-}N_2^+Cl^-, and the −N2+-N_2^+ group becomes a removable handle — swap it for −Cl-Cl, −Br-Br, −CN-CN, −F-F, −OH-OH, −NO2-NO_2, or simply −H-H, using named reactions each with its own reagent signature. The same ion can instead be steered sideways into a coupling reaction with an activated ring, stitching two benzene rings together through an −N=N−-N=N- bridge to build the coloured azo dyes. One functional group, prepared in one step from aniline at 00-5 ∘C5\,^\circ C, unlocks nine different products. This article maps that handle: how it is made, why it must stay cold, which reagent buys which substitution, and how the coupling reaction differs in kind from all the rest.

The core insight

Diazotising aniline below 5 ∘C5\,^\circ C gives the aryl diazonium ion Ar-N2+Ar\text{-}N_2^+, whose −N2+-N_2^+ group is replaced by −Cl-Cl, −Br-Br, −CN-CN, −F-F, −OH-OH, −NO2-NO_2 or −H-H under distinct named reagents (Sandmeyer, Gattermann, Balz–Schiemann), or which instead couples intact with phenols and amines to form azo dyes.

The core idea

Making the ion. Aniline is treated with sodium nitrite and excess hydrochloric acid, kept below 5 ∘C5\,^\circ C:

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

where: NaNO2+HClNaNO_2 + HCl generates nitrous acid (HNO2HNO_2) in situ, which is the true diazotising agent; the second mole of HClHCl supplies the chloride counter-ion and keeps the medium acidic. The aryl diazonium ion is unusually stable for a diazonium species because the ring's π\pi system delocalises the positive charge, but "stable" here only means stable in cold solution — above about 10 ∘C10\,^\circ C it decomposes, often hydrolysing to phenol.

Two families of reaction. Everything the diazonium ion does afterwards falls into exactly two categories: (i) the −N2+-N_2^+ group leaves as N2N_2 gas and something else takes its place on the ring, or (ii) the whole −N2+-N_2^+ group survives and bonds intact to another aromatic ring. The first family is a set of substitution reactions; the second, coupling, is discussed below with its own displayed equation.

Substitution — replacement of −N2+-N_2^+. The choice of reagent fixes the product and gives the reaction its name:

Reagent/conditionsProductNamed reaction
CuCl/HClCuCl/HClAr-ClAr\text{-}ClSandmeyer
CuBr/HBrCuBr/HBrAr-BrAr\text{-}BrSandmeyer
CuCN/KCNCuCN/KCNAr-CNAr\text{-}CNSandmeyer
CuCu powder ++ HClHCl or HBrHBrAr-ClAr\text{-}Cl or Ar-BrAr\text{-}BrGattermann
H3PO2H_3PO_2 + waterAr-HAr\text{-}Hdeamination
boiling water (H2O/H+H_2O/H^+)Ar-OHAr\text{-}OHhydrolysis
NaNO2/CuNaNO_2/CuAr-NO2Ar\text{-}NO_2replacement by nitro
HBF4HBF_4, then dry heatAr-FAr\text{-}FBalz–Schiemann
KIKIAr-IAr\text{-}Idirect ionic substitution

Sandmeyer and Gattermann both give Ar-ClAr\text{-}Cl or Ar-BrAr\text{-}Br; the difference is only the copper source — a dissolved cuprous salt for Sandmeyer, freshly precipitated copper powder for Gattermann — and only Sandmeyer's cuprous cyanide route extends to −CN-CN. The Balz–Schiemann route to Ar-FAr\text{-}F is two steps, not one: the diazonium chloride is first converted to the tetrafluoroborate salt, Ar-N2+BF4−Ar\text{-}N_2^+BF_4^-, which is isolated and dried before being heated to release Ar-FAr\text{-}F, BF3BF_3, and N2N_2. No electrophilic method installs −F-F, −CN-CN, or removes −NH2-NH_2 cleanly on a benzene ring; diazonium chemistry is the only route to each.

Figure
A diazonium ion at the centre with arrows radiating to eight labelled products showing that one intermediate branches into many substituted benzenes
One diazonium ion, many products Ar-N2+ diazonium ion Ar-F Balz-Schiemann Ar-CN Sandmeyer CuCN Ar-Cl Sandmeyer/Gattermann Ar-Br Sandmeyer/Gattermann Ar-OH hydrolysis, hot water Ar-H H3PO2 deamination Ar-NO2 NaNO2/Cu azo dye coupling, N2+ retained Blue circles lose N2 gas; the red circle keeps the whole diazonium group intact

Why it works

The chemistry hinges on one fact: N2N_2 is an exceptionally stable, unreactive gas, so any process that can release it is thermodynamically downhill. In the substitution reactions, −N2+-N_2^+ leaves as N2↑N_2\uparrow while a nucleophile or radical fragment from the reagent (a halide ion, cyanide, hydroxide, hydride equivalent) takes its place on the ring carbon. The catalytic copper in Sandmeyer's and Gattermann's reactions works by cycling between Cu(I)Cu(I) and Cu(II)Cu(II), generating an aryl radical that then grabs a halogen atom from the copper halide — this radical pathway is why the reaction needs a copper catalyst at all, unlike the simple ionic substitution with KIKI, where iodide is nucleophilic enough to displace N2N_2 directly. The Balz–Schiemann reaction needs isolation of the solid tetrafluoroborate first because BF4−BF_4^- is a poor nucleophile in solution; only on dry heating does the salt decompose cleanly to Ar-FAr\text{-}F, avoiding the side products a wet ionic mechanism would give. Coupling reactions behave completely differently because nothing leaves. The diazonium ion, though only a weak electrophile, is reactive enough to attack a ring that has been made unusually electron-rich by a strong activating group — phenol's −OH-OH or aniline's −NH2-NH_2 — in a classic electrophilic aromatic substitution. Because −OH-OH and −NH2-NH_2 are both powerful ortho/para directors and the para position is normally the less hindered of the two, coupling lands predominantly para (ortho if para is blocked). The product retains every atom of the diazonium ion, joined through the −N=N−-N=N- (azo) linkage:

Ar-N2++C6H5OH→mild baseAr-N=N-C6H4-OHAr\text{-}N_2^+ + C_6H_5OH \xrightarrow{\text{mild base}} Ar\text{-}N=N\text{-}C_6H_4\text{-}OH

where: the mild base converts some phenol to the more nucleophilic phenoxide ion, speeding the reaction without decomposing the diazonium salt (strong base would). Coupling with aniline instead needs near-neutral or mildly acidic conditions, because excess acid would protonate the amine's lone pair and switch off its activating power. The extended conjugation through the −N=N−-N=N- bridge, linking two aromatic rings' π\pi systems, is what gives azo compounds their strong colour and makes them the basis of azo dyes.

Worked example

Problem. Starting from aniline, propose routes to (a) benzonitrile and (b) 4-hydroxyazobenzene, giving reagents, and state which of the two involves loss of nitrogen gas.

Step 1. Both routes share the same first step: diazotise aniline below 5 ∘C5\,^\circ C. C6H5NH2+NaNO2+2HCl→0-5 ∘CC6H5N2+Cl−+NaCl+2H2OC_6H_5NH_2 + NaNO_2 + 2HCl \xrightarrow{0\text{-}5\,^\circ C} C_6H_5N_2^+Cl^- + NaCl + 2H_2O.

Step 2. For benzonitrile, treat the diazonium salt with cuprous cyanide (Sandmeyer conditions): C6H5N2+Cl−→CuCN/KCNC6H5CN+N2↑C_6H_5N_2^+Cl^- \xrightarrow{CuCN/KCN} C_6H_5CN + N_2\uparrow. The −CN-CN group replaces −N2+-N_2^+, and nitrogen gas is lost — this is a substitution reaction, and it is the standard synthesis of benzonitrile since benzene has no direct electrophilic route to a nitrile group.

Step 3. For 4-hydroxyazobenzene, instead couple the same diazonium salt with phenol under mild base: C6H5N2++C6H5OH→mild baseC6H5-N=N-C6H4-OHC_6H_5N_2^+ + C_6H_5OH \xrightarrow{\text{mild base}} C_6H_5\text{-}N=N\text{-}C_6H_4\text{-}OH (para product, since −OH-OH directs ortho/para and para is less hindered). Here the diazonium group is not lost — no N2N_2 escapes — the whole ion bonds intact to the phenol ring through the new −N=N−-N=N- linkage.

Step 4. Contrast the two: benzonitrile formation is a substitution (Sandmeyer, −N2+-N_2^+ replaced by −CN-CN, N2N_2 evolved), while 4-hydroxyazobenzene formation is a coupling (the diazonium ion itself becomes part of the azo product, no gas evolved). Answer: benzonitrile via CuCN/KCNCuCN/KCN with N2N_2 loss; 4-hydroxyazobenzene via coupling with phenol in mild base, with the diazonium group fully retained in the product.

Common traps

  • Mixing up Sandmeyer's reaction (cuprous salt in solution: CuClCuCl, CuBrCuBr, CuCNCuCN) with Gattermann's (copper powder plus the halogen acid) — both give the same halide products, but only Sandmeyer's extends to −CN-CN.
  • Writing the Balz–Schiemann product straight from the chloride salt; the tetrafluoroborate must be isolated and dried first, then heated, to get Ar-FAr\text{-}F.
  • Forgetting the temperature window: diazonium salts are only stable around 00-5 ∘C5\,^\circ C; warming the solution hydrolyses it to phenol even with no coupling partner present.
  • Assuming coupling needs strong acid or strong base — phenol coupling wants mild base (to form phenoxide without decomposing the salt), amine coupling wants near-neutral conditions (excess acid deactivates the amine).

Ask the tutor: want to work through a full multi-step synthesis from benzene to a target molecule using the diazonium handle at the key step?

Why does the diazonium salt have to be kept cold during preparation

The aryl diazonium ion is only marginally stabilised by delocalisation of its positive charge into the ring, and above about ten degrees Celsius it decomposes rapidly, commonly hydrolysing to phenol as water attacks the carbon that lost nitrogen. Keeping the reaction between zero and five degrees Celsius slows this decomposition enough that the salt survives long enough to be used in the next step, whether that is a substitution or a coupling reaction. In practice the diazonium salt is prepared and used immediately in cold solution rather than isolated and stored.

Why does coupling not evolve nitrogen gas while Sandmeyer and Gattermann reactions do

The two reaction types work by entirely different mechanisms. In Sandmeyer's, Gattermann's, deamination, hydrolysis and the nitro and fluoro substitutions, the weak carbon to nitrogen bond in −N2+-N_2^+ breaks, nitrogen leaves as stable N2N_2 gas, and a new group bonds where it left. In coupling, the diazonium ion instead acts as an electrophile that attacks an electron-rich ring such as phenol or aniline; the nitrogen to nitrogen bond stays intact and becomes the azo linkage in the product. Nothing leaves, so no gas is evolved, and the entire diazonium fragment ends up incorporated into the dye molecule.

Why can diazonium salts introduce groups that direct electrophilic substitution cannot

Direct electrophilic aromatic substitution on benzene is governed by whatever activating or deactivating group is already on the ring, and it simply cannot install some groups at all: there is no electrophilic reagent that puts −F-F or −CN-CN directly onto an unactivated benzene ring, and removing an existing −NH2-NH_2 entirely is not possible by substitution chemistry either. The diazonium route sidesteps this because it works through the amine, which is easy to install by nitration then reduction, then diazotises and swaps the −N2+-N_2^+ handle for whatever the target needs. This is exactly why diazonium salts are described as important intermediates in synthetic organic chemistry.

Before this