This post may contain affiliate links. Please read our privacy policy.
If you’re looking for a rich, decadent chocolate cake, look no further than black magic cake! Buttermilk makes this classic chocolate cake moist and tender, while coffee brings out all of its chocolatey goodness.
When it comes to cake, most people in my family are team chocolate all the way! If you’ve ever made Hershey’s Black Magic Cake, you know that this cake is a chocolate lover’s dream come true, so it’s one of the must-make cake recipes around here.
Black Magic Cake is rich, moist and comes together with ease. I also love that it bakes up perfectly regardless of if you use a bundt pan, two 9-inch round baking pans or a 9×13-inch baking pan. You can frost it, drizzle on a simple ganache, or even dust it with powdered sugar and serve it alongside fresh berries.
If you love chocolate, this cake recipe is sure to become a family favorite.
WHAT IS BLACK MAGIC CAKE?
Black magic cake is a Hershey’s classic. I can only assume that it’s called a “black magic cake” because it is so rich and chocolatey, and so good it almost tastes like magic.
What makes it so magical?
The cake is super moist, thanks to a combination of oil and buttermilk in the batter. The buttermilk also gives the cake a super tender crumb, so every bite practically melts in your mouth.
The other thing that makes this cake so amazing is strong black coffee in the batter.
Don’t panic if you don’t like coffee. I promise that this cake doesn’t actually taste like coffee at all!
Coffee does this magical thing when it is paired with chocolate; it enhances the flavor of the chocolate and makes it somehow taste even more…well, chocolatey!
Combine these things together and you’re left with a chocolate cake that is even more incredible than the classic Hershey’s chocolate cake.
HOW TO MAKE BLACK MAGIC CAKE
Much like the best chocolate cake, this is one cake that will have everyone begging you to give them the recipe.
But the real secret is that it’s so simple to make. You don’t even have to use a mixer if you don’t have one!
Ingredients you’ll need
Black magic cake is made with unsweetened cocoa powder. Don’t worry about buying a specific type or brand; I find any unsweetened cocoa powder works well here!
In addition to the buttermilk, vegetable oil, and coffee that we talked about earlier, you’ll also need:
- 2 cups granulated sugar
- 1 3/4 cups all-purpose flour
- 2 teaspoons baking soda
- 1 teaspoon baking powder
- 1 teaspoon salt
- 2 eggs
- 1 teaspoon pure vanilla extract
Can you make this cake without coffee?
I know I sound like a broken record, but I really can’t emphasize enough: This can’t doesn’t taste like coffee.
But if you can’t use coffee in the cake or are really opposed to the idea, you can use 1 cup of water instead.
Helpful resources for making black magic cake
If you’re a beginner baker (or even if you’re a baking veteran), I’ve got some helpful posts that you may want to check out as you make this cake.
The first step to baking success is making sure you’ve properly measured your ingredients. Learn how to measure flour to get off on the right foot with this recipe.
If you forgot to buy buttermilk at the store, don’t worry! You can use my simple buttermilk substitute in this recipe instead. (Make sure you save that post because it’s useful for so many recipes!)
Making this cake
I love making black magic cake as a layer cake. Prep two 9-inch round cake pans by greasing and flouring them. This will help the cake layers release cleanly after baking.
In a large bowl, whisk together the dry ingredients: sugar, flour, cocoa powder, baking soda, baking powder, and salt.
In a separate bowl, whisk together the rest of the cake ingredients: eggs, buttermilk, coffee, vegetable oil, and vanilla.
Add the wet ingredients to the dry ingredients. If you have an electric mixer, use your mixer to beat on medium speed for 2 minutes. If you don’t have a mixer, whisk vigorously for 2 minutes.
The batter will be quite thin – don’t worry, it’s supposed to be!
Divide the batter evenly between the two pans and bake for about 30-35 minutes. A toothpick inserted in the center of the cakes should come out with a few moist crumbs clinging to it, but no wet batter on it.
Let the cakes cool in the pan for 10 minutes before turning them out onto a cooling rack to cool completely before frosting.
FROSTING OPTIONS AND TIPS
Personally, I think the ultimate way to eat black magic cake is with homemade chocolate frosting. The double chocolate combo is so decadent – it’s any chocolate lover’s dream!
But that doesn’t mean that’s the only way to finish this cake!
Try my favorite buttercream frosting or cream cheese frosting. Or you could get a bit creative and pair this black magic cake with peanut butter frosting or marshmallow frosting!
Frosting tips and tricks
Because this cake is so moist, it does make it a little more difficult to frost than some other cakes.
It won’t affect the flavor at all; it just means that you might end up with some crumbs in your frosting if you don’t think ahead a bit.
For a really clean look, do a crumb coat on this cake. Freezing the cooled cake layers for 1-2 hours will also make them easier to frost cleanly.
CAKE STORAGE
Store this cake covered at room temperature for up to 3 days. It will stay nice and moist – no dried-out chocolate cake leftovers here!
If you choose to use a cream cheese-based frosting, make sure to store the cake in the refrigerator instead of at room temperature.
Dig into a slice of this black magic cake with a big, cold glass of milk and enjoy pure chocolate cake bliss.
Black Magic Cake
Equipment
Ingredients
- 2 cups granulated sugar
- 1 ¾ cups all-purpose flour
- ¾ cup unsweetened cocoa powder
- 2 teaspoons baking soda
- 1 teaspoon baking powder
- 1 teaspoon salt
- 2 eggs
- 1 cup buttermilk
- 1 cup strong black coffee OR 2 teaspoons powdered instant coffee dissolved in 1 cup boiling water cooled
- ½ cup vegetable oil
- 1 teaspoon pure vanilla extract
Frosting as desired, such as:
Instructions
- Heat oven to 350°F. Grease and flour two 9-inch round cake pans.
- Stir together sugar, flour, cocoa, baking soda, baking powder and salt in a large bowl.
- Whisk together eggs, buttermilk, coffee, oil, and vanilla. Add to the dry ingredients; beat on medium speed of mixer 2 minutes (batter will be thin). Pour batter evenly into prepared pans.
- Bake 30 to 35 minutes, or until a wooden pick inserted in the center comes out clean.
- Cool for 10 minutes; remove from pans to wire racks. Cool completely.
- Frost as desired.
Video
Notes
- If baking in a 13×9-inch pan, bake for 35-40 minutes.
- If baking in a 12-cup bundt pan, bake for 50-55 minutes.
- This is a very moist cake, so consider using a crumb coat when frosting, and/or freezing the cake layers before frosting.
- Store leftover cake covered at room temperature for up to 3 days.
- From Hershey’s.
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.
I made this cake before and overbaked it. I made it again tonight and it was absolutely amazing! I took it out of the oven just a couple of minutes before being completely done as it would continue to bake when out of the oven. I topped it with a cream cheese frosting. Great recipe!
So happy to hear you loved it, Angela! Thanks so much for stopping by and leaving your feedback!
-Jamie
This cake looks F A N T A B U L O U SSS!!! (reminds me of the “Shirley Temple cake”. Her chocolate cakes were nearly black with cocoa – she loved chocolate that much. I have a question about the recipe: can I substitute melted butter/margarine in place of the oil? I would be very grateful to know and if your answer is “no” which oil do you use in this scrumpdiliicious – looking (I can almost taste it through the screen!) divine chocolate dream!
I love this recipe and have made it several times now but when I bake it in 2 round pans the cake doesn’t rise that much and sinks a bit once cool. Today I tried it in a fluted pan and it rose beautifully but once I took it out it deflated and sunk. Anyone knows why this happens or have any suggestions? Contrary to the time specified, the tooth pick came out clean after about 35 min.
Thanks .
This recipe is heaven! I’ve been making it for years from the original Hershey’s recipe card that was printed a very long time ago. I’m so thankful that you blogged it! I’m responsible for a birthday cake today and forgot my recipe card at home. Your post saved my bestie’ s birthday! Blessings!
So happy to hear you enjoyed the recipe Amber! Thanks for stopping back to leave your feedback! Happy baking!
-Jamie
I made this cake it was very easy I used 2% milk it worked great and taste good
So happy to hear you enjoyed it, Hazel! Thanks for stopping by and leaving your feedback!
If I don’t have buttermilk or vinegar to make sour milk, can I combine 3/4 cup of sour cream and 1/4 cup water to substitute for sour milk?
Hi, Jessica! I’ve not tried this, but I would suggest thinning the sour cream with a little milk. Let me know how it turns out!
Can I use a homemade white buttercream frosting or homemade whipped cream frosting for this cake or is chocolate frosting better for this recipe?
Hi, Annette! You can make whatever kind of frosting you like. Enjoy!
Definitely a keeper recipe! I baked it for the first time a week ago and had an issue with it falling slightly once it came out of the oven. Not in a major way, and really all it meant was that I didn’t have to level it. I had used precisely the ingredients called for and baked it for exactly 30 minutes. The toothpick test came back completely clean, and it was definitely cooked all the way through. It was absolutely delicious, and I knew I had to try it again. I’ve been struggling trying to find a moist, tender cake that won’t fall apart. It’s a hard balance for some reason!
I baked it again tonight after looking up what might cause a cake to fall. This time, I swapped the oil for melted butter and only used 1/4 cup (to reduce the liquid a bit, plus butter was on sale). I also lowered the baking soda amount to 1.5 tsp (having read that baking soda and chocolate cakes sometimes don’t play nicely together). I also kept it in the oven for the whole 35 minutes (used two 9″ round pans). This time they came out perfectly and maintained their shape with no falling! No idea if one or all three tweaks were the final piece of the puzzle for me, but I’ve got it down pat now.
The flavour is wonderful. Chocolatey and rich, just the right sweetness, and it’s true – the coffee really enhances the chocolate flavour. The reviewer who said it tasted overpoweringly of coffee probably used espresso, or went crazy with instant coffee, or something silly like that.
Thanks so much for this recipe! My family can’t seem to branch out and request birthday cakes that aren’t chocolate, so they’ll be super pleased when I starting showing up with these babies. *thumbs up*
Great suggestions, Laura! I’m really glad you liked it!
I did NOT like the taste of this cake – the coffee was overpowering. I also baked in a 9×13 for 31 minutes and the center was collapsed as mentioned in earlier comments. Will not make again.
I’m sorry you didn’t enjoy the cake, Hillary. Thanks for your feedback.
How in advanced can this cake be made? Once made, can it be frozen or refrigerated until decorated?
Hi, Teresa! You could probably freeze this cake for up to about 2 months. Thaw for about 40 minutes before frosting. I hope you like it!