Go Back
+ servings
a slice of chocolate raspberry cake on a plate with fresh raspberries.
Print Recipe
5 from 63 votes

Chocolate Cake with Raspberry Filling

This chocolate cake with raspberry filling is a lusciously moist and rich chocolate layer cake with homemade raspberry jam. This impressive but simple dessert is perfect for celebrating any occasion!

Equipment

Ingredients

For the Batter

  • cups all-purpose flour
  • ¾ cups unsweetened dark cocoa powder
  • ½ teaspoon baking soda
  • teaspoon baking powder
  • 1 teaspoon salt
  • 2 cups granulated sugar
  • ½ cup canola oil
  • 2 large whole eggs room temperature
  • 1 cup whole or 2% milk room temperature
  • cup hot coffee or water I recommend coffee for an even richer flavor. You won't taste it in the cake at all!

For the Buttercream

  • 1 ½ cup unsalted butter room temperature
  • 2 cups powdered sugar
  • 1 tablespoon unsweetened dark cocoa powder
  • 1 tablespoon heavy cream or milk
  • 2 teaspoon vanilla extract
  • fresh raspberries, for decorating

For the Raspberry Jam

  • 3 cups frozen raspberries can sub fresh berries
  • cup granulated sugar
  • 2 tablespoon lemon juice
  • 1 ½ tablespoon corn starch
  • 1 tablespoon water

Instructions

Make the Jam

  • In a small pot, combine the raspberries, sugar, and lemon juice. Cook over medium heat for 12 minutes until they are boiling, then mash them with the back of your spoon.
  • Whisk together the corn starch and water and pour it into the jam. Let it cook for another 2-3 minutes until it has thickened.
  • Transfer the jam to a bowl to cool completely before using.

Make the Batter

  • Lightly oil and line the bottoms of three round 8-inch cake pans. Preheat the oven to 325 F/165 C.
  • In a medium bowl, whisk together the flour, cocoa powder, baking soda, baking powder, and salt. Set aside.
  • In a large bowl, whisk together the oil and sugar until combined.
  • Whisk in the eggs one at a time until completely combined.
  • Whisk in the milk.
  • Whisk in the dry ingredients until just combined.
  • Finally whisk in the hot coffee until just combined.
  • Pour the batter evenly between the prepared pans. (about 385 grams in each)
  • Bake the layers on the middle rack for 18-20 minutes, or until a toothpick inserted into the center comes out with just a few moist crumbs.
  • Let the layers cool on a wire rack for 15 minutes, then run a small offset spatula around the sides to release and remove them from the pan. Let them cool completely.

Making the Buttercream

  • In a stand mixing bowl, cream the butter until smooth with the paddle.
  • Gradually mix the powdered sugar and cocoa powder into the butter.
  • Mix in the heavy cream and vanilla, then increase the speed to medium and let the buttercream mix for 1-3 minutes or until it looks light and fluffy.

Assembling

  • Place one layer on a platter or cardboard round. Evenly spread a thin layer of frosting across the top.
  • Pipe a border of frosting around the edge.
  • Fill the center with ⅓ cup of the raspberry jam and evenly spread it to the buttercream border. The jam should not go higher than your border otherwise it will leak out of the sides!
  • Continue layering the next layer the same way.
  • For the last layer, place it upside down so that the top is completely flat.
  • Cover the sides and top of the cake with the rest of the buttercream. Use a small offset spatula or spoon in a circular motion to create swirls on the side or decorate it as you wish.
  • Decorate the top border with fresh raspberries and enjoy!

Notes

*Measure your flour properly. This is my #1 baking tip! Do not ever scoop a measuring cup into your flour as this always leads to using too much flour. Instead, use the spoon-level method. This means fluffing the flour first, then spooning it into your measuring cup/spoon. For the BEST results, use a kitchen scale!*
FOR A 9-INCH CAKE: Evenly distribute the batter into three 9-inch cake pans. The layers will bake quicker than the indicated baking time so make sure to keep an eye on them for 12-15 minutes.
FOR A 6-INCH CAKE: Eliminate the baking soda and reduce the baking powder to 1 ½ teaspoons. Evenly distribute the batter into three 6-inch cake pans. Bake the layers at 350 F and begin checking for doneness at 25 minutes.
Use room temperature ingredients: Using room temperature ingredients creates a smooth, fully blended batter that will result in a uniform texture and even baking.
Baking times may vary: All ovens are different, and your layers may bake quicker or take longer than the indicated baking time. I recommend always checking on them occasionally and testing for doneness!
Don't overbake the layers! This chocolate cake is extremely moist and delicious if baked correctly. A toothpick inserted into the center should come out covered in a few moist crumbs when they are done baking.
Storage & Freezing
  • Make ahead: Make and assemble it ahead of time and store it in the fridge until ready to serve. Let it sit out at room temperature for at least 30 minutes before serving.
  • Fridge: To keep it super moist, store the slices in the fridge after cutting.
  • Freezer: Store the whole cake in an airtight container for 1-2 weeks. You can also cut it into slices, wrap them in plastic wrap, and store them in a freezer bag or airtight container for up to one month!