This is the espresso cake for people who actually love espresso — not a hint of coffee flavor buried under vanilla and sugar, but a cake where the espresso shot is the point. Two espresso shots go into the batter. The mocha frosting is built on another shot. Every bite tastes like dessert at a serious coffee shop.
What You’ll Need
Serves 10–12 | Prep: 30 min | Bake: 30–35 min | Total: 2.5 hours (with cooling)
Espresso Cake Layers
- 2 cups (240g) all-purpose flour
- 1½ cups (300g) granulated sugar
- 2 tsp baking powder
- ½ tsp baking soda
- ½ tsp fine salt
- ¾ cup (170g) unsalted butter, softened
- 3 large eggs, room temperature
- 1 cup (240ml) whole milk, room temperature
- 2 shots (60ml) espresso, cooled to room temperature
- 2 tsp instant espresso powder
- 1 tsp vanilla extract
Mocha Buttercream Frosting
- 1½ cups (340g) unsalted butter, room temperature
- 3 cups (360g) powdered sugar, sifted
- 3 tbsp unsweetened cocoa powder
- 1 shot (30ml) espresso, cooled
- 1 tsp vanilla extract
- 2–4 tbsp heavy cream
- Pinch of salt
Optional Garnishes
- Chocolate-covered espresso beans
- Dusting of cocoa powder or instant espresso powder
- Dark chocolate shavings
- Crushed espresso cookies
Baking the Espresso Cake
Step 1: Prep
Preheat your oven to 350°F (175°C). Grease two 8-inch round cake pans and line the bottoms with parchment paper. Grease the parchment.
Pull 3 shots of espresso and let cool completely. Warm liquid will melt butter in the batter and make the frosting greasy — this step matters.
Step 2: Mix Dry Ingredients
Whisk together the flour, baking powder, baking soda, and salt in a medium bowl. Set aside.
Step 3: Cream Butter and Sugar
In a large bowl (or stand mixer fitted with the paddle attachment), beat the softened butter and sugar together on medium-high speed for 3–4 minutes until pale, light, and fluffy. This step incorporates air — don’t rush it.
Scrape down the sides, then beat in the espresso powder and vanilla extract.
Step 4: Add Eggs
Add eggs one at a time, beating on medium speed for 30 seconds after each addition. Scrape down the sides as needed. The batter may look slightly curdled — this is fine; it comes together with the flour.
Step 5: Alternate Wet and Dry
With the mixer on low, add the flour mixture in three additions, alternating with the combined milk and espresso in two additions (flour → milk/espresso → flour → milk/espresso → flour). Start and end with flour. Mix just until combined after each addition — overmixing develops gluten and makes the cake tough.
Step 6: Bake
Divide the batter evenly between the two prepared pans (use a kitchen scale for even layers if you have one). Smooth the tops.
Bake for 30–35 minutes, until a toothpick inserted in the center comes out clean and the edges pull slightly away from the pan. The cakes should spring back when lightly pressed.
Step 7: Cool
Let cakes cool in pans on a wire rack for 15 minutes. Then invert onto the rack and peel off the parchment. Cool completely before frosting — at least 1 hour, or wrap and refrigerate if making ahead.
Making the Mocha Buttercream
Step 1: Beat the room-temperature butter alone in a large bowl for 3 minutes on medium-high speed until smooth and almost white. Cold butter creates lumpy frosting.
Step 2: Add the sifted powdered sugar and cocoa powder, starting on low to prevent a cloud of sugar. Once incorporated, increase to medium-high and beat for 2 minutes.
Step 3: Add the cooled espresso shot, vanilla extract, and salt. Beat on medium until fully combined.
Step 4: Add heavy cream one tablespoon at a time, beating and checking consistency. You want the frosting spreadable but firm enough to hold swirls — not runny, not stiff. Two tablespoons is usually right.
Step 5: Taste. If it’s too sweet, add a pinch more salt or a few extra drops of espresso. If too bitter, add more powdered sugar in small amounts.
Assembling the Cake
Step 1: If the cake layers domed during baking, use a serrated knife to level them. Flat layers stack more cleanly and slice better.
Step 2: Place one layer on your serving plate or cake board. Add 1 cup of frosting to the center and spread to the edge, making an even layer.
Step 3: Place the second layer on top. Apply a thin “crumb coat” of frosting all over the cake — this seals in loose crumbs. Refrigerate 20 minutes to set.
Step 4: Apply the final coat of frosting. Work from the top down, spreading frosting over the top first, then pulling it down the sides. Use an offset spatula or bench scraper for a smooth finish, or a spoon for rustic swirls.
Step 5: Garnish with chocolate-covered espresso beans, chocolate shavings, or a dusting of espresso powder. Refrigerate 30 minutes before slicing to set.
Espresso Intensity Guide
| Espresso Amount | Flavor Result | Best For |
|---|---|---|
| 1 shot in batter only | Subtle coffee note | Guests who want “a hint of coffee” |
| 2 shots in batter | Clear espresso flavor | The recipe as written — balanced |
| 2 shots + powder in batter | Bold espresso character | Coffee lovers who want it forward |
| Full recipe + shot in frosting | Full mocha experience | Espresso enthusiasts |
| Extra: espresso syrup soak | Intense, almost tiramisu-like | See variation below |
Variations
Mocha Cake (Chocolate + Espresso)
Add ¼ cup (30g) unsweetened Dutch-process cocoa powder to the batter, replacing the same amount of flour. The result is a dark, dense mocha cake that bridges chocolate and espresso. Use chocolate ganache instead of buttercream for an even more intense version.
Espresso Brownies
Use this recipe’s espresso integration technique, but shift to a brownie format:
- Melt 200g dark chocolate with ½ cup butter
- Whisk in ¾ cup sugar, 3 eggs, 2 espresso shots
- Fold in ¾ cup flour + 1 tbsp espresso powder + ½ tsp salt
- Bake in an 8×8-inch pan at 350°F for 22–25 minutes (should be just set in the center)
- The espresso shots amplify the chocolate flavor and deepen the fudgy texture
Espresso Tres Leches
Make the cake layers as written. Poke holes all over with a skewer. Soak with a mixture of: 1 cup espresso, ½ cup condensed milk, ½ cup heavy cream. Top with lightly sweetened whipped cream. A coffee-forward riff on the classic.
Tiramisu Layer Cake
Soak the cake layers with espresso (2 shots + 2 tbsp sugar, cooled). Frost with mascarpone cream instead of buttercream (see our tiramisu recipe for the mascarpone technique). Dust with cocoa. This is essentially tiramisu in layer cake form.
Espresso Cheesecake
For an espresso cheesecake: mix 2 tbsp espresso powder and 1 shot cooled espresso into a standard cheesecake filling (600g cream cheese, ¾ cup sugar, 3 eggs, ½ cup sour cream). Use crushed chocolate cookies for the crust. Bake in a water bath at 325°F for 60–70 minutes. Chill overnight.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| Cake sank in middle | Underbaked or opened oven too early | Test with toothpick at 30 min; don’t open oven before 25 min |
| Dense, gummy texture | Overmixed batter | Mix just until combined after each flour addition |
| Frosting too runny | Butter too warm or too much liquid | Refrigerate 20 min, then re-beat; add more powdered sugar |
| Frosting lumpy | Butter still cold | Beat butter alone 3–5 min before adding sugar |
| Dry cake | Overbaked | Check at 28 min; pull when toothpick has a few moist crumbs |
| Weak espresso flavor | Espresso not concentrated enough | Add 1 extra tbsp instant espresso powder |
Make-Ahead and Storage
Make ahead: Both layers can be baked, wrapped tightly in plastic, and refrigerated up to 3 days or frozen up to 1 month. Frosting can be made up to 5 days ahead and refrigerated; re-beat before using.
Assembled cake: Refrigerate covered up to 5 days. The espresso flavor actually deepens on day 2 as it settles into the crumb.
Serving: Pull from the refrigerator 30–45 minutes before serving. Cold frosting is firm and tastes muted; room-temperature frosting is creamy and allows the flavors to fully express.
Using Your Espresso Machine
Pull each shot as a ristretto (1:1.5 ratio, ~20ml) for the most concentrated flavor in baking. The slightly smaller volume matters less in cake than the intensity — you want flavor, not moisture.
No machine? Strong moka pot coffee works. Use the darkest roast you have and pack the grounds firmly. The moka pot’s pressure extracts more oils than drip coffee, producing a closer analog to espresso.
For more coffee-flavored desserts, see our tiramisu recipe, coffee ice cream recipe, and affogato recipe.