What is a heterocyclic compound?
A cyclic compound has its atoms in a ring. In a carbocyclic ring, all ring atoms are carbon (like benzene). In a heterocyclic ring, at least one ring atom is another element, called a hetero atom. The most common are nitrogen (N), oxygen (O) and sulfur (S).
Common simple ones: pyridine (C₅H₅N, 6-membered, one N), pyrrole (C₄H₅N, 5-membered, N–H), furan (C₄H₄O, 5-membered, one O), thiophene (C₄H₄S, 5-membered, one S).
Pyridine vs benzene
Pyridine looks like benzene with one C–H changed into N. Both are flat 6-membered rings with six π electrons shared round the ring, so both are aromatic and stable.
- Atoms: benzene C₆H₆; pyridine C₅H₅N.
- Lone pair: benzene has none. Pyridine's N has a lone pair in the plane of the ring, pointing outward. It is not part of the shared cloud, so it is free to accept H⁺: pyridine is a weak base. Benzene is not basic.
- Polarity: N pulls electrons harder than C, so pyridine is polar. It mixes with water; benzene does not.
- Reactions: the electron-hungry N makes the ring poorer in electrons, so pyridine reacts with electrophiles (like nitration) much more slowly than benzene and needs harsher conditions.
- Smell and use: pyridine has a sharp, unpleasant smell and is a useful solvent; benzene is a toxic hydrocarbon solvent.
Five-membered rings: furan, pyrrole, thiophene
Here the hetero atom gives two electrons (a lone pair) to the shared cloud, and each of the four carbons gives one. Total six, so these rings are aromatic too. Because the lone pair is used in the ring, the N of pyrrole is not basic. Order of aromatic stability: thiophene > pyrrole > furan. These rings react with electrophiles faster than benzene does.
Heterocycles in drugs, dyes and bioactive substances
- Vitamins: vitamin B3 (niacin) has a pyridine ring; vitamin B1 has pyrimidine and thiazole rings.
- Blood and leaves: haem (in haemoglobin) and chlorophyll are built from four pyrrole units.
- DNA and RNA: the bases A, G (purines) and C, T, U (pyrimidines) are heterocycles with nitrogen.
- Drugs: many antibiotics (penicillin), pain-killers, anti-malarials and anti-cancer drugs contain N, O or S rings. Caffeine and nicotine are heterocyclic alkaloids.
- Dyes: indigo and several colourants have heterocyclic rings.
- Sugars: glucose and fructose in ring form contain an oxygen atom in the ring.
Over half of all known medicines contain at least one heterocycle, which is why chemists study them so much.
Try it
In the 3D, look at the pyridine ring and say aloud how many hydrogen atoms it has (five). Switch on the electron cloud and find the blue lone pair that is not inside the cloud. Then tap pyrrole and find the N–H. Predict: which of these two has a lone pair free to grab a hydrogen ion? Check against the pictures.
Key formulas and definitions
- Pyridine C₅H₅N | Pyrrole C₄H₅N | Furan C₄H₄O | Thiophene C₄H₄S
- Benzene C₆H₆ → replace one C–H by N → pyridine C₅H₅N
- Aromatic ring: flat, cyclic, 6 π electrons in the shared cloud (4n + 2 with n = 1)
- Pyridine + H⁺ → pyridinium ion (weak base)
Worked examples
1. Count the carbon, hydrogen and nitrogen atoms in pyridine, and write its formula.
The ring has 5 carbons and 1 nitrogen. Each carbon holds one hydrogen, the nitrogen holds none. So 5 C, 5 H, 1 N: C₅H₅N.
2. Why is pyridine a weak base but benzene is not?
The N atom of pyridine has a lone pair in the ring plane that is not part of the π cloud, so it can accept H⁺. Benzene has no atom with a lone pair.
3. Count the π electrons in pyrrole and say whether it is aromatic.
Each of the 4 carbons gives 1 electron (4) and the nitrogen gives its lone pair (2). Total 6 π electrons in a flat ring, so pyrrole is aromatic.
4. Why does pyrrole not behave as a base the way pyridine does?
In pyrrole the nitrogen's lone pair is part of the shared 6-electron cloud. If it took H⁺ the ring would lose its aromatic stability, so pyrrole is not basic.
Common mistakes
- Thinking a hetero atom means any atom. Hetero atoms in rings are mainly N, O and S.
- Writing pyridine as C₆H₅N. It has only 5 carbons: C₅H₅N.
- Saying pyrrole is basic like pyridine. Its lone pair is used in the ring.
- Saying aromatic means 'has a smell'. It means a flat ring with 6 shared π electrons.