Coconut cream pie is one of those desserts that feels special without being complicated. This version has a silky, rich coconut custard filling, a cloud of lightly sweetened whipped cream, and a crunchy layer of toasted coconut on top. It is a great choice for a weekend baking project or a holiday dessert table.
The custard is made on the stovetop with coconut milk and whole milk, thickened with cornstarch and egg yolks. Once chilled, it slices cleanly and holds its shape, so it works well for guests.

Why You’ll Love This Coconut Cream Pie
- The filling is smooth and rich, with a clear coconut flavor that is not overpowering.
- It uses common pantry ingredients and a stovetop custard that needs no special equipment.
- The whipped cream topping is lightly sweetened, so the pie is not overly sugary.
- It can be made a day ahead, which makes it practical for entertaining.
Ingredients
For the crust:
- 1 (9-inch / 23 cm) pie crust, store-bought or homemade, fully baked and cooled
For the coconut custard filling:
- 1 cup (240 ml) whole milk
- 1 can (13.5 oz / 400 ml) full-fat coconut milk, well shaken
- 3/4 cup (150 g) granulated sugar
- 1/3 cup (40 g) cornstarch
- 1/4 tsp fine salt
- 4 large egg yolks
- 2 tbsp (28 g) unsalted butter, cut into pieces
- 1 tsp pure vanilla extract
- 1/2 cup (45 g) sweetened or unsweetened shredded coconut, toasted, for folding into the filling (optional)
For the whipped cream topping:
- 1 cup (240 ml) cold heavy whipping cream
- 2 tbsp (16 g) powdered sugar
- 1/2 tsp pure vanilla extract
For garnish:
- 1/3 cup (25 g) sweetened flaked coconut, toasted
Ingredient Notes
Full-fat coconut milk gives the custard its body and rich flavor. Light coconut milk will produce a thinner filling that may not set as firmly. Shake the can well before opening, since the cream and liquid separate.
Cornstarch is the thickener here. Make sure it is fully whisked into the sugar and yolks before adding any liquid, or it may form lumps. Egg yolks add richness and help the custard set smoothly.
Sweetened flaked coconut toasts more evenly and has a classic look on top. Unsweetened coconut has a more intense, nutty flavor if you prefer less sugar.
Equipment You’ll Need
- 9-inch (23 cm) pie dish
- Medium saucepan with a heavy bottom
- Whisk
- Fine-mesh strainer (optional, but helpful for a silky texture)
- Mixing bowls
- Electric mixer or whisk for the whipped cream
- Rimmed baking sheet for toasting coconut
- Plastic wrap
How to Make Coconut Cream Pie
-
Bake the crust. Preheat your oven to 350°F (175°C). Bake the pie crust until golden brown, usually about 15 to 20 minutes (estimate, depending on your crust). Let it cool completely before adding the filling. A warm crust can make the bottom soggy.
-
Toast the coconut. Spread the coconut flakes on a rimmed baking sheet in a single layer. Bake at 325°F to 350°F (165°C to 175°C) for about 3 to 5 minutes, stirring once or twice. Watch closely, because coconut can go from golden to burnt quickly. It is done when it is evenly golden and smells nutty. Set aside to cool.
-
Whisk the dry ingredients. In a medium saucepan, whisk together the sugar, cornstarch, and salt until no lumps remain. Add the egg yolks and whisk until smooth and slightly thickened, like a paste.
-
Heat the milks. Slowly whisk in the whole milk and coconut milk. Set the pan over medium heat.
-
Cook the custard. Whisk constantly, paying attention to the bottom and corners of the pan, until the mixture thickens and begins to bubble. This usually takes about 6 to 8 minutes (estimate). Keep whisking for 1 minute after it starts to bubble so the cornstarch fully cooks and the filling does not taste starchy.
-
Finish the filling. Remove the pan from the heat. Stir in the butter, vanilla, and the 1/2 cup of toasted coconut if using, until the butter melts and the filling is glossy. For an extra-smooth texture, pour the filling through a fine-mesh strainer into a clean bowl.
-
Fill the crust. Pour the hot filling into the cooled crust and smooth the top. Press a sheet of plastic wrap directly onto the surface to prevent a skin from forming.
-
Chill the pie. Refrigerate for at least 4 hours, or until the filling is firm and set when gently touched. Overnight chilling gives the cleanest slices.
-
Whip the cream. Just before serving, beat the cold heavy cream, powdered sugar, and vanilla on medium-high speed until soft peaks form, about 2 to 3 minutes (estimate). The cream should hold a peak that softly folds over when you lift the beaters.
-
Top and garnish. Spread or pipe the whipped cream over the chilled filling. Sprinkle with the toasted coconut. Refrigerate until ready to serve.

Pro Tips for the Best Results
- Cool the crust fully before adding the filling. Warm crust leads to a soggy base.
- Shake the coconut milk well before measuring so the cream and liquid are combined.
- Whisk the custard constantly near the end of cooking. Scraping the bottom of the pan prevents scorching.
- Press plastic wrap directly onto the warm filling to keep a skin from forming.
- Chill the pie fully before adding the whipped cream. This makes the filling firmer and easier to top.
- Toast the coconut in a dry pan or on a sheet and watch it closely. Remove it as soon as it is golden.
Common Mistakes to Avoid
Lumpy filling. Cornstarch clumps when it hits hot liquid without being mixed with sugar or yolks first. Whisk the dry ingredients and yolks together before adding the milks.
Runny filling. The custard needs to bubble for a full minute after it begins to thicken. If it is removed too early, the cornstarch will not set properly.
Soupy whipped cream. Warm cream and warm bowls make whipping harder. Chill your bowl and beaters if the kitchen is warm.
Burnt coconut. Toasted coconut can burn in a few seconds. Pull it out when it is golden, since it keeps browning on the hot pan.
Variations and Substitutions
- Toasted coconut crust: Mix 1 cup (85 g) toasted shredded coconut with a graham cracker crust for a coconut-forward base.
- Dairy-free version: Use full-fat coconut milk in place of the whole milk and a plant-based cream that whips well for the topping. Results will vary by brand.
- Chocolate drizzle: Drizzle melted dark chocolate over the whipped cream for a classic chocolate-coconut combination.
- Lighter topping: Use stabilized whipped cream or a thinner layer of cream if you want a less rich finish.
Serving Suggestions
Serve chilled, with a slice of pie on a small plate and a little extra toasted coconut on top. A cup of strong coffee or black tea balances the sweetness of the custard well. For a party, you can make mini pies in individual cups and top each with a spoonful of cream.
Storage and Reheating
Store the pie covered in the refrigerator. It is best eaten within 2 to 3 days (estimate). Once topped with whipped cream, cover it loosely so the cream does not absorb refrigerator odors. This pie is not recommended for freezing, because the custard and whipped cream can separate and become watery when thawed. Serve it cold and do not reheat it.
FAQ
Can I make coconut cream pie ahead of time?
Yes. Make the crust and filling a day ahead and chill them. Add the whipped cream and toasted coconut shortly before serving for the best texture.
Why is my coconut cream pie runny?
The custard may not have cooked long enough after it started to bubble. Make sure it bubbles for about a full minute while whisking, and chill the pie for at least 4 hours before slicing.
Can I use light coconut milk?
You can, but the filling will be thinner and may not set as firmly. Full-fat coconut milk gives the best creamy texture.
How do I know when the coconut is toasted?
It should be evenly golden and smell nutty. Remove it from the oven as soon as it reaches that color, because it can burn quickly.
Can I skip the egg yolks?
Egg yolks help the custard thicken and give it a smooth, rich texture. Omitting them is not recommended for this recipe, since the filling may turn out thinner and less creamy.
Coconut Cream Pie Recipe Card
Recipe Name: Creamy Coconut Cream Pie
Short Description: A silky coconut custard pie topped with fluffy whipped cream and toasted coconut.
Prep Time: 30 minutes (estimate)
Cook Time: About 30 minutes, plus cooling and chilling time
Total Time: About 5 hours, including chilling (estimate)
Servings: 8
Course: Dessert
Cuisine: American
Cooking Method: Stovetop, baked crust
Ingredients: 1 baked 9-inch pie crust; 1 cup (240 ml) whole milk; 1 can (13.5 oz / 400 ml) full-fat coconut milk; 3/4 cup (150 g) sugar; 1/3 cup (40 g) cornstarch; 1/4 tsp salt; 4 large egg yolks; 2 tbsp (28 g) butter; 1 tsp vanilla extract; 1/2 cup (45 g) shredded coconut, toasted, optional; 1 cup (240 ml) heavy cream; 2 tbsp (16 g) powdered sugar; 1/2 tsp vanilla extract; 1/3 cup (25 g) flaked coconut, toasted.
Instructions: Bake and cool the crust. Toast the coconut. Whisk sugar, cornstarch, salt, and yolks. Add the milks and cook over medium heat until thick and bubbling, then 1 minute more. Stir in butter, vanilla, and optional coconut. Pour into the crust, cover with plastic wrap, and chill at least 4 hours. Whip the cream with powdered sugar and vanilla, spread over the pie, and top with toasted coconut.
Notes: Shake the coconut milk well before using. Cool the crust completely before filling. Times are estimates and may vary by stove and oven.
Storage: Refrigerate covered for 2 to 3 days (estimate). Do not freeze.
Nutrition: Nutrition information is an estimate and may vary depending on the ingredients and brands used.


