
There’s something truly magical about a slice of coconut cream pie – the flaky, buttery crust giving way to layers of silky custard and clouds of whipped cream, all crowned with toasted coconut. This isn’t just any coconut cream pie recipe; this is THE one you’ll make again and again. It’s the pie that will have your guests asking for seconds and requesting the recipe before they even finish their first bite.
I grew up watching my grandmother make this pie for every special occasion, and I’ve spent years perfecting her technique to create what I believe is the absolute best coconut cream pie recipe out there. The secret isn’t just in one component – it’s in understanding how each layer works together to create that perfect balance of textures and flavors. From the homemade pie crust that shatters delicately under your fork, to the rich coconut custard filling that’s neither too thick nor too thin, to the pillowy whipped cream topping – every element matters.
What makes this recipe different from other coconut cream pie recipes you might find is the combination of techniques. We’re using both sweetened and unsweetened coconut milk to build layers of coconut flavor without making the pie cloyingly sweet. We’re also using a combination of cornstarch and egg yolks to create a custard that has the perfect silky texture without any graininess. And we’re toasting the coconut for garnish to add a sophisticated depth of flavor that takes this pie from good to absolutely extraordinary.
This coconut cream pie is perfect for Easter dinner, summer potlucks, holiday gatherings, or honestly, any day of the week when you want to treat yourself and your family to something special. It does require some advance planning – the pie needs to chill for at least 4 hours, preferably overnight – but the actual hands-on time is quite manageable. You can make the crust and custard in the morning, and then finish it with whipped cream just before serving.
If you’re intimidated by pie making, don’t be. I’ve included detailed instructions and tips throughout to help you succeed. This is my foolproof pie crust recipe that I use for all my cream pies, and once you master it, you’ll feel confident making any custard pie. You might also enjoy my classic banana cream pie or this decadent chocolate cream pie – they use the same custard base with different flavorings.
For even more inspiration, check out Bon Appétit’s coconut cream pie for a modern take, or Serious Eats’ detailed coconut cream pie guide for scientific baking insights. The New York Times’ coconut cream pie is another excellent resource that explores different approaches to this classic dessert.
Ingredients
- 1½ cups all-purpose flour
- ½ teaspoon salt
- ½ teaspoon sugar
- 6 tablespoons cold butter, cubed
- 3 tablespoons cold vegetable shortening, cubed
- 4-6 tablespoons ice water
- 1 can (13.5 ounces) unsweetened coconut milk
- 1 cup whole milk
- ¾ cup granulated sugar
- ¼ cup cornstarch
- ¼ teaspoon salt
- 5 egg yolks
- 3 tablespoons butter
- 1½ teaspoons vanilla extract
- 1 cup sweetened shredded coconut, divided (½ cup toasted for garnish, ½ cup for filling)
- 2 cups heavy whipping cream
- 3 tablespoons powdered sugar
- ½ teaspoon vanilla extract
- Additional toasted coconut for garnish
- Fleur de sel or sea salt for finishing (optional)

Instructions
- Make the pie crust by combining flour, salt, and sugar in a large bowl. Cut the cold butter and shortening into small cubes and add to the flour mixture.
- Using a pastry cutter, two knives, or your fingertips, work the butter and shortening into the flour until the mixture resembles coarse breadcrumbs with some pea-sized pieces remaining.
- Add ice water one tablespoon at a time, tossing gently with a fork until the dough just comes together. Do not overwork the dough.
- Form the dough into a disk, wrap in plastic wrap, and refrigerate for at least 30 minutes.
- Preheat your oven to 375°F (190°C). Roll out the chilled dough on a lightly floured surface to about ⅛-inch thickness.
- Transfer the dough to a 9-inch pie pan, letting it drape slightly over the edges. Trim excess dough and crimp the edges with your fingers or a fork.
- Prick the bottom and sides of the crust with a fork. Line with parchment paper and fill with pie weights or dried beans.
- Bake the crust for 15 minutes, then carefully remove the parchment paper and weights. Bake for an additional 8-10 minutes until the crust is light golden brown.
- Remove from oven and let cool while you prepare the filling.
- In a medium saucepan, whisk together the cornstarch, sugar, and salt until combined.
- Pour the coconut milk and whole milk into a separate bowl and whisk until well combined.
- Slowly add the milk mixture to the cornstarch mixture, whisking constantly to prevent lumps from forming.
- Pour the entire mixture into the saucepan and place over medium heat, stirring constantly with a whisk.
- Continue stirring as the mixture heats, and when it begins to thicken and bubble around the edges, cook for 1-2 minutes more.
- In a small bowl, whisk the egg yolks together until well combined.
- Slowly pour about ½ cup of the hot custard mixture into the egg yolks while whisking constantly to temper them. This prevents the eggs from scrambling.
- Pour the tempered egg mixture back into the saucepan, whisking constantly to combine.
- Continue cooking over medium heat for 1-2 minutes, stirring constantly, until the custard is thick and smooth.
- Remove from heat and stir in the butter, vanilla extract, and ½ cup of sweetened coconut (the untoasted portion).
- Pour the hot custard through a fine-mesh strainer into the cooled pie crust, using the back of a spoon to push it through and remove any lumps.
- Place a piece of plastic wrap directly on the surface of the custard to prevent a skin from forming.
- Refrigerate the pie for at least 4 hours, or preferably overnight, until the custard is completely set.
- Just before serving, toast the remaining 1 cup of coconut in a dry skillet over medium heat, stirring frequently for 5-7 minutes until fragrant and golden brown. Watch carefully as coconut burns quickly.
- Let the toasted coconut cool on a plate for a few minutes.
- In a chilled bowl, whip the heavy cream with an electric mixer on medium-high speed until soft peaks form.
- Add the powdered sugar and vanilla extract, and continue beating until stiff peaks form.
- Spread or pipe the whipped cream over the chilled pie, creating decorative peaks.
- Sprinkle the toasted coconut generously over the top of the whipped cream.
- Garnish with additional toasted coconut and a light sprinkle of fleur de sel if desired.
- Refrigerate until ready to serve. This pie is best served within 1-2 days of assembly.

Pro Tips
- **Make-Ahead Tip**: You can prepare the pie crust up to 2 days in advance and store it wrapped in plastic wrap in the refrigerator. You can also bake the crust a day ahead and store it in an airtight container.
- **Custard Perfection**: The key to a silky custard without graininess is tempering the eggs properly and not overcooking them. Always add the hot custard slowly to the eggs while whisking, never the other way around.
- **Coconut Selection**: Use unsweetened coconut milk in the custard for a more sophisticated flavor that isn’t overly sweet. The sweetened coconut for garnish adds just the right amount of sweetness to balance the pie.
- **Toasting Coconut**: Toasted coconut adds incredible depth to the garnish. Toast it in a dry skillet just before serving for maximum flavor and aroma. Store-bought toasted coconut can work in a pinch, but freshly toasted is superior.
- **Whipped Cream Alternative**: If you prefer a meringue topping instead of whipped cream, you can make a Swiss or Italian meringue. This actually holds up better if the pie needs to sit for extended periods.
- **Storage**: Store the finished pie in the refrigerator for up to 2 days. The crust will gradually soften as it sits, so this pie is best enjoyed within 24 hours of assembly for optimal texture contrast.
- **Pie Crust Variations**: If you prefer a graham cracker crust, you can substitute it for the traditional crust. Mix 2 cups graham cracker crumbs, ¼ cup sugar, and 6 tablespoons melted butter, press into the pie pan, and bake at 350°F for 8-10 minutes.
- **Custard Consistency**: If your custard seems too thin after cooking, you can add an additional tablespoon of cornstarch mixed with a tablespoon of cold milk, whisk it in, and cook for another minute. If it’s too thick, thin it with a splash of milk.
- **Dairy Substitutions**: For a dairy-free version, use full-fat coconut milk for all the milk, and substitute vegan butter for the butter and coconut whipped cream for the whipped cream topping.
- **Serving Suggestion**: For an elegant presentation, dust individual slices lightly with powdered sugar and serve with a small dollop of additional whipped cream on the side.
