Desserts
The Hershey's Best Ever Chocolate Cake recipe delivers the rich, moist layers and signature fudge swirls that made this classic legendary. I've perfected the technique over years of baking, ensuring every slice has that signature pecan crunch and velvety texture.
The secret lies in precise ingredient ratios and careful layering—no dry crumbs here.
What sets this recipe apart is the balance of cocoa powder and melted chocolate for depth without bitterness, plus the pecan topping that adds both crunch and sweetness. It’s a professional-level dessert that still feels approachable, with a foolproof method for achieving that signature swirl without overmixing.
The cake bakes up with a tender crumb and just the right amount of fudge richness.
By the time you're done, you'll have a showstopping dessert with layers of moist chocolate cake, ribbons of fudge swirl, and a crunchy pecan crown. This is the kind of cake that disappears quickly—perfect for birthdays, holidays, or when you just need a little indulgence.
Let’s get baking to create this timeless classic.
The best part? This recipe scales beautifully for parties or stays perfect for a single slice. Whether you're following the traditional method or making adaptations, the result is always impressive. Here’s how to make it exactly as the brand intended—rich, moist, and irresistible.
Ingredients for hershey's best ever chocolate cake
Twelve ingredients transform into the legendary Hershey's chocolate cake with fudge swirls and pecan crunch.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 2 ¼ cups | White or light brown |
| Unsalted Butter 🧈 | 1 ½ cups | Cold, cut into cubes |
| Cocoa Powder 🍫 | ¾ cup | Dutch-processed for richness |
| Large Eggs 🥚 | 4 whole | Room temperature |
| Baking Soda 🧂 | 2 tsp | Pure, not baking powder |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Vanilla Extract 🍯 | 2 tsp | Pure, high-quality |
| Milk 🥛 | 1 cup | Whole milk preferred |
| Hershey's Semi-Sweet Chocolate Bars 🍫 | 8 oz | Melted for fudge swirl |
| Pecan Pieces 🥜 | 2 cups | Toasted for enhanced flavor |
| Powdered Sugar 🍚 | ½ cup | For pecan topping |
| Butter 🧈 | ¼ cup | Melted for pecan mix |
| Vanilla Ice Cream 🍦 | 1 ½ cups | Optional, for serving |
The cocoa powder and semi-sweet chocolate bars are the heart of this cake. Hershey's Special Dark or Semi-Sweet bars melt perfectly for that signature fudge swirl. For the cocoa, Dutch-processed brands like Hershey's or Ghirardelli create a smoother, richer flavor. I always grab my pecans from Trader Joe's—their toasted pecan halves are perfect and stay fresh longer. The butter matters too: unsalted, high-fat content (like Land O'Lakes or Plugrá) ensures maximum moisture in the cake layers. Store your cocoa and chocolate bars in airtight containers to prevent moisture absorption.
No Dutch-processed cocoa? Natural cocoa powder works too—just add 1 tsp baking soda to the dry ingredients for proper rise. Running short on Hershey's bars? Substitute with equal parts semi-sweet chocolate chips. The pecans can be swapped for walnuts if preferred, but toast them first for that same nutty depth. For a gluten-free version, replace the flour with a 1:1 gluten-free baking flour blend. The vanilla extract? Pure Madagascar bourbon vanilla elevates the flavor, but imitation works in a pinch. If you're making this ahead, the cake improves overnight—just cover tightly with plastic wrap.
This cake keeps beautifully for 5 days at room temperature wrapped in plastic, or 1 week in the fridge. For longer storage, freeze the fully assembled cake (without the pecan topping) for up to 3 months. The pecan topping stays crisp for 3 days if stored separately. I always make a double batch—the extra slices disappear faster than you can say 'fudge swirl.' Serve with a scoop of vanilla ice cream for that classic dessert experience. The cake reheats perfectly in the microwave for 10-15 seconds if you want it warm.
Why You'll Love This Recipe
- No Mixer Needed: I swear, this cake comes together with a whisk and a bowl—no stand mixer, no fancy gadgets. The butter and sugar get creamed by hand in minutes, and the cocoa powder blends right in without a lump in sight. That’s right: zero excuses for skipping dessert.
- Rich Without Bitterness: Here’s what sold me—the cocoa powder isn’t overpowering, but it is deep. The butter keeps it velvety, while the sugar balances the chocolate just enough to make every bite ridiculously good. (Yes, even on a Tuesday night.)
- Birthday to Bake Sale: This cake is my secret weapon for anything—a last-minute birthday, a potluck, or even a school fundraiser. Cut it into squares, frost it simply, or serve it plain. Honestly, the way it holds together means you won’t stress over crumbs or collapsing layers.
- Leftovers That Last: Between us, this cake stays moist for days—no dry crumbs, no sad texture. I’ve had slices for breakfast (with a sprinkle of flaky salt) and they’re still as tender as the first cut. Plus, the ingredients? Pantry staples. Budget-friendly and foolproof.
Step-by-step instructions for Hershey's best ever chocolate cake
Here's how to create the ultimate double-layered chocolate cake with decadent fudge swirls and crunchy pecan topping.
Prepare the Cake Batter for Maximum Moisture
Preheat your oven to 350°F and grease two 9-inch round cake pans, then line the bottoms with parchment paper. In a stand mixer fitted with the paddle attachment, cream together the 1.5 cups unsalted butter and 2.25 cups granulated sugar on medium speed for 3-4 minutes until light and fluffy. This step is crucial—it incorporates air that will make your cake rise beautifully.
Add the 4 whole large eggs, one at a time, mixing well after each addition. Scrape down the sides of the bowl to ensure everything is fully incorporated. Then add the 2 teaspoons vanilla extract and mix for another 30 seconds. In a separate bowl, whisk together the 2.5 cups all-purpose flour, 0.75 cup cocoa powder, 2 teaspoons baking soda, and 0.5 teaspoon salt. With the mixer on low speed, gradually add the dry ingredients to the wet mixture, alternating with the 1 cup milk, beginning and ending with the flour mixture.
Melt Chocolate for Perfect Fudge Swirls
While the cake batter rests for 5 minutes, melt the 8 ounces Hershey's semi-sweet chocolate bars in a microwave-safe bowl in 30-second intervals, stirring between each interval until completely smooth. The chocolate should be fully melted and glossy—if it looks streaky, stir in a tiny bit of the melted butter from the cake batter to help it blend seamlessly.
Once the chocolate is ready, gently fold half of it into the cake batter using a spatula, being careful not to overmix. The goal is to create a marbled effect rather than fully blending the chocolate in. Divide the batter evenly between the two prepared cake pans, spreading it out evenly with a spatula. Then, using a knife, swirl the remaining melted chocolate through the batter in each pan, creating beautiful fudge streaks.
Bake to Golden Perfection
Place the cake pans in the preheated oven and bake for 30-35 minutes, or until a toothpick inserted into the center comes out with just a few moist crumbs. Do not overbake—the cake should be moist and rich, not dry. The tops should be slightly domed and set, but still fudgy in the center.
While the cakes are baking, prepare the pecan topping by toasting the 2 cups pecan pieces in a dry skillet over medium heat for 3-4 minutes until fragrant and lightly golden. In a small bowl, mix the toasted pecans with the 0.5 cup powdered sugar and 0.25 cup melted butter until evenly coated. Let this mixture cool slightly while the cakes finish baking.
Assemble the Cake with Confidence
Once the cakes are done, remove them from the oven and let them cool in the pans for 10 minutes. Then, invert them onto a wire rack to cool completely. To assemble, place one layer on a serving plate and spread a thin layer of the remaining melted chocolate (if any is left) over the top. Dust the layer lightly with powdered sugar if desired, then place the second layer on top.
Press the pecan topping gently but firmly over the entire top of the cake, making sure it adheres evenly. For an extra touch, sprinkle additional pecans around the base of the cake. Serve the cake at room temperature, optionally with 1.5 cups vanilla ice cream on the side for a truly indulgent experience. The contrast of the warm cake with the cool ice cream is what makes this dessert truly unforgettable.
Pro Tips For Making Hershey'S Best Ever Chocolate Cake
- Sift the Cocoa: The Hershey’s recipe calls for cocoa powder, but clumps are the enemy of even texture. Sift it directly into the dry ingredients—no need to measure first—then whisk it into the flour. I learned this the hard way when my cake turned out dense and streaky.
- Melt Butter Slowly: The recipe says "melted butter," but rushing it on high heat turns it greasy. Use a double boiler or microwave in 20-second bursts, stirring between, until it’s just liquid—no bubbles, no brown spots. Overheated butter makes the cake greasy instead of rich.
- Don’t Overmix the Batter: Once you add the eggs and buttermilk (or milk), mix just until combined—about 15 strokes. I used to beat it like I was kneading dough, and the cake ended up tough. The goal is a smooth, slightly lumpy batter, not a thick paste.
- Test for Doneness Early: The recipe says 30–35 minutes, but ovens lie. Start checking at 25 minutes with a toothpick—it should come out with moist crumbs, not wet batter. If it’s browning too fast, tent foil loosely over the top. Better to pull it slightly underdone than risk a dry cake.
Troubleshooting this recipe
Dense Cake Layers
If your cake turns out dense or dry, it’s usually from overmixing the batter or baking too long. I’ve found that mixing the dry ingredients into the wet mixture just until combined (about 20 strokes with a spatula) keeps the texture tender.
Also, check your oven’s accuracy—many run 15-25°F hotter than set. Use an oven thermometer to confirm 350°F is accurate. 🌡️
Fudge Swirls Not Visible
For those signature fudge swirls to show up, work quickly after adding the melted chocolate to the batter. Use a long, thin knife (like a spatula or offset spatula) to swirl the batter in the pan in smooth, even strokes.
If the chocolate sinks too much, gently tap the pan on the counter before baking to help it distribute. Avoid overfilling the pans—they should be ⅔ full max.
Cracked Top or Sinking Layers
Cracks or sinking often happen when the cake cools too quickly or the oven isn’t hot enough. Let the cakes cool in the pans for the full 10 minutes before removing, and avoid opening the oven door during the first 20 minutes of baking.
For sinking layers, try baking at 325°F instead of 350°F—this gives the cake time to set more gradually. A water bath (placing pans in a larger pan with hot water) can also help.
Pecan Topping Too Dry
The pecan topping can dry out if the butter hardens before pressing it onto the cake. Mix the pecans with the melted butter and powdered sugar while still warm, then let it cool just enough to handle (about 5 minutes).
Press it onto the cake immediately after assembly while the cake is still slightly warm. For extra insurance, store the cake in an airtight container with a slice of bread to keep the topping fresh longer.
Chocolate Separates or Looks Grainy
If your melted chocolate looks streaky or grainy, it’s likely not fully melted or has absorbed moisture. For a smooth finish, melt the chocolate in short bursts (30 seconds at a time), stirring vigorously between each interval.
If it still looks off, whisk in 1 teaspoon of the cake batter or a tiny bit of shortening to help emulsify it. Avoid using microwave power levels above 50%—higher settings can cause chocolate to seize.
Cake Sticks to Pans
Even with greased pans, cakes can stick if the butter isn’t properly melted or the parchment paper isn’t placed correctly. Use unsalted butter (salt can react with baking soda) and melt it completely before greasing. Place parchment paper directly on the bottom of the pan, then grease the paper lightly.
For extra insurance, dust the pans with flour or cocoa powder after greasing. Tap the pan gently on the counter before removing the cake to loosen it.
Nutrition facts
Frequently asked questions
Can I make this chocolate cake in a single layer instead of double?
The recipe is designed for two 9-inch layers, but you can easily adapt it for a single 9x13-inch pan. Use the full batter and bake for 40-45 minutes at 350°F. The fudge swirls will still show beautifully, and you’ll get a generous sheet cake perfect for parties. Just reduce the pecan topping by half for coverage.
How do I store leftovers to keep them fresh?
Wrap the cake tightly in plastic wrap and store at room temperature for up to 3 days. For longer storage, refrigerate the cake (without the pecan topping) for up to 5 days or freeze for 3 months. Keep the pecan topping separate in an airtight container. Reheat slices in the microwave for 10-15 seconds to restore moisture.
What’s the secret to getting those perfect fudge swirls?
Work quickly after adding the melted chocolate to the batter—swirl the batter in the pan with a long knife while it’s still runny. Use smooth, even strokes and avoid overmixing. For extra drama, tap the pan gently on the counter before baking to help the chocolate distribute evenly. The swirls should remain visible even after baking!
Can I substitute the pecans for another nut or topping?
Swap pecans for toasted walnuts, almonds, or even crushed cookies like Oreos. For a nut-free option, try a chocolate ganache drizzle or whipped cream instead. Just adjust the sweetness—powdered sugar in the topping balances the richness of the cake. Toasting any nut enhances its flavor, so don’t skip that step!
Why does my cake sometimes turn out dry or crumbly?
Overmixing the batter or baking too long are the most common culprits. Mix the dry ingredients into the wet mixture just until combined (about 20 strokes20 minutes of baking. Also, check your oven’s accuracy—many run hotter than set. A cake thermometer helps ensure doneness at 205-210°F internal temperature.
