Coconut cream pie is a classic American dessert built on a cooked vanilla-coconut custard, a crisp or crumb crust, and a cloud of whipped cream. The ingredient that matters most is the coconut milk or cream: it provides the richness and the coconut flavor that the shredded coconut alone cannot. This page covers the exact ingredients, the step-by-step method, what can go wrong and how to fix it, and how to store the finished pie.
Ingredients
- 1 ½ cups (180 g) graham cracker crumbs (about 12 full sheets)
- 6 tbsp (85 g) unsalted butter, melted
- 2 tbsp (25 g) granulated sugar
- ¼ tsp salt
- 1 cup (240 ml) full-fat coconut milk (not light)
- 1 cup (240 ml) whole milk
- ¾ cup (150 g) granulated sugar
- ¼ cup (30 g) cornstarch
- ¼ tsp salt
- 4 large egg yolks
- 1 tsp vanilla extract
- 1 cup (85 g) sweetened shredded coconut, toasted (plus extra for garnish)
- 1 ½ cups (360 ml) heavy cream, cold
- 3 tbsp (20 g) powdered sugar
- ½ tsp vanilla extract (for whipped cream)
Instructions
- Preheat the oven to 350°F (175°C). In a medium bowl, mix the graham cracker crumbs, melted butter, 2 tbsp sugar, and ¼ tsp salt until the crumbs are evenly moistened. Press the mixture firmly into the bottom and up the sides of a 9-inch (23 cm) pie plate. Bake for 10 minutes, until set and lightly browned. Let cool completely on a wire rack.
- In a medium saucepan, whisk together the coconut milk, whole milk, ¾ cup sugar, cornstarch, and ¼ tsp salt. Cook over medium heat, whisking constantly, until the mixture thickens and comes to a gentle boil, about 5–7 minutes. Boil for 1 minute, then remove from heat.
- In a small bowl, lightly beat 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, whisking constantly, until the custard thickens and reaches 160°F (71°C) on a food thermometer, about 2–3 minutes. Remove from heat.
- Stir in the 1 tsp vanilla and the toasted shredded coconut. Pour the custard through a fine-mesh strainer into a bowl to remove any lumps. Cover with plastic wrap pressed directly onto the surface to prevent a skin from forming. Refrigerate until completely chilled, at least 2 hours.
- When the custard is cold, make the whipped cream: in a chilled bowl, beat the heavy cream, powdered sugar, and ½ tsp vanilla until stiff peaks form, about 2–3 minutes.
- Spread the chilled custard into the cooled crust. Top with the whipped cream, spreading it to the edges. Garnish with extra toasted coconut. Refrigerate for at least 1 hour before serving to let the pie set.
Why the Pie Can Turn Out Too Runny, Too Dense, or Too Dry
Too runny: The custard was not cooked long enough to activate the cornstarch. Cornstarch needs to reach a full boil to thicken; if you stop at the first sign of thickening, it will not hold. Fix: cook the custard until it visibly bubbles for 1 minute, and always check the temperature reaches 160°F (71°C). If the pie is already assembled and runny, chill it longer—sometimes 4 hours—but the best fix is to re-cook the custard before assembling.
Too dense or heavy: Overcooking the custard can cause the cornstarch to break down and the eggs to curdle, making the texture thick and lumpy. Also, using too much coconut milk (or all coconut milk) can make it heavy. Fix: stick to the 1:1 ratio of coconut milk to whole milk, and remove the custard from heat as soon as it reaches 160°F (71°C).
Too dry: A dry pie usually comes from the crust absorbing moisture from the custard, or from baking the crust too long. Fix: brush the inside of the baked crust with a thin layer of melted butter or white chocolate before filling, and do not overbake the crust. Also, serve the pie within 24 hours; after that, the crust softens.
Substitutions and Swaps
- Graham cracker crust: Use 1 ½ cups (150 g) vanilla wafer crumbs or shortbread cookie crumbs. The crust will be slightly sweeter and less sturdy.
- Coconut milk: For a lighter pie, use 1 cup (240 ml) coconut cream (the thick part from a can of full-fat coconut milk) plus 1 cup (240 ml) whole milk. For a dairy-free version, use 2 cups (480 ml) full-fat coconut milk and omit the whole milk—the custard will be richer and more coconut-forward.
- Cornstarch: Use 3 tbsp (24 g) all-purpose flour instead. The custard will be slightly less glossy and may need an extra minute of cooking to lose the raw flour taste.
- Shredded coconut: Unsweetened shredded coconut works; add 2 tbsp (25 g) extra sugar to the custard to compensate.
- Whipped cream: For a sturdier topping, use 1 cup (240 ml) heavy cream plus 1 tbsp (15 ml) sour cream or cream cheese, beaten to stiff peaks.
Storing the Pie and Keeping It Safe
Because the pie contains dairy and eggs, it must be refrigerated. Store it loosely covered with plastic wrap or in a pie carrier for up to 3 days. The crust will soften over time, so for best texture, serve within 24 hours. To freeze, wrap the fully assembled pie (without the whipped cream) tightly in plastic wrap and then foil; freeze for up to 1 month. Thaw overnight in the refrigerator, then add fresh whipped cream before serving. Do not leave the pie at room temperature for more than 2 hours (1 hour if the room is above 90°F/32°C).
How to Check the Custard Is Done Without a Thermometer
If you do not have a food thermometer, use the spoon test: dip a metal spoon into the custard and lift it out. The custard should coat the back of the spoon thickly, and when you run your finger through the coating, the line should hold its shape without running. This indicates the cornstarch has thickened the mixture. However, for food safety, the custard must reach 160°F (71°C) to ensure the egg yolks are safe; a thermometer is the only reliable way to confirm that.
Related
- Chocolate Mousse Using Coconut Cream
- Chicken Pozole Ingredients and How to Make It
- Pumpkin Bread Using Coconut Pie Filling
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).