Mechanism Lab Open the app

Diazonium salt formation

Diazotization of aniline

How the Diazotization of aniline works, in 3 steps. Each step shows the structures and the curved arrows that move the electrons.

Open the interactive version

In short. A 3-step mechanism. Typical reagents: NaNO₂, HCl (HONO in situ). Conditions: H₂O, 0–5 °C (ice bath). Bonds formed: N–N bond; N≡N⁺; bonds broken: N–H (x2), O–H; C–N retained. Stereochemistry: None. Rate and selectivity: Keep cold: diazonium salts decompose above ~5 °C.

At a glance

ReagentsNaNO₂, HCl (HONO in situ)
Solvent / conditionsH₂O, 0–5 °C (ice bath)
Bonds formedN–N bond; N≡N⁺
Bonds brokenN–H (x2), O–H; C–N retained
StereochemistryNone
Rate / selectivityKeep cold: diazonium salts decompose above ~5 °C

Step 1: Nitrosonium ion from HONO

+−H₂O+ONOHHONOH₂ONOH₂NOOH₂1 · NITROSONIUM ION FROM HONOnitrous acidHNO₂BASEacid (HCl)ACIDprotonated HONOH₂NO₂⁺INTERMEDIATEprotonated HONOH₂NO₂⁺INTERMEDIATEnitrosoniumNO⁺ELECTROPHILEwaterH₂OBYPRODUCTProtonation then loss of water makes NO⁺, a small hard electrophile.

Nitrous acid (generated in situ from NaNO₂ and HCl) is protonated and loses water, generating a nitrosonium ion (NO⁺) — a small, reactive electrophile.

Step 2: N-nitrosation of aniline

+tautomerize(H⁺ shifts)NH₂NONH₂NONHNONNOH2 · N-NITROSATION OF ANILINEanilineC₆H₇NNUCLEOPHILEnitrosoniumNO⁺ELECTROPHILEN-nitrosoaniliniumC₆H₇N₂O⁺INTERMEDIATEN-nitrosamineC₆H₆N₂OINTERMEDIATEdiazohydroxideC₆H₆N₂OINTERMEDIATEDeprotonation gives the nitrosamine, which tautomerizes to Ar–N=N–OH.

Aniline's nucleophilic nitrogen lone pair attacks this nitrosonium ion, forming an N-nitrosamine, which tautomerizes and loses water in a sequence of proton transfers to build up the N=N triple-bond-adjacent framework.

Step 3: Aryl diazonium salt

−H₂O0–5 °C+NNOH₂NNCl3 · ARYL DIAZONIUM SALTprotonated diazohydroxideC₆H₇N₂O⁺INTERMEDIATEbenzenediazoniumC₆H₅N₂⁺PRODUCTchlorideCl⁻BYPRODUCTGateway to Sandmeyer, Balz–Schiemann and azo coupling.

The result is an aryl diazonium salt, stable only at low temperature — this is the very first step that has to happen before any of the diazonium chemistry covered elsewhere in this library (Sandmeyer, Balz-Schiemann, azo coupling) can proceed.

Abbreviations and terms

Ar
Aryl group. Any aromatic ring substituent such as phenyl.
H2
Hydrogen gas. Reductant for catalytic hydrogenation.
HCl
Hydrochloric acid / hydrogen chloride. Strong acid; chloride is the nucleophile in additions/substitutions.

How it compares with related reactions

Diazotization of anilineBalz-Schiemann reactionCarbodiimide-mediated amide (peptide) coupling
ReagentsNaNO₂, HCl (HONO in situ)ArNH₂ → ArN₂⁺ (NaNO₂, HCl); then HBF₄ or NaBF₄; heatR–CO₂H, R′–NH₂, DCC (dicyclohexylcarbodiimide)
ConditionsH₂O, 0–5 °C (ice bath)0–5 °C for salt; dry salt pyrolysed at 100–200 °C (or in PhCl/hexane)CH₂Cl₂ or DMF, 0 °C → 25 °C (often + HOBt/DMAP)
StereochemistryNoneNot relevantRacemisation of α-stereocentres possible via oxazolone (HOBt suppresses)
Rate / selectivityKeep cold: diazonium salts decompose above ~5 °CN₂ loss (aryl cation formation) is rate-limiting; salt must be dryO-Acylisourea is short-lived; DCU precipitates and drives the reaction

Test yourself

Try to answer each question before opening it.

Which reagents and conditions are typical for the Diazotization of aniline?

NaNO₂, HCl (HONO in situ). Conditions: H₂O, 0–5 °C (ice bath).

Which bonds are formed and which are broken?

Formed: N–N bond; N≡N⁺. Broken: N–H (x2), O–H; C–N retained.

What is the stereochemical outcome?

None

What controls the rate or the selectivity?

Keep cold: diazonium salts decompose above ~5 °C

Study guides that help with this reaction

Related mechanisms

Step through it interactively, then test yourself in Quiz