Atomora3D SandboxReaction LabAll reactions

Carboxylic acids and derivatives

Acid chlorides, anhydrides, esters, amides and nitriles all turn into each other through one mechanism: nucleophilic acyl substitution. Learn the reactivity ladder and you can predict which conversions work.

28 reactions in 7 families.

Making carboxylic acidsGrignard + CO₂, hydrolysis, oxidation
Interconversions (acyl substitution)Swap the leaving group
HydrolysisWater makes the acid
ReductionsLiAlH₄ all the way, DIBAL stops at the aldehyde
OrganometallicsGrignard adds twice, Gilman once
NitrilesThe C≡N cousin of carboxylic acids
Decarboxylationβ-keto acids lose CO₂

1. Nucleophilic acyl substitution

Like aldehydes and ketones, these carbonyls get attacked at the C=O carbon. The difference: they have a leaving group attached (Cl, OCOR, OR, NH₂). So after the nucleophile adds, the C=O comes back and kicks the leaving group out.

add (tetrahedral intermediate) → eliminate (leaving group leaves)

The net result is a swap: the nucleophile replaces the leaving group, and the C=O survives.

2. The reactivity ladder

acid chloride > anhydride > ester ≈ carboxylic acid > amide (> carboxylate)

Better leaving group = more reactive. Cl⁻ is a great leaving group; NH₂⁻ is terrible.

Going down the ladder is easy

Any derivative can be turned into one below it just by adding the right nucleophile (acid chloride + alcohol → ester).

Going up the ladder needs help

To go up, first convert to the acid (hydrolysis), then to the acid chloride (SOCl₂), and then come back down.

3. Carboxylic acids are acids

The O–H of a carboxylic acid has a pKa of about 4–5, so any base (even NaHCO₃) removes it, making a carboxylate. That's why strong nucleophiles like Grignards or amines just deprotonate a carboxylic acid instead of attacking the C=O. To make an amide from an acid, you need a coupling agent (DCC) or the acid chloride.

Making carboxylic acids

4. Making carboxylic acids

The main routes to the acid itself.

Grignard + CO₂Adds one carbon
Nitrile hydrolysisAlso adds one carbon (from CN⁻)

Grignard carboxylation

1) Mg, ether 2) CO₂ 3) H₃O⁺

The Grignard attacks CO₂, making a carboxylic acid with one more carbon.

+1 carbonFrom an alkyl or aryl halide
Brbromobenzene→1) Mg, ether 2) CO₂ 3) H₃O⁺OHObenzoic acid
  • 1-bromobutane → pentanoic acid
  • 2-bromopropane → 2-methylpropanoic acid

Won't work if the molecule has an O–H or N–H (it destroys the Grignard).

Mechanism in the explorer

Nitrile hydrolysis

H₃O⁺, heat (or NaOH, heat; then H₃O⁺)

C≡N is hydrolyzed to COOH (through an amide).

Via the amide+1 C if the nitrile came from CN⁻
Nbenzonitrile→H₃O⁺, heat (or NaOH, heat; then H₃O⁺)OHObenzoic acid
  • pentanenitrile → pentanoic acid
  • phenylacetonitrile → phenylacetic acid

Two-step route to add a carbon: RX + NaCN, then hydrolyze.

Mechanism in the explorer

Interconversions (acyl substitution)

5. Interconversions (acyl substitution)

Move down the reactivity ladder, or use SOCl₂ and coupling agents to go up.

Down the ladderJust add the nucleophile
Acid → acid chlorideSOCl₂
Acid → amide directlyDCC

Acid chloride formation

SOCl₂ (or (COCl)₂, PCl₅)

Converts a carboxylic acid into an acid chloride, the top of the ladder.

Up the ladderSO₂ and HCl leave
OOHbutanoic acid→SOCl₂ (or (COCl)₂, PCl₅)ClObutanoyl chloride
  • benzoic acid → benzoyl chloride
  • acetic acid → acetyl chloride

Once you have the acid chloride, you can make anything below it.

Mechanism in the explorer

Fischer esterification

ROH (excess), H₂SO₄ (cat.), heat

Acid + alcohol ⇌ ester + water, catalyzed by acid.

ReversibleUse excess alcoholRemove water
OOHacetic acid→ethanol, H₂SO₄OOethyl acetate
  • benzoic acid (CH₃OH, H₂SO₄) → methyl benzoate
  • 4-hydroxybutanoic acid (H₂SO₄ (intramolecular)) → γ-butyrolactone
  • propanoic acid (CH₃OH, H₂SO₄) → methyl propanoate

It's an equilibrium (Le Chatelier): use excess alcohol or remove water to push it forward.

Mechanism in the explorer

Acid chloride → ester

ROH, pyridine

The alcohol replaces Cl, making an ester. Pyridine soaks up the HCl.

Fast, irreversibleDown the ladder
ClOacetyl chloride→CH₃OH, pyridineOOmethyl acetate
  • benzoyl chloride (ethanol, pyridine) → ethyl benzoate
  • butanoyl chloride ((CH₃)₂CHOH, pyridine) → isopropyl butanoate

Much faster and more complete than Fischer esterification.

Mechanism in the explorer

Acid chloride → amide

RNH₂ (2 equiv) or RNH₂ + pyridine

The amine replaces Cl, making an amide. The second equivalent of amine neutralizes HCl.

2 equiv amineDown the ladder
ClObenzoyl chloride→CH₃NH₂ (2 equiv)NHON-methylbenzamide
  • acetyl chloride (NH₃ (2 equiv)) → acetamide
  • butanoyl chloride ((CH₃)₂NH (2 equiv)) → N,N-dimethylbutanamide

With only 1 equivalent, half the amine gets protonated by HCl and stops reacting.

Mechanism in the explorer

Anhydride formation

RCOO⁻ Na⁺ (on an acid chloride)

A carboxylate replaces Cl, making an anhydride.

Down the ladder
ClOacetyl chloride→sodium acetateOOOacetic anhydride
  • benzoyl chloride (sodium acetate) → acetic benzoic anhydride

Anhydrides react like milder acid chlorides.

Mechanism in the explorer

Anhydride reactions

ROH or RNH₂

Anhydrides acylate alcohols and amines, releasing a carboxylic acid.

Milder than acid chlorides
OHOOHsalicylic acid→acetic anhydrideOOOOHacetylsalicylic acid (aspirin)
  • aniline (acetic anhydride) → acetanilide
  • acetic anhydride (CH₃OH) → methyl acetate + acetic acid

Aspirin is made this way.

Mechanism in the explorer

Transesterification

R'OH (excess), H⁺ or R'O⁻

Swaps the alcohol part of an ester.

EquilibriumUse excess new alcohol
OOmethyl acetate→ethanol (excess), H⁺OOethyl acetate
  • ethyl benzoate (CH₃OH (excess), H⁺) → methyl benzoate

If you use a base, match it to the alcohol (NaOEt with ethanol) to avoid mixtures.

Mechanism in the explorer

DCC coupling

R'NH₂, DCC

Joins a carboxylic acid and an amine directly into an amide.

Acid + amine → amideUsed for peptides
OOHacetic acid→aniline, DCCONHN-phenylacetamide (acetanilide)
  • benzoic acid (CH₃NH₂, DCC) → N-methylbenzamide

Acid + amine alone just makes a salt (acid–base). DCC is what makes the amide form.

Mechanism in the explorer

Ester aminolysis

NH₃ or RNH₂, heat

An amine replaces the OR group, making an amide.

SlowDown the ladder
OOmethyl acetate→NH₃, heatNH₂Oacetamide
  • ethyl benzoate (CH₃NH₂, heat) → N-methylbenzamide + ethanol

It works (amides are lower on the ladder) but is much slower than using the acid chloride.

Mechanism in the explorer

Hydrolysis

6. Hydrolysis

Every derivative hydrolyzes back to the carboxylic acid, from very fast (acid chlorides) to very slow (amides).

Acid chloridesFast, just water
EstersAcid (reversible) or base (saponification)
AmidesStrong acid or base, long heating

Acid chloride hydrolysis

H₂O

Water replaces Cl: fast, no catalyst needed.

Very fast
ClOacetyl chloride→H₂OOOHacetic acid
  • benzoyl chloride → benzoic acid

Acid chlorides must be kept away from moisture.

Mechanism in the explorer

Acidic ester hydrolysis

H₃O⁺, heat (excess water)

The reverse of Fischer esterification: ester + water ⇌ acid + alcohol.

ReversibleExcess water
OOethyl acetate→H₃O⁺, heat (excess water)OOHOH+acetic acid + ethanol
  • methyl benzoate → benzoic acid + methanol

Use lots of water to push it to the acid.

Mechanism in the explorer

Saponification

1) NaOH, H₂O, heat 2) H₃O⁺

Base hydrolysis of an ester. Irreversible, because the acid is immediately deprotonated.

IrreversibleMakes soap from fats
OOethyl benzoate→1) NaOH, H₂O, heat 2) H₃O⁺OHOOH+benzoic acid + ethanol
  • methyl acetate → acetic acid + methanol
  • γ-butyrolactone → 4-hydroxybutanoic acid

Needs a full equivalent of base (it's consumed). Acidify at the end to get the free acid.

Mechanism in the explorer

Amide hydrolysis

H₃O⁺, heat (long) or NaOH, heat

Breaks the very stable C–N bond to give the acid and the amine.

SlowHarsh conditions
NHON-methylacetamide→H₃O⁺, heatOOHCH₃NH₃++acetic acid + CH₃NH₃⁺
  • acetanilide (H₃O⁺, heat) → acetic acid + anilinium

Amides are so stable that this needs hours of heating, which is why proteins don't fall apart in water.

Mechanism in the explorer

Reductions

7. Reductions

Hydride adds twice with strong reagents, or once with bulky, controlled ones.

LiAlH₄ + ester or acid1° alcohol
LiAlH₄ + amideAmine
DIBAL-H, −78 °CAldehyde
NaBH₄Doesn't reduce these

LiAlH₄ on esters and acids

1) LiAlH₄ 2) H₃O⁺

Reduces esters and carboxylic acids all the way to 1° alcohols.

2 hydrides1° alcohol
OOmethyl benzoate→1) LiAlH₄ 2) H₃O⁺OHCH₃OH+benzyl alcohol + methanol
  • butanoic acid → butan-1-ol
  • γ-butyrolactone → butane-1,4-diol

You can't stop at the aldehyde with LiAlH₄. Use DIBAL-H for that.

Mechanism in the explorer

LiAlH₄ on amides

1) LiAlH₄ 2) H₂O

Reduces an amide's C=O to CH₂, making an amine.

C=O → CH₂Amine product
ONN,N-dimethylacetamide→1) LiAlH₄ 2) H₂ONN,N-dimethylethanamine
  • benzamide → benzylamine
  • N-methylbenzamide → N-methylbenzylamine

The nitrogen stays; the oxygen is what leaves. That's the opposite of esters.

Mechanism in the explorer

DIBAL-H on esters

1) DIBAL-H, −78 °C 2) H₂O

Adds just one hydride to an ester, stopping at the aldehyde.

One hydrideColdAldehyde
OOethyl butanoate→1) DIBAL-H, −78 °C 2) H₂OObutanal
  • methyl benzoate → benzaldehyde
  • γ-butyrolactone → oxolan-2-ol (lactol)

It must be kept cold, or it goes on to the alcohol.

Mechanism in the explorer

LiAlH(Ot-Bu)₃ on acid chlorides

LiAlH(Ot-Bu)₃, −78 °C

A bulky, weaker hydride reduces an acid chloride to an aldehyde and stops.

AldehydeBulky hydride
ClObenzoyl chloride→LiAlH(Ot-Bu)₃, −78 °CObenzaldehyde
  • butanoyl chloride → butanal

Same idea as DIBAL, but for acid chlorides.

Mechanism in the explorer

Organometallics

8. Organometallics

Carbon nucleophiles on acyl compounds.

2 RMgBr + ester3° alcohol
R₂CuLi + acid chlorideKetone
RMgBr + nitrileKetone

Grignard + ester

1) 2 RMgBr 2) H₃O⁺

Two R groups add, making a 3° alcohol (two identical R's).

2 equivalents3° alcohol
OOmethyl benzoate→1) 2 CH₃MgBr 2) H₃O⁺OH2-phenylpropan-2-ol
  • ethyl acetate (1) 2 CH₃CH₂MgBr 2) H₃O⁺) → 3-methylpentan-3-ol

You can't stop at the ketone.

Mechanism in the explorer

Grignard + acid chloride

1) 2 RMgBr 2) H₃O⁺

Same as with esters: two additions, 3° alcohol.

2 equivalents3° alcohol
ClOacetyl chloride→1) 2 CH₃MgBr 2) H₃O⁺OH2-methylpropan-2-ol
  • benzoyl chloride (1) 2 CH₃MgBr 2) H₃O⁺) → 2-phenylpropan-2-ol

If you want the ketone, use a Gilman reagent instead.

Mechanism in the explorer

Gilman reagent + acid chloride

R₂CuLi, then H₂O

A cuprate adds once to an acid chloride and stops at the ketone.

Stops at ketoneSofter nucleophile
ClObutanoyl chloride→(CH₃)₂CuLiOpentan-2-one
  • benzoyl chloride ((CH₃)₂CuLi) → acetophenone
  • acetyl chloride ((CH₃CH₂)₂CuLi) → butan-2-one

Make the cuprate from 2 RLi + CuI.

Mechanism in the explorer

Nitriles

9. Nitriles

Nitriles hydrolyze to acids, reduce to amines or aldehydes, and react with Grignards to make ketones.

MakeNaCN + RX, or dehydrate an amide
Same oxidation level asCarboxylic acid

Nitrile from an alkyl halide

NaCN (DMSO), SN2

Cyanide does SN2 on a methyl, 1° or 2° alkyl halide.

SN2+1 carbon
Br1-bromobutane→NaCN (DMSO), SN2Npentanenitrile
  • benzyl bromide → phenylacetonitrile
  • 1-bromopropane → butanenitrile

Hydrolyze the nitrile afterward to get a carboxylic acid with one more carbon.

Mechanism in the explorer

Nitrile + Grignard

1) RMgBr 2) H₃O⁺

The Grignard adds once to the C≡N, making an imine salt that hydrolyzes to a ketone.

KetoneAdds once only
Nbenzonitrile→1) CH₃MgBr 2) H₃O⁺Oacetophenone
  • pentanenitrile (1) CH₃MgBr 2) H₃O⁺) → hexan-2-one
  • benzonitrile (1) CH₃CH₂MgBr 2) H₃O⁺) → propiophenone

Another way to make ketones without over-addition.

Mechanism in the explorer

Nitrile reduction (LiAlH₄)

1) LiAlH₄ 2) H₂O

Two hydrides reduce C≡N to CH₂NH₂, a 1° amine.

1° amineCH₂NH₂
Npentanenitrile→1) LiAlH₄ 2) H₂ONH₂pentan-1-amine
  • benzonitrile → benzylamine
  • phenylacetonitrile → 2-phenylethan-1-amine

The amine carbon came from the nitrile carbon, so it keeps the extra carbon from CN⁻.

Mechanism in the explorer

Nitrile reduction (DIBAL-H)

1) DIBAL-H 2) H₂O

One hydride adds; hydrolysis gives an aldehyde.

AldehydeOne hydride
Npentanenitrile→1) DIBAL-H 2) H₂OOpentanal
  • benzonitrile → benzaldehyde

LiAlH₄ gives the amine; DIBAL gives the aldehyde.

Mechanism in the explorer

Amide dehydration

SOCl₂ (or P₄O₁₀, POCl₃)

Removes water from a 1° amide (–CONH₂), making a nitrile.

1° amides only–H₂O
NH₂Obenzamide→SOCl₂ (or P₄O₁₀, POCl₃)Nbenzonitrile
  • butanamide → butanenitrile

Only works with –CONH₂ (two H's on N).

Mechanism in the explorer

Decarboxylation

10. Decarboxylation

A carboxylic acid with a C=O two carbons away loses CO₂ easily on heating.

NeedsC=O at the β position
MechanismSix-membered cyclic transition state

Decarboxylation

heat (on a β-keto acid or malonic acid)

Loses CO₂ through a six-membered transition state, giving an enol that tautomerizes.

Needs β C=OCO₂ gas leaves
OOOH3-oxobutanoic acid (acetoacetic acid)→heat (on a β-keto acid or malonic acid)OOCO+acetone + CO₂
  • propanedioic acid (malonic acid) → acetic acid + CO₂
  • 2-methyl-3-oxobutanoic acid → butan-2-one + CO₂

Ordinary carboxylic acids don't decarboxylate. Look for that second C=O two carbons away.

Mechanism in the explorer

11. Reaction explorer

Every reaction in the same layout: reagents, what it does, the key facts, examples, the mechanism and the trap.

12. Cheat sheet

Every reaction in this chapter on one table. Scroll sideways on a phone.

ReactionFamilyReagentsWhat it doesKey facts
Grignard carboxylationMaking carboxylic acids1) Mg, ether 2) CO₂ 3) H₃O⁺The Grignard attacks CO₂, making a carboxylic acid with one more carbon.+1 carbon, From an alkyl or aryl halide
Nitrile hydrolysisMaking carboxylic acidsH₃O⁺, heat (or NaOH, heat; then H₃O⁺)C≡N is hydrolyzed to COOH (through an amide).Via the amide, +1 C if the nitrile came from CN⁻
Acid chloride formationInterconversions (acyl substitution)SOCl₂ (or (COCl)₂, PCl₅)Converts a carboxylic acid into an acid chloride, the top of the ladder.Up the ladder, SO₂ and HCl leave
Fischer esterificationInterconversions (acyl substitution)ROH (excess), H₂SO₄ (cat.), heatAcid + alcohol ⇌ ester + water, catalyzed by acid.Reversible, Use excess alcohol, Remove water
Acid chloride → esterInterconversions (acyl substitution)ROH, pyridineThe alcohol replaces Cl, making an ester. Pyridine soaks up the HCl.Fast, irreversible, Down the ladder
Acid chloride → amideInterconversions (acyl substitution)RNH₂ (2 equiv) or RNH₂ + pyridineThe amine replaces Cl, making an amide. The second equivalent of amine neutralizes HCl.2 equiv amine, Down the ladder
Anhydride formationInterconversions (acyl substitution)RCOO⁻ Na⁺ (on an acid chloride)A carboxylate replaces Cl, making an anhydride.Down the ladder
Anhydride reactionsInterconversions (acyl substitution)ROH or RNH₂Anhydrides acylate alcohols and amines, releasing a carboxylic acid.Milder than acid chlorides
TransesterificationInterconversions (acyl substitution)R'OH (excess), H⁺ or R'O⁻Swaps the alcohol part of an ester.Equilibrium, Use excess new alcohol
DCC couplingInterconversions (acyl substitution)R'NH₂, DCCJoins a carboxylic acid and an amine directly into an amide.Acid + amine → amide, Used for peptides
Ester aminolysisInterconversions (acyl substitution)NH₃ or RNH₂, heatAn amine replaces the OR group, making an amide.Slow, Down the ladder
Acid chloride hydrolysisHydrolysisH₂OWater replaces Cl: fast, no catalyst needed.Very fast
Acidic ester hydrolysisHydrolysisH₃O⁺, heat (excess water)The reverse of Fischer esterification: ester + water ⇌ acid + alcohol.Reversible, Excess water
SaponificationHydrolysis1) NaOH, H₂O, heat 2) H₃O⁺Base hydrolysis of an ester. Irreversible, because the acid is immediately deprotonated.Irreversible, Makes soap from fats
Amide hydrolysisHydrolysisH₃O⁺, heat (long) or NaOH, heatBreaks the very stable C–N bond to give the acid and the amine.Slow, Harsh conditions
LiAlH₄ on esters and acidsReductions1) LiAlH₄ 2) H₃O⁺Reduces esters and carboxylic acids all the way to 1° alcohols.2 hydrides, 1° alcohol
LiAlH₄ on amidesReductions1) LiAlH₄ 2) H₂OReduces an amide's C=O to CH₂, making an amine.C=O → CH₂, Amine product
DIBAL-H on estersReductions1) DIBAL-H, −78 °C 2) H₂OAdds just one hydride to an ester, stopping at the aldehyde.One hydride, Cold, Aldehyde
LiAlH(Ot-Bu)₃ on acid chloridesReductionsLiAlH(Ot-Bu)₃, −78 °CA bulky, weaker hydride reduces an acid chloride to an aldehyde and stops.Aldehyde, Bulky hydride
Grignard + esterOrganometallics1) 2 RMgBr 2) H₃O⁺Two R groups add, making a 3° alcohol (two identical R's).2 equivalents, 3° alcohol
Grignard + acid chlorideOrganometallics1) 2 RMgBr 2) H₃O⁺Same as with esters: two additions, 3° alcohol.2 equivalents, 3° alcohol
Gilman reagent + acid chlorideOrganometallicsR₂CuLi, then H₂OA cuprate adds once to an acid chloride and stops at the ketone.Stops at ketone, Softer nucleophile
Nitrile from an alkyl halideNitrilesNaCN (DMSO), SN2Cyanide does SN2 on a methyl, 1° or 2° alkyl halide.SN2, +1 carbon
Nitrile + GrignardNitriles1) RMgBr 2) H₃O⁺The Grignard adds once to the C≡N, making an imine salt that hydrolyzes to a ketone.Ketone, Adds once only
Nitrile reduction (LiAlH₄)Nitriles1) LiAlH₄ 2) H₂OTwo hydrides reduce C≡N to CH₂NH₂, a 1° amine.1° amine, CH₂NH₂
Nitrile reduction (DIBAL-H)Nitriles1) DIBAL-H 2) H₂OOne hydride adds; hydrolysis gives an aldehyde.Aldehyde, One hydride
Amide dehydrationNitrilesSOCl₂ (or P₄O₁₀, POCl₃)Removes water from a 1° amide (–CONH₂), making a nitrile.1° amides only, –H₂O
DecarboxylationDecarboxylationheat (on a β-keto acid or malonic acid)Loses CO₂ through a six-membered transition state, giving an enol that tautomerizes.Needs β C=O, CO₂ gas leaves

13. Practice

Which family?

Read the reagents, pick the familyStreak: 0

Predict the product

What forms?Streak: 0

Which reagents?

What gets you from left to right?Streak: 0

Multi-step synthesis

Pick the route that makes the productStreak: 0

Draw the arrows

Tap where the electrons start (an atom with a lone pair, or a bond), then tap where they go (an atom or a bond). When a π bond attacks, tap the bond, then the atom it attacks.

Streak: 0

Target

Reagent flashcards

Ready for harder practice?

In the Reaction Lab there are no answer choices: you type the reagents yourself or draw the product yourself, and get told exactly what went wrong.

Want mixed questions from every chapter? Try exam mode.

14. Common traps

"NaBH₄ reduces esters."

No. It only reduces aldehydes and ketones. Use LiAlH₄ (to the alcohol) or DIBAL-H (to the aldehyde).

"A Grignard + ester gives a ketone."

The ketone reacts faster than the ester, so a second equivalent adds: you get a 3° alcohol.

"Carboxylic acid + amine → amide."

Mixing them just makes an ammonium carboxylate salt. Use DCC, or go through the acid chloride.

"LiAlH₄ turns amides into alcohols."

Amides become amines: the O leaves, and N stays.

"Fischer esterification goes to completion."

It's an equilibrium. Excess alcohol or removing water pushes it forward.

"Saponification needs only a catalytic amount of base."

The base is consumed (it ends up as the carboxylate), so you need a full equivalent, plus acid at the end.

"Any carboxylic acid loses CO₂ when heated."

Only β-keto acids and malonic acids, which can use a six-membered cyclic transition state.