Coconut cream pie is a custard pie made with coconut milk and shredded coconut, baked in a pastry shell and topped with whipped cream. It is rich, creamy, and sweet, suited for a holiday dessert, a potluck, or a weekend treat. The filling relies on a cornstarch-thickened custard, which sets as it cools.
Ingredients
- 1 9-inch (23 cm) baked pie crust (store-bought or homemade)
- 1 1/2 cups (360 ml) whole milk
- 1 1/2 cups (360 ml) canned coconut milk (full-fat)
- 3/4 cup (150 g) granulated sugar
- 1/4 cup (30 g) cornstarch
- 1/4 teaspoon salt
- 4 large egg yolks
- 1 teaspoon vanilla extract
- 1 1/2 cups (120 g) sweetened shredded coconut, plus more for topping
- 1 1/2 cups (360 ml) heavy cream
- 2 tablespoons (15 g) powdered sugar
Instructions
- Preheat oven to 375°F (190°C) if baking a homemade crust. Bake the crust for 12–15 minutes until golden. Let cool completely.
- In a medium saucepan, whisk together milk, coconut milk, sugar, cornstarch, and salt. Cook over medium heat, stirring constantly, until the mixture thickens and begins to bubble, about 8–10 minutes.
- In a small bowl, whisk the egg yolks. Slowly whisk about 1 cup of the hot milk mixture into the yolks to temper them, then pour the yolk mixture back into the saucepan.
- Return to medium heat and cook, stirring constantly, for 2–3 minutes until the custard is thick and just bubbling. Remove from heat and stir in vanilla and 1 cup of the shredded coconut.
- Pour the filling into the cooled pie crust. Press a piece of plastic wrap directly onto the surface to prevent a skin from forming. Refrigerate for at least 4 hours, until fully chilled and set.
- When ready to serve, whip the heavy cream and powdered sugar together until stiff peaks form. Spread or pipe over the pie. Toast the remaining 1/2 cup shredded coconut in a dry skillet over medium heat for 2–3 minutes until golden, then sprinkle on top.
Why Does the Filling Turn Out Too Runny?
The most common cause is undercooking the custard. Cornstarch needs to reach a full boil to activate and thicken properly. If you stop cooking as soon as it begins to thicken, the starch may not be fully gelatinized. Cook the custard until it visibly bubbles for at least 2 minutes after adding the yolks. Also, let the pie chill for the full 4 hours—cutting it early will make it runny.
Fix for a Runny Filling
If the filling is already runny, you can rescue it by re-cooking it. Pour the filling back into the saucepan, whisk in 1 tablespoon cornstarch dissolved in 2 tablespoons cold water, and bring to a boil for 1 minute. Then re-chill. This will set it, though the texture may be slightly less smooth.
Why Is the Filling Too Dense or Heavy?
Overcooking the custard can cause the eggs to curdle and the cornstarch to break down, leading to a dense, rubbery texture. Also, using low-fat coconut milk or too much coconut can make the filling heavy. Use full-fat coconut milk and measure the shredded coconut exactly.
Fix for a Dense Filling
If the filling is already dense, you cannot fix it. To prevent it next time, cook the custard just until it thickens and bubbles, then remove it from heat immediately. Do not over-stir once it is off the heat.
How Long Does Coconut Cream Pie Keep?
Refrigerate the pie within 2 hours of making it. It will keep for 3–4 days in the refrigerator, covered loosely with plastic wrap or in a pie carrier. The whipped cream topping is best added just before serving; if stored with the topping, it may weep. You can freeze the pie (without the whipped cream) for up to 1 month. Thaw overnight in the refrigerator before serving.
What Can I Substitute in This Recipe?
- Milk: Use 1 1/2 cups (360 ml) of half-and-half for a richer filling, or use 1 1/2 cups (360 ml) of unsweetened almond milk for a dairy-free version (the filling will be slightly less creamy).
- Coconut milk: Use 1 1/2 cups (360 ml) of heavy cream plus 1 teaspoon coconut extract for a similar flavor and texture.
- Shredded coconut: Use unsweetened shredded coconut and add 1–2 tablespoons extra sugar to the custard.
- Egg yolks: For an egg-free version, omit the yolks and increase cornstarch to 1/3 cup (40 g) and cook the custard for 2 minutes longer.
- Whipped cream: Use 1 1/2 cups (360 ml) of chilled coconut cream (the solid part of a can of full-fat coconut milk) whipped with 2 tablespoons powdered sugar for a dairy-free topping.
How to Serve Coconut Cream Pie
Serve chilled, straight from the refrigerator. The pie pairs well with strong coffee or black tea. For a tropical twist, garnish with toasted coconut chips and a few thin slices of fresh mango or pineapple. This pie is rich, so small slices are appropriate—it easily serves 8–10 people.
Make-Ahead Notes
You can make the pie filling and crust a day ahead. Keep the filling in the crust, covered, in the refrigerator. Add the whipped cream and toasted coconut no more than 2 hours before serving. If you are transporting the pie, keep it cold in a cooler with ice packs.
Related
- Vinaigrette Dressing Nutrition Facts
- Chocolate Mousse Nutrition Facts You Can Use
- Coconut Milk Chia Pudding Nutrition Facts
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).