Learn · Organic Chemistry

Esters, Amides and Anhydrides

How to make and react the common carboxylic acid derivatives.

Quick answer Esters, amides and anhydrides are all carboxylic acid derivatives that undergo nucleophilic acyl substitution. They differ in reactivity — anhydrides are highly reactive acylating agents, esters are moderate, and amides are the most stable because the nitrogen lone pair donates strongly into the carbonyl.

A representative example — structures drawn live.

The reactivity ladder

Every carboxylic acid derivative has an acyl group (R–C=O) attached to a leaving group. Reactions happen by nucleophilic acyl substitution: a nucleophile adds to the carbonyl to form a tetrahedral intermediate, which then collapses and kicks out the leaving group. Because of this mechanism, a more reactive derivative can always be converted into a less reactive one, but not the reverse.

The reactivity order, from most to least reactive, is: acid chlorides > anhydrides > esters ≈ carboxylic acids > amides. The trend follows two factors — how good the leaving group is, and how much the attached atom donates electron density back into the carbonyl. A chloride is an excellent leaving group and a poor donor, so acid chlorides sit at the top. Nitrogen is a strong donor and amide (–NR2) is a terrible leaving group, so amides sit at the bottom.

Esters

Esters (R–CO–OR') are among the most common functional groups you will make. There are two main routes:

  • Fischer esterification: a carboxylic acid plus an alcohol under acid catalysis (typically H2SO4). This reaction is reversible and reaches equilibrium, so you drive it forward by using excess alcohol or removing water (Le Châtelier's principle).
  • From acid chlorides or anhydrides: reacting a more reactive derivative with an alcohol gives the ester quickly and irreversibly. This is the preferred lab method when the substrate allows it.

Esters can be converted back to the carboxylic acid two ways. Acidic hydrolysis reverses Fischer esterification (acid + water, reversible). Saponification uses aqueous NaOH: hydroxide adds to the carbonyl, the alkoxide leaves, and the product carboxylic acid is immediately deprotonated to a carboxylate salt. Because that last step is irreversible, saponification goes to completion — this is literally the reaction used to make soap from fats.

Amides

Amides (R–CO–NR'2) are the most stable carboxylic acid derivative. The nitrogen lone pair delocalizes into the carbonyl, giving significant double-bond character to the C–N bond. This resonance is why amides are planar, why they rotate slowly around the C–N bond, and why the nitrogen is essentially non-basic.

You cannot make an amide efficiently by just mixing a carboxylic acid with an amine — the amine is a base and simply deprotonates the acid to form an unreactive salt. Instead, amides are made by treating an acid chloride or anhydride with an amine (a second equivalent of amine, or a base like pyridine, neutralizes the HCl or carboxylic acid byproduct). Because amides are so stable, hydrolyzing them back to the acid requires harsh conditions — hot, strongly acidic or strongly basic water, often for hours.

Anhydrides

Acid anhydrides (R–CO–O–CO–R) are reactive acylating agents — a step below acid chlorides but well above esters. They are made by combining an acid chloride with a carboxylate salt (the carboxylate oxygen attacks the acid chloride). Acetic anhydride is a cheap, common reagent for installing acetyl groups, for example acetylating alcohols and amines (it is the reagent used to make aspirin from salicylic acid).

Because an anhydride carries two acyl groups joined by one oxygen, when a nucleophile attacks, one half becomes the product and the other half leaves as a carboxylate — a decent leaving group, which is why anhydrides are reactive.

Putting it together

The single most useful idea is the reactivity ladder. If you need to make an amide or an ester cleanly, start from an acid chloride or anhydride and add the amine or alcohol. To go the other direction — hydrolyzing a derivative back to the acid — remember that the harder the leaving group is to expel, the harsher the conditions you need: esters hydrolyze under mild acid or base, but amides demand prolonged heating in concentrated acid or base.

Draw this on the whiteboard

Open the OChem Board whiteboard — benzene rings, curved arrows, wedge/dash bonds and a clickable periodic table built in. No account needed.

Open the whiteboard →