Pastel de Chocolate: Rich Spanish Chocolate Cake

Updated November 25, 2026

Total time
1 hr 10 min
prep 25 min · cook 35 min
Serves
8
portions as written

Jump to recipe

Pastel de chocolate is a beloved Spanish and Latin American chocolate cake, known for its dense, moist crumb and deep cocoa flavor. Unlike airy American layer cakes, this version is often a single-layer cake with a fudgy texture, sometimes finished with a glossy ganache or a simple dusting of powdered sugar. It’s a straightforward, reliable dessert that uses basic pantry ingredients and delivers a truly satisfying chocolate experience.

Ingredients

  • 1 ½ cups (190 g) all-purpose flour
  • ¾ cup (75 g) unsweetened cocoa powder
  • 1 ½ teaspoons baking powder
  • ½ teaspoon baking soda
  • ½ teaspoon salt
  • ¾ cup (170 g) unsalted butter, softened
  • 1 cup (200 g) granulated sugar
  • 2 large eggs, at room temperature
  • 1 teaspoon vanilla extract
  • 1 cup (240 ml) buttermilk, at room temperature
  • ½ cup (120 ml) hot coffee or hot water

For the Ganache (optional)

  • ½ cup (120 ml) heavy cream
  • 4 oz (115 g) semisweet chocolate, finely chopped

Instructions

  1. Preheat your oven to 350°F (175°C). Grease a 9-inch (23 cm) round cake pan and line the bottom 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, beat the softened butter and sugar together with an electric mixer on medium speed until light and fluffy, about 2-3 minutes. Scrape down the sides of the bowl as needed.
  4. Add the eggs one at a time, beating well after each addition. Beat in the vanilla extract.
  5. With the mixer on low speed, add the dry ingredients in three additions, alternating with the buttermilk, beginning and ending with the dry ingredients. Mix until just combined; do not overmix.
  6. Slowly pour in the hot coffee (or water) and mix on low speed until the batter is smooth. The batter will be thin.
  7. Pour the batter into the prepared pan. Bake for 30-35 minutes, or until a toothpick inserted into the center comes out with a few moist crumbs (not wet batter).
  8. Let the cake cool in the pan on a wire rack for 15 minutes, then turn it out onto the rack to cool completely.
  9. To make the ganache (if using): heat the cream in a small saucepan over medium heat until it just simmers. Pour it over the chopped chocolate in a bowl. Let it sit for 2 minutes, then stir until smooth and glossy. Let cool slightly until it thickens to a pourable consistency.
  10. Pour the ganache over the cooled cake, spreading it evenly with an offset spatula. Let the ganache set at room temperature for about 30 minutes before slicing.

Tips

  • Buttermilk substitute: If you don’t have buttermilk, add 1 tablespoon of lemon juice or white vinegar to 1 cup (240 ml) of regular milk. Let it stand for 5 minutes before using.
  • Don’t overmix: Once you add the flour mixture, mix only until it disappears. Overmixing develops gluten, which can make the cake tough.
  • Hot coffee enhances flavor: The hot liquid helps bloom the cocoa powder, intensifying the chocolate flavor. If you prefer to avoid coffee, use hot water.
  • Check for doneness: Start checking the cake at 30 minutes. The toothpick should come out with a few moist crumbs, not completely clean, to keep the cake moist.

Serving Suggestions

Serve this pastel de chocolate at room temperature. It’s delicious on its own, but a dollop of lightly sweetened whipped cream or a scoop of vanilla ice cream balances the richness beautifully. A sprinkle of flaky sea salt over the ganache adds a sophisticated touch. For a special occasion, serve with fresh raspberries or strawberries on the side.

Variations

  • Spiced Chocolate Cake: Add 1 teaspoon of ground cinnamon and a pinch of cayenne pepper to the dry ingredients for a warm, subtle heat.
  • Orange Chocolate Cake: Add 1 tablespoon of orange zest to the batter along with the vanilla. You can also add a teaspoon of orange extract for a stronger flavor.
  • Nutty Chocolate Cake: Fold ½ cup (60 g) of toasted and chopped walnuts or almonds into the batter before baking.
  • Gluten-Free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture will be slightly more delicate, but it will still be delicious.

Storage and Reheating

Store the cake in an airtight container at room temperature for up to 3 days. If frosted with ganache, it can also be kept in the refrigerator for up to 5 days, but let it come to room temperature before serving. You can freeze the unfrosted cake, wrapped tightly in plastic wrap and then foil, for up to 3 months. Thaw overnight in the refrigerator before serving. To reheat individual slices, microwave for 10-15 seconds to soften the crumb.

Frequently Asked Questions

Can I use Dutch-processed cocoa instead of regular cocoa? Yes, you can, but the leavening may need adjustment. Dutch-processed cocoa is less acidic, so you may need to reduce the baking soda to ¼ teaspoon and increase the baking powder to 2 teaspoons. The flavor will be slightly milder and less bitter.

Why is my cake dry? Overbaking is the most common cause. Check the cake at the minimum baking time and use the toothpick test. Also, make sure you measure your flour correctly—spoon it into the measuring cup and level it off, rather than scooping directly from the bag, which can pack in too much flour.

Can I make this cake in advance? Absolutely. The cake can be baked a day ahead and stored tightly wrapped at room temperature. You can also make the ganache and pour it over the cake up to 6 hours before serving.

Can I use a different pan size? Yes, you can use a 9×5-inch loaf pan, but you’ll need to increase the baking time to about 45-50 minutes. Alternatively, you can make 12 cupcakes and bake them for 18-20 minutes.

What if I don’t have an electric mixer? You can mix the batter by hand. Make sure the butter is very soft and beat it with a wooden spoon until creamy. It will take a bit more elbow grease, but the result will be the same.

Can I skip the ganache? Yes, the cake is delicious on its own. You can simply dust it with powdered sugar before serving, or serve it with a simple chocolate sauce or whipped cream.

Related

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