Nucleophilic Substitution at Carbonyls

The question this page answers: What happens in tetrahedral intermediates that have potential leaving groups?

Deeper reading: Clayden 2e: Chapter 10 Page 197–221, Chapter 11 Page 222–238, Chapter 23 Page 528–534 — see our chapter-by-chapter practice map for Clayden.

The tetrahedral intermediate

What would the tetrahedral intermediate do?

When a nucleophile is added to a carbonyl, a tetrahedral intermediate is formed.

When evaluating the outcome of a reaction, the central question is, what would the tetrahedral intermediate do? In some cases, such as in nucleophilic addition to a ketone under basic conditions, the intermediate can collapse back to the starting materials:

Acetone (labeled carbonyl) plus MeO− gives the tetrahedral intermediate, an alkoxide (CH3)2C(O−)OMe.

Leaving groups and intermediate collapse

What makes the intermediate collapse?

However, if there is a leaving group (LG) attached to the carbonyl C, then it is possible for the tetrahedral intermediate to collapse:

An acyl compound CH3C(=O)LG (carbonyl) plus MeO− gives the tetrahedral intermediate; curved arrows from O− reform the C=O and expel LG−, giving the methyl ester CH3CO2Me (new carbonyl-containing FG) and LG−.

The better the leaving group is, the more unstable the tetrahedral intermediate is, and the more unstable the tetrahedral intermediate is the more likely it is to collapse.

Good leaving groups are generally weak bases:

Decreasing leaving group ability, left to right: C–Cl, C–O–C(=O)R (acyloxy), C–OR. Beside it, increasing basicity, left to right: Cl−, RCO2− (carboxylate), RO−.

Therefore, acid chlorides are more susceptible to substitution than anhydrides and ester.

The outcome of substitution

What does the outcome of substitution depend on?

The outcome of substitution of carbonyl-containing FGs with nucleophiles depends on

In some cases, the equilibrium between carbonyls and tetrahedral intermediates is interrupted by an irreversible step:

Acetamide plus OH− in equilibrium with the tetrahedral intermediate (O−, OH, NH2), which collapses (curved arrows) to acetic acid plus NH2−; an acid-base reaction, labeled irreversible step by pKas, then gives acetate (poor electrophile).

In other cases, after collapsing the tetrahedral intermediate, the carbonyl-containing FG is more reactive than the initial reactant:

Methyl acetate attacked by R− (curved arrows) gives a tetrahedral intermediate that collapses, expelling OMe−, to a ketone CH3C(=O)R; labeled ketone more electrophilic than ester, the ketone is attacked by a second R− to give the alkoxide CH3C(O−)R2.

Creating more reactive carbonyls

How are carboxylic acids made more reactive?

To create more reactive carbonyls, a common approach is to first transform carboxylic acids into acid anhydrides or acid chlorides.

Reacting a carboxylic acid with an acid chloride, or another anhydride, leads to the formation of acid anhydrides:

Two routes to an acid anhydride: acetic acid plus an acid chloride RCOCl (blue) gives the mixed anhydride CH3C(=O)–O–C(=O)R; acetic acid plus an anhydride (RCO)2O (blue) gives the same mixed anhydride.

Reacting a carboxylic acid with halogenation reagents such as thionyl chloride (SOCl2) or PCl5 leads to acid chlorides. These reactions work by converting the OH into a better LG that is substituted by a chloride:

Acetic acid converted to acetyl chloride by SOCl2 (thionyl chloride, left) and, separately, by PCl5 (right).

Imines and enamines

How do amines turn carbonyls into imines or enamines?

In some cases, the carbonyl O is converted into a LG (often H2O) and then leaves the molecule

When primary amines react with ketones or aldehydes under acidic conditions, imines are formed. Imines are more reactive than carbonyls once protonated, and will easily react with water under acidic conditions to convert into carbonyls:

Acetone (ketone) with MeNH2 and non-aqueous H+ gives the N-methyl imine (CH3)2C=NCH3 (imine); H2O with H+ converts the imine back to the ketone.

When secondary amines react with ketones or aldehydes with an alpha-H, an intermediate iminium ion is formed, which then converts into an enamine.

Acetone (ketone) with dimethylamine, remove H2O, gives the iminium ion (CH3)2C=N+(CH3)2 (iminium), which loses H+ to give the enamine CH2=C(CH3)N(CH3)2 (enamine).

Written by Dennis Cao (Macalester College). Last updated November 1, 2026.

Spotted an error, or want a topic covered next? Let us know.