Mechanism Lab Open the app

Three-component condensation

Mannich reaction

How the Mannich reaction works, in 3 steps. Each step shows the structures and the curved arrows that move the electrons.

Open the interactive version

In short. A 3-step mechanism. Typical reagents: Secondary amine (Me₂NH), formaldehyde, ketone. Conditions: Mildly acidic, EtOH, 25–80 °C. Bonds formed: C–N (iminium), then C–C; bonds broken: C=O of CH₂O; α C–H of ketone. Stereochemistry: Racemic unless chiral catalyst (proline) is used. Rate and selectivity: Iminium formation first; enol attack rate-determining.

At a glance

ReagentsSecondary amine (Me₂NH), formaldehyde, ketone
Solvent / conditionsMildly acidic, EtOH, 25–80 °C
Bonds formedC–N (iminium), then C–C
Bonds brokenC=O of CH₂O; α C–H of ketone
StereochemistryRacemic unless chiral catalyst (proline) is used
Rate / selectivityIminium formation first; enol attack rate-determining

Step 1: Amine + formaldehyde → iminium ion

+H⁺, −H₂ONHOδ⁺δ⁻N1 · AMINE + FORMALDEHYDE → IMINIUM IONdimethylamineC₂H₇NNUCLEOPHILEformaldehydeCH₂OELECTROPHILEiminium ionC₃H₈N⁺ELECTROPHILECarbinolamine forms, then loses water to give CH₂=N⁺Me₂.

An amine and formaldehyde condense first, losing water to form an electrophilic iminium ion — a nitrogen analog of a protonated carbonyl.

Step 2: Enol attacks the iminium carbon

+OHNOHN2 · ENOL ATTACKS THE IMINIUM CARBONacetone enolC₃H₆ONUCLEOPHILEiminium ionC₃H₈N⁺ELECTROPHILEprotonated Mannich baseC₆H₁₄NO⁺INTERMEDIATENew C–C bond; the oxocarbenium is then deprotonated.

The enol form of a ketone (the nucleophile) attacks that iminium carbon exactly as an enol would attack any electrophilic carbon, forming a new C–C bond.

Step 3: Deprotonation gives the Mannich base

++OHNOH₂ONOH₃3 · DEPROTONATION GIVES THE MANNICH BASEprotonated ketoneC₆H₁₄NO⁺INTERMEDIATEwaterH₂OBASE4-(dimethylamino)butan-2-oneC₆H₁₃NOPRODUCThydroniumH₃O⁺BYPRODUCTβ-Amino ketone from three simple components in one pot.

Deprotonation gives the Mannich base — a β-amino ketone — in one pot from three simple starting materials.

Abbreviations and terms

EtOH
Ethanol. Polar protic solvent.
H2
Hydrogen gas. Reductant for catalytic hydrogenation.

How it compares with related reactions

Mannich reactionBetti reactionClaisen condensation of ethyl acetate
ReagentsSecondary amine (Me₂NH), formaldehyde, ketone2-Naphthol, benzaldehyde, NH₃ (or amine)Ethyl acetate (2 equiv), NaOEt (≥ 1 equiv); then H₃O⁺
ConditionsMildly acidic, EtOH, 25–80 °CEtOH, 25–80 °C (neat also works)EtOH, reflux; same alkoxide as ester OR group
StereochemistryRacemic unless chiral catalyst (proline) is usedNew stereocentre; racemic (chiral variants known)None (achiral product)
Rate / selectivityIminium formation first; enol attack rate-determiningIminium formation reversible; C–C bond formation rate-limitingEquilibrium pulled forward by deprotonating the β-keto ester (pKa ≈ 11)

Test yourself

Try to answer each question before opening it.

Which reagents and conditions are typical for the Mannich reaction?

Secondary amine (Me₂NH), formaldehyde, ketone. Conditions: Mildly acidic, EtOH, 25–80 °C.

Which bonds are formed and which are broken?

Formed: C–N (iminium), then C–C. Broken: C=O of CH₂O; α C–H of ketone.

What is the stereochemical outcome?

Racemic unless chiral catalyst (proline) is used

What controls the rate or the selectivity?

Iminium formation first; enol attack rate-determining

Study guides that help with this reaction

Related mechanisms

Step through it interactively, then test yourself in Quiz