Pastel de chocolate is the Spanish name for a classic chocolate cake—a tender, moist layer cake with a rich, fudgy crumb and a glossy chocolate glaze. This recipe delivers a deeply chocolatey cake that stays moist for days, thanks to the combination of cocoa powder, hot coffee, and buttermilk. It’s a straightforward, reliable cake that works for birthdays, celebrations, or just a weekend treat.
Ingredients
- 2 cups (240 g) all-purpose flour
- 2 cups (400 g) granulated sugar
- 3/4 cup (75 g) unsweetened cocoa powder (Dutch-processed or natural)
- 2 tsp baking soda
- 1 tsp baking powder
- 1 tsp salt
- 2 large eggs (100 g), at room temperature
- 1 cup (240 ml) buttermilk, at room temperature
- 1/2 cup (120 ml) vegetable oil
- 1 tbsp vanilla extract
- 1 cup (240 ml) hot coffee (or hot water)
- For the glaze: 1/2 cup (115 g) unsalted butter
- 1/4 cup (25 g) cocoa powder
- 3 cups (360 g) powdered sugar
- 1/3 cup (80 ml) milk (plus more if needed)
- 1 tsp vanilla extract
Instructions
- Preheat your oven to 350°F (175°C). Grease and flour two 9-inch (23 cm) round cake pans, or line the bottoms with parchment paper.
- In a large mixing bowl, whisk together the flour, sugar, cocoa powder, baking soda, baking powder, and salt.
- Add the eggs, buttermilk, oil, and vanilla. Beat with an electric mixer on medium speed for 2 minutes, until well combined and smooth.
- Carefully stir in the hot coffee (or water). The batter will be thin—that’s normal. Pour the batter evenly into the prepared pans.
- Bake for 30–35 minutes, or until a toothpick inserted into the center comes out clean. The cake should pull away slightly from the edges. Let cool in the pans for 10 minutes, then turn out onto a wire rack to cool completely.
- Make the glaze: melt the butter in a saucepan over medium heat. Whisk in the cocoa powder until smooth. Remove from heat and alternately add the powdered sugar and milk, whisking until glossy. Stir in the vanilla. If the glaze is too thick, add more milk, 1 tablespoon at a time.
- Place one cake layer on a serving plate. Spread a thin layer of glaze over the top. Place the second layer on top. Pour the remaining glaze over the top, letting it drip down the sides. Use a spatula to smooth it if needed.
- Let the glaze set for about 15 minutes before slicing.
Tips
- Substitutions: No buttermilk? Make a quick substitute by adding 1 tablespoon of lemon juice or white vinegar to 1 cup of milk and letting it sit for 5 minutes. For a dairy-free version, use almond milk with the vinegar and a neutral oil like canola.
- Don’t overmix: Once you add the flour, mix just until combined. Overmixing develops gluten, which can make the cake dense and tough.
- Hot coffee is key: The hot liquid helps bloom the cocoa, intensifying the chocolate flavor. If you prefer no coffee, use hot water—the cake will still be delicious.
- Common mistake: Opening the oven door during baking can cause the cake to sink. Wait until the minimum baking time has passed before checking.
Serving Suggestions
Serve this cake at room temperature with a scoop of vanilla ice cream, a dollop of whipped cream, or a dusting of powdered sugar. It also pairs beautifully with fresh berries like raspberries or strawberries, which cut through the richness. For a more decadent dessert, drizzle with warm chocolate sauce or caramel.
Variations
- Mexican chocolate cake: Add 1 teaspoon of ground cinnamon and a pinch of cayenne pepper to the dry ingredients for a subtle warmth.
- Mocha cake: Replace the coffee with strong brewed espresso for a more pronounced coffee flavor.
- Gluten-free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture will be slightly more tender, but it works well.
- Frosting swap: Instead of the glaze, use a classic cream cheese frosting or a whipped chocolate ganache for a different finish.
Storage and Reheating
Store the cake in an airtight container at room temperature for up to 3 days. For longer storage, wrap the unfrosted layers tightly in plastic wrap and freeze for up to 3 months. Thaw overnight in the refrigerator before glazing. To reheat a slice, microwave for 10–15 seconds or warm in a 300°F (150°C) oven for 5 minutes—just enough to soften the crumb.
Frequently Asked Questions
Can I make this cake without coffee? Yes, simply substitute the hot coffee with the same amount of hot water. The cake will still be chocolatey, though slightly less deep in flavor.
Why did my cake sink in the middle? This can happen if the oven temperature is too low, or if the cake is underbaked. Make sure your oven is actually at 350°F (175°C) by using an oven thermometer, and avoid opening the door during baking.
Can I use Dutch-processed cocoa instead of natural? Yes, but note that Dutch-processed cocoa is less acidic. If your recipe uses baking soda, which needs acid to react, you may need to add a little extra acid (like buttermilk) or switch to baking powder. For this recipe, using Dutch-processed cocoa works fine if you also use buttermilk.
How do I know when the cake is done? Insert a toothpick into the center; it should come out clean or with a few moist crumbs. The edges should also pull away from the pan slightly.
Can I make this cake in a 9×13-inch pan? Yes, pour the batter into a greased 9×13-inch pan and bake for about 35–40 minutes. The cake will be thinner, so adjust the baking time and check early.
Can I freeze the frosted cake? Yes, freeze the assembled cake in an airtight container for up to 3 months. Thaw overnight in the refrigerator before serving. The glaze may lose some shine, but the flavor will remain.
Related
- Rogan Josh Spice Mix: Easy Homemade Recipe
- Rogan Josh Taste: What It Is & How to Make It
- Saffron Road Vegetable Biryani Recipe
More recipes to cook
Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes
Spotted an error? Tell us and we will correct it (corrections policy).