Enolate Chemistry Section 96 of 123

Malonic and acetoacetic ester

the why on every wrong step

11 min readfree

Say you want butanoic acid, CH3CH2CH2COOH, and you plan to make it by putting an ethyl group on the α carbon of acetic acid. The α carbon is the carbon bonded to the C=O. The obvious starting ester is ethyl acetate, but its α hydrogens are hard to remove: their pKa is near 25. Only a very strong, bulky base such as LDA (lithium diisopropylamide) removes them fully, at −78 °C. A smaller base such as ethoxide removes only a trace, and that enolate attacks another ester molecule instead (a Claisen condensation).

Diethyl malonate gets round this. Its CH2 sits between two ester carbonyls, so sodium ethoxide removes one of its hydrogens easily. That carbon takes the ethyl group. Later, one of the two esters is removed completely, as CO2, and butanoic acid is left.

The carbonyl that leaves was never wanted in the product. It was there only to make one hydrogen acidic. A group put into a molecule to make one step possible, and removed once that step is done, is called an activating group. This is the clearest example of one in the course.

This section covers two sequences built on that idea. The malonic ester synthesis starts from diethyl malonate and makes carboxylic acids. The acetoacetic ester synthesis starts from ethyl acetoacetate and makes methyl ketones.

Why two carbonyls

Compare the three esters in the figure. In ethyl acetate the α carbon touches one carbonyl. In diethyl malonate and ethyl acetoacetate it sits between two. When a base removes a hydrogen from that carbon, the negative charge spreads onto both carbonyl oxygens instead of one. A more spread-out charge means a more stable anion, and so a more acidic hydrogen. The anion is an enolate, like those in Alpha hydrogens & enolates, but with two carbonyls to share the charge. That chapter draws its resonance forms.

ethyl acetateone C=O beside the CH₃CH₃COOEtαdiethyl malonatetwo C=O beside the CH₂EtOCOCH₂COOEtαethyl acetoacetatetwo C=O beside the CH₂CH₃COCH₂COOEtα
The highlighted carbon in each is the α carbon.
Compoundα pKaDeprotonated by
Ester~25LDA, and even then awkwardly
Ketone~20LDA
Diethyl malonate~13Sodium ethoxide
Ethyl acetoacetate~11Sodium ethoxide

Each pKa unit is a factor of ten. So 13 against 25 is twelve units, which makes the malonate hydrogen about 1012 times more acidic. That is the difference between needing LDA at −78 °C and getting by with the alkoxide that matches your solvent.

Malonic ester synthesis → a carboxylic acid

Here is the whole route to butanoic acid, one step per panel of the figure below.

  • NaOEt removes one α hydrogen (panel 1). Use the alkoxide that matches the ester: ethoxide with an ethyl ester, methoxide with a methyl one. A different alkoxide swaps itself into the ester (transesterification) and turns the starting material into a mixture.
  • CH3CH2Br then reacts with this stabilized enolate in an SN2 (panel 2). The lone pair on the α carbon forms a bond to the CH2 of the halide, and bromide leaves. The product, diethyl ethylmalonate, still has one α hydrogen (panel 3).
  • H3O+, heat hydrolyzes both esters to COOH groups (panel 4). The product, ethylmalonic acid, has two COOH groups on one carbon. It is a 1,3-diacid: number its three-carbon backbone and the two acid carbons are C1 and C3.
  • The same heating then removes one COOH as CO2 (panels 5 and 6). Losing CO2 this way is called decarboxylation. The next section explains how it works.
1 · NaOEt takes an α Hdiethyl malonateCHHCO₂EtCO₂EtEtO⁻α carbon2 · C⁻ attacks CH₃CH₂–BrSN2: Br⁻ leavesC⁻CO₂EtCO₂EtHCH₂CH₃Br3 · diethyl ethylmalonateone α H is left, so steps 1–2can add a second groupCCH₂CH₃HCO₂EtCO₂Etnew C–C4 · H₃O⁺: both esters → COOHethylmalonic acid, a 1,3-diacid(two EtOH are lost)CCOOHCOOHCH₂CH₃H5 · heat: a six-atom ringthe COOH that leaves gives its Hto the other C=OHOCCCOOHOCH₂CH₃H6 · the enol → butanoic acidCH₃CH₂ came from the halideCH₂–COOH came from malonateCCOHOHCH₂CH₃Han enol, + CO₂CH₂CH₃CH₂COOH
Diethyl malonate plus ethyl bromide gives butanoic acid. Follow the highlighted α carbon: it takes the ethyl in panel 2, keeps it through the hydrolysis, and loses one of its two carboxyls in panel 5.

The figure draws the anion with its negative charge on carbon, because carbon is the atom that forms the new bond. In the real anion that charge is shared with both carbonyl oxygens.

Some courses write the hydrolysis as two operations: NaOH in water to saponify the esters, then H3O+ and heat. That comes to the same thing, because the acid has to be free before it can decarboxylate.

The general product is R–CH2–COOH, where R is the group from the halide. Malonate's CH2 has two acidic hydrogens, so you can repeat NaOEt and a second halide, R′–X, before the hydrolysis. That gives R(R′)CH–COOH. Two groups is the limit.

Why the decarboxylation works

Ordinary carboxylic acids survive heating. Ethylmalonic acid does not. Look at panel 5 above. The molecule curls so that six atoms form a ring: the H of one COOH, that COOH's oxygen and carbon, the α carbon, and the other carboxyl's carbon and C=O oxygen.

This is not the molecule falling apart in the heat. It is a cyclic proton transfer: three pairs of electrons move at once, all the same way round that ring.

  • The C=O π electrons of the carboxyl that stays reach the H and make a new O–H bond.
  • The old O–H electrons become the second C=O bond of CO2.
  • The C–C bond from the α carbon to the leaving carboxyl breaks. Its electrons move over to make a C=C between the α carbon and the carbon of the carboxyl that stays.

CO2 leaves as a gas. What remains is an enol: a C=C with OH on one of its carbons (here two OH groups, because that carbon came from a carboxyl). The enol quickly shifts to the more stable C=O form, and the α carbon picks up a hydrogen as it does (panel 6). That shift is the keto–enol tautomerization from Alpha hydrogens & enolates.

You met this ring for β-keto acids in Carboxylic acids. It needs a second carbonyl β to the carboxyl, which means bonded to the α carbon. That carbonyl can be a ketone or another carboxyl. The acetoacetic route passes through a true β-keto acid. The malonic route passes through a substituted malonic acid, which is a 1,3-diacid, not a keto acid. The ring and the outcome are the same; only the names differ.

A carbonyl in any other position does not work. The electrons of the breaking C–C bond must flow into a C=O right next to them. In an α-keto acid the ring would have only five atoms, and in a γ-keto acid seven. Neither has a second C=O beside the α carbon to take the electrons, and a plain carboxylic acid has none at all.

β-keto acid: loses CO₂ on warminga C=O sits beside the α carbonCH₃COCH₂COOHαβbreaksα-keto acid: nothe α carbon is the C=O carbon,with no other C=O beside itCH₃COCOOHαbreaksγ-keto acid: nothe α carbon’s neighbor is CH₂,not a C=OCH₃COCH₂CH₂COOHαβγbreaks
The highlighted bond is the one that would break. The Greek letters count carbons outward from the COOH.

This is also why the esters must be hydrolyzed first. The ring closes through the carboxyl O–H, and an ester has no O–H.

Two alkylations, one dihalide: a ring

Treat diethyl malonate with two equivalents of NaOEt and one of 1,4-dibromobutane, Br–CH2CH2CH2CH2–Br.

The first alkylation uses one end of the chain (panel 1 below). It is intermolecular: it happens between two molecules. The α carbon now carries a four-carbon chain with a bromine on its far end.

The second NaOEt removes the last α hydrogen. The new anion attacks the far end of its own chain, and bromide leaves (panel 2). Both ends of this SN2 are in one molecule, so it is intramolecular, and it closes a ring.

Hydrolysis and heat then give cyclopentanecarboxylic acid (panel 3).

1 · NaOEt, one end of the chainfirst SN2: a 4-bromobutyl groupis on the α carbonCCO₂EtCO₂EtHBr234512 · NaOEt again: the chain closessecond SN2, inside one moleculeC⁻CO₂EtCO₂EtBr23453 · a five-membered ringcyclopentanecarboxylic acidCCO₂EtCO₂Et12345H₃O⁺, heatCOOH
The numbers 1 to 5 follow the same atoms through all three panels. Atom 1 is the malonate α carbon.
Count the ring before you answer. It holds the malonate α carbon plus every carbon of the dihalide chain. So 1,4-dibromobutane gives a five-membered ring, and 1,5-dibromopentane gives a six.

Acetoacetic ester synthesis → a methyl ketone

Ethyl acetoacetate, CH3COCH2CO2Et, has a ketone on one side of its CH2 and an ester on the other. It is the product of the Claisen condensation of ethyl acetate (Claisen reactions).

Run the same steps on it with ethyl bromide. NaOEt, then CH3CH2Br, puts the ethyl on the CH2 (panel 1 below). H3O+ hydrolyzes the ester to a COOH, which makes a β-keto acid. Heat removes that COOH as CO2 through the same six-atom ring, but this time the ketone oxygen takes the H (panel 2). The enol then becomes pentan-2-one (panel 3).

1 · NaOEt, then CH₃CH₂Brthe α carbon takes the ethylCH₃COCH₂CO₂Etethyl acetoacetateCH₃COCHCO₂EtCH₂CH₃2 · H₃O⁺, heat: the β-keto acidthe ketone C=O takes the Hthis timeHOCCCOCH₃OCH₂CH₃H3 · the enol → pentan-2-oneCH₃CH₂ came from the halidethe rest came from acetoacetateCCOHCH₃CH₂CH₃Han enol, + CO₂CH₂CH₃CH₂COCH₃
Ethyl acetoacetate plus ethyl bromide gives pentan-2-one. The ketone is never touched: only the ester side is hydrolyzed and lost as CO₂.

The ketone survives because it cannot be hydrolyzed. Only an ester has an OR group that water can replace with OH, so only the ester side becomes a carboxyl and leaves.

The general product is a methyl ketone, R–CH2–CO–CH3: a ketone with a CH3 on one side. The CH3–CO and the CH2 come from acetoacetate, and R comes from the halide. As with malonate, the CH2 can take two groups.

One starting material decides the product class. Malonate has two esters, loses one carboxyl and keeps the other as the acid. Acetoacetate has one ester and one ketone, loses the ester's carboxyl and keeps the ketone. Learn which compound goes with which product, and the rest of both sequences is identical.

The SN2 limit, which is the real constraint

Try diethyl malonate with tert-butyl bromide, (CH3)3C–Br. The carbon that holds the bromine carries three methyl groups, which block the back-side approach an SN2 needs (SN2). So the anion takes a hydrogen from one of the methyls instead. The electrons of that C–H bond form the new C=C, and bromide leaves. This is an E2 elimination (E2). You get 2-methylpropene, and the malonate back unchanged.

the C⁻ takes an H instead (E2)C⁻CO₂EtCO₂EtHHCH₂CCH₃CH₃Brwhat you get backno new C–C bond on the α carbonCH₂CCH₃CH₃+ diethyl malonate+ Br⁻2-methylpropene
Three curved arrows, one E2. The anion ends up with a hydrogen, not a new carbon group.

The general rule follows. The alkylation is an SN2 by a stabilized enolate, so the halide must be methyl, primary, allylic or benzylic. Allylic means the carbon next to a C=C; benzylic means the carbon next to a benzene ring. A secondary halide reacts slowly, and elimination competes. A tertiary halide gives only elimination, because the anion is a base as well as a nucleophile.

So a question asking for a carboxylic acid with a tertiary group on the α carbon cannot be answered with a malonic ester synthesis, however neat the disconnection looks. Check the halide, not the target.

Reading a target backwards

Worked example — make 4-methylpentanoic acid, (CH3)2CH–CH2–CH2–COOH

Find the α carbon. It is the CH2 next to the COOH. It carries two hydrogens and one substituent, so this needs one alkylation.

Cut the bond from it to its substituent (top of the figure). The piece that keeps the COOH, CH2–COOH, is what malonate supplies. The other piece, –CH2CH(CH3)2 (isobutyl), names the halide: 1-bromo-2-methylpropane.

Check the halide. It is primary. It branches at the next carbon along, so its SN2 is slower than an unbranched primary halide's. It is not secondary, though, so the reaction still works.

Write the sequence. (1) NaOEt, EtOH; (2) (CH3)2CHCH2Br; (3) H3O+, heat.

Check the trap. 3,3-Dimethylbutanoic acid, (CH3)3C–CH2–COOH, differs only in where the branching sits. Its cut hands you a tert-butyl group (bottom of the figure), so it would need tert-butyl bromide. That halide is tertiary, so this target has no route.

4-methylpentanoic acidhalide: (CH₃)₂CHCH₂Br, primaryOOHαfrom the halidefrom malonate3,3-dimethylbutanoic acidhalide: (CH₃)₃CBr, tertiary: no routeOOHαfrom the halidefrom malonate
The dashed mark cuts the bond from the α carbon to its substituent. Top: a route. Bottom: the near miss with no route.

The general method: find the α carbon of the target acid. It must still carry at least one hydrogen, because the decarboxylation puts one there. Cut the bond from it to each substituent. Each cut names one alkyl halide. Whatever is left, the α carbon with its hydrogen and its COOH, is always malonate's. A methyl ketone reads the same way: cut the substituents off the carbon next to the C=O on the side away from the CH3, and CH2–CO–CH3 (CH–CO–CH3 after two alkylations) is left for acetoacetate.

What carries forward

Every route runs the same four steps: deprotonate, alkylate, hydrolyze, decarboxylate. The SN2 step limits all of them. When a target is a carboxylic acid or a methyl ketone with a substituent on the α carbon, look for the halide that installed it.