Fiveable

🥼Organic Chemistry Unit 24 Review

QR code for Organic Chemistry practice questions

24.9 Heterocyclic Amines

24.9 Heterocyclic Amines

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🥼Organic Chemistry
Unit & Topic Study Guides

Pyrrole and Pyridine

Structure and aromaticity of pyrrole

Pyrrole is a five-membered heterocyclic compound containing one nitrogen atom and four carbon atoms (\ceC4H4NH\ce{C4H4NH}). What makes pyrrole special is how its nitrogen participates in aromaticity: the nitrogen's lone pair is donated directly into the aromatic π\pi system.

This gives pyrrole 6 π\pi electrons total (4 from the two C=C double bonds + 2 from nitrogen's lone pair), satisfying Hückel's rule (4n+24n + 2 where n=1n = 1). That lone pair donation has two major consequences:

  • Pyrrole is an extremely weak base. Protonation of nitrogen would pull the lone pair out of the π\pi system, destroying aromaticity. The aromatic stabilization energy is worth more than the energy gained from protonation, so pyrrole resists acting as a base (pKa\text{p}K_a of conjugate acid ≈ 3.8-3.8).
  • Pyrrole is electron-rich and highly reactive toward electrophilic aromatic substitution (EAS). The nitrogen feeds electron density into the ring, making pyrrole more reactive than benzene toward EAS. Substitution occurs preferentially at the C-2 position (adjacent to nitrogen), where the intermediate cation is best stabilized.

Pyrrole does not undergo Diels-Alder reactions despite having a conjugated diene-like framework, because doing so would break aromaticity. All atoms in the ring are sp2sp^2 hybridized, and the molecule is planar with full resonance delocalization.

Structure and aromaticity of pyrrole, Organic chemistry 27: Introduction to aromaticity

Basicity and reactivity of pyridine

Pyridine is a six-membered heterocyclic compound with one nitrogen atom and five carbon atoms (\ceC5H5N\ce{C5H5N}). Unlike pyrrole, pyridine's nitrogen lone pair sits in an sp2sp^2 orbital in the plane of the ring and is not part of the aromatic π\pi system. The 6 π\pi electrons come entirely from the three C=C/C=N double bonds.

This distinction is the single most important concept in heterocyclic amine chemistry:

  • Pyridine is a reasonable base and nucleophile because its lone pair is available for protonation or bond formation without disrupting aromaticity (pKa\text{p}K_a of conjugate acid ≈ 5.255.25).
  • Pyridine is less basic than typical alkylamines (e.g., triethylamine, pKa\text{p}K_a10.710.7) because the lone pair is in an sp2sp^2 orbital, which holds electrons more tightly than the sp3sp^3 orbital of an alkylamine.
  • Pyridine is much more basic than pyrrole because protonation doesn't cost any aromatic stabilization.

For EAS reactivity, pyridine behaves opposite to pyrrole. The electronegative nitrogen withdraws electron density from the ring through both inductive and resonance effects, making pyridine less reactive than benzene. EAS on pyridine is difficult and occurs at the C-3 position (meta to nitrogen), where deactivation is least severe. Nucleophilic aromatic substitution, on the other hand, is favored at C-2 and C-4.

Quick comparison: Pyrrole = lone pair in the π\pi system → electron-rich ring, very weak base. Pyridine = lone pair outside the π\pi system → electron-poor ring, moderate base.

Structure and aromaticity of pyrrole, Organic chemistry 28: Aromaticity - electrophilic aromatic substitution

Heterocyclic amines vs other compounds

Many biologically important heterocycles combine features of both pyrrole-type and pyridine-type nitrogens. Recognizing which nitrogen is which tells you almost everything about the molecule's basicity and reactivity.

Imidazole (\ceC3H4N2\ce{C3H4N2})

  • Five-membered ring with two nitrogen atoms
  • Aromatic with 6 π\pi electrons: one nitrogen is pyrrole-like (lone pair donated to the π\pi system), and the other is pyridine-like (lone pair in the ring plane, available for protonation)
  • The pyridine-like nitrogen makes imidazole a decent base (pKa\text{p}K_a of conjugate acid ≈ 6.956.95)
  • Displays tautomerism: a proton shifts between the two nitrogens, interconverting which nitrogen is pyrrole-like and which is pyridine-like
  • Found in the amino acid histidine, where it acts as an acid-base catalyst in enzyme active sites

Thiazole (\ceC3H3NS\ce{C3H3NS})

  • Five-membered ring with one nitrogen and one sulfur atom
  • Aromatic with 6 π\pi electrons: 4 from double bonds and 2 from sulfur's lone pair (sulfur plays the pyrrole-like role here)
  • The nitrogen is pyridine-like, with its lone pair available for protonation, but thiazole is less basic than imidazole (pKa\text{p}K_a of conjugate acid ≈ 2.52.5) because sulfur is less effective at donating electron density than a pyrrole-type nitrogen
  • Found in the structure of thiamine (vitamin \ceB1\ce{B1})

Pyrimidine (\ceC4H4N2\ce{C4H4N2})

  • Six-membered ring with two nitrogen atoms, both pyridine-like
  • Aromatic with 6 π\pi electrons from three double bonds
  • Less basic than pyridine (pKa\text{p}K_a of conjugate acid ≈ 1.31.3) because the second nitrogen further withdraws electron density from the ring
  • Even less reactive toward EAS than pyridine for the same reason
  • Forms the core of the nucleic acid bases cytosine, thymine, and uracil

Electronic effects in heterocyclic amines

The reactivity and basicity patterns across all these heterocycles come down to how electron density is distributed in the ring.

  • Electron-donating heteroatoms (pyrrole-type nitrogen, sulfur in thiophene/thiazole) increase ring electron density. This activates the ring toward EAS but reduces the basicity of that particular heteroatom since its lone pair is tied up in the π\pi system.
  • Electron-withdrawing heteroatoms (pyridine-type nitrogen) decrease ring electron density. This deactivates the ring toward EAS but makes that nitrogen a viable base and nucleophile.
  • Substituents on the ring follow the same logic as benzene chemistry. Electron-donating groups (\ceOH\ce{-OH}, \ceNH2\ce{-NH2}) increase electron density and direct EAS to specific positions, while electron-withdrawing groups (\ceNO2\ce{-NO2}, \ceCN\ce{-CN}) decrease it.

When a ring contains multiple heteroatoms, the combined electronic effects determine the overall reactivity. Pyrimidine, for example, is doubly deactivated compared to pyridine because two nitrogens are pulling electron density out of the ring.