Coconut Cream Pie Recipe: Silky, Classic, Easy
In this article
This coconut cream pie is the real deal: a silky, from-scratch vanilla-coconut custard piled into a buttery, flaky crust and topped with clouds of lightly sweetened whipped cream. It’s a classic for a reason—the contrast of the crisp crust, the rich, creamy filling, and the airy topping is pure comfort. The recipe uses a straightforward stovetop custard thickened with cornstarch, so it sets beautifully without needing eggs in the oven, making it a reliable dessert for holidays, potlucks, or a weekend baking project.
Ingredients
- 1 9-inch baked pie crust (store-bought or homemade, fully cooled)
- 1 cup (200 g) granulated sugar
- 1/4 cup (30 g) cornstarch
- 1/4 teaspoon salt
- 3 cups (720 ml) whole milk
- 4 large egg yolks
- 2 tablespoons (30 g) unsalted butter, cut into small pieces
- 1 teaspoon vanilla extract
- 1 cup (80 g) sweetened shredded coconut, plus more for garnish
- 1 1/2 cups (360 ml) heavy cream
- 2 tablespoons (15 g) powdered sugar
- 1/2 teaspoon vanilla extract (for whipped cream)
Instructions
- Prepare the crust: If using a homemade crust, bake and cool it completely. If using a store-bought crust, follow package directions. The crust must be fully cool before filling.
- Toast the coconut (optional but recommended): Spread 1/4 cup of the shredded coconut on a baking sheet and toast in a 350°F (175°C) oven for 5–7 minutes, stirring once, until golden. Set aside for garnish.
- Mix dry ingredients: In a medium saucepan, whisk together the sugar, cornstarch, and salt. Make sure there are no lumps.
- Temper the egg yolks: In a separate bowl, lightly beat the egg yolks. Gradually whisk in about 1/2 cup of the milk until smooth. Set aside.
- Heat the milk: Pour the remaining 2 1/2 cups of milk into the saucepan with the dry ingredients. Whisk to combine. Place over medium heat and cook, stirring constantly with a whisk, until the mixture thickens and comes to a gentle boil. This takes about 8–10 minutes. The mixture should be thick enough to coat the back of a spoon.
- Temper the yolks again: Slowly pour about 1 cup of the hot milk mixture into the egg yolk mixture, whisking constantly. This prevents the yolks from scrambling.
- Combine and cook: Pour the tempered yolk mixture back into the saucepan. Return to medium heat and cook, stirring constantly, for 2–3 more minutes, until the custard is thick and bubbling. Remove from heat.
- Finish the filling: Stir in the butter, vanilla extract, and the remaining 3/4 cup of untoasted shredded coconut. Stir until the butter is melted and everything is well combined.
- Cool slightly: Let the filling sit for 10–15 minutes, stirring occasionally, to cool down a bit. This prevents the crust from getting soggy.
- Fill the crust: Pour the warm filling into the cooled pie crust. Smooth the top with a spatula.
- Chill: Place a piece of plastic wrap directly on the surface of the filling (to prevent a skin from forming). Refrigerate for at least 4 hours, or overnight, until fully set and chilled.
- Make the whipped cream: In a chilled bowl, beat the heavy cream, powdered sugar, and 1/2 teaspoon vanilla extract with an electric mixer on medium-high speed until soft peaks form. Do not overbeat.
- Assemble and serve: Spread or pipe the whipped cream over the chilled pie. Sprinkle with the toasted coconut. Slice and serve chilled.
Tips
- Don’t skip the tempering: Adding hot liquid to the egg yolks slowly while whisking is essential. If you dump it all at once, you’ll end up with scrambled eggs in your custard.
- Use whole milk, not low-fat: The fat in whole milk gives the custard its rich, creamy texture. Using 2% or skim will result in a thinner, less satisfying filling.
- Blind-bake your crust: If making a homemade crust, blind-bake it (line with foil and pie weights) to prevent it from puffing up or shrinking. This ensures a crisp, sturdy base.
- Patience with chilling: The pie needs at least 4 hours to set. If you cut it too early, the filling will run. Overnight chilling is best.
Serving Suggestions
Serve this pie well-chilled, straight from the refrigerator. It’s perfect on its own, but you can also add a drizzle of caramel sauce, a sprinkle of toasted coconut flakes, or a few fresh berries for color. A cup of coffee or tea is a lovely accompaniment. For a more decadent touch, serve with a scoop of vanilla ice cream.
Variations
- Chocolate Coconut Cream Pie: Add 2 ounces (60 g) of melted bittersweet chocolate to the custard after removing from heat, and reduce the sugar to 3/4 cup.
- Lime Coconut Cream Pie: Add 1 tablespoon of lime zest and 2 tablespoons of lime juice to the custard along with the vanilla. Top with a little extra lime zest.
- Graham Cracker Crust: Swap the traditional pie crust for a graham cracker crust for a sweeter, more casual base.
- Toasted Coconut Topping: Instead of mixing all the coconut into the filling, reserve 1/2 cup of untoasted coconut and sprinkle it on top of the whipped cream for extra texture.
Storage and Reheating
Store leftovers in the refrigerator, loosely covered with plastic wrap or foil, for up to 3 days. The crust may soften slightly over time, but the pie will still taste great. Do not freeze this pie—the custard will separate and become watery upon thawing. To keep the whipped cream fresh, it’s best to add it just before serving. If you have leftover pie with whipped cream, it will still be fine for a day, but the cream may start to deflate. There’s no need to reheat this pie; it’s meant to be served cold. If you want to refresh a slice, let it sit at room temperature for 5–10 minutes before eating.
Frequently Asked Questions
Can I use coconut milk instead of whole milk?
Yes, you can substitute up to 1 cup of the whole milk with coconut milk (canned, not refrigerated) for a stronger coconut flavor. However, using all coconut milk may make the custard too rich and slightly grainy. Stick to a 1:1 replacement for best results.
Why is my custard lumpy?
Lumps usually happen if the cornstarch wasn’t fully dissolved before heating, or if the heat was too high and the mixture cooked too quickly. To fix it, whisk vigorously while cooking, and if lumps appear, you can strain the custard through a fine-mesh sieve before pouring it into the crust.
Can I make this pie ahead of time?
Absolutely. You can make the entire pie (without the whipped cream) up to 2 days in advance. Cover and refrigerate. Add the whipped cream and toasted coconut just before serving.
Can I use a store-bought crust?
Yes, a store-bought graham cracker or shortbread crust works well. Just make sure it’s fully cooled if it’s a baked crust. A pre-made chocolate cookie crust is also delicious.
How do I know when the custard is thick enough?
The custard should be thick enough to coat the back of a spoon and leave a clear trail when you run your finger through it. It will continue to thicken as it cools, so don’t overcook it—it should be just bubbling when you remove it from heat.
Can I use frozen shredded coconut?
Yes, frozen shredded coconut works fine. Thaw it completely and pat it dry with a paper towel before using to avoid adding extra moisture to the filling.