This Dark Chocolate Raspberry Cake is three deeply fudgy chocolate layers, a jammy homemade raspberry compote filling, and a silky dark chocolate ganache frosting that drips down the sides like it means it.
If you love the combination of dark chocolate and berries as much as I do, you'll want to bookmark my Raspberry Chocolate Tart next — it's the same flavor pairing in a completely different (and just as stunning) form.

Quick Look: Dark Chocolate Raspberry Cake
⏱️ Ready In: about 4 hours (includes cooling and chilling)
🔥 Bake Time: 30 minutes
🍽️ Serves: 12 slices
✨ Calories: 540 per slice
🥄 Main Ingredients: dark chocolate, raspberries, sour cream, coffee
🌿 Dietary: vegetarian
💛 Why You'll Love It: deeply fudgy layers, silky ganache, jammy raspberry filling
SUMMARIZE & SAVE THIS CONTENT ON
Why you'll love this recipe
- It's genuinely fudgy, not just "chocolatey." Between the oil, sour cream, and brown sugar, these layers stay moist and dense in the best way — closer in texture to my Fudgy Sourdough Discard Brownies than a standard birthday cake.
- The raspberry compote cuts the richness. A bright, tart layer of jammy raspberries keeps every bite from feeling heavy, the same way I love pairing berries with chocolate in my Lemon Blackberry Cake.
- No fancy equipment required. Two bowls, a whisk, and a saucepan — this is a from-scratch layer cake that doesn't ask much of you.
- It's a make-ahead dream. Bake the layers days in advance, whip up the compote and ganache whenever it's convenient, and assemble the day you need it.
Jump to:
- Quick Look: Dark Chocolate Raspberry Cake
- Why you'll love this recipe
- Ingredients You'll Need
- Easy Substitutions & Variations
- How to Make Dark Chocolate Raspberry Layer Cake
- Expert Tips
- What Makes This Recipe Special?
- Dark Chocolate Raspberry Cake FAQs
- Dark Chocolate Raspberry Cake Troubleshooting Guide
- Storage
- Other Layer Cake Recipes to Consider
- Dark Chocolate Raspberry Cake
Ingredients You'll Need

For the Cake
- All-purpose flour – the structural base; no need to sift, just whisk it well with the cocoa.
- Dutch-process cocoa powder – gives that deep, almost black chocolate color and mellow flavor (natural cocoa will work but tastes sharper and lighter in color).
- Baking soda and baking powder – working together for the right amount of lift in a dense, fudgy batter.
- Fine sea salt – balances the sweetness and rounds out the chocolate.
- Granulated sugar and brown sugar – the combination is what gives these layers their fudgy depth, similar to the technique I use in my Chocolate Sour Cream Pound Cake Cupcakes.
- Eggs – for structure and richness.
- Neutral oil – keeps the crumb moist for days (oil beats butter here for a tender, fudgy texture).
- Full-fat sour cream – adds tang and moisture; don't sub low-fat.
- Hot strong-brewed coffee – blooms the cocoa and deepens the chocolate flavor without tasting like coffee, the same trick I use in my Coffee and Walnut Loaf Cake.
- Pure vanilla extract – rounds everything out.
For the Raspberry Compote
- Fresh or frozen raspberries – frozen works great here and is often more affordable year-round, much like I recommend in my Lemon Raspberry Sweet Rolls.
- Granulated sugar – just enough to balance the raspberries' tartness.
- Fresh lemon juice – brightens the berries and helps the compote set.
For the Ganache Frosting
- Dark chocolate (70%) – finely chopped for the smoothest, fastest melt (chocolate bars melt better than chips, which contain stabilizers).
- Heavy cream – the richness that turns chocolate into ganache.
- Unsalted butter, room temperature – for shine and a silkier finish.
- Fine sea salt – just a pinch to keep the ganache from tasting flat.
See recipe card for quantities.
Easy Substitutions & Variations
- Dairy-free: swap the sour cream for a full-fat dairy-free yogurt, use a plant-based heavy cream for the ganache, and use dairy-free butter.
- No coffee on hand: strong black tea works as a 1:1 swap, or use hot water plus a teaspoon of instant espresso powder.
- Two-layer version: divide the batter between two 9-inch pans instead of three 8-inch pans and add 5-8 minutes to the bake time; you'll have less filling but a slightly easier bake.
- Milk chocolate ganache: swap the dark chocolate for milk chocolate if you want a sweeter, less intense frosting — reduce the cream slightly since milk chocolate is softer.
- Other berries: blackberries or a mixed berry compote both work beautifully in place of raspberries, similar to what I do in my Lemon Blackberry Cake.
How to Make Dark Chocolate Raspberry Layer Cake
Note: I bake by weight for accuracy. Cup measurements are approximate and may vary depending on how you scoop.

Step 1: Prep pans & oven. Preheat the oven to 175°C (350°F). Grease three 8-inch round cake pans, line the bottoms with parchment, and grease the parchment. This triple-layer setup gives you more filling layers — worth the extra pan.

Step 2: Whisk the dry ingredients. In a large bowl, whisk together the flour, cocoa powder, baking soda, baking powder, and salt. Sifting the cocoa is worth doing here — it breaks up lumps that would otherwise streak through the batter.

Step 3: Mix the wet ingredients. In a separate bowl, whisk the granulated sugar, brown sugar, eggs, oil, sour cream, and vanilla until smooth and fully combined. The brown sugar adds a fudgy depth that granulated sugar alone can't give you.

Step 4: Combine the batter. Pour the wet ingredients into the dry and stir until just combined — a few streaks are fine. Stream in the hot coffee and whisk until smooth. The batter will be thin; that's correct. The coffee amplifies the chocolate flavor without tasting like coffee.

Step 5: Bake. Divide the batter evenly among the prepared pans (about 550g per pan if you're weighing). Bake until a toothpick inserted in the center comes out with just a few moist crumbs, rotating the pans halfway through.
Let the cakes cool in their pans for 15 minutes, then turn out onto a wire rack and cool completely. Don't rush this step — warm layers will melt your ganache.

Step 6: Make the raspberry compote. Combine the raspberries, sugar, and lemon juice in a small saucepan over medium heat. Cook, stirring occasionally and mashing about half the berries, until thickened and jammy. It should coat a spoon and hold its shape when you drag a finger through.
Transfer the compote to a bowl and refrigerate until fully cold and set. It will thicken further as it cools — you want it spreadable but not runny so it doesn't slide between the layers.

Step 7: Make the ganache frosting. Place the finely chopped chocolate in a heatproof bowl. Heat the heavy cream in a saucepan until just simmering — not boiling — then pour over the chocolate. Let sit undisturbed for 2 minutes, then stir from the center outward until completely smooth. Stir in the butter and salt.

Step 8: Cool & whip the ganache. Let the ganache cool at room temperature until it thickens to a spreadable, frosting-like consistency — like soft peanut butter. This takes 1-2 hours at room temp, or 30-40 minutes in the fridge with occasional stirring. Once set, beat briefly with a hand mixer for a fluffier, more spreadable texture (optional, but nice).

Step 9: Assemble. Place the first cake layer on your board. Pipe or spread a ring of ganache around the edge to act as a dam, then fill the center with half the raspberry compote. Repeat with the second layer. Place the third layer on top, pressing gently. Apply a thin crumb coat of ganache and refrigerate for 20 minutes.

Step 10: Frost & finish. Apply the final layer of ganache — as rustic or as smooth as you like. Finish with a spoonful of compote spooned over the top, letting it drip naturally down the sides. Garnish with fresh raspberries if you have them.
Weigh your ingredients! Using a kitchen scale ensures your measurements are accurate, which is key for getting consistent results in baking. It takes the guesswork out of measuring and helps your recipes turn out exactly as intended every time.
Expert Tips
- Weigh your ingredients. This is a batter where cocoa powder and flour ratios really matter for texture — a kitchen scale removes the guesswork that measuring cups introduce.
- Don't skip the hot coffee. It blooms the cocoa and deepens the chocolate flavor dramatically — you won't taste coffee in the finished cake. Strong black tea works as a swap if needed.
- The ganache dam is necessary. Without it, the compote will push out the sides under the weight of the layers and you'll end up with a lopsided cake. The piped border holds everything in, the same technique I rely on in my Lemon Blueberry Mascarpone Cake.
- Let the cakes cool completely. Warm layers will melt the ganache on contact and slide right off each other. If you're in a hurry, pop the cooled-but-still-slightly-warm layers in the fridge for 20 minutes before assembling.
- Chop your own chocolate. Chocolate bars melt into a smoother ganache than chips, which are formulated with stabilizers to hold their shape — the same reason I always reach for a block over pre-shredded in savory bakes too.
What Makes This Recipe Special?

Most chocolate cakes lean on butter for richness, but this one uses oil and full-fat sour cream instead, which is what keeps it so moist and fudgy days after baking — a technique you'll also see in my Sourdough Chocolate Sheet Cake with Brown Butter Buttercream.
The hot coffee is the other quiet workhorse here: it blooms the cocoa so the chocolate flavor tastes deeper and more complex without ever reading as "coffee cake." And instead of a traditional buttercream, a whipped ganache frosting keeps things intensely chocolatey and lets the tart raspberry compote really stand out against it, similar to the contrast I love in my Chocolate Espresso Cinnamon Rolls.
Dark Chocolate Raspberry Cake FAQs
Yes. The cake layers, compote, and ganache can all be made 1-3 days ahead and stored separately, then assembled the day you want to serve it.
Absolutely — frozen raspberries work just as well as fresh. You may need to cook the compote a few extra minutes since frozen berries release more liquid.
No, but it's worth it. The coffee doesn't add coffee flavor — it deepens the chocolate. If you'd rather skip it, use hot water instead, though the chocolate flavor will be slightly less intense.
Yes, though the ganache will be sweeter and softer. If using milk chocolate, reduce the heavy cream slightly since milk chocolate has less cocoa solids to set up firm.
Three thinner layers give you more filling-to-cake ratio, which means more of that jammy raspberry compote in every bite. If you'd rather simplify, see the two-layer variation above.
Dark Chocolate Raspberry Cake Troubleshooting Guide
| Problem | Cause | Fix |
|---|---|---|
| Ganache is grainy or split | Cream was boiling instead of just simmering, or chocolate was stirred too soon | Let the mixture sit 2 full minutes before stirring; if it splits, add a splash of warm cream and stir gently from the center out |
| Compote leaked out the sides | No ganache dam, or dam was too thin | Pipe a thicker, taller ring of ganache before adding compote, and don't overfill the center |
| Cake layers domed | Oven ran hot, or batter wasn't level in the pans | Rotate pans halfway through baking and check oven temp with a separate thermometer |
| Cake is dry instead of fudgy | Overbaked, or flour/cocoa were scooped instead of weighed | Pull the cakes as soon as a toothpick shows a few moist crumbs, and weigh dry ingredients |
| Ganache too thin to frost | Not cooled long enough before spreading | Chill 10-15 minutes longer, stirring occasionally, until it holds its shape on a spoon |
Storage
- container in the refrigerator for up to 5 days. Let slices sit at room temperature for 20-30 minutes before serving so the ganache softens.
- Unfrosted cake layers freeze beautifully wrapped tightly in plastic wrap for up to 1 month; thaw at room temperature before filling and frosting.
- The raspberry compote keeps in the fridge for up to a week, and leftover ganache can be rewarmed gently in the microwave in 10-second bursts to soften.
Other Layer Cake Recipes to Consider
Did you make this recipe?
If you try this recipe, I’d love if you left a quick rating and review below! It really helps support my blog and lets others know how the recipe turned out for you. Also, don't forget to tag me @kneadedthat on Instagram and use the hashtag #kneadedthat so I can see what you made and share it!

Dark Chocolate Raspberry Cake
Equipment
- Three 8-inch round cake pans
- Parchment Paper
- Hand or stand mixer
- Medium saucepan
- Offset spatula
- Wire cooling rackThree 8-inch round cake pans
- Parchment Paper
- Hand or stand mixer
- Medium saucepan
- Offset spatula
- Wire cooling rack
Ingredients
For the Cake
- 250 g all-purpose flour 2 cups
- 75 g Dutch-process cocoa powder ¾ cup
- 1½ teaspoons baking soda
- ½ teaspoon baking powder
- 1 teaspoon fine sea salt
- 300 g granulated sugar 1½ cups
- 100 g brown sugar packed (½ cup)
- 3 large eggs
- 180 ml neutral oil vegetable or canola (¾ cup)
- 240 g full-fat sour cream 1 cup
- 240 ml hot strong-brewed coffee 1 cup
- 2 teaspoons pure vanilla extract
For the Raspberry Compote
- 340 g fresh or frozen raspberries 2¾ cups
- 60 g granulated sugar ⅓ cup
- 1 tablespoon fresh lemon juice
For the Ganache Frosting
- 340 g dark chocolate 70%, finely chopped (2 cups)
- 300 ml heavy cream 1¼ cups
- 30 g unsalted butter room temperature (2 tablespoons)
- ⅓ teaspoon fine sea salt
Instructions
- Preheat the oven to 175°C (350°F). Grease three 8-inch round cake pans, line the bottoms with parchment, and grease the parchment.
- In a large bowl, whisk together the flour, cocoa powder, baking soda, baking powder, and salt.250 g all-purpose flour, 75 g Dutch-process cocoa powder, 1½ teaspoons baking soda, ½ teaspoon baking powder, 1 teaspoon fine sea salt
- In a separate bowl, whisk the granulated sugar, brown sugar, eggs, oil, sour cream, and vanilla until smooth and fully combined.300 g granulated sugar, 100 g brown sugar, 3 large eggs, 180 ml neutral oil, 240 g full-fat sour cream, 2 teaspoons pure vanilla extract
- Pour the wet ingredients into the dry and stir until just combined. Stream in the hot coffee and whisk until smooth; the batter will be thin.240 ml hot strong-brewed coffee
- Divide the batter evenly among the prepared pans. Bake until a toothpick inserted in the center comes out with just a few moist crumbs, rotating the pans halfway through.
- Let the cakes cool in their pans for 15 minutes, then turn out onto a wire rack and cool completely.
- Combine the raspberries, sugar, and lemon juice in a small saucepan over medium heat. Cook, stirring occasionally and mashing about half the berries, until thickened and jammy.340 g fresh or frozen raspberries, 60 g granulated sugar, 1 tablespoon fresh lemon juice
- Transfer the compote to a bowl and refrigerate until fully cold and set.
- Place the chopped chocolate in a heatproof bowl. Heat the cream until just simmering, then pour over the chocolate. Let sit 2 minutes, then stir from the center outward until smooth. Stir in the butter and salt.340 g dark chocolate, 300 ml heavy cream, 30 g unsalted butter, ⅓ teaspoon fine sea salt
- Let the ganache cool at room temperature until spreadable, 1-2 hours (or 30-40 minutes in the fridge). Beat briefly with a hand mixer for a fluffier texture, if desired.
- Place the first cake layer on your board. Pipe a ring of ganache around the edge, then fill the center with half the raspberry compote. Repeat with the second layer. Top with the third layer, apply a thin crumb coat of ganache, and refrigerate 20 minutes.
- Apply the final layer of ganache. Finish with a spoonful of compote over the top, letting it drip down the sides. Garnish with fresh raspberries if desired.









Leave a Reply