Dinners

Mocha Cake Slice Recipe with Espresso Frosting

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
1 hr 45 min
Prep
30 min
hands-on
Cook
30 min
oven or stovetop
Serves
12
as written

Jump to recipe Save

This mocha cake slice pairs a tender, coffee-scented chocolate cake with a smooth espresso buttercream, making it a fitting dessert for weekend baking, a birthday party, or a make-ahead treat. Serve it plain, with a dusting of cocoa, or alongside a scoop of vanilla ice cream. The cake keeps well for several days, so it is a good choice when you want to bake ahead.

Ingredients

  • 1 3/4 cups (220 g) all-purpose flour
  • 3/4 cup (75 g) unsweetened cocoa powder (natural or Dutch-process)
  • 1 1/2 tsp baking powder
  • 1 1/2 tsp baking soda
  • 1/2 tsp salt
  • 2 cups (400 g) granulated sugar
  • 1 cup (240 ml) buttermilk, at room temperature
  • 1/2 cup (120 ml) strong brewed coffee, cooled (or 1 tbsp instant espresso powder dissolved in 1/2 cup water)
  • 1/2 cup (120 ml) vegetable oil
  • 2 large eggs, at room temperature
  • 2 tsp vanilla extract

For the espresso buttercream

  • 1 cup (226 g) unsalted butter, softened
  • 3 cups (360 g) powdered sugar, sifted
  • 2 tbsp heavy cream or milk
  • 1 tbsp instant espresso powder dissolved in 1 tbsp hot water, cooled
  • 1 tsp vanilla extract
  • Pinch of salt

Instructions

  1. Preheat the oven to 350°F (175°C). Grease and flour a 9×13-inch (23×33 cm) baking pan, or line with parchment paper.
  2. In a medium bowl, whisk together the flour, cocoa powder, baking powder, baking soda, and salt. Set aside.
  3. In a large bowl, whisk the sugar, buttermilk, coffee, oil, eggs, and vanilla until well combined.
  4. Add the dry ingredients to the wet mixture and stir with a spatula until just combined; do not overmix. The batter will be thin.
  5. Pour the batter into the prepared pan and bake for 30–35 minutes, until a toothpick inserted in the center comes out with a few moist crumbs, and the cake springs back when lightly pressed.
  6. Cool the cake in the pan on a wire rack for 20 minutes, then turn out onto the rack to cool completely (about 45 minutes).
  7. While the cake cools, make the buttercream: beat the butter with an electric mixer until creamy, about 2 minutes. Gradually add the powdered sugar, beating on low, then add the cream, espresso mixture, vanilla, and salt. Beat on medium-high for 3–4 minutes until light and fluffy.
  8. Once the cake is completely cool, spread the buttercream evenly over the top. Slice into 12 rectangles. Serve at room temperature.

Doneness Cues

The cake is done when a toothpick inserted in the center comes out with a few moist crumbs (not wet batter), and the top springs back when lightly pressed. The internal temperature of the cake should read about 200°F (93°C) on an instant-read thermometer, but the toothpick test is the most reliable. The buttercream is ready when it holds its shape and is smooth and spreadable.

Storage and Make-Ahead

Store the frosted cake in an airtight container in the refrigerator for up to 4 days. Bring to room temperature before serving for best flavor and texture. The unfrosted cake can be wrapped tightly in plastic wrap and frozen for up to 3 months; thaw overnight in the refrigerator before frosting. The buttercream can be made 2 days ahead and refrigerated in an airtight container; let it soften at room temperature for 30 minutes and re-whip before using.

Scaling the Recipe

Batch Pan size Bake time Yield
Half 8-inch (20 cm) square pan 25–30 min 6 servings
Full 9×13-inch (23×33 cm) pan 30–35 min 12 servings
Double Two 9×13-inch pans 30–35 min per pan 24 servings

For a half batch, halve all ingredients and use the smaller pan. For a double batch, use two pans and bake them on the same rack if they fit, or stagger them; rotate the pans halfway through baking. Check doneness with the toothpick test regardless of pan size.

Equipment and Substitutions

You will need a 9×13-inch (23×33 cm) baking pan, a wire cooling rack, and an electric mixer (hand or stand) for the buttercream. If you do not have buttermilk, use 1 cup (240 ml) milk plus 1 tbsp lemon juice or white vinegar, let sit 5 minutes. For a stronger coffee flavor, increase the espresso powder in the buttercream to 1 1/2 tbsp. For a dairy-free version, use a plant-based buttermilk substitute (e.g., almond milk with vinegar) and a dairy-free butter substitute; note that the texture may be slightly less tender.

Variations

Mocha Layer Cake

Divide the batter between two 9-inch (23 cm) round pans and bake for 25–30 minutes. Double the buttercream recipe and spread between layers and over the top. This yields 12–14 servings.

Mocha Cupcakes

Fill 18–20 muffin cups with paper liners and bake at 350°F (175°C) for 18–22 minutes. Frost as directed. This yields 18–20 cupcakes.

Mocha Sheet Cake with Ganache

Skip the buttercream and pour a warm ganache (1 cup heavy cream heated until simmering, poured over 8 oz/225 g chopped semisweet chocolate, stirred until smooth) over the cooled cake. Let set for 30 minutes before slicing.

Safety and Serving Notes

This cake contains raw eggs in the batter; the cake is fully baked, so no raw egg remains. If you are serving the cake to people with weakened immune systems, pregnant women, young children, or older adults, ensure the cake is baked to an internal temperature of 200°F (93°C) as a precaution. The buttercream contains no eggs and is safe as is. Perishable desserts with dairy should not sit out for more than 2 hours (1 hour if above 90°F/32°C).

Related

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).