When a birthday rolls around or you just want a comforting weekend treat to share with the family, you’ll need a reliable recipe that doesn’t require a trip to the grocery store. This scratch-baked Hershey’s Perfectly Chocolate Chocolate Cake is the ultimate solution for busy families. It’s as easy as whipping up a boxed cake mix, but with a far better flavor and texture. It’s made complete by topping it with Perfectly Chocolate Chocolate Frosting.
Over the years, I’ve made this classic recipe dozens of times for family barbecues and parties. It is easy enough for new bakers, while being tasty enough for seasoned pros, and guarantees rave reviews from the crowd every single time. It’s made with easy, simple ingredients that are likely already in your pantry.

WANT TO SAVE THIS RECIPE?
Enter your email below and we’ll send it straight to your inbox. Plus you’ll get great new recipes from us every week!
Jump to:
- What is Hershey’s Perfectly Chocolate Chocolate Cake?
- Key Takeaways
- Ingredient Notes
- How to Make the Hershey’s Perfectly Chocolate Chocolate Cake
- High Altitude Adjustments
- Easy Cake Decoration
- Pro Tips for the Best Chocolate Cake
- Variations and Substitutions
- Frequently Asked Questions
- What to Serve with Chocolate Cake
- Storage and Reheating
- More Chocolate Cakes
- More Dessert Recipes
- Hershey’s Perfectly Chocolate Chocolate Cake and Perfectly Chocolate Chocolate Frosting
What is Hershey’s Perfectly Chocolate Chocolate Cake?
The Hershey’s Perfectly Chocolate Chocolate Cake is a classic, scratch-made two-layer cake made with pantry staples like unsweetened cocoa powder, sugar, oil, and eggs. Some of the best recipes are found on the back of a box, just like this Hershey’s chocolate cake recipe. It has a moist, rich, light crumb, paired with a creamy cocoa-infused frosting.
Key Takeaways
- Ready to eat in less than an hour!
- Uses simple pantry ingredients that you have on hand.
- Perfect for parties and busy weeknights.
- Whip up the batter in one single bowl.
- Use similar ingredients for the frosting.
Ingredient Notes

Granulated Sugar: Sweetens the cake and locks in the moisture for a soft crumb.
All-Purpose Flour: Provides the structure for the cake without making it dense or heavy.
Hershey’s Cocoa Powder: Unsweetened cocoa powder brings out that classic, nostalgic chocolate flavor.
Baking Powder: Essential leavening agent that helps the cake rise evenly.
Baking Soda: Also helps the cake rise evenly when paired with baking powder.
Salt: Adds just the right amount to cut through the sweetness of the cake.
Eggs: Binds the ingredients together and provides structural stability.
Milk: Adds richness and moisture to the batter base.
Canola Oil: Keeps the cake moist for days, performing better than most butter in oil-based cakes.
Vanilla Extract: Adds aromatic flavor to the cake and is also added into the frosting for flavor.
Boiling Water: This is the secret weapon of this cake that allows the cocoa powder to bloom and intensify the chocolate flavor while thinning the batter.
Butter: Formulates the rich, savory base of the traditional chocolate buttercream frosting.
Powdered Sugar: Dissolves into the frosting to add structure and sweetness.
How to Make the Hershey’s Perfectly Chocolate Chocolate Cake

- Heat oven to 350°F. Grease and flour two 9-inch round cake pans. Set aside.
- Stir together sugar, flour, cocoa, baking powder, baking soda, and salt in a large bowl. Add eggs, milk, oil, and vanilla; With a mixer, beat on medium speed for about 2 minutes. Carefully stir in boiling water. The batter will be very thin. Pour batter into prepared cake pans.
- Bake for 30 to 35 minutes or until a toothpick inserted in the center comes out clean. Cool 10 minutes; remove from pans to wire racks. Cool completely. Frost with chocolate frosting.
- *Before high altitude changes: 2 cups sugar, 1-½ teaspoons baking powder, 1-½ teaspoons baking soda, 1 cup milk
- Perfectly Chocolate Chocolate Frosting. Melt butter. Stir in cocoa. Alternately add powdered sugar and milk, beating to spreading consistency. Add a small amount of additional milk, if needed. Stir in vanilla. About 2 cups frosting.
If you haven’t baked very many layer cakes before, be sure to check out my Baking Tips For Layer Cakes post.
High Altitude Adjustments
I made a couple of high altitude changes to the recipe because cakes can be temperamental at my altitude (5,000 ft). Generally, I use this great guide from Bonnie, City Home / Country Home, to modify recipes for high altitude. Just a few simple tweaks can make a big difference when baking cakes at altitude.
Easy Cake Decoration

After baking and frosting, the cake is decorated simply with chocolate curls. The chocolate curls are easy to make. You just use a vegetable peeler and a chocolate bar. You could also decorate the cake with sprinkles if you prefer.
Pro Tips for the Best Chocolate Cake
- Enhance the cake with coffee instead of boiling water. This gives it a rich chocolate flavor.
- Use the high altitude adjustments if needed.
- Check the temperature of the cake to be sure it’s perfectly cooked inside with an instant-read thermometer; it should register around 210°F when fully baked.
- Use a vegetable peeler to make the chocolate curls, the perfect bakery touch.
Variations and Substitutions
- Cupcake Adaptation: Use this same recipe but divide the batter into lined cupcake tins and bake for roughly 18 to 22 minutes.
- 9×13 Sheet Cake Option: If you do not have a round cake pan, use a 9×13 baking pan and bake for 30 to 35 minutes.
- Oil Substitutions: Vegetable oil or melted coconut oil can be used in place of canola oil.
Frequently Asked Questions
This cake can be made in advance. The layers need to cool completely, then wrap them tightly in plastic wrap and store at room temperature until you are ready to assemble.
Unfrosted cake layers can be wrapped tightly in plastic wrap and aluminum foil and frozen for up to 3 months. Thaw them completely on the counter before applying the frosting.
Standard 9-inch round cake pans work best for this recipe. If you only have 8-inch round cake pans, those can be used, but you will need to extend the baking time by a few minutes due to the thicker layers.
Cakes typically sink in the center if the baking powder or soda is expired, if the oven door was opened too early, or if you’re baking at high altitude without an adjustment.
What to Serve with Chocolate Cake
Fresh Red Berries
Chocolate Milk
Storage and Reheating
Refrigerator
Leftovers will stay moist when stored in an airtight container in the fridge for up to 5 days.
Freezer
Frosted slices can be individually wrapped and frozen for up to 2 months.
Reheating
Place a single slice of cake on a microwave-safe plate and heat it for 8-10 seconds to soften the frosting and warm the crumb.
More Chocolate Cakes
Chocolate Dulce De Leche Triple Layer Cake
Keto Sugar-Free Mini German Chocolate Cake
One-Bowl Chocolate Cake Recipe
This classic Hershey’s Perfectly Chocolate Chocolate Cake with Perfectly Chocolate Chocolate Frosting is a tried-and-true, no-fail recipe that can be used time and time again. It comes out perfectly moist and full of rich chocolate flavor.
More Dessert Recipes
WANT TO SAVE THIS RECIPE?
Enter your email below and we will send it straight to your inbox. Plus you will get great new recipes from us every week!
Hershey’s Perfectly Chocolate Chocolate Cake and Perfectly Chocolate Chocolate Frosting
Equipment
Ingredients
Cake
- 2 cups minus 2 tablespoons sugar*
- 1-¾ cups all-purpose flour
- ¾ cup Hershey’s cocoa
- 1-¼ teaspoons baking powder*
- 1-¼ teaspoons baking soda*
- 1 teaspoon salt
- 2 large eggs
- 1 cup plus 2 tablespoons milk*
- ½ cup canola oil
- 2 teaspoons vanilla extract
- 1 cup boiling water
Perfectly Chocolate Chocolate Frosting:
- ½ cup 1 stick butter or margarine
- ⅔ cup Hershey’s Cocoa
- 3 cups powdered sugar
- ⅓ cup milk
- 1 teaspoon vanilla extract
Instructions
- Heat oven to 350°F. Grease and flour two 9-inch round cake pans. Set aside.
- Stir together sugar, flour, cocoa, baking powder, baking soda and salt in a large bowl. Add eggs, milk, oil and vanilla; With a mixer, beat on medium speed for about 2 minutes. Carefully, stir in boiling water. The batter will be very thin. Pour batter into prepared cake pans.
- Bake for 30 to 35 minutes or until a toothpick inserted in center comes out clean. Cool 10 minutes; remove from pans to wire racks. Cool completely. Frost with chocolate frosting.
- *Before high altitude changes: 2 cups sugar, 1-½ teaspoons baking powder, 1-½ teaspoons baking soda, 1 cup milk
- Perfectly Chocolate Chocolate FrostingMelt butter. Stir in cocoa. Alternately add powdered sugar and milk, beating to spreading consistency. Add small amount additional milk, if needed. Stir in vanilla. About 2 cups frosting.
Notes
Nutrition









chris brinkman
my cakes seem to rise and cook in the center first, leaving a “blossom” in the middle. they taste fine but dont look pretty. have used regular and convection ovens to make this cake with the same results. any suggestions?
Barbara Schieving
Hi Chris – my cakes get a little bubbly in the middle as well. Here’s a video https://barbarabakes.com/triple-chocolate-layer-cake/ where you can see how it looks. It doesn’t affect the final product and you get a much flatter even top than traditional cakes.
Kelly
Hi! I live in Colorado Springs, where the altitude is 6000. I haven’t made the cake yet, but I’m worried how it will turn out. How should i adapt my cake to fit my altitude? Thanks!
Barbara Schieving
Hi Kelly – it would be similar to Denver https://barbarabakes.com/hersheys-perfectly-chocolate-chocolate-cake-and-perfectly-chocolate-chocolate-frosting/comment-page-4/#comment-55343
Mary
The cake is amazing. But my frosting is runny…what could I have done wrong?
Barbara Schieving
Glad you enjoyed the cake Mary. Sounds like you just need additional powdered sugar. How much you’ll need can change based on where you live, how much humidity for example.
Gillian
Have you ever used Black Dutched Cocoa Powder for the icing? I have to make cupcakes with black icing for a client and really don’t like to use gel coloring.
I’ve read that you can swap the black dutched cocoa for any cocoa in icings.
Barbara Schieving
Hi Gillian – I haven’t tried Black Dutched Cocoa powder – I assume it would work since you add so much sugar to an icing.
Hilary
Hi, I have made this cake every year for my daughters’ birthdays, last year we had just moved to the Denver area and wow what a surprise! Cake all over the inside of the oven! So I found this recipe and tried it, it worked better but the cake had lots of holes and overflowed a bit. This year, I read the comments and see that there are further changes for my altitude, thank you! Going to try it today! 🙂
Barbara Schieving
I hope it’s perfect for you this time. Good luck!
Monica
My all-time favorite (and my kids’ favorite) recipe from the back of a box is actually a Hershey’s Brownie recipe which I haven’t seen in years, but I’m so glad I kept it when I did! Baking brownies at high altitude seems to work better for me with cocoa rather than unsweetened baking chocolate, which I had been using.
I found this page when I was looking for a bundt cake recipe (I will try yours without the cream cheese swirl this time, next time with it- sounds yummy!) and wanted to add my 2 cents. I used to always use box cake mixes until I found the recipe on the Hershey’s box. I live around 6200 feet, so my recipe is pretty close to yours except for the following differences, which I’ll post in case it helps someone someday:
1 3/4 cup sugar
1 7/8 cup flour
1 tsp baking powder
3/4 tsp baking soda
1 cup milk
All other ingredients stay the same. I also like to include 2 Tbsp Hershey’s Special Dark Cocoa in with the cocoa measurement. I have had good results with both 9×13 and two 9″ rounds. The top never looks too pretty but that doesn’t matter when it’s upside down or covered with frosting! I also grease the pan then dust with cocoa, and use parchment paper on bottom. People might check out Susan Purdy’s book Pie in the Sky; she has variations for different altitudes for lots of recipes she tested in various locations.
Barbara Schieving
Hi Monica – Thanks for sharing. I’m sure baking at 6200 feet is a challenge. Is it the HERSHEY’S Best Brownies Recipe? https://www.hersheys.com/recipes/recipe-details.aspx?id=98
Ayesha
Hi
I tried this cake twice.. both times it had tunnels all over it and it sank in the middle.. I also tried making it in cupcakes and there was no dome, cupcakes were all flat.. what went wrong?
Barbara Schieving
Hi Ayesha – my guesses are overmixing, opening the oven door while the cake or cupcakes are cooking, your baking powder/soda isn’t fresh, your oven temperature isn’t accurate, or your cook time could have been too short.
Jane Elvins
would this recipe work baked as a bundt cake? If yes, how long would you bake it?
Barbara Schieving
Hi Jane – I don’t think this would make a good bundt cake. The batter is so thin. I prefer a thick, dense batter for a bundt cake. The sour cream chocolate bundt cake is my favorite. https://barbarabakes.com/2014/03/chocolate-bundt-cake-with-a-cream-cheese-swirl/ You can just omit the cream cheese swirl.
Carla Bisagni-Holmes
I’ve made this as both a Bundt cake and a sheet cake, and it comes out great both ways! Just adjust the baking time (the Hershey’s website lists options).
Barbara Schieving
Thanks for sharing Carla! I guess I’ll have to try it as a bundt.
Anna
Why does my frosting always end up runny?
Barbara Schieving
Hi Anna – it’s hard to say for sure, but next time you make it’s an easy fix. Just reduce your milk and increase the powdered sugar until you achieve the consistency you want.
Myndee
Can I use 1/4 cup grape seed oil, mixed with 1/4 cup of canola oil?
Barbara Schieving
I haven’t tried it, but that should work just fine. Enjoy!
keith
I enjoy your site.
We have been making Hersheys perfectly chocolate cake for 20 or 30 years. You are right it is a great cake. However if you want to make it an awesome cake reduce the cook time. We cook it 27 or 28 minutes. We take it out when the toothpick comes out with moist crumbs sticking to it. It takes it from being very good to being awesome.
Have a nice day
Barbara Schieving
Thanks Keith – I prefer a really moist cake too.
D. Klassen
We live in Calgary Canada, so i made the high altitude version and it was delicious. For some reason it took about 15 extra minutes to bake but when I took it out of the oven, it did not fall (which is what always happens when I make cakes). My husband does not usually eat dessert but he had a second slice! Success! Thanks for the recipe.
Barbara Schieving
Thanks for the sweet comment. I’m so glad you and your husband loved it. High altitude really makes a difference with cakes.
Stacey E.
Thanks for posting a high altitude variation for this cake. I just made it today, was shocked at how runny the batter was, and ended up with a cake that overflowed the pans and didn’t cook completely. I will try making it again following your version and see what happens. Oddly, the cake really is wonderful, even though I have to scrape it out of the pans. I have never had an edible homemade cake before. I don’t know if it’s because I used cake flour, or if they really invented the best scratch recipe.
I actually came across the recipe looking for something else and just assumed it would end up lousy like all of the other homemade cakes I’ve tried making. I’ve never tried using cake flour before, so I assumed that’s why this would have turned out well, had it cooked properly.
I also used a cup of boiling coffee, rather than water. I didn’t bother with the “strong” part, though. If water is good enough for the cake, I doubt that the strength of the coffee would have made that much difference.
Anyway, I will try your substitutions and see if that makes any improvement. If it doesn’t, the ravens will be eating a lot of chocolate cake tomorrow.
Barbara Schieving
Hi Stacey – it really is a super runny batter, but a great tasting cake.
If you have a problem with cakes sticking, trying using parchment paper. Grease the pan, put down the parchment (cut to fit your pan) and grease again. I’ve also had good luck using Bakers non stick spray with flour.
Bake the cake until it pulls away from the sides of the pan, springs back when touched, and a toothpick insert in the center comes out clean.
If you’re higher than 4,000 feet, you may need to make a few additional changes. Here’s a guide I use http://cityhomecountryhome.blogspot.com/2010/08/high-altitude-baking-and-candy-making.html
Have fun!
Wendy
Twice, I made the recipe as directed on the container and it sank in the middle badly. The second time overflowed out the pans! It was a disaster! I’m high altitude in Denver. I will try this version next time. I love this cake, but sad it keeps falling in the middle. 🙁
Barbara Schieving
Hi Wendy – since you’re even higher in Denver I would suggest changing the following: 1 teaspoon baking soda, 1 teaspoon baking powder, 2 cups minus 3 tablespoons sugar, 1 cup plus 3 tablespoons milk. All the other ingredients would be the same. Be sure you’re using 9″ cake pans. Please let me know how it goes. Enjoy!
Erica
I’m at 5000 ft and I followed your suggestion for Denver. The cake came out wonderfully! Moist and delicious. Everyone loved it. It sure made me happy to have a cake that wasn’t sunken in the middle. Thanks very much!
Barbara Schieving
That’s great – thanks for letting me know!
micki
im sorry but i hate this cake its too dry…!!!!!!!
Barbara Schieving
Hi Micki – sorry you were disappointed in the cake. Mine wasn’t dry at all. Did you make any changes?
Melanie
The cake turned out perfect! Frosting was incredible too!
Barbara Schieving
That’s great! Thanks for the update.
Melanie
Hi Barbara! I just found your blog and I love it! I have a question about the Hershey’s perfectly chocolate cake. I live at 6100 feet…should that work with your altitude adjustments? Thanks!
Barbara Schieving
Hi Melanie! At 6100 feet you’ll probably have to adjust the recipe even further. As your elevation increases decrease the leavening and sugar a little bit more and increase the liquid a bit more. My adapted recipe is for 3,000 to 5,000 ft. Great question – thanks! Please let me know if you make it.
Melanie
Do you have any suggestions on how much sugar and liquid to use? I am kind of new to baking at high altitudes!!!
Thanks!
Barbara Schieving
The changes I would suggest at your altitude are 1 3/4 cup sugar, 1 teaspoon baking powder, 1 teaspoon baking soda and 1 1/14 cups milk, and the rest of the ingredients as listed. 🙂
Melanie
Thank you so much!!!!
Emily @CreativeDisaster
Hi there, I am always looking for high altitude recipes! We live in Mexico City and are at about 8300 ft where we live. Thanks for sharing this!
Julie @White Lights on Wednesday
I found your cake through Pinterest. My aunt made this cake the last time she was in town and I loved it! I’m featuring your recipe on my Chocolate Cake Day blog post today. 🙂
http://whitelightsonwednesday.blogspot.com/2012/01/chocolate-cake-day.html
Yuri
I’ve always wanted to try this cake, maybe its time I bake it! A friend of mine loves chocolate and every year I bake a cake for her birthday. I should start practicing because her birthday is in less than a month!