Desserts
This Hershey's Black Magic Chocolate Cake delivers the richest cocoa flavor you'll ever taste, with a secret moisture trick that keeps it fudgy and decadent for days.
The deep chocolate swirls and velvety texture come from using authentic Hershey's Black Magic bars, creating a dessert that's both impressive and foolproof for home bakers. I perfected this recipe after years of testing—no dry crumbs or cakey textures here.
The key to this cake's success lies in precise ingredient ratios and a simple but effective moisture technique. You'll need a springform pan for easy release, and the recipe includes a step where melted chocolate is folded into the batter for those signature swirls.
Every layer stays moist thanks to a combination of buttermilk and sour cream, which also adds richness without overpowering the chocolate.
What you'll end up with is a cake that looks stunning with its glossy chocolate glaze and perfectly textured swirls. The first bite delivers intense cocoa flavor with a tender, almost fudgy crumb that melts in your mouth.
This isn't just another chocolate cake—it's a showstopper that tastes like it came from a professional bakery.
Perfect for birthdays, anniversaries, or when you simply crave chocolate, this recipe serves 12 and bakes in just 35-40 minutes. The secret moisture trick ensures it stays fresh for up to 5 days when stored properly. Let's get baking!
Ingredients for hershey's black magic chocolate cake
Twelve ingredients, twelve layers of chocolate perfection. This is your ultimate Black Magic cake shopping list.
| Ingredient | Amount | Notes |
|---|---|---|
| Hershey's Black Magic Chocolate Bars 🍫 | 8 oz | High-quality, not chips |
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted, light variety |
| Granulated Sugar 🍚 | 2 cups | White, fine grain |
| Unsalted Butter 🧈 | 1 ½ cups | Cold, cubed, full-fat |
| Large Eggs 🥚 | 4 whole | Room temperature |
| Buttermilk 🥛 | 1 cup | Fresh, not powdered |
| Sour Cream 🥛 | ½ cup | Full-fat, room temp |
| Vanilla Extract 🌿 | 2 tsp | Pure, not imitation |
| Baking Powder 🧂 | 1 ½ tsp | Aluminum-free |
| Salt 🧂 | ½ tsp | Diamond Crystal preferred |
| Instant Espresso Powder ☕ | 1 tbsp | Enhances chocolate flavor |
| Powdered Sugar 🍚 | 2 cups | For glaze, sifted |
| Heavy Cream 🥛 | ½ cup | Cold, for glaze |
The Hershey's Black Magic bars are non-negotiable here—these aren't your average chocolate bars. Grab them from Walmart or Target (they stock them year-round), or hunt them down at Hershey's Experience if you're near Hershey, PA. Look for bars with vibrant purple packaging—they're the real deal. For the flour, King Arthur or Gold Medal are my go-tos, but any sifted all-purpose works. The butter? Plugrá or Land O'Lakes are solid choices, but don't use margarine—this cake demands real dairy. Pro tip: buy extra chocolate bars. You'll want them for the glaze and maybe a midnight snack.
No buttermilk? Mix 1 tbsp vinegar or lemon juice with 1 cup milk—wait 5 minutes, then use. The sour cream can be swapped for Greek yogurt in a pinch, but it'll be slightly tangier. Running low on vanilla? Almond extract at half the amount works, but it changes the flavor profile. The instant espresso powder is key for that deep chocolate kick—if you don't have it, 1 tsp strong brewed coffee will do, but strain it first. For the glaze, powdered sugar brands like Domino or C&H are fine, but sift it first to avoid lumps. And whatever you do, don't skip the chocolate swirls—they're what make this cake look (and taste) like it came from a bakery.
This cake stays moist for 5 days if wrapped tightly in plastic and stored at room temperature. For longer storage, freeze it for up to 3 months—just thaw overnight in the fridge. The glaze sets quickly, so assemble the cake right before serving. I like to portion it into individual slices and freeze them too—perfect for last-minute birthdays. And if anyone asks, the secret moisture trick? It's that buttermilk and sour cream combo. Trust me on it.
Why You'll Love This Recipe
- Pantry Magic Ready: I swear by this recipe when I forget to grocery shop—just grab those Black Magic bars, flour, and butter from your cupboard, and you’re golden. No last-minute ingredient hunts, no stress.
- Fudgy Heaven Core: That rich, molten center from the melted Black Magic bars? It’s the kind of bite that makes you close your eyes and groan. The eggs and butter give it just the right crumb—tender but still sturdy enough to slice.
- Birthday or Boredom Fix: Between us, this cake is my go-to for anything—birthday parties, lazy Sundays, or when I just need a pick-me-up. It’s fancy enough for company but unfussy enough to eat straight from the pan.
- Leftovers That Last: I always bake two layers because the slices keep perfectly for days. Freeze one for when cravings hit, and the other? Gone in a flash. Plus, the cost per serving is laughably cheap for something this indulgent.
Step-by-step instructions for Hershey's Black Magic chocolate cake
Here's how to create a rich, moist chocolate cake with deep cocoa swirls and a secret trick to keep it tender.
Melt the Chocolate and Prepare the Swirl Dough
First, chop the 8 oz Hershey's Black Magic Chocolate Bars into small pieces and place them in a microwave-safe bowl. Microwave in 30-second bursts, stirring between each, until fully melted and smooth. The chocolate should be silky and glossy, not grainy—this ensures a velvety texture in the final cake.
In a separate bowl, whisk together 1 cup buttermilk, 0.5 cup sour cream, 2 tsp vanilla extract, and 1 tbsp instant espresso powder. Set this mixture aside—it's the secret to that ultra-moist crumb. Then, in another bowl, combine 1.5 cups unsalted butter (softened but not melted) with 2 cups granulated sugar, beating until light and fluffy—about 3-4 minutes on medium speed.
Gradually add 4 whole large eggs, one at a time, mixing well after each addition. The mixture should nearly double in volume and turn pale. This step incorporates air, which helps create a tender crumb. Finally, fold in 2.5 cups all-purpose flour (sifted), 1.5 tsp baking powder, and 0.5 tsp salt until just combined—don’t overmix, or the cake will be dense.
Create the Swirl and Assemble the Cake
Divide the chocolate mixture in half. To one half, add 1 cup of the melted chocolate, reserving the other half for later. Gently fold the chocolate into the batter until evenly distributed—you want marbled swirls, not clumps. This is where the magic happens: the contrast between rich chocolate and tender cake creates layers of flavor.
Pour half of the batter into a 9-inch round cake pan lined with parchment paper. Spoon dollops of the reserved chocolate mixture over the batter, then gently swirl with a knife to create ribbons. Top with the remaining plain batter and smooth the surface with a spatula. The swirls should be visually striking but not overmixed—think of it like painting with chocolate.
Bake in a preheated 350°F oven for 30-35 minutes, or until a toothpick inserted into the center comes out clean. The cake should be deeply golden on top but still slightly springy to the touch. Overbaking is the enemy of moisture—pull it out just as it reaches doneness.
Prepare the Glaze for Extra Moisture
While the cake bakes, prepare the glaze by combining 2 cups powdered sugar, 0.5 cup cold heavy cream, and 1 tsp vanilla extract in a bowl. Whisk until smooth—it should coat the back of a spoon like a thick syrup. This glaze isn’t just for decoration; it’s a moisture boost that keeps the cake tender for days.
Once the cake has cooled for 10 minutes (but not completely), poke holes all over the top with a skewer. Slowly pour the glaze over the cake, letting it seep into the holes. This step ensures every bite is rich, moist, and fudgy—not dry. Let the glaze set for 1 hour before slicing, or it’ll be too runny.
Slice and Serve for Maximum Moisture
Use a sharp serrated knife to slice the cake into 12 equal wedges. Dip the knife in hot water and wipe it dry between cuts—this prevents crumbling and ensures clean slices. The cake should be dense yet tender, with visible chocolate swirls that melt in your mouth.
Serve immediately for the most decadent experience, or store in an airtight container at room temperature for up to 3 days. The glaze will keep it moist, but for the best texture, enjoy it within 24 hours. Pair with a scoop of vanilla ice cream or a dollop of whipped cream for the ultimate indulgence.
Pro Tips For Making Hershey'S Black Magic Chocolate Cake
- Melt Chocolate Slowly: I learned this the hard way—dumping chopped Black Magic bars straight into hot butter makes seizing happen. Instead, melt the butter first, then lower the heat to medium-low and add the chocolate a few pieces at a time, stirring constantly until fully smooth. The goal is to avoid any graininess that’ll ruin the cake’s velvety texture.
- Whisk Eggs Separately: Don’t just crack eggs straight into the batter. Whisk them first in a separate bowl, then fold them in gently—this keeps the cake tender and prevents dense pockets. I was skeptical until I tried it; the difference in crumb is noticeable.
- Skip Overmixing Flour: Once you fold the dry ingredients into the wet, stop mixing the second everything’s just combined. Overworking the batter introduces air that collapses during baking, leading to a dense cake. Two or three strokes with a spatula is all it takes—yes, even if it looks uneven.
- Use Room-Temp Eggs: Cold eggs can curdle when mixed with melted butter, leaving you with a lumpy batter. Take your eggs out of the fridge 30 minutes before baking, or place them in warm water for 5 minutes. Trust me, your cake’s moisture and structure will thank you.
Troubleshooting perfect results
Cracked Top Fix
If your cake develops cracks on top during baking, it’s usually due to oven temperature fluctuations. First, check your oven’s accuracy with an oven thermometer—many run hotter than set.
If your oven is 350°F but actually hits 375°F, reduce the temperature to 325°F and add 5-10 minutes to baking time. For a cracked cake already in the oven, tent it loosely with aluminum foil to slow moisture evaporation.
The cracks won’t affect flavor, but they’ll look less perfect. 🌡️
Dense or Dry Cake
Overmixing the batter is the #1 cause of dense texture. Use a hand mixer on low speed and stop as soon as the flour disappears—about 20-30 seconds. For dryness, ensure all ingredients (especially eggs and butter) are at room temperature.
If the cake pulls away from the pan edges too quickly, try greasing the pan with butter and flour instead of just butter. The secret moisture combo (buttermilk + sour cream) should never be skipped. 💧
Chocolate Sinks
When the chocolate swirls sink to the bottom instead of staying visible, it’s usually from overmixing or insufficient leavening. Fold the chocolate into the batter gently with a spatula—just until combined, not until smooth.
For extra lift, add ¼ tsp baking soda to the flour mixture. If the cake is already baked, slice it horizontally to reveal hidden swirls, then reassemble with extra glaze for a stunning presentation. 🎨
Glaze Too Runny
A glaze that pools instead of setting properly means either too much liquid or insufficient powdered sugar. For a 2-cup powdered sugar base, add heavy cream 1 tablespoon at a time until it reaches a thick syrup consistency.
If it’s still too thin, whisk in 1-2 more tablespoons of powdered sugar. For extra stability, chill the glaze for 10 minutes before pouring. The cake’s warmth will help it set properly. ❄️
Uneven Swirls
Lumpy or uneven swirls happen when the chocolate isn’t melted smoothly or the batter is too thick. For silky chocolate, melt it in 30-second microwave bursts while stirring vigorously between each. If the batter feels too stiff, add 1-2 tablespoons of buttermilk to loosen it.
Use a long, thin spatula to create clean swirls—think of it like painting with chocolate. Practice makes perfect! 🎨
Cake Sticks to Pan
Even with parchment paper, cakes sometimes stick due to moisture or insufficient greasing. Line the pan with parchment, then brush the bottom and sides with melted butter. Dust with flour or cocoa powder before adding batter.
If it still sticks, run a thin knife around the edges while the cake is warm but not hot. For stubborn cases, invert the cake onto a plate immediately after baking. 🧂
Nutrition facts
Frequently asked questions
Can I substitute regular chocolate bars for Hershey's Black Magic?
The deep cocoa flavor comes from Black Magic's unique cocoa content. While you could use other high-quality dark chocolate, it won't have the same rich, velvety texture. For best results, stick with the original—it's what makes this cake special! The espresso powder also enhances the flavor, so don't skip that either.
How do I make this cake vegan?
Replace the butter with vegan butter or coconut oil, use flax eggs (1 tbsp ground flax + 3 tbsp water per egg), and swap buttermilk for unsweetened almond milk + vinegar. For the glaze, use coconut cream instead of heavy cream. The texture will be slightly denser, but still delicious! The chocolate swirls will still show up beautifully.
Why does your recipe call for buttermilk and sour cream?
These ingredients create the cake's signature moisture through a science called "fat retention." The buttermilk adds acidity that tenderizes the gluten, while the sour cream's fat content keeps the crumb ultra-tender. Together they prevent dryness for up to 5 days when stored properly. It's the secret that makes this cake stand out from other chocolate cakes!
Can I bake this in a different pan size?
For best results, use a 9-inch round pan—this recipe is designed for that size. If you must use a different pan, adjust baking time by 2-3 minutes per inch difference (smaller pans bake faster). For a 8-inch pan, reduce baking time by about 5 minutes. The cake height will vary, but the texture should remain the same.
How do I store leftovers without drying them out?
Wrap the cake tightly in plastic wrap and store at room temperature for up to 5 days. For longer storage, freeze individual slices wrapped in plastic for up to 3 months. The glaze helps preserve moisture, but avoid refrigerating the whole cake—it can make the texture too firm. Bring frozen slices to room temperature before serving for best results.
