Coconut cream pie is a classic American dessert: a baked pastry shell filled with a rich, coconut-infused custard and topped with lightly sweetened whipped cream. This version uses a cooked custard thickened on the stovetop, which sets firmly enough to slice cleanly while staying creamy. The key is to chill the pie fully—at least 4 hours—so the filling firms up before you add the topping.
Ingredients
- 1 9-inch (23 cm) baked pie crust (store-bought or homemade, fully cooled)
- 1 cup (200 g) granulated sugar
- 1/2 cup (60 g) cornstarch
- 1/4 teaspoon salt
- 4 large egg yolks (pasteurized if you prefer)
- 2 cups (480 ml) whole milk
- 1 can (13.5 oz / 400 ml) full-fat coconut milk
- 1 cup (80 g) sweetened shredded coconut, plus more for garnish
- 2 tablespoons (30 g) unsalted butter, cut into pieces
- 2 teaspoons vanilla extract
- 1 1/2 cups (360 ml) heavy cream
- 2 tablespoons (20 g) powdered sugar
Instructions
- In a medium bowl, whisk together the sugar, cornstarch, and salt. Add the egg yolks and whisk until thick and pale, about 1 minute.
- In a large saucepan, combine the milk and coconut milk. Heat over medium, stirring occasionally, until steaming but not boiling (about 180°F / 82°C).
- Slowly pour about 1 cup of the hot milk mixture into the egg mixture, whisking constantly. Then pour the egg mixture back into the saucepan.
- 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.
- Stir in the shredded coconut, butter, and vanilla until the butter melts and the coconut is evenly distributed.
- Pour the filling into the baked pie crust. Smooth the top with a spatula. Press a piece of plastic wrap directly onto the surface to prevent a skin from forming.
- Refrigerate for at least 4 hours, or until completely set and chilled (overnight is fine).
- When ready to serve, beat the heavy cream and powdered sugar with an electric mixer on medium-high until soft peaks form, about 2–3 minutes.
- Spread or pipe the whipped cream over the chilled pie. Garnish with toasted coconut if desired. Slice and serve cold.
What to Swap and How It Changes the Pie
Use a graham cracker crust for a sweeter, less flaky base; a shortbread crust adds richness. For a dairy-free version, replace the whole milk with oat milk and use a dairy-free butter substitute—the filling will be slightly less firm. If you skip the coconut milk and use all whole milk, the coconut flavor will be milder; increase the shredded coconut to 1 1/2 cups (120 g) to compensate. For a less sweet pie, reduce the sugar to 3/4 cup (150 g).
Why the Filling Needs a Full Chill
The cornstarch needs time to set completely. After 2 hours the filling may still be soft; after 4 hours it will hold its shape when sliced. If you’re in a hurry, you can speed the chill by placing the pie in the freezer for 1 hour, but check that the filling is firm before topping—freezing too long can make the crust soggy.
How to Toast Coconut for the Top
Spread 1/4 cup (20 g) sweetened shredded coconut on a baking sheet and bake at 350°F (175°C) for 5–7 minutes, stirring once, until golden brown. Watch closely—it burns quickly. Let cool completely before sprinkling over the whipped cream.
Make-Ahead Timeline
The pie can be fully assembled (including whipped cream) up to 1 day ahead. Store it covered in the refrigerator. If you add the topping more than a few hours ahead, it may weep slightly; for the best appearance, add the whipped cream within 2 hours of serving.
Storing Leftover Pie
Keep leftover pie covered in the refrigerator for up to 3 days. The crust may soften slightly over time. Do not freeze the assembled pie—the whipped cream and custard will separate upon thawing. If you have only filling left, you can freeze it in an airtight container for up to 1 month; thaw overnight in the refrigerator and whisk before using.
What to Serve With Coconut Cream Pie
Serve cold, straight from the fridge. A cup of black coffee or hot tea balances the sweetness. For a tropical twist, add a few slices of fresh mango or pineapple on the side. This pie is a good choice for a summer cookout, a holiday dessert table, or a birthday celebration where coconut is the star.
Related
- Chocolate Mousse Using Coconut Cream
- Chocolate Mousse with Heavy Whipping Cream
- Chocolate Mousse with Cream Recipe
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).