Chocolate Raspberry Cake

There are chocolate cakes and then there are chocolate cakes that make people put down their forks after the first bite, look at the plate, and pick them right back up again because that first bite was too good to pause for even a second. Chocolate Raspberry Cake is firmly in the second category. Two layers of deeply moist, intensely chocolatey buttermilk cake filled with a bright, jewel-like homemade raspberry compote that cuts through the richness with gorgeous fruity tartness, all enrobed in a silky, deeply chocolatey frosting and finished with fresh raspberries that make the whole cake look as extraordinary as it tastes.

And then the raspberry filling arrives and makes the whole cake extraordinary. Bright, slightly tart, thick enough to stay in place between the layers — it is the contrast that makes every bite of chocolate cake more interesting and satisfying than it would be with any other filling.

Why You Will Love This Recipe

  • The boiling water technique produces exceptional chocolate flavor — Blooming the cocoa in boiling water releases its full aromatic oils and creates a depth of chocolate flavor in the finished cake that is noticeably superior to standard mixing methods.
  • The homemade raspberry filling is genuinely irreplaceable — A quick stovetop compote of fresh raspberries, sugar, lemon juice, and cornstarch creates a bright, jewel-like filling that balances the richness of the chocolate in a way that no store-bought jam can replicate.
  • Buttermilk keeps the crumb extraordinarily tender — The acid in buttermilk reacts with the leavening to produce a fine, moist crumb that stays soft and tender for days after baking.
  • Stunning enough for any celebration — The combination of dark chocolate frosting, vibrant raspberry filling visible at the edges, and fresh raspberry garnish makes this one of the most visually impressive cakes a home baker can put on any table.

Ingredients You Will Need

For the Chocolate Cake:

  • 2 cups granulated sugar
  • 1¾ cups + 2 tablespoons all-purpose flour
  • ¾ cup unsweetened cocoa powder
  • 1½ teaspoons baking soda
  • 1½ teaspoons baking powder
  • 1 teaspoon salt
  • 2 large eggs
  • 1 cup buttermilk
  • ½ cup vegetable or canola oil
  • 2 teaspoons vanilla extract
  • 1 cup boiling water

For the Chocolate Frosting:

  • ½ cup butter, melted
  • ⅔ cup unsweetened cocoa powder
  • 3 cups powdered sugar
  • ⅓ cup milk
  • 1 teaspoon vanilla extract

For the Raspberry Filling:

  • 2 cups raspberries, fresh or frozen
  • ¼ cup granulated sugar
  • 1 tablespoon + 1 teaspoon cornstarch
  • 1 tablespoon water
  • 1 tablespoon lemon juice
  • Fresh raspberries for topping, optional

Tip: You will find the full list of ingredients and measurements in the recipe card below.

Let’s Get Started

  1. Preheat and prep the pans. Set the oven to 350°F (175°C). Grease two 9-inch round cake pans thoroughly with butter or cooking spray, dust lightly with flour, and line the bottoms with circles of parchment paper. The parchment ensures the cake layers release cleanly without sticking — a non-negotiable step for a cake this important.
  2. Mix the dry ingredients. In a large mixing bowl, whisk together the sugar, flour, cocoa powder, baking soda, baking powder, and salt until completely and evenly combined with no pockets of any single ingredient visible. This thorough mixing of the dry ingredients before the wet are added ensures even leavening and consistent flavor throughout both cake layers.
  3. Add the wet ingredients. Add the eggs, buttermilk, oil, and vanilla extract to the dry ingredients. Beat with a hand mixer or stand mixer on medium speed for a full 2 minutes until the batter is smooth, uniform, and slightly increased in volume. Scrape down the sides and bottom of the bowl once during mixing to ensure everything is incorporated evenly.
  4. Add the boiling water. This is the step that makes this chocolate cake exceptional. Have the boiling water ready and pour it slowly into the batter while stirring or mixing on the lowest speed. The batter will become noticeably thinner as the hot water is incorporated — this thin consistency is correct and expected. The boiling water blooms the cocoa powder, releasing its full flavor compounds, and creates the moist, tender crumb that makes this cake so much better than standard versions.
  5. Bake and cool. Divide the thin batter evenly between the two prepared pans — a kitchen scale makes this precise. Bake for 30–35 minutes until a toothpick inserted into the very center comes out completely clean with no wet batter clinging to it. Cool in the pans for exactly 10 minutes, then run a thin knife around the edges and turn out onto wire racks to cool completely. Both layers must be completely cool before any assembly begins.
  6. Make the raspberry filling. Combine the raspberries, sugar, cornstarch, water, and lemon juice in a small saucepan over medium heat. Stir continuously and mash the raspberries gently with the back of the spoon as they soften and release their juices. Cook for 5–7 minutes until the mixture thickens into a glossy, jam-like compote that coats the spoon and holds its shape when a small amount is placed on a cold plate. Remove from heat and cool completely to room temperature — warm filling melts frosting and makes the layers slide during assembly.
  7. Make the chocolate frosting. Whisk the melted butter and cocoa powder together in a large bowl until smooth and no lumps remain. Add the powdered sugar one cup at a time, alternating with splashes of milk, beating well after each addition. Add the vanilla extract and beat until the frosting is completely smooth, silky, and spreadable with a consistency that holds its shape but spreads easily. If it seems too thick, add milk a teaspoon at a time. If too thin, add powdered sugar a tablespoon at a time.
  8. Assemble the cake. Place one completely cooled cake layer on your serving plate or cake board. Spread all of the cooled raspberry filling evenly across the top surface, bringing it close to but not quite to the edges — it will spread slightly when the second layer is pressed down. Carefully place the second cake layer on top, pressing down very gently to secure. Apply a thin crumb coat of frosting over the entire cake and refrigerate for 15 minutes to set it. Apply the remaining frosting over the top and sides in your desired finish — smooth and elegant or rustic and swooped. Arrange fresh raspberries over the top of the finished cake for garnish.

Servings and Pairing

This recipe serves 12 generously. Chocolate Raspberry Cake pairs beautifully with a scoop of vanilla bean ice cream, a dollop of lightly sweetened whipped cream, or a drizzle of warm raspberry coulis alongside each slice. For drinks, a hot espresso, a glass of cold milk, or a dessert wine all complement the combination of dark chocolate and fresh raspberry perfectly.

Variations

Dark Chocolate Version

Replace the regular unsweetened cocoa powder with dark or black cocoa powder for an even more intensely flavored, deeply dark chocolate cake that looks dramatic and pairs particularly beautifully with the bright raspberry filling.

Raspberry Buttercream Version

Replace the chocolate frosting with a raspberry buttercream made by beating 1 cup of softened butter with 3 cups of powdered sugar, 3 tablespoons of fresh raspberry puree, and a pinch of salt for a fully raspberry-forward cake that is particularly stunning for spring celebrations and baby showers.

Mini Layer Cake Version

Divide the batter among four 6-inch round cake pans and bake for 22–25 minutes for a taller, more dramatic four-layer mini cake that looks exceptionally impressive when sliced and reveals the alternating chocolate and raspberry layers inside.

Storage Tips

  • Room temperature: Store the frosted cake loosely covered under a cake dome for up to 2 days in a cool environment — the raspberry filling is stable at room temperature for this duration.
  • Fridge: Refrigerate covered for up to 5 days. The cake actually becomes slightly more moist on day two as the raspberry filling infuses the chocolate layers. Bring slices to room temperature for 20–30 minutes before serving for the best flavor and frosting texture.
  • Freezer: Freeze unfrosted individual cake layers wrapped tightly in plastic wrap and foil for up to 2 months. The raspberry filling freezes well in a sealed jar for the same duration. Thaw both overnight at room temperature and assemble with freshly made frosting on the day of serving.

FAQs

Why is my chocolate cake dry and dense?

The most common causes are overmixing the batter after adding the flour, overbaking by even a few minutes, or measuring the flour incorrectly by scooping rather than spooning into the measuring cup. Always spoon flour into the cup and level off the top, mix only until just combined after adding wet ingredients, and start checking for doneness at the 28-minute mark to avoid overbaking.

Can I make the raspberry filling with jam instead of homemade compote?

Store-bought raspberry jam can be used as a shortcut but the homemade compote produces a noticeably superior result — brighter in flavor, less sweet, and with a fresher, more vibrant raspberry character that provides better contrast against the rich chocolate layers. If using jam, choose a high-quality seedless raspberry jam and use approximately ¾ cup spread directly from the jar without cooking.

How do I get the chocolate frosting perfectly smooth?

The key to smooth chocolate frosting is adding the powdered sugar gradually rather than all at once and beating at medium-high speed for at least 2 minutes after the final addition of milk. For perfectly smooth sides on the finished cake, dip an offset spatula or bench scraper in hot water, wipe dry, and use it to smooth the frosting — the heat helps the chocolate frosting spread more evenly and eliminates drag marks.

Final Thoughts

Chocolate Raspberry Cake is the kind of recipe that justifies keeping a well-stocked baking pantry — a cake that is beautiful enough for any celebration, deeply satisfying enough to justify every minute of effort, and genuinely unforgettable in a way that makes it the first request at every birthday, holiday, and special occasion from the first time you bake it forward. Make it once and prepare to become the person in your circle who makes the chocolate raspberry cake. It is a wonderful reputation to have!

Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon

Chocolate Raspberry Cake


5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

  • Author: Isabella Florelle
  • Total Time: 1 hour 10 minutes
  • Yield: 12 servings
  • Diet: Vegetarian

Description

Deeply moist, rich chocolate cake layers made with buttermilk and boiling water, filled with a bright homemade raspberry compote, and frosted with a silky, deeply chocolatey buttercream. A stunning celebration cake that perfectly balances the intensity of dark chocolate with the bright tartness of fresh raspberries in every single slice.


Ingredients

For the Chocolate Cake:

  • 2 cups granulated sugar
  • 1¾ cups + 2 tablespoons all-purpose flour
  • ¾ cup unsweetened cocoa powder
  • 1½ teaspoons baking soda
  • 1½ teaspoons baking powder
  • 1 teaspoon salt
  • 2 large eggs
  • 1 cup buttermilk
  • ½ cup vegetable or canola oil
  • 2 teaspoons vanilla extract
  • 1 cup boiling water

For the Chocolate Frosting:

  • ½ cup butter, melted
  • ⅔ cup unsweetened cocoa powder
  • 3 cups powdered sugar
  • ⅓ cup milk
  • 1 teaspoon vanilla extract

For the Raspberry Filling:

  • 2 cups raspberries, fresh or frozen
  • ¼ cup granulated sugar
  • 1 tablespoon + 1 teaspoon cornstarch
  • 1 tablespoon water
  • 1 tablespoon lemon juice
  • Fresh raspberries for topping, optional


Instructions

  1. Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans and line the bottoms with parchment paper.
  2. In a large bowl, whisk together the sugar, flour, cocoa powder, baking soda, baking powder, and salt until evenly combined.
  3. Add the eggs, buttermilk, oil, and vanilla extract and beat with a hand mixer or stand mixer on medium speed for 2 minutes until smooth and well combined.
  4. Carefully stir in the boiling water until the batter is completely smooth — it will be thin and that is correct.
  5. Divide the batter evenly between the two prepared pans and bake for 30–35 minutes until a toothpick inserted in the center comes out clean.
  6. Cool in the pans for 10 minutes then transfer to a wire rack to cool completely before frosting.
  7. Make the raspberry filling. Combine the raspberries, sugar, cornstarch, water, and lemon juice in a small saucepan over medium heat. Cook for 5–7 minutes, stirring frequently and mashing the raspberries gently, until the mixture thickens into a glossy compote. Remove from heat and cool completely before using.
  8. Make the chocolate frosting. Whisk the melted butter and cocoa powder together until smooth. Add the powdered sugar, milk, and vanilla and beat until silky, smooth, and spreadable. Adjust consistency with extra milk if too thick or extra powdered sugar if too thin.
  9. Assemble the cake. Place one cooled cake layer on a serving plate. Spread the cooled raspberry filling evenly over the top. Place the second cake layer on top and frost the top and sides with the chocolate frosting. Top with fresh raspberries if desired.

Notes

  • The boiling water in the batter is not optional — it blooms the cocoa powder and creates a deep, intense chocolate flavor and an exceptionally moist crumb that cannot be achieved with cold or warm water.
  • Cool the raspberry filling completely before spreading — warm filling will melt the frosting and cause the layers to slide during assembly.
  • Cool the cake layers completely before frosting — even slightly warm layers will cause the chocolate frosting to melt and slide off the surface.
  • Prep Time: 35 mins
  • Cook Time: 35 mins

Related posts:

Leave a Comment

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star