Skip to main content
Chemistry LibreTexts

Acetoacetic Ester Synthesis

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Acetoacetic ester (ethyl acetoacetate) is an extremely useful molecule that can be used to make ketones and other molecules. You’ll even use this later on in amino acid synthesis, so let’s break down the way it reacts.

    From Beta-Ketoester to Ketone:

    1521473836293.webpHow do we accomplish this transformation

    Enolate Formation


    Labeled alpha-carbons

    See those two carbonyls there? Each carbonyl has something called an alpha-carbon, and each alpha-carbon has hydrogens that are easily abstracted. The pKa of the green alpha-hydrogen is about 20, and the pKa of the blue alpha-hydrogen is actually about 10. Why? Because of the resonance structures the anions can form!

    1521473888593.webpGreen enolate resonance structures

    1521473894871.webpBlue enolate resonance structures

    Whenever you have a beta-dicarbonyl like this one, the enolate will preferentially form on the shared alpha-carbon. The anion on the blue alpha-carbon above can form more resonance structures than the anion on the green alpha-carbon can, so the blue hydrogen’s pKa will be lower (more acidic).

    That all sounds cool, but can we just use any ol’ base to form our enolate? Definitely not! Let’s say we were to try using NaOH. Instead of forming the enolate, we’d actually wind up with a competing reaction: saponification, a type of nucleophilic acyl substitution. Notice that the hydroxide replaces the ethoxy group.

    1521473930637.webpabridged saponification mechanism

    So, how can we specifically avoid that type of acyl substitution? We can use a bulky base like LDA or the anionic version of our alkoxy group! See how we’ve got an ethoxy group (—OEt) in our starting material? In order to prevent any substitutions of that group, we can actually use NaOEt. Those ethoxy groups are totally exchanging, but the same molecule is produced.

    1521473974459.webpFischer esterification with sodium ethoxide

    1521473997849.webpMethylene enolate formation

    Enolate Alkylation

    Okay, cool! These enolates are pretty good at SN2 reactions. They can act as nucleophiles on alkyl halides, acyl (acid) chlorides, and more! Let’s try adding a propyl group.

    1521474072556.webpEnolate alkylation


    Once we’ve got our alkyl group on there, we can actually get rid of the ester entirely through a mechanism called decarboxylation if we want to. All it takes is some heat and a little bit of aqueous acid. It could be written a ton of different ways—H2SO4 (aq), HCl (aq), or even generically as H3O+.

    1521474128094.webpAcid-catalyzed ester hydrolysis

    First we hydrolyze the ester to make a beta ketoacid, and then we heat things up to lose CO2. After acidic hydrolysis, the enol (vinyl alcohol) that results will tautomerize back into a substituted ketone.

    1521474168959.webp Tautomerization and decarboxylation

    Boom! There’s our product, a substituted ketone, in the green box! Not so bad, right? Of course, there are tons of different ways to use this molecule. We’ve just walked through the steps for a single alkylation, but there’s nothing stopping us from adding different groups.

    Adding Two Alkyl Groups

    We’ve added one alkyl group, but what if we want to add another one? Well, we just have to follow the same steps! So, let’s start from the beginning. Let’s first add a propyl group and then an ethyl group. Once we’ve added the propyl group, all we need to do is add another equivalent of base and then the ethyl group. Here’s what the order of reagents looks like:

    1521474242469.webpDouble alkylation reagents

    And here’s what the mechanism would look like:

    1521474276176.webpDouble alkylation mechanism

    Adding Cyclic Alkyl Groups

    Okay, but what if we want to add a cyclic group to our molecule? Well, luckily that’s not so bad either. We just need a molecule that has two leaving groups at terminal positions. Basically, it’s going to be very similar to the double alkylation but with just one equivalent of our alkyl molecule being added. Here’s what the reagents look like: Cyclic-alkylation-reagents1521474303961.webpCyclic alkylation reagents

    And here’s what the mechanism looks like:

    1521474404931.webpCyclic alkylation mechanism

    Adding Acyl Groups

    Let’s take a step back and use the same enolate we used in the alkylation, but let’s use an acyl chloride instead of an alkyl halide this time. This follows basically the same pattern as the alkylation, but I’m going to rotate the acetoacetic ester a little bit and highlight the acid chloride so that it’s easier to follow.

    1521474427617.webpEnolate acylation mechanism

    See how we just followed the same pattern? Form the enolate, provide an electrophile, and cleave off the ester by adding acid and heating it up!


    • Johnny Betancourt, Clutchprep. Source page can be accessed here.

    This page titled Acetoacetic Ester Synthesis is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Johnny Betancourt.

    • Was this article helpful?