Desserts
This Hershey chocolate bar cake delivers the exact same experience as biting into a classic candy bar—fudgy, crunchy, and packed with that signature Hershey’s flavor in every layer.
The secret lies in swirling melted chocolate bars directly into the batter before baking, creating ribbons of molten chocolate that set into rich, glossy swirls with crispy edges.
I’ve perfected this recipe over years of testing, ensuring the texture stays perfectly moist while delivering that signature Hershey’s taste in every bite.
The beauty of this cake is its simplicity—no fancy techniques or specialized equipment required. With just a few key ingredients like all-purpose flour, granulated sugar, eggs, butter, and of course, Hershey’s chocolate bars, you’ll achieve a dessert that tastes like it came straight from a bakery.
The recipe includes a quick chocolate glaze that adds an extra layer of richness and shine, making it impossible to resist.
What you’ll end up with is a decadent cake that’s rich, moist, and bursting with chocolate flavor in every forkful. The fudgy swirls cut through the tender cake layers, while the crispy edges add just the right contrast.
Perfect for birthdays, holidays, or anytime you need a chocolate fix, this cake is sure to become a family favorite.
Ready to bake? Let’s get started with a foolproof method that delivers restaurant-quality results every time. The best part? This recipe scales easily, so you can make it for a crowd or save half for later—though I can’t promise it’ll last that long.
Ingredients for hershey chocolate bar cake
Eight essential ingredients transform into a cake that tastes like pure Hershey’s bliss.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 2 cups | Divided for batter and glaze |
| Unsalted Butter 🧈 | 1 ½ cups | Room temperature, full-fat |
| Large Eggs 🥚 | 3 whole | Room temperature, separated |
| Baking Powder 🍞 | 1 tbsp | Aluminum-free preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Hershey's Milk Chocolate Bars 🍫 | 12 oz | Standard size, chopped |
| Vanilla Extract 🌿 | 1 tbsp | Pure, high-quality |
| Milk 🥛 | ½ cup | Whole milk preferred |
| Powdered Sugar 🍚 | 1 cup | For glaze, sifted |
| Heavy Cream 🥛 | ¼ cup | Full-fat for glaze |
| Vegetable Oil 🫒 | ½ cup | For greasing pans |
The chocolate bars are non-negotiable—Hershey’s Milk Chocolate is the only way to get that signature flavor. Grab a family-size bar from Target or Walmart—they’re cheaper than individual bars and keep well. Chop them into uneven pieces (about 1-inch squares) so they melt at different rates, creating those gorgeous swirls. Costco sells bulk chocolate bars too, perfect if you’re making this for a crowd. Pro tip: microwave the chocolate in 20-second bursts, stirring between each, until just melted (about 1 minute total). Overheating makes it grainy, and we’re going for silkiness here.
No Hershey’s bars? Semisweet chocolate chips work in a pinch, but you’ll lose that classic candy bar taste. Running low on powdered sugar? Granulated sugar blended into a fine powder in a food processor does the trick. The glaze needs heavy cream—half-and-half won’t whip up properly, so don’t skip the full-fat version. For the butter, I always use Land O’Lakes or Plugrá—they’re reliable and melt smoothly. The vanilla extract? Nothing fancy here—just make sure it’s pure. If you’ve got bourbon or espresso extract, add 1 tsp to the batter for a grown-up twist. The milk can be any kind, but whole gives the best moisture.
This batter keeps for 2 days in the fridge if you’re prepping ahead, but honestly, it’s best baked fresh. The glaze sets quickly, so make it right before serving. Store leftovers in an airtight container at room temperature for 3 days or freeze for 3 months. To reheat, wrap a slice in foil and microwave for 10 seconds—just enough to soften the edges without drying it out. Trust me, the first slice out of the fridge is still incredible, but a quick zap makes it feel like it just came out of the oven.
Why You'll Love This Recipe
- No Mixer Needed: I swear by this recipe when I’m in a hurry—just cream butter and sugar by hand, crack eggs into the bowl, and fold in the flour. That Hershey’s bar folded into the batter? Pure magic with zero extra effort.
- Rich Without Fuss: The moment you taste that deep, melty chocolate from the Hershey’s bar mixed right into the batter, you’ll forget it’s just a simple cake. The butter and sugar give it that velvety crumb, and the baking powder keeps it light—no dense, heavy texture here.
- Party in a Box: This cake is my go-to for birthdays, potlucks, or even a last-minute dessert because it’s foolproof and always a crowd-pleaser. (Yes, even my picky nephew loves it.) Plus, the Hershey’s chunks make it look special without extra decorating.
- Budget-Friendly Leftovers: A single batch feeds six but keeps well for days—perfect for when you bake once and eat twice. The pantry staples (flour, sugar, butter) won’t break the bank, and the chocolate makes it feel like a treat, not a splurge.
Step-by-step instructions for Hershey chocolate bar cake
This cake delivers rich Hershey chocolate swirls and a perfectly moist crumb every time—let's make it.
Prepare the Chocolate Swirl Dough
Preheat your oven to 350°F and grease two 9-inch round cake pans with the 0.5 cup vegetable oil, then line the bottoms with parchment paper. In a medium bowl, melt the 12 oz Hershey's Milk Chocolate Bars with the 1.5 cups unsalted butter over a double boiler or in 30-second intervals in the microwave. Stir until completely smooth.
Remove from heat and let cool slightly, then whisk in 1 cup granulated sugar and 1 tbsp vanilla extract until fully combined. In a separate bowl, beat the 3 whole large eggs until frothy, then gently fold into the chocolate mixture. Sift in 1.5 cups all-purpose flour, 1 tbsp baking powder, and 0.5 tsp salt, mixing just until combined. Don't overmix—this keeps the cake tender.
Create the Swirl Pattern
Divide the batter evenly between the two prepared pans. For the classic swirl effect, use a rubber spatula to create a well in the center of each pan, then pour about ⅓ of the remaining batter into each well. Using the spatula, gently swirl the batter outward in a circular motion to create marbled patterns. Tap the pans lightly on the counter to release any air bubbles, then bake for 25-30 minutes.
Check for doneness when a toothpick inserted into the center comes out clean. The edges should be set but the tops still slightly springy. Let the cakes cool in the pans for 10 minutes, then transfer to a wire rack to cool completely. This cooling step is crucial—it prevents the layers from becoming soggy when assembling.
Make the Cream Cheese Glaze
While the cakes cool, prepare the glaze by beating the 0.25 cup heavy cream with an electric mixer until soft peaks form. Gradually add the 1 cup powdered sugar, mixing until smooth. In a separate bowl, whisk the 0.5 cup milk with the remaining 1 cup granulated sugar until dissolved. Gently fold the milk mixture into the cream cheese glaze until fully combined and silky.
For extra richness, you can add 1-2 tbsp melted Hershey's Milk Chocolate Bars to the glaze, but it's not required. The glaze should be thick enough to drizzle but still pourable. If it's too thick, whisk in a few drops of milk to reach your desired consistency.
Assemble and Frost the Cake
Once the cakes are completely cool, place one layer on a serving plate. Spread about ⅓ of the glaze evenly over the top, then place the second layer on top. Drizzle the remaining glaze over the entire cake, allowing some to pool at the edges for a decorative look. For extra crunch, sprinkle chopped Hershey's Milk Chocolate Bars over the glaze while it's still wet.
Let the glaze set for at least 30 minutes before slicing. This resting time ensures clean cuts and prevents the glaze from sliding off. Serve at room temperature for the perfect balance of fudgy swirls, moist cake, and creamy glaze in every bite.
Pro Tips For Making Hershey Chocolate Bar Cake
- Cream Butter Properly: I learned this the hard way—cold butter cut into flour makes a dense cake. Instead, soften the butter just until it’s pliable (about 65°F) and beat it with sugar until light and fluffy. This incorporates air, which is what gives Hershey cake that signature tender crumb.
- Sift Dry Ingredients: Skipping this step means uneven baking powder distribution, leading to flat spots. Sift the flour and baking powder together before mixing—especially if your flour is lumpy or old. A fine mesh strainer works, but a sifter guarantees no clumps hiding in your batter.
- Don’t Overmix: The moment your batter turns glossy and thick, stop. Overmixing develops gluten, which turns your cake tough instead of moist. Fold in the chocolate chips or shavings last and just until combined—this keeps the texture light.
- Bake Until Springy: A toothpick with a few moist crumbs is fine—this cake should feel springy to the touch, not hard. If the edges set too soon, tent with foil and check again at 10 minutes. Underbaking is easier to fix than overbaking, and it keeps the cake fudgy.
Make-ahead tips for this dish
Batter Prep Ahead
Mix the cake batter up to 2 days in advance and store it in an airtight container in the fridge. When ready to bake, let it sit at room temperature for 30-60 minutes before dividing into pans.
This ensures even baking and prevents uneven swirls. I like to prep the batter the night before—it saves time on baking day and lets the flavors meld overnight. 💫
Chocolate Swirl Trick
Chop your chocolate bars into uneven pieces (some large, some small) for the most dramatic swirls. Melt them just until smooth—overheating makes the chocolate grainy. Pour the melted chocolate into the batter in the center of each pan, then swirl immediately before baking.
The uneven pieces create beautiful, irregular patterns when baked. I use a rubber spatula to swirl, but a skewer works too for tighter patterns. ⚡
Glaze Prep Timeline
Make the glaze 30 minutes before serving—it needs time to set properly. If you're prepping ahead, store the dry ingredients (powdered sugar and granulated sugar) separately and mix with the wet ingredients just before use.
The glaze thickens as it cools, so add a splash of milk if it becomes too stiff. I keep the glaze in the fridge until ready to use to maintain its thickness. 🥛
Layer Assembly Tips
Let the cooled cake layers sit at room temperature for 10 minutes before assembling to prevent condensation. Spread the glaze evenly between layers and on top—don’t rush this step. For extra flair, use a piping bag with a small round tip to create decorative drizzles.
I often chill the assembled cake for 1 hour before slicing to ensure clean cuts. 🍰
Freezing Fully Assembled
This cake freezes beautifully! Wrap the fully assembled cake in plastic wrap, then in aluminum foil for an extra layer of protection. Freeze for up to 3 months.
To serve, thaw at room temperature for 2-3 hours, then reheat slices in the microwave for 10 seconds to soften the edges. The texture stays moist even after freezing. ❄️
Make-Ahead Serving
If you're serving at a party, assemble the cake the night before but refrigerate it. Bring it to room temperature for 1 hour before serving—this makes the glaze shine and the cake easier to slice.
For a crowd, slice and serve directly from the fridge; the contrast of cold cake and room-temperature glaze is delicious. I always make extra slices to take home—this cake disappears fast! 💛
Nutrition facts
Frequently asked questions
Can I substitute Hershey’s bars with chocolate chips?
The flavor won’t be identical, but you can use 2 cups semisweet chocolate chips if you’re in a pinch. For the best Hershey’s taste, stick to the bars—they melt more smoothly and create those signature swirls. If using chips, melt them with the butter to maintain texture.
Why did my cake turn out dense instead of moist?
Overmixing the batter or overbaking are the most common culprits. Mix just until combined and bake until a toothpick comes out clean (not dry). Also, ensure your ingredients are at room temperature—cold butter or eggs can prevent proper emulsification. Let the cakes cool completely before assembling to avoid soggy layers.
How do I make this cake gluten-free?
Replace the all-purpose flour with a 1:1 gluten-free baking flour blend (like Bob’s Red Mill) and add ½ tsp xanthan gum to improve texture. Reduce the milk by 2 tablespoons since GF flours absorb more liquid. The swirl technique works the same, but GF cakes may have a slightly denser crumb.
Can I bake this in a single 9x13-inch pan instead of rounds?
Yes! Grease and line a 9x13-inch pan and spread the batter evenly. Skip the swirl step and bake for 35-40 minutes at 350°F. For presentation, frost the top and sides with the glaze. The texture will be the same—just a different shape for easy serving.
What’s the secret to perfect chocolate swirls?
Chop the chocolate bars into uneven pieces and melt them just until smooth—overheating makes them grainy. Pour the melted chocolate into the center of the batter, then swirl immediately with a spatula. The key is working quickly before the batter sets. For extra drama, use a skewer to create tighter patterns.
