This coconut cream pie is a classic diner-style dessert: a crisp, buttery crust, a rich and silky coconut custard, and a cloud of lightly sweetened whipped cream on top. The method here uses a cooked custard thickened with cornstarch and egg yolks, which sets firmly enough to slice cleanly while staying creamy on the tongue. It’s the kind of pie that works for a Sunday dinner, a potluck, or a special treat any day of the week.
Choose Your Crust: Classic Pastry or Graham Cracker
You can use a single 9-inch (23 cm) baked pie crust made from your favorite pastry recipe, or a store-bought crust. For a coconut-forward flavor, a graham cracker crust works well: combine 1 1/2 cups (170 g) graham cracker crumbs with 1/4 cup (50 g) sugar and 6 tablespoons (85 g) melted butter, press into a 9-inch (23 cm) pie plate, and bake at 375°F (190°C) for 8-10 minutes until set and lightly browned. Cool completely before filling.
Ingredients
- 1 baked 9-inch (23 cm) pie crust (pastry or graham cracker)
- 1 cup (200 g) granulated sugar
- 1/4 cup (30 g) cornstarch
- 1/4 teaspoon salt
- 2 cups (480 ml) whole milk
- 1 cup (240 ml) canned coconut milk (full-fat, well-shaken)
- 4 large egg yolks
- 2 tablespoons (30 g) unsalted butter, cut into small pieces
- 1 teaspoon vanilla extract
- 1 cup (85 g) sweetened shredded coconut, toasted (see step 2)
- 1 1/2 cups (360 ml) cold heavy cream
- 2 tablespoons (15 g) powdered sugar
- 1/2 teaspoon vanilla extract (for whipped cream)
- Extra toasted coconut for garnish (optional)
Make the Custard
- In a medium saucepan, whisk together the sugar, cornstarch, and salt. Gradually whisk in the whole milk and coconut milk until smooth.
- Place the saucepan over medium heat and cook, stirring constantly with a whisk, until the mixture thickens and comes to a gentle boil, about 6-8 minutes. It should be thick enough to coat the back of a spoon.
- In a small bowl, lightly beat the egg yolks. Slowly ladle about 1 cup of the hot milk mixture into the yolks, whisking constantly to temper them. Pour the yolk mixture back into the saucepan.
- Return to medium heat and cook, stirring constantly, for 2-3 minutes more, until the custard is thick and just bubbling. Remove from heat.
- Stir in the butter, vanilla, and 1 cup (85 g) toasted shredded coconut until the butter is melted and the coconut is distributed.
- Pour the custard through a fine-mesh strainer into a bowl to remove any lumps. Press a piece of plastic wrap directly onto the surface of the custard to prevent a skin from forming. Refrigerate until completely chilled, at least 2 hours, or up to overnight.
Assemble and Chill
- Once the custard is fully chilled, pour it into the baked pie crust. Smooth the top with a spatula.
- In a large bowl, beat the cold heavy cream, powdered sugar, and 1/2 teaspoon vanilla with an electric mixer on medium-high speed until stiff peaks form, about 2-3 minutes.
- Spread the whipped cream over the custard, or pipe it in a decorative pattern. Sprinkle with extra toasted coconut if desired.
- Refrigerate the assembled pie for at least 2 hours, or until set and firm enough to slice. Serve chilled.
Substitutions and Swaps
Dairy-free: Use full-fat canned coconut milk in place of the whole milk (total 3 cups coconut milk), and use a dairy-free butter substitute. The custard will be a bit richer and more coconut-forward. For the whipped cream, use a chilled can of full-fat coconut cream; whip it with powdered sugar until stiff peaks form.
Less sweet: Reduce the sugar to 3/4 cup (150 g). The custard will be less sweet, but still set the same.
Toasted coconut: To toast shredded coconut, spread it on a baking sheet and bake at 350°F (175°C) for 5-7 minutes, stirring once, until golden and fragrant. Watch closely—it burns quickly.
Gelatin-free setting: If you prefer a firmer slice, you can add 1 teaspoon of unflavored gelatin (bloomed in 2 tablespoons cold water) to the hot custard after straining, but this is optional.
Storage and Make-Ahead
Store the pie covered in the refrigerator for up to 3 days. The crust may soften slightly over time, but the pie will still taste fresh. To make ahead, prepare the custard and crust up to 24 hours in advance; assemble and top with whipped cream no more than 4 hours before serving. Freezing is not recommended—the custard and whipped cream will separate and become watery upon thawing.
Why This Pie Sets Firmly
The cornstarch and egg yolks work together to thicken the custard. Cornstarch gelatinizes when heated, and the yolks add richness and additional structure. The key is to cook the custard until it reaches a gentle boil—this ensures the cornstarch is fully activated. If you undercook it, the pie will be runny. If you overcook it, the eggs may curdle, but straining will smooth it out.
How to Check the Custard Is Ready
After boiling for 2-3 minutes, the custard should be thick enough that it mounds slightly when dropped from a spoon. It will continue to thicken as it chills. If you’re unsure, test a small spoonful on a cold plate: it should set within a minute. If it’s too thin, cook for another minute, stirring constantly.
What to Serve With It
Serve slices cold, straight from the fridge. A cup of strong coffee or black tea balances the sweetness. For a special touch, drizzle with a little caramel sauce or sprinkle with extra toasted coconut. This pie is rich, so small slices are plenty.
Related
- Chocolate Mousse Using Coconut Cream
- Pumpkin Bread Using Coconut Pie Filling
- How Long Does Pie Last in the Freezer?
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).