This chocolate layer cake is the kind you make when you want to impress without a day in the kitchen. A tender, moist chocolate sponge is split and filled with a bright raspberry compote, then covered in a silky chocolate buttercream. The tart berries cut the richness of the frosting, and the whole thing comes together in about an hour of active work. It’s a classic combination for birthdays, anniversaries, or just a weekend treat.
Ingredients
- For the cake:
- 1 ¾ cups (220 g) all-purpose flour
- ¾ cup (75 g) unsweetened cocoa powder (natural or Dutch-process)
- 1 ½ teaspoons baking powder
- 1 ½ teaspoons baking soda
- ½ teaspoon salt
- 1 cup (240 ml) buttermilk, at room temperature
- ½ cup (120 ml) hot coffee or hot water
- ½ cup (120 ml) vegetable oil
- 2 large eggs, at room temperature
- 1 ½ teaspoons vanilla extract
- 1 ¾ cups (350 g) granulated sugar
- For the raspberry filling:
- 2 cups (240 g) fresh or frozen raspberries
- ¼ cup (50 g) granulated sugar
- 1 tablespoon lemon juice
- 1 tablespoon cornstarch mixed with 2 tablespoons cold water
- For the chocolate frosting:
- 1 cup (226 g) unsalted butter, softened
- 3 cups (360 g) powdered sugar, sifted
- ½ cup (50 g) unsweetened cocoa powder, sifted
- ¼ cup (60 ml) heavy cream, plus more if needed
- 1 teaspoon vanilla extract
- Pinch of salt
Instructions
- Make the raspberry filling (can be done ahead). In a small saucepan, combine raspberries, sugar, and lemon juice. Cook over medium heat, stirring occasionally, until the berries break down and the mixture is bubbling, about 5–7 minutes. Stir in the cornstarch slurry and cook for another 1–2 minutes until thickened. Remove from heat, let cool completely. It will thicken more as it cools. You should have about 1 cup of filling.
- Preheat the oven to 350°F (175°C). Grease two 9-inch round cake pans (at least 2 inches deep) and line the bottoms with parchment paper. If using dark or nonstick pans, lower the oven to 325°F (165°C) to prevent over-browning.
- Mix the dry ingredients. In a medium bowl, whisk together flour, cocoa powder, baking powder, baking soda, and salt.
- Combine the wet ingredients. In a large bowl or stand mixer, whisk the buttermilk, hot coffee, oil, eggs, and vanilla until well combined. Add the sugar and whisk until dissolved, about 1 minute.
- Add the dry ingredients to the wet. Gradually add the flour mixture to the wet ingredients, mixing on low speed or by hand until just combined. The batter will be thin—that’s normal.
- Divide the batter evenly between the two prepared pans (about 3 cups each). Bake for 25–30 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs. The cakes should pull away slightly from the edges and spring back when lightly pressed. Start checking at 22 minutes if your pans are dark or if you’re using glass (glass also requires lowering the oven by 25°F).
- Cool the cakes completely. Let them rest in the pans for 10 minutes, then turn out onto a wire rack and cool completely. If you’re in a hurry, you can freeze them for 20 minutes to make slicing easier.
- Make the frosting. In a large bowl, beat the softened butter until creamy, about 2 minutes. Gradually add the powdered sugar and cocoa powder, beating on low speed. Add the heavy cream and vanilla, then increase speed to medium-high and beat for 2–3 minutes until light and fluffy. If the frosting is too thick, add more cream a tablespoon at a time; if too thin, add a little more powdered sugar.
- Assemble the cake. Level the tops of the cakes with a serrated knife if they domed. Place one layer on a serving plate. Spread the cooled raspberry filling over the top, leaving a ½-inch border around the edge. Place the second layer on top. Frost the top and sides with the chocolate buttercream. For a rustic look, leave the sides bare or do a semi-naked finish.
Tips
- Use room-temperature ingredients. Cold eggs and buttermilk can make the batter curdle, which affects texture. Set them out 30 minutes before starting.
- Don’t overmix the batter. Mix just until no streaks of flour remain. Overmixing develops gluten, making the cake tough.
- Make the filling ahead. It needs to be completely cool before spreading, or it will melt the frosting. You can make it a day in advance and refrigerate it.
- If using frozen raspberries, don’t thaw them first. Add them straight from the freezer to the saucepan; they’ll release more liquid, so you may need an extra minute of cooking.
Serving Suggestions
Serve at room temperature with a dollop of lightly sweetened whipped cream or a scoop of vanilla ice cream. Fresh raspberries on top make it look extra special. This cake pairs well with coffee, espresso, or a cold glass of milk.
Variations
- Use strawberry filling instead of raspberry—just swap the berries and keep the same method.
- Make it a chocolate-raspberry mousse cake by replacing the buttercream with a chocolate mousse (fold melted chocolate into whipped cream).
- Add a splash of raspberry liqueur (like Chambord) to the filling for an adult twist.
- For a gluten-free version, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture may be slightly more delicate.
Storage and Reheating
Store the assembled cake in an airtight container in the refrigerator for up to 4 days. Let it sit at room temperature for 30 minutes before serving to soften the frosting. You can freeze unfrosted cake layers (wrapped tightly in plastic wrap and foil) for up to 3 months; thaw in the refrigerator overnight. The frosting and filling can also be made ahead and refrigerated—bring them to room temperature and re-whip the frosting before using.
Related
Frequently Asked Questions
Can I use a different size pan? Yes. This recipe makes about 6 cups of batter. You can bake it in three 8-inch pans (about 2 cups each) for a taller, thinner layer cake—reduce baking time to 20–25 minutes. For a 9×13-inch sheet cake, bake for 30–35 minutes. Always check for doneness with a toothpick, as ovens vary.
Why is my cake dry? Overbaking is the most common cause. Start checking at the lower end of the time range. Also, be sure to measure flour correctly—spoon it into the cup and level it off, don’t scoop directly from the bag.
Can I use oil instead of butter in the frosting? No, butter is essential for a stable buttercream. You could use vegetable shortening, but the flavor will be different.
Do I have to use coffee? No, hot water works just as well. The coffee doesn’t make the cake taste like coffee—it enhances the chocolate flavor.
Can I make this cake dairy-free? Yes. Use a dairy-free buttermilk (milk with a tablespoon of vinegar or lemon juice), a dairy-free yogurt, and substitute the butter in the frosting with a vegan butter stick. The texture may be slightly different, but it will still be delicious.
Why did my filling run out of the cake? The filling needs to be thick and completely cool. If it’s too thin, cook it a little longer until it coats the back of a spoon. Also, leave a border when spreading so it doesn’t squeeze out when you place the top layer.