This post contains affiliate links.

There's a reason the Hershey Chocolate Cake recipe has been the best chocolate cake recipe for decades! It's soft, moist, and has the perfect chocolate flavor, and don't even get me started on that homemade chocolate frosting! This one of our favorite desserts!

A slice of the best chocolate cake recipe served on a white plate with a sprinkle of cocoa powder and a fork cutting into it.

The Only Chocolate Cake Recipe You'll Ever Need.

This Matilda's Chocolate Cake recipe is one of the very first recipes I ever shared here on TBFS, back in 2010. I've made it hundreds of times, and my kids now make it on their own, too. Thank you Hershey's! Some changes I've made to improve the original recipe are using hot coffee, instead of water (to boost the rich flavor) and adding buttermilk instead of plain milk (for a more tender and moist cake).

I recommend freezing the baked cake rounds ahead of time, and then frosting them right out of the freezer, for super easy prep. Once you see how easy homemade chocolate cake is, you'll never buy a box mix again.

Don't miss all of my cake recipes, including Yellow Cake, Carrot Cake, Biscoff Cake, or Flourless Chocolate Cake.

How to make Chocolate Cake:

Make Cake Batter: Combine sugar, flour, cocoa, baking powder, baking soda, and salt. Add eggs, buttermilk, oil, and vanilla then mix. While stirring, slowly pour in the boiling water or hot coffee, mixing to incorporate (the batter will be thin).

Two images showing the batter for a hershey chocolate cake recipe before and after boiling water is added.

Bake: Carefully pour cake batter into prepared pans and bake at 350°F(180°C) for 30-35 minutes, or until a toothpick inserted in the center comes out clean. Let cakes cool in the pan for a few minutes then invert onto a cooling rack. Let the cakes cool completely before frosting.

Frosting: mix butter and cocoa powder then add powdered sugar, milk, and vanilla. Mix for several minutes until it has a smooth and fluffy texture.

Assemble and Frost: Carefully transfer one cake layer to your serving tray. Spread a generous amount of frosting on top then place the second cake layer on top. Use a cake spatula to frost the top and sides of the cake with remaining frosting. Slice and enjoy!

Two images showing a homemade chocolate cake being frosted then after it's cut and a slice is on a plate to serve.

Recipe Variations:

  • 9×13 Cake: Spray a 9×13 pan with cooking spray then pour the batter. Bake at 350°F (180°C) for 35-40 minutes. Let cool completely then frost and serve.
  • Cupcakes: Place cupcake liners in a muffin pan then fill each one 2/3 of the way full with batter. Bake for 22-25 minutes then let them cool completely before frosting. This recipe makes 24-30 cupcakes.
  • Bundt Cake: Grease and flour a 12 cup bundt pan then pour in batter. Bake for 50-55 minutes then let cool in the pan for 15 minutes. Invert on a wire cooling rack and let cool completely before frosting.
  • Gluten-Free: Use a 1:1 ratio of Bob's Red Mill Gluten-Free Flour instead.
  • Dairy-Free: Instead of cow's milk, use almond milk in the cake and frosting with a 1:1 ratio.

Make Ahead and Freezing Instructions:

To Make Ahead: The cakes and the chocolate frosting can both be made ahead of time. Store frosting in an air-tight container in the fridge for up to two weeks, or in the freezer for up to three months. Let frosting come to room temperature (I also like to re-whip it, with electric beaters), until soft and smooth. 

To Freeze: Allow the cakes to cool completely then wrap each layer in plastic wrap and place in a freezer bag. Freeze for up to three months. Fully frosted cake can also be frozen, if covered really well. 

More Cake Recipes:

4.93 from 798 votes

Hershey Chocolate Cake

Author: Lauren Allen
This easy Chocolate Cake recipe is the best! Soft, moist, and has the perfect chocolate flavor. It's easy to make, with a delicious homemade chocolate frosting.
Prep: 10 minutes
Cook: 30 minutes
Total: 40 minutes
Servings: 16

Email This Recipe!

Enter your email and we'll send it directly to you!

By entering your phone number you consent to receive marketing text messages (e.g. meal plans) from TBFS at the number provided, including messages sent by autodialer. Consent is not a condition of purchase. Msg & data rates may apply. Msg frequency varies. Unsubscribe at any time by replying STOP or clicking the unsubscribe link. Reply HELP for help. Privacy Policy.

Ingredients 
 

Chocolate Cake:

Chocolate Frosting:

Instructions 

  • Preheat oven to 350°F(180°C). Line two 8 inch round baking pans with parchment paper* and then spray lightly with non-stick cooking spray. Set aside.
  • Dry Ingredients: Stir together sugar, flour, cocoa, baking powder, baking soda and salt in large bowl. 
  • Add eggs, milk, oil and vanilla and mix until well combined. Stir in boiling water (or hot coffee). Batter will be thin. Pour batter into prepared pans.
  • Bake 30 to 35 minutes or until a toothpick inserted in the center of the cake comes out clean.
  • Chocolate Frosting: Combine butter and cocoa powder. Add powdered sugar, milk, and vanilla extract. Mix for several minutes until smooth and fluffy.
  • Assemble: Place one cake layer on serving tray. Spread a generous amount of frosting on top. Add second cake layer. Frost top and sides of cake with remaining frosting. Cut and serve.

Notes

Eggs: room temp eggs allow them to emulsify easier in the batter and help the cake rise properly. If you're short on time, place them in a cup of hot water for a few minutes.
Buttermilk: If you don't have any on hand, follow my recipe to easily make your own, with milk and lemon juice or vinegar.
One Layer Cake: Grease 9×13 inch pan with non-stick cooking spray. Pour batter into prepared pan. Bake at 350 degrees F for 35 to 40 minutes. Cool completely before frosting.
Cupcakes: Line a standard cupcake pan with paper liners and fill 2/3 full with batter. Bake cupcakes for 22 to 25 minutes. Cool completely completely before frosting. Makes 24-30 cupcakes
Bundt Cake: Properly grease and flour the pan and cook the chocolate cake in a 12-cup bundt pan for about 50-55 minutes. Cool for 15 minutes in the pan before inverting onto a wire cooling rack.
Gluten-Free: substitute Bob's Redmill Gluten-Free flour at a 1:1 ratio. Dairy-Free: substitute Almond milk in both the cake and frosting recipes at a 1:1 ratio.
Use Parchment Paper: I always use these pre-cut parchment circles so I don't worry about cake sticking to the pan. 
Make Ahead Instructions: The cakes and the chocolate frosting can both be made ahead of time. Store frosting in an air-tight container in the fridge for up to two weeks, or in the freezer for up to three months. Let frosting come to room temperature (I also like to re-whip it, with electric beaters), until soft and smooth. 
Freezing Instructions: Allow the cakes to cool completely then wrap each layer in plastic wrap and place in a freezer bag. Freeze for up to three months. Fully frosted cake can also be frozen, if covered really well. 
Recipe adapted from Hershey’s

Nutrition

Calories: 438kcal, Carbohydrates: 74g, Protein: 6g, Fat: 15g, Saturated Fat: 5g, Polyunsaturated Fat: 2g, Monounsaturated Fat: 7g, Trans Fat: 0.3g, Cholesterol: 41mg, Sodium: 364mg, Potassium: 186mg, Fiber: 4g, Sugar: 48g, Vitamin A: 245IU, Calcium: 66mg, Iron: 3mg

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

Text me new recipe ideas!

Simple, tasty ideas sent once a week. No spam.

Text Signup

Follow Me

Get recipe ideas weekly!

*I originally shared this recipe June 2010. Updated June 2019, April 2021 and April 2023 and February 2025.

The material in this blog post references the trademarked brand “Hershey’s.” The use of this trademark is for informational and editorial purposes only and does not imply sponsorship or endorsement by The Hershey Company.

Related Posts

Share Recipe

About The Author

Lauren Allen

Welcome! I’m Lauren, a mom of four and lover of good food. Here you’ll find easy recipes and weeknight meal ideas made with real ingredients, with step-by-step photos and videos.

4.93 from 798 votes (426 ratings without comment)
Subscribe
Notify of

937 Comments
Inline Feedbacks
View all comments
Katie
5 months ago

5 stars
This is the best chocolate cake recipe I’ve ever made! It’s irresistible and makes my chocolate dreams come true! This recipe is a gem that I will never lose 😍

Angie
11 months ago

5 stars
This is the best chocolate cake and icing I have ever had – my family loved it and keeps asking me to make it again!

Celeste
5 years ago

5 stars
This is a keeper! Absolutely delicious, just the right amount of chocolate taste and super easy recipe! Made it for my sister’s birthday and everyone said it was the best chocolate cake they have ever tasted!! WOW!!

FG
7 years ago

5 stars
I’ve used this recipe for a long time. I was a baker in Alaska and works great every time. I’ve baked it in a cast iron pan on a fire and it’s great. You’ve got to use the Hershey’s cocoa though.

Grace
7 years ago

5 stars
I’m making my second time cake mix…..this time for our church cake walk …..yes we all love it so must spend the wealth of goodness

Steph Warner
7 years ago

Hi ,
Whats the time for cupcakes? I’m not a baker, first time I’ll try without ingredients from a box. 🙂

Karht
7 years ago

5 stars
The recipe made 24 delicious cupcakes. They were a huge hit at an adult birthday celebration. Thank you for an amazing recipe!

Sarah Lynne Landsaw
7 years ago
Reply to  Karht

5 stars
What did you set your heat on for the cupcakes?

Gabby
7 years ago

5 stars
I did the same temperature, but, as the recipe directed, only baked it for 22-25 minutes, until they sprang back up when touched.

Kathy Delisle
7 years ago

My first scratch cake that was edible. Too many doorstops! It turned out fabulous…. Thanks for sharing .

Nadia Rahman
7 years ago

4 stars
hi ,

Could i please ask the oven temperature for fan assisted would the same ? 350 f will be 180 c in fan assisted or should i decrease to 170/160 ?

I am only asking because i made the cupcakes yesterday they tasted delicious but they did not rise evenly and when i took them out of the oven they shrunk not sure what went wrong . ? oven temp

any ideas ?

Katie
7 years ago
Reply to  Nadia Rahman

I would certainly try that amd see if it helps. Possibly try 165°C if you have that option.

Bernice
7 years ago

5 stars
Thank you for sharing! This cake was so tasty and moist. I made a 9 inch cake with a blackberry mid-layer and covered with ganache. Yum! Shared about my experience here: https://memroars.wordpress.com/2018/10/21/engagement-cake/

EJ
7 years ago

5 stars
I am not a baker by any stretch of the imagination, but I followed the directions/recipe and was very pleased with the result! My daughters thought it was the best thing ever and the youngest said it was so good she wanted to eat the whole cake lol

Lx
7 years ago

This was simply amazing. Thank you for the recipe.

Bobby
7 years ago

5 stars
Thank you so much I just redused baking powder and baking soda to 1 teaspoon each.

Carol
7 years ago
Reply to  Bobby

I wish I’d seen this comment before baking. My cake went everywhere. What’s left in the pan is like a brownie so I’m hoping to make something from it.

My guess too much baking soda and powder.

Michelle Hill
7 years ago
Reply to  Carol

Ditto on the wish I’d seen this. ..can’t someone CHANGE that? I don’t hold out high hope for what’s in oven. Great.

bre
7 years ago
Reply to  Carol

5 stars
yay

Gabby
7 years ago
Reply to  bre

5 stars
Oh, I didn’t seem to have that problem at all! I filled the cupcakes 2/3 of the way and they turned out perfectly! This is the best chocolate cake recipe I’ve ever made! With the leftover batter, I filled a square cake pan about 1/4 full and it rose to a height of about 2/3 the pan height. The cupcakes were delicious, but my family did notice that the cake was more moist than the cupcakes. Overall, it was fantastic! The best!!!

Kev
7 years ago
Reply to  Bobby

1 star
This recipe plain out sucks! End of story!

Should not be called chocolate cake…rather cocoa cake. Portions were wrong and over-f lowed 9″ round cake pans. Cake stuck to edges even though I buttered and floured and used Wilton fabric belt wrap thingys soaked in water.
Frosting came out like thick fudge so I thinned it more and was still too thick. Used the Wilton pre icing spray, put in fridge, and when I took out and iced it the cake tore apart of what was left of it anyway. Somebody remove or update this please…stupid me I didn’t read the reviews first. Wondering how this came up first result on Google… probably cuz they titled it using Hershey name and the word chocolate, when it clearly only had to do with only cocoa.

1 9 10 11 12 13 64