Desserts
This Hershey chocolate pie filling recipe delivers the perfect balance of rich, fudgy texture and velvety smoothness—just like your favorite childhood dessert.
The secret lies in combining Hershey chocolate with vanilla bean and cornstarch for a filling that sets beautifully without turning grainy, while the swirls add that classic marbled effect.
I developed this version after testing countless recipes that either ended up too runny or too dense, and this one finally nailed the ideal consistency.
The crust starts with a simple graham cracker base that stays crisp even after baking, providing the perfect foundation for the chocolate filling. What sets this recipe apart is the technique of melting the chocolate gently over a double boiler—this prevents burning and ensures a silky-smooth texture.
The filling bakes at 350°F for 45–55 minutes, creating a center that’s just firm enough to slice but still rich and creamy.
Once cooled, you’ll have a pie with deep chocolate flavor enhanced by vanilla bean, topped with a glossy chocolate ganache that ties everything together. The contrast between the crisp crust, fudgy filling, and velvety ganache makes every bite irresistible.
Serve with whipped cream or caramel drizzle for an extra touch of decadence—this pie is sure to become your new signature dessert.
Perfect for holidays, dinner parties, or satisfying a chocolate craving, this recipe delivers restaurant-quality results with minimal effort. The filling can be prepped ahead and baked when needed, making it ideal for busy schedules. Let’s get started on creating your dream chocolate pie!
Ingredients for hershey chocolate pie filling
Fudgy chocolate perfection with vanilla depth—just eight simple ingredients transform into a dreamy pie filling.
| Ingredient | Amount | Notes |
|---|---|---|
| Hershey's Special Dark Baking Bars 🍫 | 12 oz | Unwrapped, chopped into chunks |
| All-Purpose Flour 🌾 | ½ cup | Sifted for smooth filling |
| Granulated Sugar 🍚 | 1 cup | White or light brown |
| Cornstarch 🌾 | ¼ cup | For perfect texture |
| Vanilla Bean 🌿 | 1 whole | Seeds scraped, pod saved |
| Heavy Cream 🥛 | 1 ½ cups | Full-fat for richness |
| Large Eggs 🥚 | 2 whole | Room temperature preferred |
| Unsalted Butter 🧈 | ½ cup | Cold, cubed for swirls |
| Salt 🧂 | ¼ tsp | Fine sea salt |
| Graham Cracker Crumbs 🍪 | 2 ½ cups | For crust, finely crushed |
| Shortening 🧈 | ½ cup | Or melted butter |
| Milk 🥛 | ¼ cup | For crust binding |
| Semisweet Chocolate Chips 🍫 | ½ cup | For ganache topping |
| Heavy Whipping Cream 🥛 | ½ cup | For ganache |
The Hershey's Special Dark Baking Bars are non-negotiable here—they melt beautifully and give that classic Hershey flavor. Grab a 24-ounce family-size bar from any grocery store (the big ones at Walmart or Target are perfect) and chop it yourself—pre-chopped bars get clumpy. For the vanilla, splurge on a real vanilla bean from Penzeys or the spice aisle at Whole Foods. The difference is night and day compared to imitation. If you're using a pod, scrape out the seeds and save the pod for tea later—it's not wasteful, it's genius. The cornstarch is your secret weapon for that perfect set without graininess, so don't skip it.
No Hershey bars? Nestlé Toll House Semi-Sweet Morsels work in a pinch, but they won't be quite as rich. Short on vanilla bean? Pure vanilla extract at double the amount gets you close, but you'll miss that floral depth. The butter for swirls needs to be cold—pop it in the freezer for 15 minutes if your kitchen's warm. For the crust, graham crackers from the bakery section stay fresher longer than the boxed kind. And if you're making this ahead, prep the crust first—press it into the pie dish, wrap it tightly, and freeze it. Bake straight from frozen when you're ready to fill it.
This filling keeps beautifully—prep it a day ahead and refrigerate it covered. The crust can be made 3 days in advance and stored in an airtight container. For the ganache, heat the cream until it just simmers, then pour over the chocolate chips. Let it sit for 2 minutes before stirring—this ensures a glossy finish. Once cooled, the pie stays fresh for 4 days in the fridge or 3 months in the freezer. I always make double batches because this disappears faster than you can say 'dessert time!'
Why You'll Love This Recipe
- No Chopping Needed: I swear by this recipe because it’s that simple—just melt those Hershey’s bars with a splash of milk, then whisk in the dry ingredients. No measuring cups, no mess, no stress. The bars do all the heavy lifting while you stir.
- Rich Without the Work: That vanilla bean? Oh, it’s a game-changer—deep, creamy, and just sweet enough to balance the dark chocolate’s bitterness. Honestly, it tastes like a fancy dessert, but the only effort is stirring. (Yes, even on a Tuesday night.)
- Pie Filling for Everything: Use it in pies, of course, but also as a dip for pound cake, a swirl in ice cream, or a glaze for brownies. I’ve even used it to fill graham cracker cups—because why not? It’s the ultimate chocolate shortcut that still feels special.
- Pantry Staple Magic: You’re already using ingredients you have—flour, sugar, cornstarch—so this won’t break the bank. And the leftovers? They keep for weeks in the fridge, perfect for last-minute cravings or when you just need a spoonful of happiness.
Step-by-step instructions for Hershey chocolate pie filling
This filling delivers rich, fudgy swirls with vanilla depth—perfect for a showstopping pie.
Melt and Prepare the Chocolate Base
In a heavy-bottomed saucepan, combine the 12 oz chopped Hershey's Special Dark Baking Bars, 1.5 cups heavy cream, and 0.5 cup unsalted butter. Place over medium heat and stir gently until the chocolate and butter melt completely, then bring the mixture to a gentle simmer. You'll notice the chocolate dissolve into a thick, glossy sauce—this is your foundation.
Simmer for 5-7 minutes until the mixture thickens slightly and coats the back of a spoon. Remove from heat and let cool for 10 minutes—this prevents scrambling when you add the eggs later. While cooling, scrape the seeds from the 1 whole vanilla bean and set aside (save the pod for another use). The vanilla seeds will add that signature depth we're after.
Whisk Eggs and Dry Ingredients for Smooth Texture
In a separate bowl, whisk together the 2 whole large eggs, 1 cup granulated sugar, and 0.25 cup cornstarch until smooth and pale yellow. This mixture should be lump-free—strain it through a fine-mesh sieve if needed. The cornstarch is key here; it creates that perfect silky texture without making the filling too thick.
Slowly pour the cooled chocolate mixture into the egg mixture while whisking constantly. Return the combined mixture to the saucepan and cook over low heat, stirring continuously with a wooden spoon, until it thickens to a pudding-like consistency—about 3-5 minutes. You'll know it's ready when it coats the spoon smoothly and leaves a clean trail when you run your finger through it. Remove from heat immediately to prevent overcooking.
Incorporate Vanilla and Prepare the Crust
Stir the scraped vanilla bean seeds into the filling, then transfer the mixture to a clean bowl. Let it cool to room temperature—this step is crucial for preventing the crust from getting soggy later. While the filling cools, prepare the crust by mixing 2.5 cups graham cracker crumbs, 0.5 cup shortening, 0.25 cup milk, and 0.25 tsp salt in a bowl until it forms a crumbly dough.
Press the crumb mixture firmly into a 9-inch pie dish, creating an even layer that extends up the sides. Use the back of a spoon to smooth the edges. Chill the crust in the refrigerator for 15 minutes while you prepare the final touches. The crust should hold its shape when you run your finger along the edges—this ensures it won't crumble when you add the filling.
Assemble and Add the Ganache Topping
Pour the cooled filling into the chilled crust, spreading it evenly with a spatula. Dot the surface with cold cubed unsalted butter—this creates those beautiful swirls when baked. For extra richness, sprinkle 0.5 cup semisweet chocolate chips evenly over the top. The chocolate will melt slightly during baking, adding pockets of fudgy goodness.
Bake at 350°F for 40-45 minutes, or until the edges are set and the center is just firm. Let the pie cool completely at room temperature before refrigerating for at least 4 hours—this allows the flavors to meld and the texture to set perfectly. For the ganache, heat 0.5 cup heavy whipping cream until steaming, then pour it over the 0.5 cup semisweet chocolate chips in a heatproof bowl. Let sit for 2 minutes, then stir until smooth. Pour the ganache over the cooled pie and let it set for 1 hour before slicing.
Pro Tips For Making Hershey Chocolate Pie Filling
- Chop Bars Small: I learned this the hard way—those thick baking bar chunks never melt evenly. Pulse them in a food processor until they’re rice-sized, or at least chop them into pea-sized pieces by hand. This ensures a silky, lump-free filling instead of a chewy surprise.
- Toast the Flour: Skip the raw flour shortcut—dry-toast the 2 tablespoons of all-purpose flour in a small pan over medium-low heat for 2–3 minutes until it smells nutty. This eliminates any floury taste and thickens the filling more reliably than cornstarch alone.
- Scrape the Vanilla: Don’t just grab a vanilla bean and stab it—split it lengthwise, scrape out every speck of seeds with a knife, and mash the pod lightly into the mixture. The leftover pod holds more flavor than you think, and those tiny seeds make a real difference in a dark chocolate filling.
- Simmer Slow: After adding the milk, lower the heat to a gentle simmer—no boiling, no rushing. I used to crank it up and end up with a grainy mess. A steady, low bubble for 10–12 minutes guarantees a smooth, glossy finish without scorching.
Troubleshooting this recipe
Filling Too Runny
If your filling doesn't set properly, you likely overcooked it or didn't use enough cornstarch. For future batches, whisk the cornstarch into the egg mixture first—this helps stabilize the texture.
If it's already in the oven, remove it early (35-40 minutes) and let it cool completely before refrigerating for 2-3 hours. The cold helps firm it up. For a quick fix, top with extra chocolate ganache to mask any texture issues.
Crust Getting Soggy
The most common cause is a warm filling. Always let your filling cool to room temperature before pouring it into the crust. If your crust still gets soggy, blind-bake it for 8-10 minutes at 350°F before adding the filling.
I also recommend brushing the crust with a thin layer of egg white before adding the filling—this creates a moisture barrier. 🧂
Chocolate Not Melting Smoothly
Uneven melting usually happens when chocolate is exposed to moisture or heat too quickly. Chop your Hershey's baking bars into ½-inch chunks for even melting. Use a double boiler or a heatproof bowl over simmering water—never microwave chocolate, as it creates hot spots.
If your chocolate seizes up, remove it from heat, add 1 tsp heavy cream, and stir until smooth before reheating gently.
Filling Too Thick
Overmixing or using too much cornstarch can make your filling dense. If it's already thick, whisk in 1-2 tbsp warm milk or heavy cream to loosen it. For future batches, measure your cornstarch carefully—¼ cup is perfect for this recipe.
If you're unsure, err on the side of slightly less. A properly thickened filling should coat the back of a spoon but still flow smoothly when poured.
Swirls Not Forming
The butter swirls rely on cold butter melting gradually during baking. Cut your ½ cup butter into ½-inch cubes and freeze them for 10 minutes before adding to the pie. Press them gently into the filling so they stay in place.
If they melt too quickly, reduce your oven temperature to 325°F for the first 20 minutes of baking, then increase to 350°F for the remaining time.
Ganache Too Thin
Ganache separates when the cream is too hot or the chocolate isn't chopped finely enough. Use semisweet chocolate chips (not bars) for even melting. Heat your ½ cup heavy cream until it just begins to steam—no boiling! Pour it over the chocolate in a thin stream while stirring.
Let it sit for 2 minutes before stirring again. If it's still too thin, chill it for 15 minutes to thicken. For extra stability, add 1 tsp cornstarch to the chocolate before pouring the cream over it. 💫
Nutrition facts
Frequently asked questions
Can I substitute regular chocolate bars for Hershey's Special Dark Baking Bars?
While you can use other chocolate bars, Hershey's Special Dark Baking Bars are specifically formulated to melt smoothly and create that signature rich, fudgy texture. For a close substitute, try Nestlé Toll House Semi-Sweet Morsels, but expect slightly less depth of flavor. Avoid milk chocolate—it won't set properly and may turn grainy.
How do I make this filling without cornstarch?
Cornstarch is key for that perfect set, but you can use 2 tbsp arrowroot powder as a 1:1 substitute. If you're completely without thickeners, reduce the sugar slightly (¾ cup) and add 1 tbsp flour, but expect a slightly less stable texture. The filling may still work, but it might be less firm when sliced.
Can I make this pie ahead of time?
The crust can be prepped 3 days ahead and stored in an airtight container. The filling can be made 1 day ahead and refrigerated. Assemble the pie 4 hours before serving to allow flavors to meld. For best results, refrigerate the fully assembled pie overnight—the flavors deepen beautifully.
Why does my pie have a crack in the center?
This happens when the filling is too hot when poured into the crust or when the oven temperature fluctuates. Always let your filling cool to room temperature before assembling. For future pies, preheat your oven for 15 minutes before baking, and consider using an oven thermometer to ensure accurate temperature. A small crack can be masked with extra ganache!
What's the best way to serve this pie?
Let it cool completely before slicing—this ensures clean cuts. Serve at room temperature with a dollop of whipped cream, a drizzle of caramel sauce, or crushed peanut butter cups for extra indulgence. For a showstopper, garnish with toasted coconut flakes or a dusting of cocoa powder.
