Dinners

The Absolute Best Coconut Cream Pie

Updated · By Patriot Kitchen

Ingredients
12
Steps
7

Jump to recipe Save

Time: 45 min prep + 4 hr chilling · Serves: 8 · The key step: Cook the custard until it thickly coats a spoon, then strain it for a silky texture. This is a classic coconut cream pie with a crisp, buttery crust, a rich coconut custard filling, and a cloud of whipped cream on top. It’s the dessert for a spring brunch, a holiday table, or any day you want something cool and creamy.

Why This Pie Works

Coconut cream pie is a custard pie: the filling is a cooked mixture of milk, sugar, egg yolks, and cornstarch, thickened by both the eggs and the starch. The coconut flavor comes from two places: coconut milk in the custard and shredded coconut stirred in at the end. The crust is pre-baked so it stays crisp, and the filling is chilled until fully set so it slices cleanly. The whipped cream topping is added just before serving to keep it light.

Ingredients

  • 1 9-inch (23 cm) pre-baked pie crust (store-bought or homemade, see note)
  • 1 ½ cups (355 ml) whole milk
  • 1 can (13.5 oz / 400 ml) full-fat coconut milk
  • ¾ cup (150 g) granulated sugar
  • ¼ cup (30 g) cornstarch
  • ¼ teaspoon salt
  • 4 large egg yolks (save the whites for another use)
  • 1 teaspoon vanilla extract
  • 1 ½ cups (120 g) sweetened shredded coconut, divided
  • 1 ½ cups (355 ml) cold heavy cream
  • 2 tablespoons (15 g) powdered sugar
  • ½ teaspoon vanilla extract (for the whipped cream)

Note on crust: If using a store-bought crust, follow the package directions for a pre-baked (blind-baked) crust. For a homemade crust, bake at 375°F (190°C) for 15–18 minutes until golden brown.

Instructions

  1. Make the custard base: In a medium saucepan, whisk together the milk, coconut milk, sugar, cornstarch, and salt. Cook over medium heat, stirring constantly, until the mixture thickens and comes to a gentle boil, about 8–10 minutes. It should be thick enough to coat the back of a spoon.
  2. Temper the egg yolks: Place the egg yolks in a medium bowl. Slowly whisk about 1 cup of the hot milk mixture into the yolks, a few tablespoons at a time, to warm them without scrambling. Pour the yolk mixture back into the saucepan.
  3. Cook the custard: Return the saucepan to medium heat and cook, stirring constantly, for 2–3 minutes more until the custard is thick and bubbling. Remove from heat and stir in the vanilla and 1 cup (80 g) of the shredded coconut.
  4. Strain and cool: Pour the custard through a fine-mesh strainer into a bowl, pressing on the solids to extract as much liquid as possible. Discard the solids. Let the custard cool at room temperature for 15 minutes, stirring occasionally to prevent a skin from forming.
  5. Fill the crust: Pour the warm custard into the pre-baked pie crust. Smooth the top with a spatula. Press a piece of plastic wrap directly onto the surface of the custard to prevent a skin. Refrigerate for at least 4 hours, or overnight, until fully set.
  6. Toast the remaining coconut: In a dry skillet over medium heat, toast the remaining ½ cup (40 g) shredded coconut, stirring frequently, until golden brown, about 3–4 minutes. Set aside to cool.
  7. Whip the cream: In a chilled bowl, beat the heavy cream, powdered sugar, and ½ teaspoon vanilla until stiff peaks form. Spread or pipe the whipped cream over the chilled pie. Sprinkle with the toasted coconut.

Doneness cues: The custard is done when it reaches 160°F (71°C) on an instant-read thermometer and is thick enough to coat a spoon. The pie is set when the center is firm to the touch and a knife inserted near the edge comes out clean.

Common Mistakes

Lumpy Custard

If the custard is lumpy, the eggs scrambled because the hot milk was added too quickly. Always temper by adding a small amount of hot liquid to the yolks while whisking constantly. If lumps do appear, strain the custard through a fine-mesh sieve—this will remove them, though the texture will be slightly less silky.

Runny Filling

If the filling doesn’t set, the custard was not cooked long enough. The cornstarch needs to reach a full boil to activate. Cook until the mixture visibly thickens and bubbles, about 2–3 minutes after boiling. Also, be sure to chill for at least 4 hours—rushing it will result in a soft slice.

Weeping Meringue or Watery Top

If the whipped cream weeps or the top is watery, the cream was overwhipped or the pie was not chilled long enough. Whip the cream just to stiff peaks—stop as soon as it holds its shape. Also, add the whipped cream only after the pie is fully chilled, and serve within a few hours.

Storage

Store leftover pie in the refrigerator, covered, for up to 3 days. The whipped cream topping will begin to deflate after 24 hours, so for best texture, add the topping just before serving. To freeze, wrap the pie (without the whipped cream) tightly in plastic wrap and freeze for up to 1 month. Thaw overnight in the refrigerator before topping and serving.

Variations

Toasted Coconut Crust

For a deeper coconut flavor, substitute ½ cup (40 g) of the graham cracker crumbs in a homemade crust with toasted shredded coconut. This adds a nutty note and extra crunch.

Lighter Version

Use 2% milk instead of whole milk and reduce the sugar to ½ cup (100 g). The filling will be slightly less rich but still creamy. Use a store-bought reduced-fat whipped topping if you prefer.

Chocolate Coconut Cream Pie

Add 2 ounces (55 g) of finely chopped dark chocolate to the hot custard after straining, and stir until melted. This creates a chocolate-coconut layer that pairs well with the whipped cream.

Frequently Asked Questions

Can I use coconut milk from a carton instead of canned?

Carton coconut milk is thinner and lower in fat, which will result in a less creamy filling. For best results, use full-fat canned coconut milk. If you only have carton, increase the cornstarch by 1 tablespoon to compensate.

How do I know when the custard is thick enough?

The custard should coat the back of a spoon and leave a clear path when you run your finger through it. It will continue to thicken as it cools, so don’t overdo it—just cook until it’s noticeably thick and bubbling.

Can I make this pie ahead of time?

Yes, you can make the pie (without the whipped cream) up to 2 days ahead. Cover and refrigerate. Add the whipped cream and toasted coconut no more than 4 hours before serving.

Related

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).