Aniline reactions and preparation

Aniline (C6H5NH2C_6H_5NH_2) is the reference aromatic amine of the ISC nitrogen-compounds chapter — every question about amine basicity, N-substitution, or the diazonium salts that follow eventually comes back to this one molecule. It is made in a single reduction step from nitrobenzene, behaves as a weak base at the nitrogen while its ring stays reactive toward electrophiles, and gives a distinctive set of six named reactions: salt formation, acetylation, alkylation, benzoylation, the carbylamine test, and diazotisation. The recurring exam idea is that the same lone pair on nitrogen that makes aniline basic also feeds electron density into the ring, and clever chemistry (acetylation before nitration) exploits that link. This article collects the preparation, physical properties, and all six reactions into one tight, testable picture, building directly on the syllabus-scoped Pass-1 article.

The core insight

Aniline is made by reducing nitrobenzene (Sn/HClSn/HCl or Fe/HClFe/HCl), and its nitrogen lone pair — weakened by delocalisation into the ring — drives a family of substitution reactions (salt formation, acetylation, alkylation, benzoylation, carbylamine, diazotisation) whose outcomes all trace back to how available that lone pair is.

The core idea

Preparation. Nitrobenzene is reduced completely — six "hydrogen equivalents" replace the three oxygens of −NO2-NO_2 with two hydrogens on nitrogen:

C6H5NO2+6[H]→HClSn/FeC6H5NH2+2H2OC_6H_5NO_2 + 6[H] \xrightarrow[HCl]{Sn/Fe} C_6H_5NH_2 + 2H_2O

where: [H][H] is the reducing hydrogen supplied in situ by a metal–acid couple (Sn+HClSn+HCl, Fe+HClFe+HCl, or catalytically H2/NiH_2/Ni). With Sn/HClSn/HCl the immediate product is anilinium chloride, C6H5NH3+Cl−C_6H_5NH_3^+Cl^-; a subsequent NaOHNaOH wash liberates the free amine. This two-stage picture — reduce, then basify — is worth stating explicitly in any preparation question.

Physical properties. Aniline is a colourless, oily liquid that darkens to brown on standing in air and light (slow aerial oxidation), boils at 184 ∘C184\,^\circ C, and is only slightly water-soluble: the −NH2-NH_2 group can hydrogen-bond to water, but the large non-polar phenyl ring dominates and limits mixing. It dissolves freely in ethanol and ether.

One lone pair, two jobs. The nitrogen lone pair is the key to almost every reaction below. Free to donate into an acid's proton, it makes aniline a (weak) base; delocalised into the aromatic ring by resonance, it makes the ring strongly activated toward electrophiles. Any substituent placed on nitrogen (acetyl, alkyl, benzoyl) partially withdraws that lone pair from one job or the other, and that trade-off explains the reaction pattern below.

Figure
Aniline reaction map showing nitrobenzene reduced to aniline at the centre with six labelled reactions branching outward
From nitrobenzene to aniline, then six named reactions nitrobenzene Sn or Fe / HCl aniline HCl / H2SO4 salt acetic anhydride: acetanilide alkyl halide: N-alkylaniline benzoyl chloride: benzanilide CHCl3 / KOH: phenyl isocyanide NaNO2 / HCl, 0-5 C: diazonium salt Every branch consumes or protonates the nitrogen lone pair

Why it works

Aniline's reactivity is a story of one lone pair being pulled in different directions, not a formula to derive — so the logic, not an equation, carries the marks.

Basicity is weak because the lone pair is shared with the ring. In ammonia or an aliphatic amine the nitrogen lone pair sits entirely on nitrogen and is fully available to grab a proton. In aniline, resonance delocalises part of that lone pair into the benzene ring (donating electron density to the ortho and para positions), so less electron density remains localised on nitrogen. The result is a weaker base than ammonia, even though aniline is still basic enough to form salts with strong acids like HClHCl and H2SO4H_2SO_4.

Acylation and benzoylation trade basicity for ring protection. When acetic anhydride or benzoyl chloride reacts with the −NH2-NH_2 nitrogen, an acyl group is bonded to nitrogen. The nitrogen lone pair is now shared with the new carbonyl too, so the amide product (acetanilide, benzanilide) is a much weaker base and, crucially, cannot be protonated by dilute acid — which matters directly for nitration, worked through below.

Diazotisation needs cold conditions because the product is only moderately stable. At 00–5 ∘C5\,^\circ C, nitrous acid (generated in situ from NaNO2+HClNaNO_2 + HCl) converts the free −NH2-NH_2 into a diazonium ion, −N2+-N_2^+. Aryl diazonium salts are more stable than aliphatic ones (the positive charge is stabilised by the adjacent ring), but they still decompose above about 5 ∘C5\,^\circ C, releasing N2N_2 and giving phenol — so the low-temperature condition is not a minor detail but the reason the reaction succeeds at all.

The carbylamine reaction is diagnostic because it needs a free, primary −NH2-NH_2. Only a primary amine (one −NH2-NH_2 directly on the parent group, with no other substituent) reacts with CHCl3CHCl_3/alcoholic KOHKOH to give the foul-smelling isocyanide. Secondary or acylated amines give no such smell, which is exactly why this reaction is used as a specific test.

Worked example

Problem: Nitrobenzene is first reduced to aniline. Some of the aniline is diazotised directly; the rest is acetylated and then nitrated. Write the equations for each stage, and explain why the two routes give such different ring products.

Step 1 (reduction). C6H5NO2+3Sn+6HCl→C6H5NH3+Cl−+3SnCl2+2H2OC_6H_5NO_2 + 3Sn + 6HCl \rightarrow C_6H_5NH_3^+Cl^- + 3SnCl_2 + 2H_2O, followed by NaOHNaOH to liberate free aniline, C6H5NH2C_6H_5NH_2.

Step 2 (direct diazotisation). The free aniline is dissolved in excess dilute HClHCl, cooled to 00–5 ∘C5\,^\circ C, and treated with NaNO2NaNO_2 solution: C6H5NH2+NaNO2+2HCl→0−5 ∘CC6H5N2+Cl−+NaCl+2H2OC_6H_5NH_2 + NaNO_2 + 2HCl \xrightarrow{0-5\,^\circ C} C_6H_5N_2^+Cl^- + NaCl + 2H_2O. This gives benzenediazonium chloride — the free −NH2-NH_2's lone pair is what makes this possible, and the low temperature keeps the diazonium ion from decomposing before use.

Step 3 (acetylation then nitration). Separately, aniline is acetylated: C6H5NH2+(CH3CO)2O→C6H5NHCOCH3+CH3COOHC_6H_5NH_2 + (CH_3CO)_2O \rightarrow C_6H_5NHCOCH_3 + CH_3COOH. Under the strongly acidic nitrating mixture, free aniline would be protonated to the meta-directing anilinium ion, giving unwanted meta-nitroaniline; the acetamido group cannot be protonated, so it stays a moderate, o,p-directing activator throughout. Nitration of acetanilide therefore gives predominantly p-nitroacetanilide, and hydrolysis afterward regenerates the amine as p-nitroaniline.

Why the routes differ: the diazotisation route needs the lone pair fully free and available on nitrogen (so no protection is used), while the nitration route needs that same lone pair temporarily dampened and un-protonatable (so protection by acetylation is essential). Same starting material, opposite treatment of the lone pair, because the two target reactions make opposite demands on it.

Common traps

  • Assuming aniline is more basic than ammonia because "amines are basic" — aniline is markedly weaker due to lone-pair delocalisation into the ring; do not generalise from aliphatic amines.
  • Skipping the 00–5 ∘C5\,^\circ C condition in diazotisation — above this range the diazonium salt decomposes to phenol before it can be isolated or used further.
  • Treating acetylation as an end in itself rather than as protection: its real exam purpose is temporarily reducing the ring-activating, meta-avoiding power of −NH2-NH_2 so nitration is controllable.
  • Mixing up acetylation (acid anhydride/chloride, gives an amide, retains the C–N bond with an acyl group added) with alkylation (alkyl halide, gives a substituted amine, no carbonyl introduced).

Ask the tutor: want to walk through why acetanilide is still o,p-directing but much less strongly activating than free aniline, using resonance structures?

Why is aniline a weaker base than ammonia if both have a lone pair on nitrogen?

In ammonia, the nitrogen lone pair sits entirely on the nitrogen atom and is fully free to accept a proton. In aniline, that lone pair is partly delocalised by resonance into the attached benzene ring, spreading electron density onto the ortho and para carbons instead of keeping it all on nitrogen. Less available electron density on nitrogen means a weaker attraction for an incoming proton, so aniline is a distinctly weaker base than ammonia or an aliphatic amine, even though it still forms stable salts with strong acids like HCl.

What actually goes wrong if you nitrate aniline directly, without acetylating it first?

Under the strongly acidic HNO3/H2SO4 mixture, free aniline is protonated almost completely to the anilinium ion, C6H5NH3+. That ion is deactivating and meta-directing, unlike free aniline itself, so direct nitration gives a poor yield dominated by meta-nitroaniline along with oxidative side products damaging the ring. Acetylating first converts the amine into an amide that cannot be protonated under these conditions, so it keeps directing nitration to the ortho and para positions, giving p-nitroacetanilide in good yield.

How is the carbylamine reaction different from just smelling ordinary amine odour?

Ordinary amines already have a mild fishy smell, but the carbylamine reaction produces a specific, intensely unpleasant isocyanide odour that only appears when a primary amine reacts with chloroform and alcoholic KOH. It works only for primary amines — a compound with a secondary or tertiary nitrogen, or an acylated nitrogen such as acetanilide, gives no such product and no smell. That specificity is exactly why the reaction is used as a confirmatory test rather than just noting an amine's general odour.

Before this

Where this leads