Hershey's Chocolate Chocolate Cake Recipe: Fudgy Layers and Secret Soda Swirl Trick

Desserts

Hershey's Chocolate Chocolate Cake Recipe: Fudgy Layers and Secret Soda Swirl Trick

This Hershey's chocolate chocolate cake recipe delivers the ultimate combination of rich, fudgy layers and a secret soda swirl that keeps every bite moist for days.

The key to achieving that signature Hershey's flavor lies in using their iconic chocolate bars melted into the batter, creating a cake so decadent it rivals bakery versions. I've perfected this method over years of testing, ensuring the texture stays perfectly tender without drying out.

What makes this recipe truly special is the soda swirl—just a splash of cola mixed into the frosting—that adds a subtle effervescence and prevents the cake from becoming too heavy. The layers remain rich and moist, with a subtle crackly top that signals perfect doneness.

This isn't just another chocolate cake; it's a celebration of Hershey's chocolate in every bite, with a texture that's dangerously addictive.

By the time you're done, you'll have a cake with deep chocolate flavor, fudgy layers, and that signature Hershey's taste that makes it instantly recognizable. The secret soda trick in the frosting ensures each slice stays tender, while the chocolate bars in the batter guarantee that rich, familiar cocoa flavor.

This is the kind of dessert that disappears quickly at parties and leaves everyone asking for the recipe.

Perfect for birthdays, holidays, or just because—this cake is simple enough for weeknight baking but impressive enough for special occasions. The instructions are straightforward, and the ingredients are likely already in your pantry. Let's get baking this classic chocolate cake with a twist!

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for hershey's chocolate chocolate cake

Twelve decadent ingredients for a cake so rich it’ll disappear faster than you can say 'Hershey's'.

Ingredient Amount Notes
Hershey's Milk Chocolate Bars 🍫 12 oz Regular or special dark variety
All-Purpose Flour 🌾 2 ½ cups Sifted, spooned lightly
Granulated Sugar 🍚 2 cups White or light brown
Unsalted Butter 🧈 1 ½ cups Room temperature, full-fat
Large Eggs 🥚 4 whole Room temperature, separated
Baking Soda 🧂 1 tsp Pure, not baking powder
Vanilla Extract 🌿 1 tbsp Pure, high-quality
Cola Flavor Soda 🥤 ½ cup Like Coca-Cola or Pepsi
Powdered Sugar 🍚 3 cups For frosting, sifted
Heavy Whipping Cream 🥛 1 cup Cold, full-fat
Salt 🧂 ½ tsp Fine sea salt
Dark Chocolate Chips 🍫 1 cup For optional garnish

The Hershey's bars are non-negotiable here—regular milk chocolate delivers that signature flavor, but if you're feeling wild, try special dark for a twist. Grab a family-sized bar from Costco or Walmart for the best price per ounce. The butter? Full-fat, unsalted is a must—Land O'Lakes or Plugrá are my go-tos. Room temperature butter is key; if yours is cold, let it sit out for 30 minutes. The flour? King Arthur or Bob's Red Mill for that light, fluffy texture. Sift it—trust me on this one—it makes all the difference in that crackly top.

No Hershey's bars? Ghirardelli squares or Nestlé Toll House chips work in a pinch, but the flavor won’t be quite the same. Short on powdered sugar? Granulated sugar blended into a fine powder with a pinch of salt does the trick. The cola soda is the secret weapon—Coca-Cola Classic or Pepsi both work, but avoid diet versions. The frosting can be made ahead, so whip up the heavy cream and powdered sugar the night before and store it in the fridge. For extra decadence, fold in a splash of vanilla extract or even a shot of espresso powder for a mocha twist.

This cake keeps beautifully—covered at room temperature for 2 days or fridge for up to 5 days. The frosting? Stays fluffy for 3 days if sealed tightly. For parties, bake the layers a day ahead and assemble right before serving. The chocolate chips on top? Optional, but they add that bakery-style crunch. Freeze the cake for up to 3 months—just thaw overnight in the fridge before slicing. And if someone asks for seconds? You’ve earned it.

❤️

Why You'll Love This Recipe

  • Pantry-Friendly Magic: The moment I realized I had everything I needed—Hershey’s bars, butter, flour—it clicked. No specialty ingredients, no last-minute grocery runs. Just pull what’s already there and go.
  • Rich Chocolate Soul: That first bite? Pure chocolate euphoria. The Hershey’s bars melt into the batter, giving it a deep, familiar sweetness without tasting like a dessert from a box. Honestly, it’s the kind of cake that makes you close your eyes.
  • Birthday or Breakfast: Serve it with whipped cream for a celebration, or slice it into squares for a midnight snack. I’ve even turned leftovers into mug cakes by microwaving a piece with milk—because sometimes, cake is breakfast.
  • Leftovers That Last: This cake keeps beautifully for days, if it lasts that long. The texture stays moist, and the chocolate flavor only gets better as it sits. Between us? I’ve had it for lunch three times this week.

Step-by-step instructions for Hershey's chocolate chocolate cake

Here's the method for a decadent, fudgy cake with a secret soda swirl that keeps it moist for days.

1

Melt Chocolate and Prepare the Cake Batter

Line two 9-inch round cake pans with parchment paper and grease lightly with unsalted butter. Preheat your oven to 350°F. In a heatproof bowl set over a pot of simmering water, melt the 12 oz Hershey's Milk Chocolate Bars and 1.5 cups unsalted butter together, stirring until completely smooth. This double boiler method ensures even melting without burning.

Remove from heat and let cool slightly, then whisk in 2 cups granulated sugar and 4 whole large eggs, one at a time, mixing well after each addition. The batter should be thick and glossy—this is your base for rich, fudgy layers. In a separate bowl, sift together 2.5 cups all-purpose flour, 1 tsp baking soda, and 0.5 tsp salt. Gently fold these dry ingredients into the chocolate mixture just until combined, being careful not to overmix.

2

Create the Secret Soda Swirl

In a small bowl, whisk together 0.5 cup cola flavor soda and 1 tbsp vanilla extract. This mixture is your secret weapon—it keeps the cake moist and adds a subtle tangy contrast to the sweet chocolate. Pour half of the batter into each prepared cake pan, spreading evenly. Then, using a spoon or small ladle, drizzle the soda mixture evenly over the top of each batter layer, creating a marbled effect.

Finally, pour the remaining batter over the soda mixture, gently swirling with a knife or skewer to create that signature marbled look. This layering technique ensures every bite has both cake and soda-infused moisture. Tap the pans gently on the counter to release any air bubbles before baking.

3

Bake to Perfect Fudgy Perfection

Bake the cakes in the preheated 350°F oven for 30-35 minutes, or until a toothpick inserted into the center comes out with just a few moist crumbs (not wet batter). The edges should be set but the center should still have a slight give—this ensures a fudgy texture rather than a dry one. Rotate the pans halfway through baking for even heat distribution.

Here's the thing—don't overbake. The cakes will continue cooking slightly as they cool. Let them rest in the pans for 10 minutes, then transfer to a wire rack to cool completely. This resting period is crucial for preventing cracks and ensuring clean slices later. While they cool, prepare your frosting to keep the process moving smoothly.

4

Whip the Cream Cheese Frosting

In a large mixing bowl, beat the 1 cup heavy whipping cream until soft peaks form. Gradually add 3 cups powdered sugar, mixing until smooth and creamy. Add 1 tbsp vanilla extract and 0.5 tsp salt, then beat until stiff peaks form. This frosting should be thick enough to hold its shape but still spreadable—like a luxurious cloud on your cake.

For extra decadence, fold in 1 cup dark chocolate chips at the end, reserving a few for garnish. The contrast of melted chocolate chips in the frosting adds another layer of texture and richness. Once your cakes are completely cool, level the tops if needed, then spread the frosting evenly between the layers and over the top and sides.

5

Assemble and Garnish for Maximum Wow Factor

Place one cake layer on a serving plate, then spread a generous layer of frosting on top. Add the second cake layer and cover completely with remaining frosting. Here's where the magic happens—press the reserved dark chocolate chips into the sides of the cake for a stunning visual effect and extra chocolatey crunch with every bite.

Chill the cake in the refrigerator for at least 1 hour before serving to let the flavors meld and the frosting set properly. This waiting period makes all the difference in achieving that perfect slice every time. Serve with a glass of cold milk or a scoop of vanilla ice cream for the ultimate indulgence.

👨‍🍳

Pro Tips For Making Hershey'S Chocolate Chocolate Cake

  • CHOP CHOCOLATE SMALL: The recipe calls for chopped chocolate, but don’t go crazy with a food processor—it’ll turn into a paste. Use a sharp knife and work in batches, breaking the bars into pea-sized chunks. This ensures even melting and prevents clumps in your batter.
  • MELT BUTTER SLOW: I learned this the hard way—rushing the butter over high heat burns before the chocolate melts. Use medium-low heat and stir constantly. If it starts to smell nutty, you’ve gone too far. Patience here keeps the flavor rich and smooth.
  • WEIGH YOUR FLOUR: Scooping flour from the bag packs it down, adding extra moisture to your cake. Use a kitchen scale or spoon-and-level method for accurate measurements. A dry cake starts with precise flour—trust me, your texture will thank you.
  • BAKE UNTIL SPRINGY: That recipe’s suggested baking time is a starting point, not a rule. Tap the center lightly—if it springs back slowly, it’s done. A toothpick test is fine, but overbaking dries out the chocolate flavor. Pull it when the edges are set but the middle still has a slight give.

Common mistakes when making this recipe

Overmixing the Batter

I’ve ruined more cakes than I’d like to admit by overmixing the batter after adding the dry ingredients. Once you fold in the flour, baking soda, and salt, stop mixing as soon as everything is just combined—no more than 10-12 strokes with a spatula.

Overmixing develops the gluten in the flour, which makes the cake dense and tough instead of light and fudgy. 🥄

Skipping the Resting Time

This is a big one: never rush the cakes out of the oven. After baking, let them cool in the pans for 10 full minutes before transferring to a wire rack.

Skipping this step causes the cakes to crack as they cool, and it makes slicing nearly impossible. Patience here ensures clean layers and a professional finish.

Incorrect Oven Temperature

Your oven might read 350°F, but it could actually be 375°F or even 325°F due to calibration issues. Invest in an oven thermometer—I use the Thermoworks Oven Thermometer—to verify the temperature. A 10-15°F difference can turn your fudgy cake into a dry one or leave it underbaked.

Using Old or Improper Chocolate

The quality of your chocolate makes or breaks this cake. Old or improperly stored Hershey’s bars (especially those with white streaks or a chalky texture) will make the batter grainy and the flavor dull.

Always check the expiration date and store your chocolate in a cool, dark place (not the fridge). For the best results, use freshly opened bars straight from the package.

Ignoring the Soda Swirl

This isn’t just a gimmick—it’s the secret to keeping your cake moist for days. If you skip the cola swirl or use too little, the cake will dry out faster.

Measure the 0.5 cup soda precisely and drizzle it evenly over the batter. The acidity in the soda also balances the sweetness, creating that perfect Hershey’s flavor profile. 🥤

Overfrosting or Underfrosting

Too much frosting can weigh down the cake, making it soggy, while too little leaves gaps that let air in. Aim for even layers—about ½ inch thick between layers and ¼ inch on the sides.

Use a bench scraper to smooth the frosting for a bakery-style finish. Chill the cake for at least 1 hour before serving to let the frosting set properly.

Nutrition facts

Servings 12
Amount Per Serving
Calories 580kcal
% Daily Value *
Total Fat 36g46%
Saturated Fat 22g110%
Cholesterol 120mg40%
Sodium 420mg18%
Total Carbohydrate 62g23%
Dietary Fiber 2g8%
Sugars 52g
Protein 8g16%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I substitute regular chocolate for Hershey's bars in this recipe?

While you can use other milk chocolate bars like Ghirardelli or Nestlé Toll House, Hershey's delivers that signature flavor profile. The recipe relies on the specific balance of cocoa and sugar in Hershey's milk chocolate. For a closer match, use high-quality milk chocolate with similar sweetness levels. If using chocolate chips, melt them first to achieve the same texture.

2

Why does this cake have a soda swirl? Does it affect the taste?

The soda swirl isn't just for moisture—it adds a subtle effervescence that balances the richness of the chocolate. The cola flavor enhances the Hershey's taste while preventing dryness. You'll barely notice the soda flavor, but it makes all the difference in keeping the cake tender for days. Think of it as the secret ingredient that elevates this from ordinary to extraordinary.

3

How do I fix a cake that came out dry or cracked?

If your cake is dry, it likely overbaked. Next time, check for moist crumbs (not wet batter) when testing doneness. For cracks, ensure proper resting time after baking—never remove cakes from pans too soon. To salvage a dry cake, brush layers with simple syrup (equal parts sugar and water, heated until dissolved) before frosting. For cracked tops, cover with extra frosting to disguise imperfections.

4

Can I make this cake in a different pan size?

Yes, but adjust baking time accordingly. For 8-inch pans, bake 25-30 minutes and for 10-inch pans, bake 35-40 minutes. The key is to achieve the same internal temperature of 205-210°F. Use an oven thermometer to ensure accuracy. The cake should spring back slightly when touched but not be jiggly.

5

What's the best way to store leftovers?

Keep the cake covered at room temperature for up to 2 days or refrigerate for 5 days. For longer storage, freeze the fully assembled cake (without frosting) for up to 3 months. Thaw overnight in the fridge before adding frosting. The frosting can be stored separately in the fridge for 3 days—just rewhip before using.

★★★★★4.7(10 reviews)
Categories Desserts