
This is one of my go-to party cake recipes that makes a great, moist and delicious chocolate cake that’s impressive looking, but simple.
Baking tips for beginners:
Use Room temperature ingredients, particularly room temperature eggs and butter in any recipe. The ingredients more easily whip and emulsify, allowing the batter to properly bake.
Don’t over-mix: Over-mixing the batter is a common mistake and one of the biggest culprits of a dense, dry cake. Once you combine the wet and dry ingredients, use a spatula to gently mix just until the ingredients are combined.
Spoon measure the flour: Be careful when measuring the flour that you don’t “pack” it into the measuring cup. Use a spoon to scoop the flour into the measuring up and then level it off with the back of a knife. Too much flour packed into a cake can also cause it to be dense and dry.
No buttermilk? Buttermilk is a really easy ingredient to make yourself, so don’t fret if you don’t have any on hand!
How to Make Chocolate Raspberry Cake:
1. Make chocolate cake: Mix dry ingredients–sugar, flour, cocoa, baking powder, baking soda, and salt. Add eggs, vanilla, oil, buttermilk and beat for 2 minutes. Stir in boiling water and stir together, being careful not to over-mix the batter. Pour batter into two 9-inch cake pans and bake at 350 for 30-35 minutes.
3. Make raspberry filling: Add sugar, water, lemon juice and cornstarch to a medium saucepan over medium heat. Stir well to combine. Add raspberries and cook, stirring often, until raspberries have softened into the sauce and the sauce has thickened. Allow to cool completely before filling cake.
4. Make chocolate frosting: Combine butter and cocoa powder. Add powdered sugar, milk, and vanilla extract and beat until smooth and creamy!
5. Assemble your cake: Spread a layer of raspberry filling in between the two chocolate cake layers. Frost the outside of the cake with chocolate frosting. If desired, spread remaining raspberry filling on top of the cake.
For High Altitude:
Since the air pressure is lower at higher altitudes, more flour is needed to ensure your cake rises appropriately. Increase flour by 2 Tablespoons if you are baking at high altitude.
For Store Bought Raspberry cake filling:
If you don’t wish to make the filling from scratch you could use a can of raspberry cake filling. (I prefer the Solo brand).
For seedless raspberry filling:
Cook the raspberries with only water and lemon juice. Press the mixture through a sieve, and return the seedless strawberry juice/pulp to the pan. Add sugar and cornstarch and cook until thickened.
Make Ahead and Freezing instructions:
The cake can be made and assembled up to 1 day in advance. Cover and store at room temperature or in the fridge.
Chocolate frosting will last for 2-3 weeks in the refrigerator and can be frozen for 2-3 months in a freezer-safe container. Thaw overnight in the fridge and bring to room temperature before frosting.
To freeze the chocolate cake, cover each cooled cake layer with plastic wrap and place in a freezer-safe container or gallon bag. Freeze for up to 1 month. I think frozen cakes are easier to frost!
Consider trying these popular desserts:
- German Chocolate Cake
- Better Than Anything Cake
- Mississippi Mud Brownies
- Snickerdoodles Bars
- Perfect Chocolate Chip Cookies
- Tres Leches Cake
You can also FOLLOW ME on FACEBOOK, TWITTER, INSTAGRAM and PINTEREST for more great recipes!
Recipe

Chocolate Raspberry Cake
Equipment
Ingredients
Chocolate Cake:
- 2 cups granulated sugar
- 1 3/4 cups + 2 Tablespoons all-purpose flour
- 3/4 cup unsweetened cocoa powder
- 1 1/2 teaspoons baking soda
- 1 1/2 teaspoons baking powder
- 1 teaspoon salt
- 2 large eggs
- 1 cup buttermilk
- 1/2 cup oil (vegetable or canola oil)
- 2 teaspoons vanilla extract
- 1 cup boiling water
Chocolate Frosting:
- 1/2 cup butter , melted
- 2/3 cup unsweetened cocoa powder
- 3 cups powdered sugar
- 1/3 cup milk
- 1 teaspoon vanilla extract
Raspberry Filling:
- 2 cups raspberries (fresh or frozen)
- 1/4 cup sugar
- 1 tablespoon + 1 teaspoon cornstarch
- 1 tablespoon water
- 1 tablespoon lemon juice
- Fresh raspberries for topping on the cake , optional
Instructions
Chocolate Cake:
- Preheat oven to 350 degrees. Grease two 8 or 9 inch round baking pans (I also like to line them with parchment or wax paper).
- Stir dry ingredients together: sugar, flour, cocoa, baking powder, baking soda, and salt.
- Add eggs, vanilla, oil, buttermilk and beat for 2 minutes. Stir in boiling water, which will make the batter very thin. Pour batter into prepared cake pans.
- Bake for 30-35 minutes or until a toothpick inserted into the center of the cakes comes out clean. Cool for 10 minutes. Run a knife around the edges to loosen cake from sides of pan. Invert cakes onto cooling racks.
- Once cooled completely you can wrap them with plastic wrap and store them room temperature for one day, or you can wrap them with plastic wrap and store in a freezer bag to decorate them another day.
Raspberry Cake Filling:*
- Add sugar, water, lemon juice and cornstarch to a medium saucepan over medium heat. Stir well to combine. Add raspberries and cook, stirring often, until raspberries have softened into the sauce and the sauce has thickened. Allow to cool completely before filling cake. (See notes for seedless raspberry filling.)
Chocolate Frosting:
- Combine butter and cocoa powder. Add powdered sugar, milk, and vanilla extract and beat until smooth and creamy! Add additional powdered sugar, to thicken, or milk, to the the frosting, if needed.
Assemble your cake:
- Place one cake round on plate or cake stand. Add desired amount of raspberry filling and spread into a smooth layer. Top with second cake round. Frost the outside of the cake with chocolate frosting. Add fresh raspberries on top, if desired.
Notes
Nutrition
Create a FREE Account to save your favorite recipes and create meal plans
This Chocolate cake and chocolate frosting are Hershey’s recipe.
I originally shared this recipe March 2013. Updated April 2020 with process photos and instructions.
Have you tried this recipe?!
RATE and COMMENT below! I would love to hear your experience.
This post contains affiliate links. I love sharing my favorite products with you!
This post contains affiliate links.
The cake was moist, the raspberry filling turned out good, but everything was way too sweet. I even used 30% LESS sugar and it was still sickly sweet.
Dangerously fantastic! Thanks!
I followed chocolate cake recipe exactly. I put in two 9 in round cake pans. It overflowed all over my oven and started a fire. I think 1 cup water was too much. Similar recipes use 1/2 cup water. Very disappointed.
This was delicious. Great chocolate flavor and nice crumb in the cake. And the raspberry/chocolate combo can’t be beat! I used fresh raspberries but am going to use frozen this next time, because it’s what I have.
The best cake ever I made this for my husband he loved it thank you❤️
I would love to put chocolate chips in the batter. Any recommendation on how much and if it would work?
760 grams of sugar to make this cake, are the Americans ok? If this cake were for 8 people, that’s 95 grams per serve which is like 5x your daily maximum sugar in one slice!!!!! Like yes it’s a cake but I don’t want to get diabetes from it.
Sugar and spice and everything… indulgent! 😄 It’s definitely on the sweeter side, perfect for those “once in a blue moon” celebrations. Remember, moderation is the spice of life – or in this case, the sugar in the cake!
How far in advance can I make the raspberry filling? I just got some fresh raspberries, and am serving the cake in 5 days. Fresh Raspberries won’t last that long.
Hi Estelle, You can make the filling ahead and store it in the fridge covered (up to about 5 days!). Enjoy the cake!
OMG Stacy! I cook all the time but have not ever made a cake from scratch. This was for my sister-in-law’s birthday party and it was important that it be really good. It was fantastic! Everyone raved about the tangy chocolate flavor and the moist cake. I made it in 4 steps over 4 days: Frosting; raspberry filling; cake layers (which I then froze overnight), then assembling and frosting the cake. I filled in heart shape on top of the cake with the leftover raspberry sauce (using a cookie cutter for a mold). Thank you for sharing this wonderful recipie – I’m now inspired to make more cakes!
Good idea Estelle thanks for sharing.
Can you make this into cupcakes? If so, how should I adjust the time? Just made this for my son’s birthday and it was amazing! There was not a piece left by the end of the day. Now he wants me to make it into cupcakes he can bring to school.
Followed the instructions and the cake is cooking over the pans major, is it supposed to be for three layers? It’s not cooking through either, I feel stupid since all of the comments on here are so amazing.
Sounds like you are using low pans maybe. I find recipes often just have pan diameter with no height. Like my pans are 9″ but they are only about an inch high so I have to usually do 3 layer cakes. The writer might be using pans that are 2″ high?
Exact same things happened to me! I used standard 9” pans and I have a burnt cake smell and a lovely mess to clean up! I hope it’s worth it…
Amazing recipe. I will definitely make this cake again. Everyone who had a slice loved it and ate all of it.