Sauces & Condiments
This Hershey's chocolate frosting recipe with cocoa powder delivers the perfect balance of rich cocoa flavor and velvety texture without requiring a scale.
I developed this version after years of testing different ratios, ensuring it's thick enough for swirls but still smooth enough to spread—no lumps, no separation, and no guesswork. The secret lies in precise measurements and a simple mixing technique that guarantees professional results every time.
What sets this recipe apart is its foolproof consistency, achieved by combining melted chocolate with cocoa powder and butter for stability.
Unlike many recipes that rely on powdered sugar alone, this version uses a blend of powdered sugar and cornstarch to create ultra-thick swirls that hold their shape while still tasting decadent.
The frosting stays smooth at room temperature and can be stored for up to a week, making it ideal for baking ahead or decorating last-minute.
By the time you're done, you'll have a batch of frosting that's rich, glossy, and perfectly balanced—sweet enough to satisfy but with deep chocolate notes that make it feel special. It's the kind of frosting that transforms cupcakes, cakes, and cookies into showstoppers without requiring advanced piping skills.
The recipe scales easily too, so you can make just enough for a small batch or double it for a crowd.
For extra flavor, consider adding a pinch of vanilla or a splash of milk to adjust consistency. This frosting works equally well for classic desserts or creative twists like chocolate-dipped fruit or ice cream toppings. Let's get started on making frosting that tastes like it came from a professional bakery.
Ingredients for hershey's chocolate frosting recipe with cocoa powder
Eight ingredients, zero scale needed. Professional frosting without the fuss.
| Ingredient | Amount | Notes |
|---|---|---|
| Hershey's Special Dark Baking Chocolate Bars 🍫 | 8 oz | High-quality, semi-sweet preferred |
| Unsalted Butter 🧈 | ½ cup | Cold, cubed for easier melting |
| Dutch-Processed Cocoa Powder 🍫 | ¼ cup | Hershey's or Dutch-processed preferred |
| Powdered Sugar 🍚 | 2 cups | Confectioners' sugar, sifted |
| Cornstarch 🌾 | 2 tbsp | For ultra-thick texture |
| Pure Vanilla Extract 🌸 | 1 tsp | Optional, for depth of flavor |
| Salt 🧂 | ¼ tsp | Fine sea salt for balance |
| Heavy Whipping Cream 🥛 | ¼ cup | For glossy finish, optional |
The chocolate is non-negotiable—Hershey's Special Dark Baking Bars melt smoothly and deliver consistent flavor. Buy them in bulk at Costco or Walmart for the best price, or grab a single bar from any grocery store. Dutch-processed cocoa powder is key here; it's smoother and less bitter than natural cocoa. Hershey's or Ghirardelli work perfectly. For the butter, stick with unsalted—salted can alter the frosting's balance. The powdered sugar should be sifted to avoid lumps, and Domino or Cuisinart brands are reliable choices.
No Dutch-processed cocoa? Natural cocoa powder at half the amount works, but expect a slightly bitter taste. Out of powdered sugar? Granulated sugar at the same weight (about 1.5 cups) is a decent swap, though texture may vary. The vanilla extract is optional but recommended for depth—Nielsen-Massey or McCormick are solid budget options. For extra richness, replace the heavy cream with whole milk or cream cheese**, though consistency may change slightly. The cornstarch is critical for stability; don't skip it unless you're using a stabilizer like melted marshmallow fluff.
This frosting stays smooth for 5-7 days in the fridge when stored in an airtight container. For longer storage, freeze portions for up to 3 months—thaw at room temperature before use. To prevent crystallization, avoid exposing it to high humidity. The frosting thickens as it chills, so bring it to room temperature before piping or spreading. For best results, make it the day you plan to use it, but it reheats beautifully in the microwave for 10-15 seconds if needed.
Why You'll Love This Recipe
- Here’s what sold me: the Dutch-processed cocoa powder. It’s smoother, less acidic, and lets the Hershey’s dark chocolate shine. The butter adds that velvety richness, but it never tastes greasy—just pure, decadent chocolate. (Yes, even on a Tuesday night.)
- Five-Ingredient Magic: I swear by this combo—melted Hershey’s bars, butter, cocoa powder, powdered sugar, and a pinch of cornstarch. That’s it. No fuss, no extra bowls, and no mystery ingredients. The cocoa powder deepens the chocolate flavor while the cornstarch keeps it silky smooth without overpowering.
- Rich Without Bitterness: Here’s what sold me: the Dutch-processed cocoa powder. It’s smoother, less acidic, and lets the Hershey’s dark chocolate shine. The butter adds that velvety richness, but it never tastes greasy—just pure, decadent chocolate. (Yes, even on a Tuesday night.)
- Frosting for Everything: This isn’t just cupcake topping. Slather it on pancakes, stir it into oatmeal, or use it to fill homemade donuts. I’ve even drizzled it over store-bought cookies when I’m in a pinch. The powdered sugar keeps it stable enough to pipe, but it’s still easy enough to dollop.
Step-by-step instructions for Hershey's chocolate frosting with cocoa powder
This method delivers ultra-thick, swirl-worthy frosting without any measuring scales or guesswork.
Melt Chocolate and Butter Together
Place the 8 oz Hershey's Special Dark Baking Chocolate Bars and the 0.5 cup Unsalted Butter in a medium microwave-safe bowl. Microwave in 30-second intervals, stirring between each interval, until completely melted and smooth. The mixture should reach a temperature of about 110°F—just warm enough to be liquid but not hot to the touch. If using a stovetop method instead, melt the chocolate and butter together in a double boiler over low heat, stirring constantly until fully combined.
This melting process creates the rich chocolate base. If you notice any graininess, simply stir more vigorously or let it sit for 30 seconds before proceeding. The butter helps create a smoother texture while adding richness that balances the cocoa powder later.
Whisk in Cocoa Powder and Dry Ingredients
Remove the melted chocolate mixture from heat and let it cool for 2-3 minutes until it reaches room temperature. Gradually whisk in the 0.25 cup Dutch-Processed Cocoa Powder, the 2 cups Powdered Sugar, and the 2 tbsp Cornstarch. Start with the cocoa powder first to prevent clumping, then alternate between adding powdered sugar and cornstarch while whisking continuously. The mixture should thicken noticeably as you incorporate these dry ingredients.
Here's the key: whisk until completely smooth with no visible lumps. The cornstarch acts as a thickener, while the cocoa powder deepens the chocolate flavor. If you encounter any stubborn lumps, press them through a fine-mesh sieve to ensure a silky texture. This step forms the structural foundation of your frosting.
Incorporate Vanilla, Salt, and Cream
Add the 1 tsp Pure Vanilla Extract and the 0.25 tsp Salt to the chocolate mixture, whisking until fully combined. The vanilla adds subtle sweetness and complexity, while the salt enhances all the chocolate flavors. Next, slowly drizzle in the 0.25 cup Heavy Whipping Cream while whisking continuously. The cream adds a glossy finish and lightens the texture slightly, creating that perfect balance between richness and smoothness.
This is where the frosting comes together. The cream should be incorporated just until the mixture reaches a thick, spreadable consistency—similar to toothpaste in texture. If it's too thick, add 1 tsp of warm water at a time until it reaches your desired consistency. The heavy whipping cream also helps create those beautiful swirls when you pipe the frosting later.
Cool and Adjust Consistency
Transfer the frosting to a clean bowl and let it cool at room temperature for 10-15 minutes. This cooling period is crucial—it allows the frosting to thicken slightly and reach its ideal piping consistency. Check the texture by dipping a spoon in and lifting it out; the frosting should hold its shape but still be smooth and spreadable. If it's too thin after cooling, whisk in an additional 1 tbsp of Powdered Sugar or 1 tsp of Cornstarch to thicken it.
During this time, I recommend covering the bowl loosely with plastic wrap to prevent a skin from forming on the surface. The frosting should be cool enough to handle but still slightly warm to the touch. This final adjustment ensures your frosting will pipe beautifully and hold its shape on cakes or cupcakes without sliding off.
Pipe or Spread Immediately
Once the frosting reaches the perfect consistency, transfer it to a piping bag fitted with a star tip or use a spoon to spread it immediately. The frosting should hold its shape when piped but still be smooth enough to create beautiful swirls. For best results, work quickly as the frosting will continue to thicken slightly as it sits. If you need to thin it further for piping, add 1 tsp of warm water at a time until it reaches the desired consistency.
This frosting is designed to be used immediately for the best texture. If you need to store it, cover it tightly and refrigerate for up to 3 days. When ready to use, let it sit at room temperature for 10 minutes and whisk or beat briefly to restore its smooth consistency. The result will be a rich, ultra-thick chocolate frosting with perfect swirls that taste just like a bakery's finest.
Pro Tips For Making Hershey'S Chocolate Frosting Recipe With Cocoa Powder
- CHOP CHOCOLATE SMALL: The Hershey’s bars are stubborn—break them into 1-inch chunks instead of shaving them. Smaller pieces melt faster and more evenly, so you’re not left with lumps fighting for their lives in your saucepan. I learned this the hard way after scraping out stubborn globs that refused to dissolve.
- SIFT COCOA FIRST: Dutch-processed cocoa powder clumps like a grumpy cat if you don’t sift it. Toss it through a fine-mesh sieve before measuring—this keeps your frosting silky, not grainy. Yes, it’s an extra step, but your frosting will thank you later.
- LOW AND SLOW MELT: Crank the heat to medium-low when melting butter and chocolate. Too high, and you’ll get a greasy, uneven mess that separates like oil and water. Keep it steady—this is where patience pays off.
- WHISK HOT MIX: Pour the hot chocolate-butter mixture into your powdered sugar and cocoa while whisking. The heat helps dissolve the sugar faster, so you’re not left with a clumpy, sad pile that looks like it was made in a blender. Stir like you mean it.
Pro cooking tips for this dish
Melting Perfection
I can't stress enough how critical the melting stage is—this is where you set the foundation for silky-smooth frosting. Use a microwave-safe bowl and melt the Hershey's chocolate bars and butter in 30-second bursts, stirring between each interval. The goal is to reach 110°F, not boiling hot.
I’ve ruined frosting by overheating the chocolate, which causes it to seize. If you notice any graininess, let it rest for 30 seconds before proceeding—patience here prevents lumps later. 🔥
Cornstarch Secret
The 2 tbsp cornstarch is non-negotiable for that bakery-style thickness. Whisk it in after the cocoa powder and powdered sugar, but don’t rush—this is where texture magic happens. If your frosting feels too thin after cooling, add another 1 tbsp cornstarch or 1 tsp powdered sugar to thicken.
Pro tip: Sift your powdered sugar first to avoid clumps. I once skipped this step and ended up with a runny mess that wouldn’t hold swirls—don’t make my mistake!
Vanilla and Salt Balance
That 1 tsp vanilla extract might seem small, but it’s what elevates homemade frosting from "good" to "wow." Add it after the dry ingredients to let the chocolate flavors fully meld. The ¼ tsp salt might seem counterintuitive, but it cuts through the sweetness and deepens the chocolate’s richness.
I learned this trick from my Nonna—she’d pinch salt into everything, even desserts. Trust me, it works. 💡
Cream for Gloss
The ¼ cup heavy whipping cream is optional but adds that professional gloss and lightens the texture just enough for perfect swirls. If you’re piping, this step is essential—without it, your frosting might crack or look dull.
For extra richness, replace the cream with 2 oz cream cheese**, but expect a slightly denser consistency. Whisk it in last and slowly to avoid breaking the emulsion.
Room-Temp Trick
After mixing, let the frosting cool at room temperature for 10-15 minutes—this is where it thickens to piping perfection. If it’s too thick, microwave it for 10 seconds while stirring to soften. For extra insurance, chill it in the fridge for 5 minutes if your kitchen is warm.
I’ve seen frosting go from spreadable to rock-hard in minutes, so timing is everything. Test consistency by dipping a spoon in—it should hold its shape but still be smooth. ✨
Piping Like a Pro
Use a star tip (like Wilton 1M) for swirls or a plain round tip for borders. Fill your piping bag just before use—frosting thickens as it sits. If it’s too stiff, add 1 tsp warm water at a time until it flows smoothly.
For a rustic look, spread it with a knife and drag a fork through for texture. I once piped frosting that was too thick and ended up with a lumpy disaster—now I always test consistency first. 🎨
Nutrition facts
Frequently asked questions
Can I make this frosting without cornstarch?
You can substitute cornstarch with 1 tbsp melted marshmallow fluff or an extra 1 tbsp powdered sugar, but the texture won't be as stable. Cornstarch creates that ultra-thick, swirl-worthy consistency that's hard to replicate. If you skip it, your frosting may spread too easily or lose its structure after chilling.
Why did my frosting turn grainy?
Graininess usually happens when chocolate overheats or isn't fully melted. Always melt chocolate in 30-second intervals and stir between each. If it seizes, let it rest for 30 seconds before whisking. For extra insurance, sift your cocoa powder and powdered sugar together before adding. If graininess appears after mixing, press the mixture through a fine-mesh sieve for a silky finish.
How do I adjust the sweetness level?
This recipe balances sweetness perfectly, but you can tweak it by adding 1-2 tbsp extra powdered sugar for more sweetness or 1 tsp extra cocoa powder for deeper chocolate flavor. If it's too sweet, add ¼ tsp more salt to enhance the chocolate notes. For a less sweet version, reduce powdered sugar to 1½ cups and increase cocoa powder to ⅓ cup.
Can I use this frosting for cake filling instead of topping?
Yes, but it's thicker than traditional fillings. For cake filling, reduce powdered sugar to 1½ cups and add 2 tbsp milk or cream to thin it slightly. Spread between layers while the cake is still slightly warm for best results. Store filled cakes in the fridge for up to 3 days—the frosting will hold its shape better when chilled.
What's the best way to store leftover frosting?
Transfer frosting to an airtight container and refrigerate for up to 5-7 days. For longer storage, freeze portions for 3 months. Thaw at room temperature, then whisk or microwave for 10 seconds to restore smoothness. Avoid exposing it to humidity, which can cause sugar crystallization. If it thickens too much after refrigeration, add 1 tsp warm water at a time to reach piping consistency.