A mocha heart cake is a two-layer chocolate cake baked in a heart-shaped pan, brushed with espresso syrup, and finished with a silky mocha buttercream that carries both cocoa and coffee. The combination works because coffee deepens the flavor of chocolate rather than competing with it, so the cake tastes rounder and less sweet than a plain chocolate one. This recipe makes a single 8-inch heart cake serving 8 to 10 people, with about 45 minutes of active work and roughly 2 hours of total time including cooling.
Ingredients
- 1 3/4 cups (220 g) all-purpose flour
- 3/4 cup (75 g) unsweetened cocoa powder, plus extra for dusting the pan
- 1 1/2 teaspoons baking soda
- 1/2 teaspoon baking powder
- 1/2 teaspoon fine salt
- 1 3/4 cups (350 g) granulated sugar
- 2 large eggs, room temperature
- 1/2 cup (120 ml) neutral oil, such as canola
- 1 cup (240 ml) buttermilk, room temperature
- 3/4 cup (180 ml) hot brewed coffee or hot water mixed with 2 teaspoons instant espresso powder
- 2 teaspoons vanilla extract
- 1/4 cup (50 g) granulated sugar, for the espresso syrup
- 1/4 cup (60 ml) hot brewed espresso or strong coffee, for the syrup
- 1 cup (225 g) unsalted butter, softened, for the buttercream
- 3 cups (360 g) powdered sugar, sifted
- 1/4 cup (25 g) cocoa powder, sifted, for the buttercream
- 2 to 3 tablespoons (30 to 45 ml) brewed espresso or strong coffee, cooled, for the buttercream
- 1 teaspoon vanilla extract, for the buttercream
- Pinch of fine salt, for the buttercream
- Chocolate curls or cocoa nibs, to finish (optional)
Instructions
- Heat the oven to 350°F (175°C). Grease an 8-inch heart-shaped cake pan with butter, line the base with parchment cut to shape, and dust the sides with cocoa powder, tapping out the excess.
- Whisk the flour, 3/4 cup cocoa, baking soda, baking powder, and salt together in a bowl and set aside.
- In a large bowl, whisk the sugar and eggs for about 2 minutes until slightly pale and thickened. Whisk in the oil and vanilla until smooth.
- Add the dry ingredients in three additions, alternating with the buttermilk in two additions, starting and ending with the dry. Stir each addition just until no streaks of flour remain.
- Whisk in the hot coffee slowly; the batter will be thin, and that is correct. Divide evenly between the pan halves if your heart pan has a divider, or bake as one deep layer if it does not.
- Bake for 35 to 40 minutes, until a toothpick inserted near the center comes out with a few moist crumbs. Rotate the pan halfway through if your oven bakes unevenly.
- Cool in the pan for 10 minutes, then turn out onto a rack to cool completely, about 1 hour. If you baked one deep layer, split it horizontally into two even layers with a serrated knife.
- For the syrup, stir the 1/4 cup sugar into the 1/4 cup hot espresso until dissolved, then let it cool.
- For the buttercream, beat the butter on medium speed for 3 minutes until pale and fluffy. Add the powdered sugar and 1/4 cup cocoa in three additions on low speed, then beat in the vanilla and salt.
- Add the espresso 1 tablespoon at a time until the frosting is spreadable but holds a ridge when you drag a spoon through it. If it turns stiff, add a teaspoon of milk; if loose, chill it for 15 minutes.
- Brush both cut sides of the cake with the cooled espresso syrup. Place the bottom layer on a plate, spread about 3/4 cup of buttercream over it, and set the second layer on top, cut side down.
- Crumb coat the cake with a thin layer of buttercream, chill for 20 minutes, then apply the remaining frosting. Smooth the top and sides, and finish with chocolate curls or cocoa nibs if using.
- Chill the finished cake for at least 30 minutes before slicing so the layers set cleanly. Serve at room temperature for the best texture.
Tips
- If you do not have buttermilk, stir 1 tablespoon lemon juice or white vinegar into 1 cup milk and let it stand for 10 minutes. The batter needs that acidity to react with the baking soda.
- Do not skip the hot coffee in the batter. It blooms the cocoa and makes the chocolate taste deeper; the cake will not taste like coffee once baked.
- The most common mistake is overmixing once the flour goes in, which makes the cake tough and domed. Stop as soon as the streaks disappear.
- If your heart pan is shallow, fill it no more than two-thirds full and bake any excess batter as two cupcakes for 18 to 20 minutes.
Serving Suggestions
Serve slices at room temperature with a spoonful of lightly sweetened whipped cream or a small scoop of vanilla ice cream, which balances the espresso notes. A dusting of cocoa or a few raspberries on the plate adds color without extra sweetness. For a coffee pairing, a plain latte or an espresso works better than a heavily sweetened drink, since the cake is already rich. This cake suits birthdays, Valentine's Day, and anniversaries, and it slices cleanly enough to plate for guests.
Variations
For a white mocha version, replace 1/4 cup of the powdered sugar in the buttercream with white chocolate melted and cooled, and use 1 teaspoon less espresso. A salted mocha finish calls for a pinch of flaky salt scattered over the frosted top just before serving. If you prefer a lighter cake, fold 1/2 cup of whipped cream into the buttercream at the end for a mousse-like frosting, though it will need chilling before slicing. For a boozy adult version, brush the layers with 2 tablespoons of coffee liqueur stirred into the syrup; this is for adults of legal drinking age only. A gluten-free swap using a 1-to-1 gluten-free flour blend works in this batter, but check that the blend contains xanthan gum.
Storage and Reheating
Store the frosted cake covered in the refrigerator for up to 3 days; let slices sit at room temperature for 20 to 30 minutes before eating so the buttercream softens. Unfrosted layers can be wrapped tightly and frozen for up to 2 months, and the whole frosted cake freezes well for up to 1 month if wrapped in plastic and then foil; thaw overnight in the refrigerator. Leftover buttercream keeps refrigerated for 5 days or frozen for 2 months, and it needs rewhipping after thawing. Do not microwave frosted slices, as the buttercream will split; if you want a warm slice, microwave it for 10 seconds only, uncovered.
Frequently Asked Questions
Can I make this without a heart-shaped pan?
Yes. Bake the batter in two 8-inch round pans for 25 to 30 minutes, then cut a heart template from parchment and trim each cooled layer with a small knife. The scraps can be crumbled over ice cream.
Why did my cake sink in the middle?
Usually the batter was underbaked or the leaveners were stale. Check the cake at the low end of the time range with a toothpick, and test your baking soda and powder by stirring a pinch into vinegar or hot water to see if it fizzes.
Can I use decaf coffee?
Yes. Decaffeinated brewed coffee or decaf espresso powder works in both the batter and the frosting, and the flavor is nearly identical.
How far ahead can I make it?
The cake can be baked and frozen up to 2 months ahead, and the frosted cake can be made 1 day ahead and refrigerated. Add any fresh fruit garnish just before serving.
Can I use instant coffee instead of brewed?
Yes, dissolve 2 teaspoons of instant espresso or coffee powder in 3/4 cup hot water for the batter, and use a little more dissolved in water for the buttercream. Adjust the amount to taste, since instant brands vary in strength.
Is the cake very sweet?
The coffee and cocoa temper the sugar, but it is still a dessert cake. If you want it less sweet, reduce the powdered sugar in the buttercream by 1/2 cup and add a pinch more salt.