Go Back
Slice of chocolate cake with chocolate frosting and raspberry filling on a white plate.

Chocolate Raspberry Cake

Course: Dessert
Cuisine: American
Keyword: Chocolate Raspberry Cake
Difficulty Level: Experienced
Prep Time: 1 hour
Cook Time: 35 minutes
Total Time: 1 hour 35 minutes
Servings: 12 slices
Calories: 764kcal
Author: Kara @I Scream for Buttercream
This rich, moist chocolate raspberry cake is layered with tart raspberry filling and chocolate buttercream, an easy recipe that’s bursting with flavor.
Print Recipe

Ingredients

For the filling:

  • 1 (10 ounce) bag frozen raspberries
  • 1 tablespoon lemon juice
  • ¼ cup water
  • ½ cup granulated sugar
  • 2 tablespoons cornstarch

For the cake:

  • 2 cups all-purpose flour (Measured correctly: Spooned into the measuring cup and leveled off – don't scoop and pack the flour into the cup, that will add too much flour.)
  • ¾ cup unsweetened natural cocoa powder (not Dutch cocoa powder)
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon salt
  • 2 cups granulated sugar
  • ½ cup vegetable oil
  • 1 teaspoon vanilla extract
  • 1-2 teaspoons raspberry extract or emulsion (optional for a raspberry/chocolate flavor in the cake)
  • 1 cup buttermilk
  • 2 large eggs
  • 1 cup hot coffee or very hot water

For the frosting:

  • 1 cup unsalted butter, room temperature
  • 1 cup salted butter, room temperature (if you can't get salted butter, just use all unsalted and add a pinch of salt.)
  • 1 cup unsweetened natural cocoa powder
  • 5 cups confectioner’s sugar
  • 1 teaspoon vanilla extract
  • 3 tablespoons milk (may add another tablespoon if needed)

Instructions

For the filling:

  • Make the filling ahead of time as it needs to cool down before it’s added to the cake. It can also be made the day before and kept in the fridge until ready to use.
  • Add the raspberries, lemon juice and only about half of the water to a large saucepan. Heat on medium and bring to a simmer. Let it simmer for about 5-7 minutes until the raspberries break down a little. Stir frequently.
  • Take the raspberries off of the heat and strain out the seeds if desired. Add the strained mixture back into the saucepan and turn the heat back onto medium.
  • Add the sugar to the mixture and stir in well.
  • Mix the other half of the water with the cornstarch in a small bowl or measuring cup first, then pour into the raspberry mixture.
  • Stir well and allow the mixture to lightly simmer for about a minute or so until it thickens, then remove from the heat.
  • Allow the filling to cool to room temperature, then cover it and place in the refrigerator until ready to use. The filling must be cooled down, preferable chilled when assembling the cake.

For the cake:

  • Preheat the oven to 350 degrees F.
  • Spray, grease and flour, or add parchment paper to two, 8-inch round cake pans. Set aside.
  • In a large mixing bowl, add the flour, cocoa powder, baking powder, baking soda, salt and granulated sugar. Whisk well and set aside.
  • In a medium-sized mixing bowl, add the oil, vanilla extract, raspberry extract (optional), buttermilk and eggs. (Do not add the hot coffee or water yet.) Whisk well and add to the dry ingredients.
  • Mix with an electric mixer on medium only until just combined (about 20 seconds). Mixing scratch cakes for too long or at too high of speed will cause the cake to turn out dense, rubbery or will fall.
  • Add the hot coffee or water and mix on medium until well incorporated (about 15-20 seconds). Scrape down the sides and bottom of the bowl and mix again on medium only for about 10 seconds.
  • Pour the batter into the pans and bake at 350 degrees F for approximately 35 - 40 minutes. Ovens vary. The edges of the cake will start to pull away from the pan a bit, the top will be slightly firm when lightly touched and a toothpick inserted into the center of the cake layer will come out with a few moist crumbs on it or clean, but no raw batter.
  • Pull the cakes out of the oven and set them on a cooling rack to cool for approximately 10-15 minutes, then turn the cakes out the pans and allow to cool completely on the cooling racks before assembling and adding frosting.

For the frosting:

  • Add the room temperature butter and the cocoa powder to a large mixing bowl and mix with an electric mixer on medium to medium-high until well mixed and smooth. Scrape down the sides of the bowl and mix again for another 20 seconds.
  • Add 3 cups of the confectioner's sugar plus 2 tablespoons milk and mix on low until combined, then on medium-high until fully incorporated.
  • Add the vanilla and the last 2 cups of confectioner's sugar. Mix on low until combined, then on medium-high until fully incorporated. Scrape down the sides of the bowl, then mix again for about 20 seconds.
  • Check the consistency. If it's too thick, add 1 tablespoon of milk and mix again. Repeat until the desired consistency has been reached.
  • For fluffy buttercream, mix for about 2 minutes on medium-high to high speed.
  • For smoother frosting, mix on low for a couple of minutes.
  • Timeline and How To Assemble:
  • Make sure the cake has cooled completely and that the raspberry filling is chilled. The cake does not have to be chilled, but it should not be warm.
  • Level the tops of the cake layers if needed however these cake layers should already cool flat on the top.
  • Add a layer of the cake to a cake plate, then add a thin layer of the chocolate frosting. This will keep the raspberry filling from soaking into the bottom cake layer and making it soggy. It's also good to pipe an icing dam just around the inside of the cake layer to keep the raspberry filling from squishing out later on.
  • Add the raspberry filling. Try not to add the filling close to the edges of the cake layer so that it doesn't squish out. Depending on how much the filling cooked down, there may be some extra left over. Don’t fill the cake too much. Either add the leftover filling to the top center of the cake after it's frosted, or add it to an airtight container, store in the refrigerator and use as a jam on toast, etc. Just make sure to use it within about 5 days or so
  • Next, add the last layer of cake, then cover the entire sides and top of the cake with the remaining chocolate frosting.
  • See the notes section for best ways to store this cake, how to serve it and for more questions.

Notes

How to Store: Because this cake is filled with a fruit filling, it should be stored in an airtight container or covered well in the refrigerator. It can last up to 5 days.
How to serve: This cake can be served at room temperature, cold or even warmed up, however you prefer. Please note that the texture of cake when chilled is firmer.
For other questions: Make sure to check out the TIPS & FAQs section in this post, which should answer other questions you may have about ingredients, substitutions, other pan sizes, etc.
Nutritional values are an estimate.
*This recipe card may contain affiliate links. As an Amazon Associate, I earn from qualifying purchases.

Nutrition

Calories: 764kcal | Carbohydrates: 117g | Protein: 7g | Fat: 34g | Saturated Fat: 21g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 9g | Trans Fat: 1g | Cholesterol: 111mg | Sodium: 447mg | Potassium: 346mg | Fiber: 5g | Sugar: 92g | Vitamin A: 1024IU | Vitamin C: 1mg | Calcium: 91mg | Iron: 3mg