PossieChem

Explanations / Structure

Why is aniline a weaker base than methylamine? Amines and heterocycles

Four nitrogens, four lone pairs, pKa values of 10.6, 7.0, 5.2 and 4.6. Why do they differ by a factor of a million?

From Organic Chemistry I: Structure, Stereochemistry and Acidity, chapter 8 · 6 min read · 25 November 2026

You need
  • What a pKa means (a small pKa is a strong acid)
  • Resonance and curly arrows
  • Lone pairs and formal charge
  • Hybridisation and s character (sp3, sp2)

All four nitrogens in Figure 1 have a lone pair, and a lone pair is what a base needs to pick up a proton. If basicity were only about having a lone pair, the four would be the same. They are not: in water they differ by a factor of about a million between the best and the worst.

Four nitrogen bases. Methylamine (C1 the CH3 on the NH2 group). Aniline (NH2 on ring carbon C1, ring carbons C2 to C6). Pyridine (ring nitrogen, ring carbons C2 to C6). Imidazole (a five-membered ring with an N–H nitrogen, a second ring nitrogen, and ring carbons C2 between the two nitrogens, C4 and C5).
Figure 1. Methylamine, aniline, pyridine and imidazole. Carbons are numbered in blue; for the rings the nitrogen is position 1 in pyridine and imidazole, and C1 is the carbon bonded to nitrogen in aniline.

The way to measure how basic a nitrogen is: protonate it and ask how readily the ion lets go of the proton again. The pKa of the conjugate acid, the protonated amine, is the number. A high pKa means a strong base. So what makes the other three weaker than methylamine?

Step 1: how the base takes the proton

Figure 2 shows the mechanism for methylamine with the hydronium ion. Arrow 1: the nitrogen lone pair forms a bond to a hydrogen of hydronium. Arrow 2: the O–H bond becomes a lone pair on oxygen. The products are the methylammonium ion and water. Every amine and every heterocycle in this page does exactly this; what changes is how willing the lone pair is.

Methylamine reacting with the hydronium ion. Methylamine (C1 the CH3, nitrogen with a lone pair) below the hydronium ion, one of whose hydrogens is highlighted in orange. One curved arrow runs from the nitrogen lone pair to that hydrogen, a second from the O–H bond to a lone pair on oxygen. An equilibrium arrow leads to the methylammonium ion (C1, N–H hydrogen in orange, pKa about 10.6) and water.
Figure 2. Methylamine takes a proton from hydronium. The pKa of the methylammonium ion, 10.6, measures how strong the base is.

Step 2: the four conjugate acids, side by side

Figure 3 puts the four conjugate acids together. The orange N–H is the one that is lost, and the pKa is what ranks the bases: methylamine 10.6, imidazole 7.0, pyridine 5.2, aniline 4.6. For a base, use the pKa of the protonated form, and not that of the N–H of the neutral amine itself (about 35), which is a hopeless acid.

The conjugate acids of four nitrogen bases, with the N–H that is lost highlighted in orange and carbons numbered in blue. The methylammonium ion (C1), pKa about 10.6. The anilinium ion (NH3 on ring carbon C1, ring carbons C2 to C6), pKa about 4.6. The pyridinium ion (N–H ring nitrogen, ring carbons C2 to C6), pKa about 5.2. The imidazolium ion (two N–H ring nitrogens, ring carbons C2 between them, C4 and C5), pKa about 7.0.
Figure 3. The four conjugate acids and their pKa. Orange: the N–H that gives up its proton.

An alkylamine is the standard. The lone pair sits on the nitrogen, ready, and the alkyl group pushes electrons towards it. The other three have a reason to be weaker or, in one case, a trick to be better than expected.

Step 3: aniline, whose lone pair is busy

In aniline the nitrogen lone pair is not free. Figure 4 shows why. Arrow 1: the lone pair on nitrogen forms an N=C1 double bond. Arrow 2: the C1=C2 π bond moves onto C2 as a lone pair. The nitrogen now carries a positive charge and C2 a negative one. The real aniline is partly like this: the lone pair is spread into the ring, at C2, C4 and C6.

Two resonance forms of aniline (C1 the ring carbon on nitrogen, ring carbons C2 to C6). First form: nitrogen with a lone pair, bonded to C1, an ordinary benzene ring. Second form: the nitrogen is double-bonded to C1 and carries a positive charge, and C2 carries a negative charge as a lone pair. Two curved arrows connect the forms, and a resonance arrow links them.
Figure 4. The lone pair of aniline is shared with the ring. The same pair is needed to hold a proton, and it is more comfortable where it is.

To take a proton, the nitrogen has to give that pair to the hydrogen, and it prefers to keep it in the ring. So aniline (the anilinium ion has a pKa of 4.6) is a base that is a million times weaker than methylamine.

Step 4: pyridine, and a lone pair held tight

In pyridine the nitrogen is part of an aromatic ring, but its lone pair lies in the plane of the ring, at right angles to the π system. It is not part of the aromatic sextet, so it is free to take a proton, and the ring stays aromatic afterwards. Pyridine is still a weaker base than methylamine (5.2 against 10.6) because that lone pair sits in an sp² orbital. An sp² orbital has more s character than an sp³ orbital, the same reasoning as for the C–H of an alkyne, and an s-rich lone pair is held more tightly, so it is less eager to leave.

Step 5: imidazole, a ring base that does better

Imidazole has two nitrogens. The one without a hydrogen is the pyridine-type nitrogen, with a lone pair in the plane of the ring, and that is the one that takes the proton. The ion that forms (Figure 5) is special: the positive charge is shared. Arrow 1: the lone pair on the nitrogen that does not carry the + in the first drawing forms a double bond to C2. Arrow 2: the C2=N π bond moves onto the other nitrogen as a lone pair. The result is the same ion, drawn the other way round.

Two resonance forms of the imidazolium ion (a five-membered ring with two nitrogens, ring carbons C2 between the nitrogens, C4 and C5). In the first form one nitrogen carries the positive charge in a C2=N double bond and the other has a lone pair; in the second form the roles are swapped. Two curved arrows connect the forms, and a resonance arrow links them.
Figure 5. The two forms of the imidazolium ion are equivalent: the +1 is shared by both nitrogens.

A cation whose charge is spread over two atoms is more stable than one with the charge on one, and a more stable conjugate acid means a stronger base: 7.0 for imidazole against 5.2 for pyridine. The effect is the mirror of the carboxylate story, a charge shared between two equivalent atoms.

Key idea. Basicity is the pKa of the conjugate acid: methylamine 10.6, imidazole 7.0, pyridine 5.2, aniline 4.6. A lone pair that is busy in a π system (aniline) or held in an s-rich orbital (pyridine) is a weaker base; a cation that can share its charge (imidazolium) is a better one.

Watch out. Two pKa values belong to an amine. The N–H of the amine itself (a proton leaving a neutral amine, about 35) is a hopeless acid. The N–H of its protonated form (about 11 for an alkylamine) is a decent weak acid. When you want to know how basic an amine is, use the second.

More from Structure