Chemistry
How Aromaticity Dictates the Acidity of Pyrrole versus Pyridine
Quick fact
Pyrrole is about 10^16 times more acidic than ammonia, while pyridine is a weak base. The key is that in pyrrole, the nitrogen lone pair is part of the aromatic sextet, so protonation would destroy aromaticity, making the N–H proton readily lost. In pyridine, the lone pair is not part of the aromatic system, so it can accept a proton without losing aromaticity.
Why this is interesting
You might expect pyrrole, with an NH group, to be a base like ammonia. Yet pyrrole is actually more acidic than many alcohols. How can a nitrogen-containing compound be acidic?
Read the full explanation
Understanding How Aromaticity Dictates the Acidity of Pyrrole versus Pyridine
To understand this, think about aromaticity: a molecule is aromatic if it is cyclic, planar, and has a continuous ring of p orbitals containing 4n+2 π electrons. For pyrrole, the nitrogen is sp2 hybridized, and its lone pair occupies a p orbital that is parallel to the p orbitals of the four carbon atoms of the ring. This lone pair participates in the π system, giving a total of 6 π electrons (4 from the two double bonds, 2 from the lone pair). This makes pyrrole aromatic. If pyrrole were to accept a proton on nitrogen, it would form a new N–H bond using that lone pair, removing it from the aromatic system. The resulting cation would no longer be aromatic (it would have only 4 π electrons), which is highly destabilizing. Therefore, pyrrole does not act as a base; instead, its N–H proton can be removed by a strong base, because the resulting anion is aromatic (the negative charge becomes part of the 6 π electron system). Pyridine, on the other hand, has a nitrogen that is part of the ring, but its lone pair is in an sp2 orbital that lies in the plane of the ring, perpendicular to the p orbitals. This lone pair does not participate in the π system; the aromatic sextet comes from the six p electrons of the carbon and nitrogen atoms. Thus, pyridine can use that lone pair to bind a proton without affecting aromaticity, making it a base—but a weaker base than alkylamines because the lone pair is held more tightly in an sp2 orbital.
A deeper explanation
The key is the electron demand of aromaticity. Aromaticity requires a continuous ring of p orbitals with 4n+2 π electrons. In pyrrole, the nitrogen contributes two π electrons via its lone pair. If a proton binds to nitrogen, that lone pair is used to form the N–H bond, leaving only four π electrons in the ring, breaking the aromatic stabilization. The energy penalty for losing aromaticity is so great that the conjugate acid is very unstable. Conversely, deprotonation of pyrrole removes the N–H proton, leaving a lone pair that is in the p orbital and contributing two electrons, giving a 6 π electron aromatic system (the cyclopentadienyl-like anion). This is highly favorable, so pyrrole has a pKa around 23 in DMSO, making it acidic. In pyridine, the aromatic sextet is formed by the three π bonds in the ring; the nitrogen's lone pair lies in the plane and is not involved. Protonation only adds a positive charge to the ring but does not remove any π electrons—it still has 6 π electrons. So, pyridine can act as a base, but it is a weaker base than alkylamines because the lone pair is in an sp2 orbital, which is more electronegative and holds electrons closer to the nucleus, making them less available for donation. This explains why pyrrole is acidic and pyridine is basic, a direct consequence of aromaticity dictating the role of the lone pair.