There is a reason this coconut cream pie is always the first dessert to disappear at my family gatherings. It strikes that perfect balance between tropical flavor and creamy sweetness, with a silky coconut custard nestled in a flaky homemade crust and crowned with a cloud of fresh whipped cream. Every bite tastes like a little getaway, no passport required.
What I love most is that it looks and tastes far more impressive than the effort it actually takes. There are no finicky techniques here; if you can whisk and stir, you can make this pie. It is the kind of dessert that earns you a reputation as the family baker, and it works just as beautifully for a holiday table as it does for a quiet weekend treat.
Why You’ll Love This Recipe
This pie is built on real coconut flavor. Between the rich unsweetened coconut milk in the custard and the golden toasted coconut flakes scattered on top, every layer tastes unmistakably, wonderfully coconutty. It is a world away from the artificial versions you might find at the store.
It is also refreshingly forgiving. The custard comes together on the stovetop with just a little patient whisking, the crust can be homemade or store-bought, and the whole thing can be made ahead. That flexibility makes it a stress-free choice even during the busiest holiday cooking.
Finally, it is endlessly adaptable. You can make it dairy-free, dress it up as a chocolate coconut cream pie, or lighten the sugar to suit your taste. However you serve it, that combination of creamy filling, flaky crust, and pillowy topping is pure comfort.
Ingredients
To build the pie, you will start with 1 prepared 9-inch pie crust, homemade or store-bought, whichever you prefer. The creamy filling comes together with 1 can (14 oz) of unsweetened coconut milk, 4 large egg yolks to give it that custard-like richness, 1/2 cup of sugar, 2 tablespoons of cornstarch for thickening, 1/2 teaspoon of vanilla extract, and 1 tablespoon of butter for a glossy finish, plus a pinch of salt.
For the topping, you will whip 1 cup of heavy cream with 2 tablespoons of powdered sugar into soft, sweet clouds. And to finish it all off with flavor and a bit of crunch, you will need 1/2 cup of toasted coconut flakes scattered generously over the top.
A few easy swaps keep this pie flexible. Sweetened coconut flakes work fine if that is what you have; just reduce the sugar slightly to keep things balanced. For a dairy-free version, whip chilled coconut cream in place of the heavy cream. And for extra depth, a quarter teaspoon of almond extract in the filling is pure magic alongside the coconut.

Step-by-Step Instructions
Begin by toasting the coconut. Spread 1/2 cup of coconut flakes on a baking sheet and bake at 350°F (175°C) for about 5 to 7 minutes, until lightly golden and fragrant. Keep a close eye on them, because coconut goes from perfectly toasted to burnt in seconds. Set the flakes aside to cool.
Next, prepare the crust. If you are using a store-bought shell, you can skip ahead. For a homemade crust, roll out your dough, fit it into a 9-inch pie dish, and blind bake the empty shell at 375°F for 15 to 20 minutes until golden brown. Let it cool completely before filling.
Now for the coconut filling. In a medium saucepan, whisk together the can of coconut milk, 1/2 cup of sugar, and a pinch of salt, then heat over medium until it is just about to simmer. Meanwhile, in a separate bowl, whisk the 4 egg yolks with the 2 tablespoons of cornstarch until smooth. Slowly pour about 1/2 cup of the hot coconut milk into the yolks while whisking constantly, which tempers the eggs so they do not scramble.
Pour the tempered egg mixture back into the saucepan and continue cooking over medium heat, whisking constantly, until the mixture thickens luxuriously, about 5 to 7 minutes. Remove it from the heat and stir in the 1/2 teaspoon of vanilla and the 1 tablespoon of butter. Let it cool slightly, then pour it into your prepared pie shell and refrigerate until set, at least two hours.
While the pie chills, make the topping. In a cold mixing bowl, beat 1 cup of heavy cream with 2 tablespoons of powdered sugar until stiff peaks form. Once the filling is set, spread or pipe the whipped cream over the top, then shower it with the cooled toasted coconut flakes. Slice and enjoy.

Tips for the Best Coconut Cream Pie
The single biggest key to a flawless pie is chilling it thoroughly. The custard needs a full two hours (or more) in the fridge to set into clean, sliceable layers. For the tidiest slices, use a hot knife: run it under hot water, wipe it dry, and cut, wiping between each slice.
This pie is also a make-ahead dream. You can blind bake the shell and cook the coconut filling a day in advance, storing them separately, then assemble with fresh whipped cream just before serving for the best texture. If you love creamy custard pies, you will also want to try my homemade chocolate cream pie or the old-school charm of a creamy old-fashioned buttermilk pie.
When you toast your coconut, make a little extra and keep it in a jar. It is wonderful sprinkled over yogurt, stirred into granola, or simply snacked on straight. And if you are feeling adventurous, brush a thin layer of melted chocolate over the bottom of the crust before adding the filling to turn this into a decadent chocolate coconut cream pie.
Kitchen Gear for This Recipe
As an Amazon Associate, The Kitchen’s Aid earns from qualifying purchases at no extra cost to you.
Frequently Asked Questions
Can I freeze coconut cream pie?
Yes, you can freeze it without the whipped cream. Cover it tightly with plastic wrap and store for up to 2 months. Thaw it overnight in the fridge and add fresh whipped cream before serving.
How long will it keep in the fridge?
Stored in an airtight container, the pie keeps for about 3 to 4 days. After that the crust can begin to soften, though in my house it never lasts that long.
Can I use a store-bought crust?
Absolutely. A good store-bought crust is a perfectly convenient shortcut. Just be sure to bake it fully and let it cool completely before adding the filling.
Why did my custard not thicken?
The custard needs to reach a gentle simmer while you whisk constantly, which activates the cornstarch and egg yolks. If it stays thin, keep cooking a minute or two longer until it visibly coats the back of a spoon.
Can I make this pie dairy-free?
Yes. The filling already uses coconut milk, so simply swap the heavy cream in the topping for chilled, whipped full-fat coconut cream. The result is even more intensely coconutty.
I truly hope this coconut cream pie becomes a treasured recipe in your home the way it is in mine. If you like balancing rich treats with lighter fare, you will find plenty of healthy eating ideas to round out your menu. When you bake it, snap a photo and tag @thekitchensaid on Instagram so I can see your creation. Happy baking!
Homemade Coconut Cream Pie
American · Dessert

A luscious homemade coconut cream pie with creamy coconut custard, a flaky crust, whipped cream, and toasted coconut flakes.
Ingredients
- 1 prepared 9-inch pie crust
- 1 can (14 oz) unsweetened coconut milk
- 4 large egg yolks
- 1/2 cup sugar
- 2 tbsp cornstarch
- 1/2 tsp vanilla extract
- 1 tbsp butter
- 1 cup heavy cream
- 2 tbsp powdered sugar
- 1/2 cup toasted coconut flakes
Instructions
- Toast 1/2 cup coconut flakes on a baking sheet at 350F for 5-7 minutes until golden. Set aside to cool.
- Fit the crust into a 9-inch dish and blind bake at 375F for 15-20 minutes until golden. Cool completely.
- Whisk coconut milk, 1/2 cup sugar, and a pinch of salt in a saucepan and heat until nearly simmering. Whisk egg yolks with cornstarch, temper with hot milk, then return to the pan and cook, whisking, 5-7 minutes until thick. Stir in vanilla and butter.
- Pour the filling into the cooled shell and refrigerate at least 2 hours until set.
- Beat 1 cup heavy cream with 2 tbsp powdered sugar to stiff peaks. Spread over the set pie and top with toasted coconut flakes. Slice and serve.
Nutrition: 420 calories







