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.

Slice of black magic cake with a bite missing, set on a white plate next to a fork.
Subscribe to My Baking Addiction!
Get updates on the latest posts and more from My Baking Addiction straight to your inbox.
Please enable JavaScript in your browser to complete this form.

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.

Frosted black magic cake, topped with gold star sprinkles, set on a white cake stand.

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.

Slice of black magic cake on a white plate. A cake stand with the rest of the cake is in the background.

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.

Black magic cake ingredients arranged on a light gray countertop.

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
Black magic cake batter in a white mixing bowl.

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!)

Black magic cake batter in two round cake pans, ready to go in the oven.

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.

Baked black magic cake in two round cake pans, both set on a wire cooling rack.

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!

Cake server picking up a slice of black magic cake from a cake stand.

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.

Fork about to take a bite from a slice of black magic cake on a white plate.

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 frosted with chocolate frosting and garnished with gold star sprinkles set on a white cake stand.
Want to save this recipe?
Enter your email and get it sent to your inbox!
Please enable JavaScript in your browser to complete this form.

Black Magic Cake

By: Jamie Lothridge
4.48 from 89 ratings
Prep: 15 minutes
Cook: 35 minutes
Cool Time: 1 hour
Total: 1 hour 50 minutes
Servings: 10
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.

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

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

Serving: 1slice, Calories: 426kcal, Carbohydrates: 68g, Protein: 6g, Fat: 15g, Saturated Fat: 2g, Polyunsaturated Fat: 11g, Cholesterol: 40mg, Sodium: 589mg, Fiber: 2g, Sugar: 48g

Nutrition information is automatically calculated, so should only be used as an approximation.

4.48 from 89 votes (81 ratings without comment)

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating




This site uses Akismet to reduce spam. Learn how your comment data is processed.

302 Comments

  1. Mia says:

    Does anyone know if this cake will support the weight of fondant? It’s in the oven right now and it just dawned on me that it may not hold up well! Thank you!

    1. Jamie says:

      Hi, Mia! Try freezing the cake first. I’ve never tried fondant with this cake, so I honestly don’t know. Good luck!

  2. Queen Ijnanya says:

    I usrd pure almond flavoring instead of vanilla and a mocha frosting with almond flavoring as well.  Next time I’m going to try the coconut milk instead of butter milk.  And call it “BLACK MAGIC ALMOND ENJOY” – OMG

    1. Jamie says:

      That sounds amazing!

  3. Gean says:

    Hi ! I love you recipe! I’ve made this twice and my colleagues loved it and I even shared them the recipe. It was very easy :) btw I want to ask, can I use the same recipe and make it into a cake roll?  Thanks :)

    1. Jamie says:

      Hi, Gean! I’ve never tried this recipe for a cake roll, so I honestly don’t know how it would go. If you try it, please let me know the results!

  4. Pat sulek says:

    I have made this cake for over 30years. And it is The Hershey Cocoa Cake. The only variation is the coffee, by which it should have been Hot Coffee. The Hershey cake called for Hot Water.and as the other comment states it had a very similar Ganache Frosting.
    This is the same cake just tweaked up.

    1. Jamie says:

      Yes, it is, Pat! It’s a great recipe!

  5. Farah says:

    Hi!
    I’m new in baking. Please tell me the difference in ingredients if I want to serve 16 persons. And can I use Nutella spread for frosting or please send me the recipe of frosting this black magic cake. Thanks

    1. Jamie says:

      Hi, Farah! I think this cake could serve 16 people. The slices may be a bit smaller, but I think it should work fine. I hope you enjoy it! And feel free to use the Nutella or a simple ganache frosting. Good luck!

  6. Kimberly titter says:

    This is my favorite cake, cream cheese icing goes great with this cake.
    I have Hersheys original cook book it’s very old.
    I have seen other people write this recipe but they didn’t have coffee in it, coffee makes a difference
    So if you make it don’t forget the coffee. Have never tried buttermilk I’ve always put vinegar in the milk
    that’s the way my mom showed me how to do it.
    If you make it and you should ever one will complement you on such a great cake. And use home made
    Cream cheese icing

    1. Jamie says:

      Hi, Kimberly! I’m definitely going to give the cream cheese icing a try. And making your own buttermilk is incredibly easy….I agree! I’m so glad you enjoy the cake. Take care!

    2. Karen Lucero says:

      @Kimberly titter, I am going to use the coffee, buttermilk and instead of oil i am using Mayonnaise, i hear it make is a lot more moist. I also plan on making a cream cheese with chocolate chip frosting. Im not much of a baker, so, i hope it turns out okay. I looks great and yours sounds like it came out really good. Thanks for the ideas.

  7. Tony says:

    This is the “only ” chocolate cake. My mom made this when I was a little boy growing up in the early 70’s. I have her Hershey’s recipe along with the original “Mocha-Chocolate Icing” used on the cake. The recipe for the cake is identical to yours. If you haven’t had this icing, you haven’t had the “Black Magic Cake”. The recipe is as follows- Mocha-Chocolate Icing: 6 T. cocoa, 6 T. coffee, 6 T. butter, 1 tsp. vanilla & 3 C. sifted confectioner’s sugar.

    1. Jamie says:

      Wonderful, Tony! I’m going to try the icing…thank you!

  8. Patricia says:

    My comment is in response to Michelle who is having problems with the cake not rising properly and falling in the middle. In addition to old baking powder if you are at an altitude higher than 3,000 feet that could be effecting your cake. If you do live at a higher altitude check out the recipie conversions at the King Arthur Flour website. Here is a link, http://www.kingarthurflour.com/learn/high-altitude-baking.html .

    I live at over 5,000 feet and baked 35, 10 inch, 3 layer cakes this last year and used these conversions for every cake and they all came out perfectly.

    Hope this helps,
    Patricia

    1. Jamie says:

      Thank you, Patricia! Great advice!

  9. Indira says:

    Actually I am not fan chocoalate cake but this recipe made me suprised. Yes true this is the best chocolate cake I ever had. Thank you for your recipe.

    1. Jamie says:

      You’re so welcome, Indira! Thank you for your feedback!

  10. Deb Milcarek says:

    Loved this recipe!  I used full fat coconut milk and coconut oil (instead of vegetable oil) and organic turbanado sugar.  It was fabulous.  Thanks you!

    1. Jamie says:

      You’re so welcome, Deb!