Desserts
This chocolate cake with raspberry filling recipe delivers the perfect balance of deep cocoa richness and vibrant berry bursts—every slice is a celebration of texture and flavor.
The secret lies in a moist, tender cake that holds up beautifully to the tangy-sweet raspberry filling, creating layers that feel indulgent yet refined. I developed this recipe after years of testing, ensuring the cake stays moist for days while the filling remains vibrant and jammy.
The cake itself bakes up with a fudgy center and a delicate crumb, thanks to a precise blend of cocoa powder and buttermilk. Meanwhile, the raspberry filling—made with fresh berries, sugar, and a touch of cornstarch—strikes the ideal balance between jammy thickness and juicy bursts.
The assembly is where the magic happens: each layer is brushed with a thin layer of raspberry coulis to keep everything cohesive and flavorful.
What you’ll end up with is a dessert that looks as impressive as it tastes—deep chocolate layers framed by glossy raspberry filling, ready to be topped with whipped cream or fresh berries.
This recipe is perfect for birthdays, dinner parties, or anytime you want to impress without spending hours in the kitchen. The results are restaurant-quality, but the method is straightforward and foolproof.
Serve it chilled for clean slices, or at room temperature for a warmer, more inviting presentation. The contrast of cool raspberry and rich chocolate makes every bite unforgettable. Let’s get baking—your taste buds will thank you.
Ingredients for chocolate cake with raspberry filling
Pantry staples meet berry brilliance—this list delivers restaurant-quality layers.
| Ingredient | Amount | Notes |
|---|---|---|
| Unsalted Butter 🧈 | 1 cup | Cold, cut into cubes for cake |
| Granulated Sugar 🍚 | 2 cups | Superfine preferred for smooth texture |
| Dark Chocolate Chips 🍫 | 1 cup | 70% cocoa, semi-sweet preferred |
| All-Purpose Flour 🌾 | 2 cups | Sifted, spooned lightly |
| Cocoa Powder 🍫 | ¾ cup | Dutch-processed for smoothness |
| Baking Powder 🧂 | 1 tsp | Freshly measured |
| Salt 🧂 | ½ tsp | Fine sea salt preferred |
| Buttermilk 🥛 | 1 cup | Cold, room temp if thick |
| Vanilla Extract 🌿 | 2 tsp | Pure Madagascar preferred |
| Large Eggs 🥚 | 2 whole | Room temperature for even bake |
| Fresh Raspberries 🍓 | 2 cups | Pulled from stems, frozen works |
| Powdered Sugar 🍚 | ½ cup | For dusting layers |
| Cornstarch 🌾 | 1 tbsp | For filling thickness |
| Lemon Juice 🍋 | 1 tbsp | Brightens raspberry flavor |
| Heavy Whipping Cream 🥛 | 1 cup | Cold for best whipping |
The butter and chocolate are non-negotiable. European-style butter like Plugrá or Land O'Lakes makes the cake richer, and Valrhona or Guittard chocolate elevates the flavor—don't skimp here. For the raspberries, fresh is ideal, but frozen works in a pinch (thaw and drain well). If you're buying in bulk, Trader Joe's has great organic options. The cocoa powder? Dutch-processed (like Callebaut) keeps the cake from getting bitter. Sift everything—especially the flour and cocoa—to avoid dense layers. And trust me, room temperature eggs make all the difference in texture.
No buttermilk? Mix 1 tbsp vinegar or lemon juice with 1 cup milk and let sit 5 minutes. Frozen raspberries? Thaw and drain completely—no one wants soggy layers. The vanilla extract can be swapped for 1 tsp vanilla bean paste if you're feeling fancy. Short on powdered sugar? Granulated sugar works at double the amount, but it won't dissolve as smoothly. The cornstarch is key for the filling—it keeps the raspberries from turning into soup. If you can't find fresh raspberries, strawberries or blackberries work, but adjust the sugar to taste. And for the whipped cream topping? Whipped cream stabilizer (like Dr. Oetker) keeps it fluffy longer.
This cake keeps beautifully—3 days at room temperature covered loosely, or up to 5 days refrigerated. The filling can be made a day ahead and stored separately. For serving, let the cake sit at room temp for 20 minutes before slicing—it's more forgiving that way. Freeze the whole cake (unassembled) for up to 3 months—just thaw overnight in the fridge. Pro tip: Brush the top layer with a little raspberry coulis before adding whipped cream for extra shine. And if you're making this for a crowd, double the filling—trust me, you'll want it.
Why You'll Love This Recipe
- No Mixer Needed: I swear by this recipe when I’m too tired to cream butter and sugar by hand—just melt the butter, toss in the sugar, and fold. The chocolate chips melt into little pockets of gooey magic, and honestly? The cake still comes out rich and tender without a single extra bowl to wash.
- Raspberry-Chocolate Magic: That first bite—warm, fudgy cake with a burst of tart raspberry—is like dessert hugging you. The cocoa powder gives it depth, while the filling stays bright and jammy, not too sweet. My husband licks the plate clean, and I don’t even have to bribe him with ice cream.
- Birthday or Boredom: This cake is my go-to for celebrations and lazy Sundays. Slice it for a party, or grab a fork and eat it straight from the pan. (Yes, even on a Tuesday night.) The raspberry filling keeps it from feeling too heavy, so it’s just as good for a quick treat as it is for a showstopper dessert.
- Leftovers That Last: A single pan yields 12 perfect slices, and they stay moist for days—no dry crumbs here. I’ve packed this in lunches, frozen portions for last-minute cravings, and even gifted slices to neighbors. The butter and sugar base means it’s not a flop, and the chocolate chips make every bite feel special without breaking the bank.
Step-by-step instructions for chocolate cake with raspberry filling
Here's how to build decadent layers of fudgy chocolate cake with vibrant raspberry filling.
Prepare the Chocolate Cake Batter
Preheat your oven to 350°F and grease two 8-inch round cake pans, lining the bottoms with parchment paper. In a large mixing bowl, cream together the 1 cup unsalted butter and 2 cups granulated sugar until light and fluffy—about 3-4 minutes using an electric mixer. This step is crucial for aerating the batter and creating that signature tender crumb.
In a separate bowl, whisk together the 2 cups all-purpose flour, 0.75 cup cocoa powder, 1 teaspoon baking powder, and 0.5 teaspoon salt. Gradually add this dry mixture to the butter-sugar combination, alternating with the 1 cup buttermilk, beginning and ending with the flour mixture. Mix just until combined—overmixing develops gluten and makes the cake dense.
Add the 2 teaspoons vanilla extract and 2 whole large eggs, one at a time, mixing well after each addition. Fold in the 1 cup dark chocolate chips using a spatula, ensuring even distribution. Divide the batter evenly between the prepared cake pans, spreading it out smoothly. Bake for 25-30 minutes, or until a toothpick inserted into the center comes out clean. Let the cakes cool in the pans for 10 minutes before transferring to a wire rack to cool completely.
Create the Raspberry Filling
In a medium saucepan, combine the 2 cups fresh raspberries, 0.5 cup powdered sugar, 1 tablespoon cornstarch, and 1 tablespoon lemon juice. Cook over medium heat, stirring constantly, until the mixture thickens and begins to bubble—about 5-7 minutes. The filling should coat the back of a spoon and have a glossy sheen. Remove from heat and let it cool completely before assembling the cake.
For the whipped cream layer, chill a mixing bowl and beaters in the freezer for 10 minutes. Whip the 1 cup heavy whipping cream until soft peaks form. Fold in 1 tablespoon powdered sugar for a touch of sweetness, but don't overmix—you want light, airy cream that won't weigh down the cake.
Assemble the Cake Layers
Place the first cake layer on a serving plate. Spread a thin layer of the cooled raspberry filling over the top, leaving a ½-inch border uncovered. This ensures the cake holds together without becoming soggy. Add a generous layer of the whipped cream, spreading it evenly across the filling.
Place the second cake layer on top and press down gently to create a smooth surface. Spread the remaining raspberry filling over the top and sides of the cake, using a spatula to create a clean, even layer. Top with the remaining whipped cream, then press the dark chocolate chips into the cream to create a decorative finish. Chill the cake in the refrigerator for at least 2 hours before serving to allow the filling to set and the flavors to meld.
Serve and Enjoy
Slice the cake into 8 equal wedges using a sharp, serrated knife. The contrast of the rich, moist chocolate cake with the tangy raspberry filling and light whipped cream creates a perfect balance of textures and flavors. Serve immediately to enjoy the cake at its best, or store in the refrigerator for up to 3 days, bringing it to room temperature before serving.
This cake is a showstopper—every bite delivers layers of decadence with the bright acidity of the raspberries cutting through the deep chocolate. The secret lies in the precise balance of ingredients and the patience of letting the filling set before slicing.
Pro Tips For Making Chocolate Cake With Raspberry Filling
- Melt Butter Slowly: I learned this the hard way—dumping cold butter into hot sugar causes lumps that never fully dissolve. Instead, cut the butter into small cubes and let it melt into the sugar over medium heat, stirring constantly until it’s smooth and just starting to turn golden. That’s when the flavor really develops.
- Sift the Cocoa: Unsifted cocoa powder is a dense brick that packs unevenly, leading to dry spots in your cake. Sift it with the flour before mixing—yes, even if the recipe says “fold in.” This lightens the texture and ensures every bite is moist, not cakey.
- Don’t Overbake the Layers: A toothpick test is useless here—raspberry filling needs room to spread. Pull the cake when the center is just set (a slight give is fine) and the edges pull away cleanly. Overbaking turns the layers dry and rubbery, and no amount of filling can fix that.
- Chill the Cake Before Filling: Warm cake absorbs raspberry filling like a sponge, turning it soggy within hours. Let the layers cool completely on a wire rack, then refrigerate for 30 minutes before assembling. This keeps the filling bright and the cake structure intact—trust me, it’s worth the wait.
Dietary considerations for these flavors
Gluten-Free Adaptation
Replace the 2 cups all-purpose flour with a high-quality gluten-free blend like King Arthur Measure for Measure or Bob's Red Mill 1-to-1. These blends mimic the structure of regular flour while keeping the cake tender.
Add 1 extra teaspoon of xanthan gum to the dry ingredients to improve binding—this is critical for preventing crumbly texture. For the raspberry filling, no changes are needed as it's naturally gluten-free. 🌾
Dairy-Free Options
Swap the 1 cup unsalted butter for 1 cup dairy-free butter like Miyoko's or Earth Balance, and replace the 1 cup buttermilk with 1 cup unsweetened almond milk mixed with 1 tablespoon white vinegar.
For whipped cream, use coconut whipped topping like So Delicious or make a cashew cream by blending 1 cup soaked cashews with 2 tablespoons powdered sugar and 1 teaspoon vanilla. The cake will still be rich and moist.
Lower-Sugar Version
Reduce the 2 cups granulated sugar in the cake batter to 1.5 cups and replace the 0.5 cup powdered sugar in the filling with 0.3 cup monk fruit sweetener or erythritol. Use 1.5 cups fresh raspberries instead of 2 to cut natural sugars.
The cake will still be sweet but less overwhelming. For extra richness, add 1 tablespoon molasses to the batter to deepen the chocolate flavor without extra sugar. 🍫
Vegan Chocolate Cake
Use 1 cup coconut oil or vegan butter instead of butter, and replace the eggs with 2 flax eggs (mix 2 tablespoons ground flaxseed with 6 tablespoons water, let sit 5 minutes). For the whipped cream, whip 1 cup coconut cream (chilled overnight) until fluffy.
The raspberry filling remains the same, but ensure all ingredients are vegan—like using vegan powdered sugar if needed. The texture will be slightly denser but still delicious.
Nut-Free Considerations
If nut allergies are a concern, avoid almond milk or cashew cream substitutes. Instead, use oat milk for the buttermilk replacement and dairy-free whipped cream made from soy or coconut cream. For the cake, ensure all chocolate chips and cocoa powder are certified nut-free.
Brands like Enjoy Life offer excellent allergy-friendly chocolate chips that work perfectly in this recipe. Always check labels for cross-contamination warnings. 💛
Nutrition facts
Frequently asked questions
Why does the cake need to cool completely before assembling?
A fully cooled cake prevents the raspberry filling from melting and creating a soggy texture. Warm cake layers will absorb moisture from the filling, making the structure weak. Let each layer cool for at least 2 hours before assembly—this ensures clean slices and proper layering.
Can I use store-bought raspberry jam instead of homemade filling?
For convenience, use high-quality raspberry jam (like Bonne Maman) and thin it with 1-2 teaspoons of water to achieve the right consistency. Heat it gently to warm through, then let it cool before assembling. Avoid seed-heavy jams—they can make the texture gritty.
How do I prevent the cake from cracking during baking?
Cracks often happen from overmixing or uneven batter distribution. Mix just until combined, and use a spatula to smooth the batter evenly in the pans. Tap the pans gently on the counter to release air bubbles before baking. Also, avoid opening the oven door early—sudden temperature changes can cause stress.
What’s the best way to store leftovers?
Wrap the cake tightly in plastic wrap, then place it in an airtight container at room temperature for 2 days. For longer storage, refrigerate for up to 5 days (bring to room temp before serving). Freeze unassembled layers for 3 months—thaw overnight in the fridge. Never freeze the whipped cream layer separately.
Can I make this cake in a different shape (like a sheet pan)?
Yes! For a 9x13-inch sheet pan, reduce baking time to 20-25 minutes and spread the batter ½-inch thick. Cool completely, then slice into rectangles. Assemble with horizontal layers of cake and filling. For a 6-inch round cake, use one pan and halve the batter—bake for 20-22 minutes. Adjust filling amounts proportionally.
