The best coconut cream pie starts with a crisp, flaky blind-baked crust and a rich coconut custard that is cooked until perfectly thick. This recipe makes one 9-inch pie, about 8 servings, with a buttery pastry shell, full-fat coconut milk, toasted shredded coconut, and a cloud of vanilla whipped cream.
Every bite balances cool, creamy custard with crisp pastry and the nutty sweetness of toasted coconut. Plan on 35–45 minutes of preparation, 18–22 minutes to blind-bake the crust, 8–12 minutes to cook the filling, and at least 4 hours of chilling for neat, satisfying slices.
Jump to RecipeWhy You’ll Love This Recipe

This coconut cream pie has the texture people want from a classic diner-style dessert: a shell that stays crisp, a custard that cuts cleanly, and a topping that feels light rather than heavy. Full-fat canned coconut milk supplies a deep coconut flavor, while whole milk or half-and-half keeps the custard smooth and spoonable.
Toasted coconut appears on top for aroma, color, and a delicate crunch. Sweetened shredded coconut folded into the filling adds texture throughout the pie instead of leaving all the coconut flavor to the garnish.
The pie is also a wonderful make-ahead dessert. The crust and custard can be prepared several hours before dinner, and the whipped cream can be added once the pie is thoroughly cold.
If refreshing, creamy pies are your favorite, you may also enjoy our bright lemonade pie for another chilled dessert with a smooth filling.
Ingredients You’ll Need

Keep the butter, water, and cream cold where the recipe calls for it. Cold butter creates small pockets in the pastry, while cold heavy cream whips into a stable topping with a soft, pleasant finish.
- For the crust: all-purpose flour, granulated sugar, fine salt, cold unsalted butter, and 3–4 tablespoons of ice water.
- For the custard: full-fat canned coconut milk, whole milk or half-and-half, sugar, cornstarch, salt, four egg yolks, sweetened shredded coconut, butter, and vanilla.
- For the topping: cold heavy cream, confectioners’ sugar, and vanilla extract.
- For the garnish: 1/3–1/2 cup sweetened shredded coconut, toasted until golden.
Shake the coconut milk can well before measuring so the richer coconut solids are distributed. If you prefer a shortcut, use one refrigerated 9-inch pie crust and blind-bake it according to the package directions.
Measure the cornstarch carefully because it provides the custard’s structure. The four egg yolks add richness and color, but temper them gradually so they blend into the hot milk without scrambling.
For another creamy dessert idea, take a look at this tender almond cream cake, which pairs beautifully with coffee after a meal.
How to Make It Step-by-Step

Step 1: Make the pastry by whisking together the flour, granulated sugar, and fine salt in a bowl. Cut in the cold cubed butter until the mixture has pea-sized pieces, then add ice water one tablespoon at a time until the dough just holds together.
Step 2: Form the dough into a disk, wrap it, and refrigerate it for at least 30 minutes. This rest gives the flour time to hydrate and helps keep the pastry from shrinking when it bakes.
Step 3: Roll the chilled dough into an approximately 12-inch circle on a lightly floured surface. Fit it into a 9-inch pie plate, tuck or trim the edge as needed, crimp it, and refrigerate the shaped crust for another 15–30 minutes.
Step 4: Heat the oven to 425°F (220°C). Line the crust with parchment, fill it with pie weights or dried beans, and bake for 15 minutes; then carefully remove the parchment and weights.
Step 5: Reduce the oven temperature to 375°F (190°C) and bake the uncovered crust for another 5–7 minutes, until lightly golden. Cool the crust completely before adding the custard, or the heat can soften the pastry and disturb the filling.
Step 6: Toast the garnish coconut on a baking sheet at 325–350°F (165–175°C) for about 5–8 minutes, stirring once or twice. Stay nearby because shredded coconut can go from pale to burnt quickly.
Step 7: Prepare the custard by whisking the sugar, cornstarch, and salt in a saucepan. Whisk in the well-shaken coconut milk and whole milk or half-and-half, then cook over medium heat, whisking constantly, until thickened and beginning to bubble.
Step 8: Temper the egg yolks by whisking a small amount of the hot milk mixture into them. Gradually whisk the warmed yolks back into the saucepan so they heat gently and remain smooth.
Step 9: Cook the custard for about 1–2 minutes after it returns to a gentle bubble, whisking constantly. Remove it from the heat, stir in the butter and vanilla, and fold in the 1 cup of sweetened shredded coconut.
Step 10: Pour the hot custard into the cooled crust and press plastic wrap directly against its surface. Refrigerate the pie for at least 4 hours, preferably overnight, so the filling becomes firm enough to slice.
Step 11: Beat the cold heavy cream, confectioners’ sugar, and vanilla until medium-stiff peaks form. Spread or pipe the whipped cream over the chilled pie and finish with the toasted coconut.
Pro Tips for a Silky, Firm Custard

The most important custard detail is cooking it long enough. Once the cornstarch mixture has thickened, continue whisking until it reaches a full, gentle bubble, then cook for about 1–2 minutes more.
Constant whisking keeps the bottom from scorching and reduces the chance of lumps. Use a heatproof spatula to scrape the corners of the saucepan as you stir.
Tempering is essential because the egg yolks need to meet the hot liquid gradually. Add only a small amount of hot mixture at first, whisk until smooth, and then add the warmed yolks back to the pan in a slow stream.
Do not fill a warm crust. The shell should be completely cool, and the custard should be covered directly with plastic wrap while it chills to prevent a rubbery skin from forming.
For a stronger coconut profile, toast the shredded coconut used in the filling as well as the garnish when possible. Let toasted coconut cool before folding it into the custard so it does not interfere with the filling’s smooth texture.
When planning a full comfort-food menu, this creamy turkey casserole makes a hearty savory main course before this cool dessert.
Chilling, Slicing, and Storage
Four hours is the minimum practical chilling time, but overnight chilling generally gives the cleanest slices. The custard continues to set as it cools, so rushing this stage can produce a loose center even when the cooking was correct.
Keep the pie refrigerated until serving. Add the whipped cream after the pie is fully chilled, then use a sharp knife wiped clean between cuts for tidy portions.
- Store the finished pie covered in the refrigerator.
- For the best texture, serve it within 2–3 days.
- Keep toasted coconut in an airtight container if preparing it ahead, and sprinkle it on just before serving for the best crunch.
- Do not leave the custard pie at room temperature for extended periods.
Leftover whipped cream can be stored separately in the refrigerator and spooned onto individual slices. The crust will soften gradually as it sits, but the coconut custard remains creamy and delicious when well chilled.
If you are assembling a dessert table, our pumpkin cream puffs add a festive bite-sized option alongside the pie.
Serving Ideas

Serve each slice cold with a generous cap of whipped cream and a scattering of toasted coconut. The contrast between the cool filling, crisp garnish, and buttery crust makes every forkful feel complete.
A cup of black coffee balances the pie’s sweetness, while unsweetened tea keeps the coconut flavor in the spotlight. For a special occasion, add a few curls of toasted coconut to each plate rather than covering the whole pie at once.
This recipe is sweet enough to stand on its own, so extra sauce is not necessary. If you want a dessert spread with several textures, pair it with crisp pecan pie bars cut into small squares.

The Best Coconut Cream Pie Recipe
Ingredients
Method
- Whisk the flour, sugar, and salt. Cut in the cold butter until pea-sized pieces remain. Add ice water one tablespoon at a time, mixing just until the dough holds together.
- Shape the dough into a disk, wrap it, and refrigerate for at least 30 minutes. Roll it into an approximately 12-inch circle, fit it into a 9-inch pie plate, crimp the edges, and chill for another 15–30 minutes.
- Heat the oven to 425°F (220°C). Line the crust with parchment and pie weights or dried beans, bake for 15 minutes, then remove the weights and parchment. Reduce the oven to 375°F (190°C) and bake for another 5–7 minutes, until lightly golden; cool completely.
- Toast the garnish coconut on a baking sheet at 325–350°F (165–175°C) for about 5–8 minutes, stirring once or twice, until golden. Watch closely because coconut browns quickly.
- Whisk the sugar, cornstarch, and salt in a saucepan. Whisk in the coconut milk and whole milk, then cook over medium heat, whisking constantly, until the mixture thickens and begins to bubble.
- Whisk a small amount of the hot milk mixture into the egg yolks. Gradually whisk the yolk mixture back into the saucepan.
- Cook for about 1–2 minutes after the custard returns to a gentle bubble, whisking constantly. Remove from the heat and stir in the butter and vanilla, then fold in the shredded coconut.
- Pour the hot custard into the cooled crust. Press plastic wrap directly against the surface and refrigerate for at least 4 hours, preferably overnight.
- Beat the cold heavy cream, confectioners' sugar, and vanilla until medium-stiff peaks form. Spread or pipe the whipped cream over the chilled pie and sprinkle with toasted coconut.
Notes
Final Thoughts
This coconut cream pie is worth the planning because each component brings something important: flaky pastry, thick coconut custard, airy vanilla cream, and golden toasted coconut. The result is rich without being dense, with enough contrast to keep every bite interesting.
Give the crust time to cool, cook the custard through its gentle bubble, and allow the finished pie at least 4 hours in the refrigerator. Those three details make the difference between a pie that is merely creamy and one that slices beautifully.
Prepare it the day before serving when possible, then add the whipped cream and coconut just before dessert. Once you taste the combination of buttery crust and silky coconut filling, this classic will deserve a regular place in your dessert rotation.