Mocha cake combines chocolate and coffee, with the coffee deepening the chocolate flavor rather than making the cake taste like a latte. It is a straightforward layer or sheet cake that suits birthdays, potlucks, or an afternoon dessert with coffee. The key is using instant espresso or strong brewed coffee, not just cocoa, so the chocolate tastes rounder and less sweet.
Ingredients
- 2 cups (250 g) all-purpose flour
- 1 ½ cups (300 g) granulated sugar
- ¾ cup (75 g) unsweetened cocoa powder (natural or Dutch-process; Dutch gives a darker, less acidic crumb)
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 1 teaspoon salt
- 2 large eggs, room temperature
- 1 cup (240 ml) whole milk, room temperature
- ½ cup (120 ml) vegetable oil (or melted coconut oil, which firms the crumb slightly when cool)
- 2 teaspoons vanilla extract
- 1 cup (240 ml) hot strong coffee or 2 tablespoons instant espresso powder dissolved in 1 cup hot water
For the mocha buttercream
- 1 cup (226 g) unsalted butter, softened
- 3 cups (360 g) powdered sugar, sifted
- 2 tablespoons cocoa powder
- 1 tablespoon instant espresso powder dissolved in 2 tablespoons hot water, cooled
- 1 teaspoon vanilla extract
- 2–3 tablespoons heavy cream or milk, as needed
Substitutions and what changes
- No coffee? Use 1 cup hot water plus 1 tablespoon instant coffee granules; the cake will be less mocha, more chocolate.
- Decaf coffee works the same; flavor is identical.
- Buttermilk instead of milk: use 1 cup buttermilk and reduce baking soda to ½ teaspoon; the crumb will be slightly more tender and tangy.
- Gluten-free: swap the flour for a 1:1 gluten-free baking flour that contains xanthan gum; bake 5–10 minutes longer, until a toothpick comes out clean.
- Egg-free: use 2 flax eggs (2 tablespoons ground flax + 6 tablespoons water, rested 10 minutes); the cake will be a bit denser.
Instructions
- Preheat the oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans and line the bottoms with parchment paper.
- In a large bowl, whisk together the flour, sugar, cocoa, baking powder, baking soda, and salt.
- Add the eggs, milk, oil, and vanilla. Beat on medium speed for 1 minute until smooth. The batter will be thick.
- Pour in the hot coffee and mix on low until just combined. The batter will be thin; that is correct.
- Divide the batter evenly between the pans. Bake for 30–35 minutes, until a toothpick inserted in the center comes out with only a few moist crumbs. The cakes should pull away from the pan edges.
- Cool in the pans for 10 minutes, then turn out onto a wire rack and cool completely, about 1 hour.
- Make the buttercream: beat the butter on medium speed until creamy, about 2 minutes. Add the powdered sugar and cocoa, beating on low until combined. Add the espresso mixture and vanilla; beat on medium-high for 2 minutes. Add cream 1 tablespoon at a time until spreadable.
- Frost the cooled cakes: place one layer on a plate, spread about 1 cup of frosting, top with the second layer, and frost the top and sides. For a neater look, apply a thin crumb coat, chill 20 minutes, then finish.
Why the Coffee Matters
Coffee does not make the cake taste like coffee; it enhances the cocoa’s chocolate notes and adds a subtle bitterness that balances sugar. Use hot liquid—coffee or water—because it hydrates the cocoa and helps the baking soda react, producing a lighter crumb. If you skip the coffee entirely and use water, the cake will be flatter and less complex.
Make-Ahead Timeline
You can bake the cake layers up to 2 days ahead. Cool completely, wrap tightly in plastic wrap, and refrigerate. Frost within 24 hours of serving for best texture. The buttercream can be made 3 days ahead and refrigerated in an airtight container; let it sit at room temperature for 30 minutes and rebeat before using. Frosted cake keeps at room temperature for 1 day, or refrigerated for up to 4 days—bring to room temperature before serving.
Storage and Reheating
Store frosted cake in an airtight container at room temperature for up to 2 days, or in the refrigerator for up to 4 days. For longer storage, freeze unfrosted layers (wrapped in plastic and foil) for up to 3 months; thaw in the refrigerator overnight. Frosted cake freezes well for up to 1 month, but thaw in the refrigerator overnight—do not microwave. To serve leftover slices, let them sit at room temperature for 20 minutes; reheating is not recommended because the frosting melts.
Serving and Pairing Ideas
Serve mocha cake with lightly sweetened whipped cream or a scoop of vanilla ice cream. A dusting of cocoa powder or shaved chocolate on top is enough. For a stronger coffee flavor, brush each cake layer with 2 tablespoons of cooled espresso before frosting. This cake pairs well with a dark roast coffee or a cold glass of milk. If you are serving it after a heavy meal, cut smaller slices—it is rich.
What to Do With Leftover Coffee
If you have brewed coffee, use it directly in the batter—just make sure it is hot. Leftover coffee that is cold works too; the cake will be slightly less tender because the baking soda reacts more slowly. For the buttercream, always use freshly dissolved instant espresso; leftover brewed coffee will make the frosting too thin.
How to Tell the Cake Is Done
The cake is done when a toothpick inserted into the center comes out with a few moist crumbs, not wet batter. The top should spring back when lightly pressed. Because cocoa absorbs moisture, the cake may look darker than a vanilla cake; do not rely on color alone. If the edges start to pull away from the pan, it is close—check with the toothpick.
Safe Storage Times
Because this cake contains dairy and eggs, do not leave it at room temperature for more than 2 hours (1 hour if the room is above 90°F/32°C). Refrigerate any leftovers within that window. The cake is safe to eat for up to 4 days refrigerated. If you freeze it, mark the container with the date; frozen cake is best within 3 months. Always check for an off smell or visible mold before serving—if in doubt, throw it out.
Related
- Coconut Cream Pie Ingredients and How to Make It
- Chicken Pozole Ingredients and How to Make It
- Chicken Pozole Soup Ingredients and How to Make It
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).