Mechanism Lab Open the app

Nucleophilic acyl substitution

Base-catalyzed transesterification

How the Base-catalyzed transesterification 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: Ester, R′O⁻ (cat. NaOMe or KOH/ROH), alcohol in excess. Conditions: MeOH, 25–65 °C. Bonds formed: new C–OR′ ester; bonds broken: C–OR (original alkoxy). Stereochemistry: No stereocentre at carbonyl; reversible, driven by excess alcohol. Rate and selectivity: Addition of alkoxide is rate-limiting; equilibrium (Le Chatelier).

At a glance

ReagentsEster, R′O⁻ (cat. NaOMe or KOH/ROH), alcohol in excess
Solvent / conditionsMeOH, 25–65 °C
Bonds formednew C–OR′ ester
Bonds brokenC–OR (original alkoxy)
StereochemistryNo stereocentre at carbonyl; reversible, driven by excess alcohol
Rate / selectivityAddition of alkoxide is rate-limiting; equilibrium (Le Chatelier)

Step 1: Alkoxide adds to C=O

+OOOδ⁻OOO1 · ALKOXIDE ADDS TO C=OmethoxideCH₃O⁻NUCLEOPHILEethyl acetateC₄H₈O₂ELECTROPHILEtetrahedral alkoxideC₅H₁₁O₃⁻INTERMEDIATESame intermediate as in ester saponification, with a different nucleophile.

An alkoxide attacks the electrophilic carbonyl carbon of an ester, forming a tetrahedral alkoxide intermediate — identical in shape to the intermediate in ester hydrolysis, just with a different incoming nucleophile.

Step 2: Original alkoxide leaves

+OOOOOO2 · ORIGINAL ALKOXIDE LEAVEStetrahedral alkoxideC₅H₁₁O₃⁻INTERMEDIATEmethyl acetateC₃H₆O₂PRODUCTethoxideC₂H₅O⁻LEAVING GROUPEither OR group can leave; the equilibrium follows the excess alcohol.

The original alkoxy group is expelled as the C=O reforms, exactly mirroring nucleophilic acyl substitution's addition-elimination pattern.

Step 3: Biodiesel: triglyceride → methyl ester

+NaOMe (cat.)50–65 °C+ROOOHOHOHROOOHOHOH3 · BIODIESEL: TRIGLYCERIDE → METHYL ESTERglyceride (acyl chain R)SUBSTRATEmethanol (excess)REAGENTfatty acid methyl ester (biodiesel)PRODUCTglycerolBYPRODUCTRepeated three times per triglyceride; glycerol separates as a second phase.

The net effect swaps one ester's alkoxy group for another — this exact reaction is how triglycerides are converted into biodiesel by reaction with methanol, swapping out glycerol for methoxy groups.

Abbreviations and terms

R
R group. Any carbon substituent (alkyl, aryl…) whose identity does not matter for the mechanism.
MeOH
Methanol. Polar protic solvent (also a nucleophile in solvolysis).
NaOMe
Sodium methoxide. Alkoxide base matched to methyl esters.
KOH
Potassium hydroxide. Strong aqueous/alcoholic base.

How it compares with related reactions

Base-catalyzed transesterificationAcid-catalyzed amide hydrolysisAmide synthesis from an acid chloride and amine
ReagentsEster, R′O⁻ (cat. NaOMe or KOH/ROH), alcohol in excessAmide, H₃O⁺ (HCl or H₂SO₄), H₂OBenzoyl chloride, methylamine, aqueous NaOH
ConditionsMeOH, 25–65 °C6 M acid, reflux (hours)CH₂Cl₂ / H₂O (biphasic), 0–25 °C
StereochemistryNo stereocentre at carbonyl; reversible, driven by excess alcoholNo stereocentre created; α-stereocentres retainedNo stereocentre; planar amide
Rate / selectivityAddition of alkoxide is rate-limiting; equilibrium (Le Chatelier)Water attack / C–N cleavage rate-limiting; far slower than ester hydrolysisVery fast; base neutralises HCl so the amine is not lost as its salt

Test yourself

Try to answer each question before opening it.

Which reagents and conditions are typical for the Base-catalyzed transesterification?

Ester, R′O⁻ (cat. NaOMe or KOH/ROH), alcohol in excess. Conditions: MeOH, 25–65 °C.

Which bonds are formed and which are broken?

Formed: new C–OR′ ester. Broken: C–OR (original alkoxy).

What is the stereochemical outcome?

No stereocentre at carbonyl; reversible, driven by excess alcohol

What controls the rate or the selectivity?

Addition of alkoxide is rate-limiting; equilibrium (Le Chatelier)

Study guides that help with this reaction

Related mechanisms

Step through it interactively, then test yourself in Quiz