Organic Chemistry · Benzene and Aromaticity
Aromatic Heterocycles: Pyridine and Pyrrole
On this page 9 sections
In 30 seconds
A Heterocycle Ring containing at least one non-carbon atom Full entry → is a ring containing at least one atom other than carbon. An Aromatic heterocycle Heterocycle meeting the aromaticity rules (4n+2 π electrons, planar, sp²) Full entry → must pass benzene's test: a planar ring of sp² atoms, a continuous p-orbital loop, and 4n+2 π electrons. This topic focuses on the two textbook extremes — pyridine (C₅H₅N, SMILES c1ccncc1) and pyrrole (C₄H₅N, SMILES c1cc[nH]c1) — plus their relatives furan (c1ccoc1) and thiophene (c1ccsc1).
Both are genuinely aromatic six-π-electron rings, but the lone pair's placement gives them opposite personalities. In pyridine the lone pair sits in the ring plane, free to accept a proton: pyridine is a weak base that resists electrophilic attack (a π-deficient ring). In pyrrole the lone pair occupies the p orbital and is required to complete the aromatic sextet: pyrrole is essentially nonbasic but electron-rich and hyper-reactive toward electrophiles (a π-excessive ring).
Why this matters
Aromatic heterocycles are the scaffolding of biochemistry and drug discovery: the DNA/RNA bases pyrimidine and purine; the amino acids histidine, tryptophan, and proline; nicotine, caffeine, and a large fraction of modern pharmaceuticals. Knowing whether a ring is π-deficient or π-excessive predicts where it reacts and whether it is protonated at physiological pH — a key factor in drug absorption. On exams, "compare pyridine and pyrrole" is a perennial question because the contrast is so clean.
The college version
Core Concepts
The aromaticity checklist with heteroatoms
Aromaticity requires a planar ring, all ring atoms sp² with a p orbital perpendicular to the ring plane, and a continuous p-orbital loop containing 4n+2 π electrons. In pyridine, five carbons and nitrogen each contribute one p electron: 5(1) + 1(1) = 6 π electrons, so 4n+2 = 6 with n = 1. In pyrrole, four carbons contribute one each and nitrogen donates its lone pair: 4(1) + 1(2) = 6 π electrons, again n = 1. The deciding count is whether nitrogen contributes one electron (pyridine) or two (pyrrole).
Where the lone pair lives
Pyridine's nitrogen is sp²: two sp² orbitals form σ bonds to ring carbons, one sp² orbital holds the lone pair in the ring plane, and the p orbital holds the single π electron. Because the lone pair is in a σ-type orbital it is not part of the aromatic sextet and is free to accept a proton — pyridine is a base (pyridinium pKa ≈ 5.2.
Pyrrole's nitrogen uses all three sp² orbitals for σ bonds (two to carbons, one to H), so its lone pair occupies the p orbital, supplying the two electrons that complete the sextet. That pair is "spent": protonation would break aromaticity, so pyrrole is essentially nonbasic (conjugate acid pKa ≈ -3.8). Instead the N–H is weakly acidic (pKa ≈ 17), deprotonated only by very strong bases.
π-deficient versus π-excessive
Nitrogen is more electronegative than carbon, so pyridine's π system is electron-poor — π-deficient. EAS is slow, needs harsh conditions, and occurs preferentially at C-3: attack at C-2 or C-4 would put the arenium ion's positive charge on nitrogen, strongly destabilized. Conversely, the π-deficient ring Ring with an electron-poor π system (pyridine) Full entry → accepts nucleophilic attack at C-2 (e.g., amination with sodium amide, the Chichibabin reaction) — which benzene never undergoes.
Pyrrole is π-excessive: nitrogen donates two electrons into a five-membered ring, so the π system is electron-rich. EAS on pyrrole is extremely fast — far faster than on benzene — and occurs at C-2 (α), because attack there gives an arenium ion whose positive charge can be delocalized onto nitrogen. Strong acids are a hazard: they protonate the ring at C-2, destroying aromaticity and promoting polymerization.
Furan, thiophene, and biological relatives
Furan and thiophene are pyrrole's siblings: oxygen or sulfur donates the lone pair that completes the sextet. Approximate resonance energies (kcal/mol): furan ≈ 16, pyrrole ≈ 22, thiophene ≈ 29, benzene ≈ 36; EAS reactivity follows the reverse order, all at C-2 (α). Biologically, pyrimidine and purine are the DNA/RNA bases, imidazole is histidine's basic side chain (imidazolium pKa ≈ 7), and indole (benzene fused to pyrrole) is tryptophan's side chain, reacting at C-3 like pyrrole.
Common Confusions
| Do Not Confuse | With | The Difference |
|---|---|---|
| Pyridine's lone pair | Pyrrole's lone pair | Pyridine: in-plane sp² orbital, available for protonation (basic). Pyrrole: p orbital, part of the sextet (not basic). |
| "Basic" and "aromatic" | Mutually exclusive labels | Pyridine is both basic and aromatic; pyrrole aromatic but not basic — aromaticity need not involve the lone pair. |
| α/β in five-membered heterocycles | α/β positions of naphthalene | In pyrrole/furan/thiophene, α = next to the heteroatom; in naphthalene, C-1 (α) and C-2 (β) are unrelated meanings. |
| Pyrrole's N–H acidity | Carboxylic-acid acidity | pKa ≈ 17 vs. ≈ 5; needs very strong bases |
| "Pyrrole has a lone pair, so it must be basic" | Reality | The lone pair is consumed by the sextet; protonation would break aromaticity. Favorite exam trap. |

Eli explains
The same idea, in plain words
Explain it like I’m 10
Imagine a ring of six carbons that loves sharing electrons — the "magic" aromatic ring. If a nitrogen keeps its extra electron pair sticking out to the side, we get pyridine: the free pair grabs protons, so pyridine is a weak base. If the nitrogen tucks its pair into the ring to finish the magic six, we get pyrrole: the pair is busy holding the ring together, so pyrrole won't grab protons but eagerly reacts with anything positive.
Worked example
Example 1: Counting π electrons
Verify that pyridine and pyrrole satisfy the Hückel rule. Pyridine: five carbons and nitrogen each contribute one p electron.
5(1) + 1(1) = 6 π electrons 4n + 2 = 6 ⇒ n = 1
Pyrrole: four carbons contribute one p electron each; nitrogen contributes its lone pair (two).
4(1) + 1(2) = 6 π electrons 4n + 2 = 6 ⇒ n = 1
Both rings are aromatic; the difference is where nitrogen's two electrons come from — one p electron in pyridine, a lone pair in pyrrole.
Example 2: Protonation of a pyridine drug at body pH
Drugs cross membranes mainly in their neutral form; pyridinium has pKa = 5.2; use the Henderson–Hasselbalch equation at blood pH 7.4:
pH = pKa + log[B][BH+] ⇒ 7.4 = 5.2 + log[B][BH+]
log[B][BH+] = 2.2 ⇒ [B][BH+] = 102.2 ≈ 1.6 × 102
The ratio is dimensionless (concentration over concentration). Only about 1/(1 + 160) ≈ 0.6% is protonated at pH 7.4 — the drug is mostly neutral and membrane-permeable. At stomach pH 2 the same equation gives log([B]/[BH+]) = -3.2, and the drug is >99.9% protonated and poorly absorbed.
Example 3: Predicting the site of electrophilic attack
When the electrophile bonds to pyridine's C-2, the arenium ion's positive charge can be delocalized onto ring carbons and onto nitrogen; the form carrying positive charge on the electronegative nitrogen is high in energy and destabilizes the intermediate. When it bonds to C-3, every resonance form keeps the charge on carbon, so the C-3 pathway has the lower barrier and wins. The same logic in reverse explains pyrrole: attack at C-2 delocalizes positive charge onto nitrogen, which stabilizes the intermediate.
Key takeaways
- Both are aromatic: planar, sp², 6 π electrons (4n+2, n=1).
- Pyridine's lone pair is in-plane (sp²) → available → basic (pyridinium pKa ≈ 5.2); not part of the π count.
- Pyrrole's lone pair is in the p orbital → part of the π count → not basic (conjugate acid pKa ≈ -3.8); N–H weakly acidic (pKa ≈ 17).
- Pyridine (π-deficient): EAS slow, prefers C-3; nucleophilic substitution at C-2.
- Pyrrole is π-excessive: EAS very fast at C-2 (α); strong acid destroys the ring.
- Furan and thiophene react at C-2; reactivity pyrrole > furan > thiophene > benzene.
- Basicity: pyridinium pKa 5.2 > anilinium 4.6 > pyrrolium −3.8 (pyridine beats aniline: aniline's lone pair is resonance-delocalized).
- Heteroaromatic rings are everywhere: DNA bases, histidine, tryptophan, nicotine, most drug classes.
Check yourself
6 review questions from the chapter. Try each one, then open the answer.
How many π electrons does pyrrole have, and what value of n in the Hückel rule does that correspond to?
Show answer
Six π electrons (four carbons × 1 + nitrogen lone pair × 2); 4n+2 = 6 gives n = 1.
Why is pyridine a base but pyrrole is not?
Show answer
Pyridine's in-plane sp² lone pair is free to accept a proton; pyrrole's is in the p orbital and required for aromaticity, so protonation would destroy the sextet.
Where does EAS occur on pyridine, and why not at C-2?
Show answer
At C-3. Attack at C-2 or C-4 would place the arenium ion's positive charge on the electronegative nitrogen, destabilizing the intermediate.
Predict the major product of nitration of pyrrole (which ring position?).
Show answer
Nitration occurs at C-2 (the α position), the most electron-rich site of this π-excessive ring.
At blood pH 7.4, is a pyridine-containing drug mostly protonated or mostly neutral?
Show answer
Mostly neutral: log([B]/[BH+]) = 7.4 - 5.2 = 2.2, so only about 0.6% is protonated.
Name two biologically important aromatic heterocycles and one role each.
Show answer
Pyrimidine and purine (DNA/RNA bases); imidazole (histidine); indole (tryptophan).
Study tools & related lessonsKey vocabulary · Related
Key vocabulary
- Heterocycle
- Ring containing at least one non-carbon atom
- Aromatic heterocycle
- Heterocycle meeting the aromaticity rules (4n+2 π electrons, planar, sp²)
- π-deficient ring
- Ring with an electron-poor π system (pyridine)
- π-excessive ring
- Ring whose π system is electron-rich (pyrrole, furan)
- Lone pair (in-plane vs. p orbital)
- Nonbonding electrons in the ring plane (available) or in the π system
- Conjugate-acid pKₐ
- Acidity of the protonated ring
- α vs. β position
- Carbon adjacent to the heteroatom (α) versus one bond further (β)
Sources & references
This lesson was adapted from the open educational references above; their licenses and attributions are preserved. See Copyright & Licensing.
Educational content only. It is not medical, legal or professional advice. Found an error? Tell us.

