Chocolate Raspberry Cake Recipe

This cake is amazing! It has layers of rich dark chocolate sponge, smooth chocolate buttercream, and a homemade raspberry filling, all covered in a delicious chocolate raspberry ganache. If you love the mix of raspberries and dark chocolate, this dessert is a treat for you.


Here’s What You’ll Love About This Chocolate Raspberry Cake

The cake has a fudgy and moist crumb, it's a bit light and spongey, and it gets extra texture from mini chocolate chips.

There's a perfect balance of rich flavors with the tart raspberry filling, sweet chocolate buttercream, and dark chocolate ganache.

You can quickly make the raspberry filling using frozen raspberries in just 15 minutes (plus cooling time).

For an extra-luxurious raspberry flavor in the chocolate ganache, you can add raspberry liqueur (optional).

4 Parts to This Chocolate Raspberry Cake

There’s a lot going on today, so let’s break down each component of this unapologetically indulgent cake:

  1. Raspberry Filling: This sweet-tart jammy raspberry cake filling comes together quickly and easily on the stove. It needs to cool completely before spreading onto the cake layers, so my instructions direct you to make this first.
  2. Dark Chocolate Cake: We’re using the same deeply chocolate-y cake batter as this dark chocolate peanut butter cake. You’ll love the additional texture from mini chocolate chips in the batter—have you tried it before?
  3. Chocolate Frosting: Slather on a layer of chocolate buttercream frosting between each cake layer, and use it to apply a crumb coat to the exterior of the cake. You’ll also need a piping bag + large round tip to pipe a border around the edge of the layers. The chocolate buttercream is here not only for taste, but serves a pretty important function: a buttercream “dam” helps hold the raspberry filling in place.
  4. Chocolate Raspberry Ganache: Top the whole cake with dark chocolate ganache. If desired, you can replace some of the cream with raspberry liqueur (such as Chambord) to make a chocolate raspberry ganache (or keep it just chocolate). Taste testers loved it both ways.

We’re using frozen raspberries for this filling (just like raspberry sweet rolls), which I love because it means this cake can be made year round! You can also use fresh berries. You need 12 ounces (about 340–375g). Here are the other ingredients you need to make it:

  • Water & Cornstarch: Cornstarch is the magic thickener for this raspberry filling. You don’t need much, but you must dissolve it in a little water before using. This is called a “slurry”; see strawberry sauce as an example.
  • Sugar: The raspberry filling should be a little tart, because you’ll pair it with sweet chocolate buttercream frosting.
  • Lemon Juice: The filling needs *something* to balance the berry and sugar, and lemon juice provides that hint of freshness. Do not leave it out or the filling will taste pretty flat.
  • Vanilla Extract: Add a little splash of vanilla extract to the filling once it comes off the heat. It tastes and smells incredible!

Make this first, so it has plenty of time to chill and thicken:

bowl of thickened raspberry sauce filling.

A Very Chocolate-y Chocolate Cake

You need a handful of basic baking ingredients for the cake batter. The acidity in both sour cream and buttermilk is a must to provide proper leavening. (If desired, see baking powder vs baking soda for more information.) A touch of espresso powder and hot coffee further enhances the chocolate flavor. The cake will not taste like coffee—rather, these add depth to the cake’s dark chocolate flavor. Feel free to skip the espresso powder and replace hot coffee with hot water or use decaf.

  • Why hot liquid? The hot liquid encourages the cocoa powder to bloom and dissolve.

Chocolate chips take the chocolate flavor to the next level, and, as I mentioned above, they also supply phenomenal texture. I use mini semi-sweet chocolate chips, but regular size are fine too. Toss them in a little flour before folding into the batter, to help keep them from sinking to the bottom of the cake.

Ingredients

Raspberry Filling

  • 1.5 Tablespoons (22ml) water
  • 1.5 Tablespoons (4.5 teaspoons or 12g) cornstarch
  • 3 cups (12 ounces/about 340–375g) fresh or frozen raspberries (do not thaw)*
  • 1/3 cup (67ggranulated sugar
  • 1 teaspoon lemon juice
  • 1/2 teaspoon pure vanilla extract

Cake

  • 1 and 3/4 cups (219gall-purpose flour (spooned & leveled)
  • 3/4 cup (62g) unsweetened natural cocoa powder* (see Note)
  • 1 and 3/4 cups (350ggranulated sugar
  • 2 teaspoons baking soda
  • 1 teaspoon baking powder
  • 1 teaspoon salt
  • 2 teaspoons espresso powder (optional)*
  • 1/2 cup (120ml) vegetable oil or melted coconut oil
  • 2 large eggs, at room temperature
  • 3/4 cup (180g) full-fat sour cream, at room temperature
  • 1/2 cup (120ml) buttermilk, at room temperature*
  • 2 teaspoons pure vanilla extract
  • 1/2 cup (120ml) hot water or black coffee*
  • 1 cup (170gmini semi-sweet chocolate chips (tossed in 1 Tablespoon flour)
  • Chocolate Buttercream
  • 1 cup (16 Tbsp226gunsalted butter, softened to room temperature
  • 3 and 1/2 cups (420gconfectioners’ sugar
  • 1/2 cup (41g) unsweetened natural or dutch-process cocoa powder
  • 3 Tablespoons (45ml) heavy cream or milk
  • 1/8 teaspoon salt
  • 2 teaspoons pure vanilla extract

Chocolate Raspberry Ganache

  • 8 ounces (226g) quality semi-sweet or bittersweet chocolate, finely chopped
  • 3/4 cup (180ml) heavy cream or heavy whipping cream
  • 1/4 cup (60ml) raspberry liqueur, such as Chambord (or replace with more heavy cream)
  • optional garnish: fresh raspberries & fresh mint

Instructions

  1. Make the raspberry filling: Whisk the cornstarch and water together until all the cornstarch has dissolved. (I just use a fork to mix—very easy.) Combine cornstarch mixture, raspberries (no need to thaw if using frozen), granulated sugar, and lemon juice in a medium saucepan set over medium heat. Using a silicone spatula, stir the mixture, mashing the raspberries as they begin to thaw and soften. Bring to a boil and let it boil for 5 full minutes, stirring occasionally. Remove pan from heat and stir in vanilla extract.
  2. Allow the raspberry filling to cool at room temperature for 10–15 minutes, then transfer it to a bowl or container and place it in the refrigerator for at least 4 hours and up to 1 week (the longer, the better). No need to cover it, but if refrigerating for longer than 4 hours, cover tightly. It will continue to thicken up as it chills. Raspberry filling must be completely chilled before using in your cake. If freezing, see Note below for instructions.
  3. Preheat oven to 350°F (177°C). Grease three 9-inch cake pans, line with parchment paper rounds, then grease the parchment paper. Parchment paper helps the cakes seamlessly release from the pans. (If it’s helpful, see this parchment paper rounds for cakes video & post.)
  4. Make the cake: Whisk the flour, cocoa powder, sugar, baking soda, baking powder, salt, and espresso powder (if using) together in a large bowl. Set aside. Using a handheld or stand mixer fitted with a whisk attachment (or you can use a whisk), mix the oil, eggs, and sour cream together on medium-high speed until combined. Add the buttermilk and vanilla and beat until combined. Pour the wet ingredients into the dry ingredients, add the hot water/coffee, and whisk or beat on low speed until the batter is completely combined. Fold in the flour-coated chocolate chips. Batter is thin and you may see some air bubbles on the surface—that’s normal. You should have about 6–6.5 cups of batter, or around 1400g. 
  5. Divide batter evenly between 3 pans. Bake for approximately 24–26 minutes. Baking times vary, so keep an eye on yours. The cakes are done when a toothpick inserted in the center comes out clean.
  6. Remove the cakes from the oven and set on a wire rack. Allow to cool completely in the pan. The cakes may slightly sink in the middle as they cool—that’s expected.
  7. As the cakes cool, make the chocolate buttercream: With a handheld or stand mixer fitted with a paddle or whisk attachment, beat the butter on medium speed until creamy, about 2 minutes. Add confectioners’ sugar, cocoa powder, heavy cream, salt, and vanilla extract. Beat on low speed for 30 seconds, then increase to high speed and beat for 1 full minute. Taste. Beat in another pinch of salt if desired. (Do you want your buttercream darker in color? I have a trick detailed on the full chocolate buttercream page.) You’re going to use this buttercream for a thin layer under the raspberry filling, a piped “dam” around 2 of the cake layers, and for the crumb coat. Makes about 2.5 cups total.
  8. Begin layering with raspberry filling and buttercream: Place 1 cooled cake layer on your cake stand or serving plate. Using a large icing spatula or small offset spatula, evenly cover the top with about 1/4 cup of chocolate buttercream frosting (a thin layer). Spoon about 1/2 cup of the chocolate buttercream into a piping bag fitted with a large round piping tip. I use Wilton 2A. (Or just use a disposable piping bag and cut about 3/4 inch off the tip and use that without a piping tip.) Pipe a thick border of buttercream around the edge of the frosted cake layer, using about half of the buttercream in the piping bag. Then, using a small offset spatula, spread half of the thickened and chilled raspberry filling (about 1/2 cup) inside the buttercream border. Place second cake layer on top and then repeat the filling process: spread frosting, pipe border with remaining frosting in piping bag (if you ran out, just use more from the big bowl of buttercream), then spread on remaining raspberry filling. Top with third cake layer.
  9. Apply crumb coat: Using the remaining chocolate buttercream, spread a thin layer of buttercream on the top and around the sides as a crumb coat. Run a bench scraper around the cake to smooth out crumb coat. Chill uncovered in the refrigerator for at least 30 minutes and up to 3 hours to set the crumb coat.
  10. As your crumb coat sets, make and chill the chocolate ganache: Place finely chopped chocolate in a medium heat-proof bowl. Heat the cream and raspberry liqueur, if using, in a small saucepan over medium heat until it begins to gently simmer. (Do not let it come to a rapid boil—that’s too hot!) Pour over chocolate, then let it sit for 2–3 minutes to gently soften the chocolate. With a metal spoon or small rubber spatula, very slowly stir until chocolate has melted and mixture is smooth. Ganache is thin. The finer you chopped the chocolate, the quicker it will melt with the cream. If it’s not melting, do not microwave it. If needed, see Troubleshooting Chocolate Ganache. Once ganache mixture is smooth, let it chill for 30 minutes in the refrigerator to thicken before spreading on chilled crumb-coated cake.
  11. Pour/spoon thickened ganache on chilled cake, and spread all over cake with an icing spatula. Garnish with fresh raspberries, if desired. Serve cake immediately or chill, uncovered, for up to 4–6 hours before serving. Cake can be served at room temperature or chilled.
  12. Cover leftover cake tightly and store in the refrigerator for 5 days. I like using a cake carrier for storing and transporting.