Learn · Organic Chemistry

Imines and Enamines

Condensations of aldehydes and ketones with amines — mechanism and why the pH matters.

Quick answer A primary amine plus an aldehyde or ketone gives an imine (C=N) and water. A secondary amine gives an enamine (C=C–N) and water, because it has no N–H left to expel. Both run through a carbinolamine and are acid-catalyzed, best around pH 4–5.

A representative example — structures drawn live.

Two products from one reaction type

Amines are strong nucleophiles, and they add to the electrophilic carbonyl carbon of aldehydes and ketones just as other nucleophiles do. What happens after that initial addition depends entirely on how many hydrogens the nitrogen carries:

  • A primary amine (RNH2) still has an N–H bond after it bonds to carbon. The molecule loses water to form a carbon–nitrogen double bond: an imine (also called a Schiff base), R2C=NR.
  • A secondary amine (R2NH) has only one N–H, and it is consumed when nitrogen bonds to carbon — after losing water there is no N–H left to form the C=N. Instead the molecule takes a proton from the neighboring α-carbon, forming a carbon–carbon double bond conjugated to nitrogen: an enamine, R2C=CR–NR2.

So the single variable "how substituted is the amine" decides whether you make an imine or an enamine. Tertiary amines, having no N–H at all, cannot form either — they can add but have no way to lose water to a stable neutral product.

The shared mechanism up to the carbinolamine

Both reactions begin identically:

  1. Addition. The amine nitrogen attacks the carbonyl carbon; the π electrons move onto oxygen.
  2. Proton transfers. The nitrogen loses its extra proton and the oxygen gains one, giving a neutral carbinolamine (also called a hemiaminal) — a carbon bearing both an –OH and an –NR2/–NHR group.
  3. Protonation of the OH. Acid protonates the hydroxyl, converting it into a good leaving group, water.
  4. Loss of water. Water leaves, generating a resonance-stabilized iminium ion (C=N+).

Only the final deprotonation step differs. For a primary amine, a base removes the proton still sitting on nitrogen to give the neutral imine. For a secondary amine, there is no N–H to remove, so a base instead removes a proton from the α-carbon, and those electrons form the C=C of the neutral enamine.

Why the pH has to be just right

Imine and enamine formation are famously sensitive to pH, and the reason is a tug-of-war between two acid-dependent steps:

  • The dehydration step (losing water from the carbinolamine) needs acid to protonate the –OH. So some acid speeds the reaction.
  • But the amine is a base. In strongly acidic solution the amine becomes protonated to its ammonium form (R–NH3+), which has no lone pair and cannot act as a nucleophile. Too much acid shuts down the very first step.

The sweet spot is a mildly acidic pH of roughly 4–5. There is enough acid to catalyze the loss of water, but not so much that the bulk of the amine is protonated and taken out of play. If the solution is too basic, the –OH never leaves and the reaction stalls at the carbinolamine; if it is too acidic, no free amine is available to react. This bell-shaped rate-vs-pH profile is a classic exam point.

Reversibility and hydrolysis

Every step in these mechanisms is an equilibrium, so both imines and enamines are reversible. Add water and acid, and the reaction runs backward: hydrolysis regenerates the original carbonyl compound and the amine. Because of this, chemists usually drive the forward reaction by removing water as it forms (for example with a Dean–Stark trap or a drying agent), pulling the equilibrium toward the imine or enamine by Le Châtelier's principle. The reversibility is not just a nuisance — it is the basis of using an enamine as a temporary, removable handle.

Enamines as synthetic tools

Enamines are more than curiosities: they are valuable nucleophiles. Because the nitrogen lone pair conjugates into the C=C, an enamine carries significant electron density on its α-carbon, making that carbon nucleophilic. This lets an enamine react with alkyl halides or acyl chlorides at the α-position — the Stork enamine synthesis — effectively alkylating or acylating a ketone at its α-carbon under mild, controllable conditions. After the C–C bond is formed, simple hydrolysis converts the enamine back to a carbonyl, revealing the newly substituted ketone. In this way an enamine serves as a synthetic equivalent of an enolate, often with cleaner mono-substitution.

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 →