Coconut Cream Pie from Scratch: Step‑by‑Step Guide
In this article
Creating a homemade coconut cream pie gives you a silky, tropical‑flavored dessert that’s richer and fresher than any store‑bought version. This guide walks you through every stage—from a buttery crust to a perfectly set coconut custard—so you can serve a pie that looks as impressive as it tastes.
What You'll Need
- 1 1/4 cups (150 g) all‑purpose flour
- 1/4 cup (30 g) finely shredded coconut, plus extra for garnish
- 1/2 cup (115 g) unsalted butter, chilled and cut into cubes
- 2 Tbsp ice water (more if needed)
- 1 cup (240 ml) whole milk
- 1 cup (240 ml) heavy cream
- 1/2 cup (100 g) granulated sugar
- 1/4 cup (30 g) cornstarch
- 4 large egg yolks, pasteurized if possible
- 1 Tbsp unsalted butter (for the custard)
- 1 tsp vanilla extract
- 1/2 tsp salt
- Optional: toasted coconut flakes for topping
- Equipment: 9‑inch (23 cm) pie pan, rolling pin, medium saucepan, whisk, pastry brush, heat‑proof spatula, thermometer
Step‑by‑Step
- Prepare the crust. In a food‑processor combine the flour, shredded coconut, and a pinch of salt. Pulse a few times to distribute the coconut evenly.
- Add the chilled butter cubes and pulse until the mixture resembles coarse crumbs with some pea‑size pieces of butter remaining. This creates a flaky texture.
- Sprinkle the ice water over the mixture, 1 Tbsp at a time, pulsing after each addition until the dough just comes together when pressed. Avoid over‑mixing; the dough should be slightly shaggy.
- Turn the dough onto a lightly floured surface, form it into a disc, wrap in plastic, and chill for at least 30 minutes. Chilling prevents shrinkage during baking.
- Preheat the oven to 375°F (190°C). Roll the chilled dough to a 12‑inch circle, then gently transfer it to the 9‑inch pie pan. Press the dough into the corners, trim excess, and crimp the edges.
- Line the crust with parchment paper and fill with pie weights or dried beans. Bake for 12‑15 minutes, then remove the weights and parchment and bake another 5‑7 minutes until the bottom is lightly golden. Let cool completely on a wire rack.
- Make the coconut custard. In a medium saucepan whisk together the sugar, cornstarch, and salt. Slowly whisk in the milk and heavy cream until the mixture is smooth and free of lumps.
- Place the saucepan over medium heat and whisk constantly. As the mixture heats, it will thicken; continue whisking for 2‑3 minutes to prevent scorching.
- In a separate bowl, lightly beat the pasteurized egg yolks. Temper the yolks by adding a small spoonful of the hot milk mixture to the yolks while whisking vigorously. Then pour the tempered yolks back into the saucepan.
- Return the pan to the heat and cook, stirring, until the custard reaches a gentle boil and thickens further. Use an instant‑read thermometer to verify the internal temperature reaches at least 170°F (77°C) for safety.
- Remove the pan from the heat, stir in the tablespoon of butter, vanilla extract, and the remaining 1/4 cup shredded coconut. The butter adds shine and richness.
- Pour the hot custard into the cooled crust, smoothing the top with a spatula. Cover the surface directly with plastic wrap to prevent a skin from forming.
- Refrigerate the pie for at least 4 hours, preferably overnight, until the filling is fully set.
- Before serving, garnish with toasted coconut flakes or a light dusting of shredded coconut. Slice with a sharp, warm knife for clean pieces.
Common Mistakes
Many home bakers encounter a few predictable pitfalls when tackling a coconut cream pie. The most frequent errors include:
- Over‑mixing the crust dough. This develops gluten, resulting in a tough, rubbery crust instead of a tender, flaky base.
- Skipping the blind‑bake. Without pre‑baking, the crust can become soggy because the custard’s moisture seeps into the pastry.
- Not tempering the egg yolks. Adding cold yolks directly to the hot mixture causes curdling, leaving lumps in the custard.
- Under‑cooking the custard. If the temperature stays below 170°F, the custard may remain runny and may harbor harmful bacteria from raw egg yolks.
- Allowing a skin to form. Exposing the hot custard to air creates a dry layer that cracks when sliced.
Tips
- Use pasteurized eggs or egg yolks that have been heated to 140°F (60°C) for a few minutes before use; this eliminates the risk of salmonella while preserving texture.
- For extra flavor, toast the shredded coconut in a dry skillet over medium heat until golden, then let it cool before adding it to the custard or using it as garnish.
- Chill the pie pan and the rolling pin surface for a few minutes before rolling the crust; a cool surface helps keep the butter solid.
- If the custard thickens too quickly and begins to pull away from the sides, lower the heat and whisk continuously to keep it smooth.
- Store leftovers in an airtight container in the refrigerator for up to three days. For longer storage, freeze individual slices wrapped tightly in plastic and then foil; they keep well for about two months.
Troubleshooting
Filling is still runny after chilling. Return the pie to the refrigerator and let it set for an additional 2‑3 hours. If it remains liquid, gently re‑heat the custard on the stove, ensuring it reaches 170°F, then pour it back into the crust and chill again.
Crust is soggy. This usually means the blind‑bake was insufficient. Re‑bake the crust without filling at 375°F for 5‑7 minutes until the bottom feels firm. For future pies, line the crust with a thin layer of parchment and use ceramic or metal pie weights to distribute heat evenly.
Crust cracked or shrank during baking. Ensure the dough is well‑chilled before rolling and avoid over‑rolling, which can cause the crust to contract. Also, bake on the middle rack and avoid opening the oven door early in the bake.
Custard has lumps. If lumps appear, remove the pan from the heat and whisk vigorously. You can also pass the custard through a fine‑mesh sieve before chilling to guarantee a smooth texture.
Frequently Asked Questions
Can I use coconut milk instead of dairy milk?
Yes. Substitute the whole milk with an equal amount of full‑fat coconut milk for a fully dairy‑free version. The custard will be richer and more coconut‑forward.
Do I need a water bath for the custard?
A water bath is not required because the custard is cooked on the stovetop. The key is constant whisking and reaching the safe temperature of 170°F.
How far in advance can I make the pie?
The assembled pie can be refrigerated for up to three days. If you need to prepare it earlier, freeze the baked crust and the cooled custard separately, then combine and chill before serving.
What if I don’t have a pastry brush?
Use a clean, damp paper towel or the back of a spoon to brush melted butter onto the crust before blind‑baking. This adds flavor and helps create a barrier against moisture.
Is it safe to use raw flour in the crust?
Raw flour can contain harmful bacteria. Because the crust is baked, the risk is eliminated. However, avoid tasting raw dough and wash hands after handling flour.
Can I add a chocolate ganache topping?
Absolutely. Once the custard has set, drizzle a thin layer of cooled chocolate ganache over the top, then sprinkle toasted coconut for a tropical‑chocolate twist.