Hershey Bar Cake Recipe With Cream Cheese Icing: Rich Chocolate Swirls and Tangy Frosting Bliss

Desserts

Hershey Bar Cake Recipe With Cream Cheese Icing: Rich Chocolate Swirls and Tangy Frosting Bliss

This Hershey bar cake recipe with cream cheese icing delivers the ultimate chocolate-lovers' dessert—moist layers of fudgy cake swirled with melted chocolate bars, topped with a tangy, velvety cream cheese frosting that balances rich sweetness.

The secret lies in precise layering and a foolproof method that ensures every bite is perfectly balanced between dense chocolate cake and smooth, cool frosting.

I developed this recipe after years of testing, and it's now my go-to for birthdays, holidays, or whenever someone asks for "that cake you make that's so good."

The cake itself is simple but never boring, using common pantry staples like all-purpose flour, cocoa powder, and eggs to create a tender crumb that holds up beautifully to the chocolate swirls.

The cream cheese icing is where the magic happens—its tangy brightness cuts through the richness of the chocolate, creating a flavor harmony that's impossible to resist. With just a few extra minutes of mixing, you'll have a frosting that's smooth, spreadable, and perfectly sweet without being overpowering.

What you'll end up with is a showstopping dessert that looks as impressive as it tastes—rich chocolate swirls peeking through the frosting, a perfectly even layer of creamy icing, and edges that stay clean and sharp.

The cake stays moist for days, making it ideal for prep-ahead entertaining, while the frosting adds that restaurant-quality finish that makes it feel special. This is the kind of dessert that disappears quickly, leaving only crumbs and happy faces behind.

Whether you're baking for a celebration or just treating yourself, this recipe delivers professional results with minimal effort. The layers are easy to assemble, the frosting comes together in minutes, and the final product is always a crowd-pleaser. Let's get baking!

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for hershey bar cake recipe with cream cheese icing

Twelve ingredients, two layers of magic—moist chocolate cake and velvety cream cheese frosting.

Ingredient Amount Notes
Hershey's Milk Chocolate Bars 🍫 12 oz Regular or special dark bars
All-Purpose Flour 🌾 2 ½ cups Sifted, spooned lightly
Granulated Sugar 🍚 2 cups White or light brown
Unsalted Butter 🧈 1 ½ cups Room temperature, full-fat
Cocoa Powder 🍫 ¾ cup Dutch-processed preferred
Large Eggs 🥚 3 whole Room temperature
Baking Powder 🍞 2 tsp Diamond Crystal preferred
Salt 🧂 ½ tsp Fine sea salt
Vanilla Extract 💧 2 tsp Pure alcohol-free preferred
Whole Milk 🥛 1 cup Room temperature
Cream Cheese 🧀 16 oz Full-fat, room temperature
Powdered Sugar 🍚 4 cups Sifted for smooth frosting
Heavy Whipping Cream 🥛 1 cup Cold, full-fat
Lemon Juice 🍋 1 tbsp Freshly squeezed

The Hershey's bars are non-negotiable here—their classic milk chocolate flavor defines this cake. Grab the regular milk chocolate bars from any grocery store, but if you're feeling fancy, the special dark bars add depth. I always buy a family pack from Target or Walmart when I need a big batch. For the cocoa powder, Dutch-processed (like Hershey's Special Dark) gives a smoother, richer flavor than natural cocoa. The butter? Full-fat only—none of that low-fat nonsense. I keep a tub of Land O'Lakes unsalted in my fridge at all times, and it's worth the splurge for the quality.

No Hershey's bars? Semisweet chocolate chips in a pinch (use the same weight), but trust me, the real thing makes all the difference. The cream cheese? Full-fat is a must—none of that fat-free nonsense here. If you're out of powdered sugar, granulated sugar plus 1 tbsp cornstarch works, but it won't be as smooth. For the frosting, room-temperature cream cheese whips up fluffier, but if it's cold, microwave it for 15 seconds to soften. The milk and heavy cream should be room temp too—cold liquids can curdle your frosting. Pro tip: measure your dry ingredients by weight if you have a kitchen scale—it's more accurate than volume.

This cake stays moist for 4-5 days if wrapped tightly in plastic, but the frosting? It's best within 3 days—the cream cheese can get grainy if left too long. For make-ahead baking, assemble the cake layers and frost it the night before, then refrigerate. Bring it to room temp before serving. The chocolate bars? Store them in a cool, dry place—not the fridge, unless it's summer. Freeze any leftover frosting for up to 3 months in an airtight container. And if you're making this for a crowd, double the recipe—it disappears fast!

❤️

Why You'll Love This Recipe

  • No Mixer Needed: I swear by this recipe because it only requires a whisk and a bowl—no stand mixer, no fancy gadgets. The Hershey bars get melted right into the batter, so you’re basically folding in melted chocolate like a pro without extra steps.
  • Rich & Silky: That cream cheese icing isn’t just sweet—it’s tangy and velvety, cutting through the dense, fudgy cake layers. Honestly, the moment the first bite hits your tongue, you’ll forget it’s a homemade dessert.
  • Party-Ready in Hours: Between us, this cake is the crowd-pleaser for birthdays, potlucks, or even a last-minute dessert. The Hershey bars add a nostalgic touch, and the icing makes it look fancy—no one will guess it’s this easy to pull off.
  • Budget-Friendly Leftovers: A full sheet cake feeds a crowd, and the leftovers? Still delicious the next day. I’ll be real—my kids beg for seconds, and the cost is a fraction of store-bought. Plus, the cocoa powder and butter stretch further than you’d think.

Step-by-step instructions for Hershey bar cake recipe with cream cheese icing

Here's how to create a decadent chocolate swirl cake with velvety cream cheese frosting.

1

Prepare the Chocolate Cake Batter

Preheat your oven to 350°F and grease two 9-inch round cake pans, lining the bottoms with parchment paper. In a microwave-safe bowl, melt the 12 oz Hershey's Milk Chocolate Bars in 30-second intervals, stirring between each, until completely smooth. Let it cool slightly but remain liquid.

In a large mixing bowl, cream together the 1.5 cups Unsalted Butter and 2 cups Granulated Sugar on medium speed until light and fluffy, about 3-4 minutes. Add the 3 whole Large Eggs, one at a time, mixing well after each addition. Scrape down the sides of the bowl to ensure everything is incorporated.

In a separate bowl, whisk together the 2.5 cups All-Purpose Flour, 0.75 cup Cocoa Powder, 2 tsp Baking Powder, and 0.5 tsp Salt. Gradually add the dry ingredients to the butter mixture, alternating with the 1 cup Whole Milk, beginning and ending with the flour mixture. Mix on low speed until just combined.

Stir in the 2 tsp Vanilla Extract and the melted chocolate until evenly distributed. Divide the batter evenly between the prepared cake pans, spreading it out smoothly. Bake for 30-35 minutes, or until a toothpick inserted into the center comes out clean. Allow the cakes to cool in the pans for 10 minutes, then transfer to a wire rack to cool completely.

2

Create the Chocolate Swirl Layer

While the cakes are cooling, prepare the chocolate swirl filling. In a small saucepan, combine the remaining 1 cup Unsalted Butter (from the original 1.5 cups) and 1 cup Granulated Sugar. Bring to a gentle simmer over medium heat, stirring until the sugar dissolves completely.

Remove from heat and whisk in the 1 cup Whole Milk and 2 tsp Vanilla Extract. Stir in the 0.75 cup Cocoa Powder until smooth. Let the mixture cool for 10 minutes, then whisk in 1 tbsp Lemon Juice to brighten the flavor. Once the mixture has thickened slightly but is still pourable, it's ready for the swirl.

Using a long knife or offset spatula, carefully cut a 1-inch deep horizontal well through the center of each cooled cake layer. Pour the chocolate mixture evenly into the wells, allowing it to seep into the cake. Replace the top layer of each cake and gently press down to ensure the filling spreads evenly. Chill the assembled cakes in the refrigerator for 30 minutes to set.

3

Make the Cream Cheese Frosting

In a large mixing bowl, beat the 16 oz Cream Cheese and 1.5 cups Unsalted Butter (softened) on medium speed until smooth and creamy, about 3-4 minutes. Gradually add the 4 cups Powdered Sugar, mixing on low speed until combined. Increase the speed to medium and beat for another 2-3 minutes until light and fluffy.

Add the 1 cup Heavy Whipping Cream and 2 tsp Vanilla Extract, mixing until fully incorporated. The frosting should be thick but spreadable. If it's too thick, add 1-2 tablespoons of Whole Milk to reach your desired consistency. Scrape the sides of the bowl and beat for another 30 seconds to ensure everything is well combined.

Once the cakes have chilled for 30 minutes, spread a generous layer of the cream cheese frosting over the top of each cake. You can either leave it as a simple layer or pipe additional frosting around the edges for a more decorative finish. Use a spatula to smooth the frosting evenly, then chill the cakes in the refrigerator for 1 hour before serving to allow the frosting to set.

4

Assemble and Serve

Remove the cakes from the refrigerator and carefully place one cake layer on a serving plate. Spread a thin layer of frosting over the top to help the second layer adhere. Place the second cake layer on top and gently press down. Frost the entire cake with the remaining frosting, using a spatula to create smooth sides.

For extra flair, pipe additional frosting around the edges or on top of the cake. Use a fork to create decorative swirls on the sides if desired. Chill the cake for 15-20 minutes before slicing to ensure clean cuts. Serve at room temperature for the best texture and flavor.

This cake is best enjoyed within 2-3 days, stored in an airtight container in the refrigerator. The combination of rich chocolate cake, tangy cream cheese frosting, and hidden chocolate swirls makes every bite a decadent delight.

👨‍🍳

Pro Tips For Making Hershey Bar Cake Recipe With Cream Cheese Icing

  • Melt Chocolate Slowly: I learned this the hard way—dumping chopped Hershey bars into hot liquid makes a greasy mess. Instead, melt them in 10-second bursts in the microwave (30 seconds total), stirring every 10 seconds, until just smooth. The slow melt keeps the texture rich, not oily.
  • Sift That Cocoa: Unsifted cocoa powder packs like cement and creates dense cake layers. Sift it first—especially if your recipe calls for more than ¼ cup—and whisk it with the flour to break up clumps. Your cake will rise better and taste smoother.
  • Don’t Overmix Batter: Once you add the wet ingredients, mix just until combined—about 15 strokes with a spatula. Overmixing develops gluten, making the cake tough. I used to ignore this and ended up with a brick instead of a moist, tender slice.
  • Chill the Icing: Spread the cream cheese icing too soon, and it’ll slide right off the warm cake. Let the cake cool completely (15 minutes) and refrigerate the icing for 10 minutes before piping. It’ll hold its shape and taste creamier, not greasy.

Regional styles of this dish

Southern Comfort Twist

In the South, we take this cake to the next level by adding a layer of peanut butter swirl between the chocolate layers. Simply mix ½ cup creamy peanut butter (like Jif) with ½ cup of the chocolate filling before pouring it into the wells.

The peanut butter adds a nostalgic, nutty contrast that pairs perfectly with the tangy cream cheese frosting. I first tried this at my grandmother's house in Georgia, and it became an instant family favorite. 🥜

Midwest Classic

The Midwest version keeps the classic Hershey bar flavor but adds a walnut streusel topping on the cake layers before frosting. Toast 1 cup chopped walnuts with ¼ cup brown sugar and 2 tbsp melted butter until fragrant, then sprinkle it over the cooled cake layers before adding the frosting.

This adds a delightful crunch that balances the softness of the cake and frosting. I picked this up at a Wisconsin state fair years ago, and it's been a staple ever since.

New England Elegance

For a more sophisticated take, New England bakers often incorporate espresso powder into the cake batter—just add 1 tbsp instant espresso powder to the dry ingredients. The deep, coffee notes enhance the chocolate flavor beautifully.

They also use a dark chocolate ganache instead of the Hershey bar swirl, made by heating ½ cup heavy cream with 8 oz dark chocolate chips until smooth. This version feels more refined but maintains the same creamy frosting. I first tasted this at a Boston bakery and was hooked.

Texas-Style Spice

In Texas, they love adding a kick of warmth to their desserts. Mix ½ tsp ground cinnamon and ¼ tsp cayenne pepper into the cake batter for a subtle spice that complements the cream cheese frosting.

For extra flair, top the cake with candied pecans—toss 1 cup chopped pecans with 2 tbsp brown sugar and 1 tbsp melted butter, then bake at 350°F for 8-10 minutes until golden. This version is perfect for anyone who loves a little heat with their sweet treats. 🌶️

Pacific Northwest Freshness

Out West, they focus on bright, fresh flavors. Replace the lemon juice in the chocolate swirl with 1 tbsp orange zest and 1 tbsp fresh orange juice for a citrusy twist.

They also like topping the cake with raspberry jam drizzles—simply warm ½ cup raspberry jam with 1 tsp water and brush it over the frosting before serving. The tartness of the raspberries cuts through the richness, making this a lighter but still decadent version.

I discovered this variation at a Seattle café and it's become a summer favorite.

Nutrition facts

Servings 12
Amount Per Serving
Calories 580kcal
% Daily Value *
Total Fat 38g49%
Saturated Fat 24g120%
Cholesterol 175mg58%
Sodium 420mg18%
Total Carbohydrate 55g19%
Dietary Fiber 2g8%
Sugars 48g
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 dark chocolate for the Hershey bars?

Yes! Use the same weight (12 oz) of dark chocolate chips or chopped dark chocolate bars with at least 60% cocoa. For extra richness, add 1 tbsp melted butter to help it blend smoothly into the batter. The flavor will be more intense and slightly bitter, but the texture remains the same.

2

Why did my cream cheese frosting turn grainy?

Graininess usually happens when the cream cheese isn't fully softened or the butter is too cold. Always use room-temperature cream cheese and butter—microwave for 10-15 seconds if needed. Also, avoid overmixing after adding powdered sugar, and sift the sugar first for a smoother texture.

3

How do I make this cake without eggs?

Replace the 3 eggs with a flax egg substitute: mix 3 tbsp ground flaxseed with 9 tbsp water, let sit for 5 minutes to thicken, then use as a 1:1 replacement. For extra moisture, add 2 tbsp applesauce to the batter. The texture will be slightly denser but still delicious.

4

Can I bake this cake in a different pan size?

For a 9x13-inch pan, reduce baking time to 25-30 minutes and bake at 350°F. For a 6-inch pan, increase baking time to 40-45 minutes. Adjust the chocolate swirl filling proportionally—use ½ the amount for a 6-inch pan. Always check doneness with a toothpick.

5

How long can I store the cake layers before frosting?

Wrap the cooled cake layers tightly in plastic wrap and store at room temperature for up to 2 days. For longer storage, freeze the layers (unfrosted) for up to 1 month. Thaw overnight in the fridge before assembling. The frosting should always be made fresh for the best texture.

★★★★★4.6(2 reviews)
Categories Desserts