Make Chocolate Cream Pie from scratch with a rich, homemade chocolate custard. Pour the deep chocolate filling into a pre-baked crust, top with fluffy whipped cream and finish with chocolate shavings for an elegant touch.
I never expected to fall for a chocolate cream pie the way I did. I’ve long had mixed feelings about chocolate pudding, but turning this into a proper custard changed my mind. The filling is intense and chocolatey, balanced by a lightly sweetened layer of whipped cream on top.

This is a no-bake pie for the filling, so the crust should already be prebaked and cooled. You can use whatever crust you prefer: a classic all-butter pastry crust, a graham cracker crust for extra sweetness, vanilla wafer crumbs for a vanilla lift, or a chocolate cookie crust if you want to double down on chocolate. Store-bought crusts also work well when time is tight.

How to Make the Chocolate Custard Filling
The filling is a true custard that uses egg yolks for extra richness, so it’s not the same as boxed pudding. The technique is straightforward: whisk dry ingredients together, add the yolks, whisk in milk, then heat and whisk until the mixture thickens. This all happens in one saucepan, and there’s no tempering or transferring back and forth.
For depth of flavor I combine a dark dutch-process cocoa with chopped semisweet and unsweetened chocolate. Dutch-process cocoa is recommended here because its mellow, less acidic profile complements the custard and creates a smoother chocolate taste. Use good-quality cocoa and chocolate for the best results.
Start by whisking sugar, cornstarch, cocoa powder, salt and a bit of espresso powder (optional but recommended to enhance chocolate flavor) in a saucepan off the heat. Whisk in egg yolks until smooth, then slowly whisk in whole milk until combined. Place the saucepan over medium heat and whisk constantly until the mixture comes to a boil and thickens — continue whisking and boiling for one minute, then remove from the heat.

Off the heat, add chopped semisweet chocolate, chopped unsweetened chocolate, butter and vanilla. The residual heat will melt the additions; whisk until the custard is smooth and glossy. For the silkiest texture, pour the hot custard through a fine-mesh sieve into a heatproof bowl to remove any stray bits or tiny lumps. Straining is optional, but it makes a noticeable difference in smoothness.

Cooling the Custard
Cover the surface of the hot custard directly with plastic wrap to prevent a skin from forming. To cool it more quickly, set the bowl in a larger bowl of iced water. Make sure the water level is low enough not to splash into the custard. You don’t need the filling to be ice cold — just not warm — before transferring it to the crust.

Once cooled, whisk the custard briefly to re-smooth and pour it into the prebaked pie shell, spreading it evenly. The filling sets into a rich, creamy layer that holds up nicely under the whipped cream.

Stabilized Whipped Cream Topping
A properly made whipped cream topping is essential. Keep the cream and equipment cold, then whip heavy cream with a few tablespoons of confectioner’s sugar. The fine cornstarch in confectioner’s sugar helps stabilize the cream so it holds shape for serving. If you plan to pipe decorative peaks, whip to stiff peaks; for a softer, billowy top spooned into swirls, stop at soft peaks.

If you want more whipped cream, increase the cream to 2 cups and the confectioner’s sugar accordingly. Chill your mixing bowl and beaters beforehand for best results, especially in a warm kitchen.
Finishing Touches and Serving
After piping or spooning the whipped cream over the set custard, finish with chocolate shavings for texture and visual appeal. To make shavings, warm a thick chocolate bar very briefly — just until it’s slightly softer but not melted — and use a vegetable peeler along an edge to create curls. A slightly warmed bar produces smooth curls; a colder bar yields more broken flakes.

For clean slices, chill the pie for at least four hours; overnight is better. Cold filling slices much more cleanly than a warm one. Wipe your knife between slices to prevent smearing. Because this pie is rich, consider cutting smaller slices — twelve servings work well when you want everyone to have a taste without being overwhelmed.

In short, this Chocolate Cream Pie delivers a deeply flavored chocolate custard finished with fluffy whipped cream and chocolate shavings. It’s elegant, comforting and well worth the modest effort. The custard matures and tastes even better the next day, so if you can make it ahead, you’ll be rewarded with an even more rounded chocolate flavor.
Chocolate Cream Pie
1 (9 inch) pie
30 minutes
10 minutes
4 hours
4 hours 40 minutes
This Chocolate Cream Pie starts with a homemade chocolate custard poured into a prebaked crust and finished with lightly sweetened whipped cream and chocolate shavings.
Ingredients
For the pie crust:
- 1 prebaked pastry crust
For the filling:
- 2/3 cup sugar
- 3 tablespoons cornstarch
- 2 tablespoons unsweetened dark dutch cocoa powder
- 1/4 teaspoon salt (heaping)
- 1/2 teaspoon espresso powder (optional)
- 4 egg yolks
- 2 1/2 cups whole milk
- 6 ounces semisweet chocolate, chopped
- 1 ounce unsweetened chocolate, chopped
- 2 tablespoons unsalted butter
- 1 teaspoon vanilla
For the whipped cream topping:
- 1 1/2 cups heavy whipping cream, chilled
- 3 tablespoons confectioner’s sugar
For the finishing touch:
- Chocolate shavings
Instructions
- Off the heat, whisk together sugar, cornstarch, cocoa powder, salt and espresso powder in a medium saucepan.
- Whisk in egg yolks until smooth. Slowly whisk in the milk until combined.
- Bring to a boil over medium heat, whisking constantly. Once it boils, continue whisking and boil for 1 minute. Remove from heat.
- Add chopped chocolate, butter and vanilla. Whisk until melted and the mixture is smooth.
- For the smoothest filling, strain the custard through a fine sieve into a heatproof bowl. Press plastic wrap directly onto the surface to prevent a skin.
- To speed cooling, set the bowl in a larger bowl of ice water, taking care not to let water splash into the custard.
- Once the custard is cooled to not-warm, whisk briefly and pour into the prebaked crust, spreading evenly.
- Whip cream with confectioner’s sugar to soft or stiff peaks depending on preference. Spoon or pipe the whipped cream over the custard and sprinkle with chocolate shavings.
- Chill the pie for at least 4 hours or preferably overnight for the cleanest slices. Store leftovers in the refrigerator.
Notes
Use a dutch-process cocoa for a smoother, less acidic chocolate flavor. Espresso powder is optional but helps intensify the chocolate. Chill the bowl and beaters when whipping cream for best results. If you prefer more whipped cream, increase the cream to 2 cups and the confectioner’s sugar to 4 tablespoons. To make chocolate shavings, warm a thick chocolate bar very briefly and shave with a vegetable peeler until you achieve the desired curls.