Dinners

Coconut Cream Pie Recipe Video

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
5 hr 30 min
Prep
30 min
hands-on
Cook
25 min
oven or stovetop
Serves
8
as written
USDA safe temp
160°F / 71°C
check the thickest part

Jump to recipe Save

Coconut cream pie is a make-ahead dessert that suits weekend dinners, potlucks, and holiday tables. It is served chilled, often with whipped cream and toasted coconut on top. The filling is a cooked custard thickened with cornstarch, so it slices cleanly after a full chill.

Ingredients

  • 1 9-inch (23 cm) baked pie crust (store-bought or homemade, cooled)
  • 1 ½ cups (360 ml) whole milk
  • 1 ½ cups (360 ml) canned full-fat coconut milk (not light)
  • ¾ cup (150 g) granulated sugar
  • ¼ cup (30 g) cornstarch
  • ¼ teaspoon salt
  • 4 large egg yolks (pasteurized if you prefer)
  • 2 tablespoons (30 g) unsalted butter, cut into small pieces
  • 1 teaspoon vanilla extract
  • 1 cup (240 ml) heavy cream (for topping)
  • 2 tablespoons (15 g) powdered sugar
  • ½ cup (40 g) sweetened shredded coconut, toasted (for garnish)

Instructions

  1. In a medium bowl, whisk the egg yolks. Set aside.
  2. In a large saucepan, combine the milk, coconut milk, sugar, cornstarch, and salt. Whisk until the cornstarch dissolves.
  3. Place the saucepan over medium heat. Cook, stirring constantly with a whisk, 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.
  4. Once boiling, cook for 1 more minute, stirring constantly. Remove from heat.
  5. Temper the yolks: slowly pour about 1 cup of the hot milk mixture into the yolks while whisking continuously. Then pour the yolk mixture back into the saucepan.
  6. Return the saucepan to medium-low heat. Cook, stirring constantly, for 2–3 minutes until the custard thickens further and just begins to bubble. The internal temperature should reach 160°F (71°C) (USDA FSIS safe minimum for egg dishes).
  7. Remove from heat. Stir in the butter and vanilla until smooth.
  8. Pour the hot filling through a fine-mesh strainer into a bowl to remove any lumps. Let cool for 15 minutes, stirring occasionally.
  9. Pour the filling into the baked pie crust. Smooth the top. Press a piece of plastic wrap directly onto the surface to prevent a skin from forming.
  10. Refrigerate for at least 4 hours, or until completely set and cold (up to 24 hours).
  11. Before serving, whip the heavy cream and powdered sugar with an electric mixer until stiff peaks form. Spread or pipe over the pie.
  12. Sprinkle with toasted coconut. Slice and serve cold.

How to Tell It’s Done

The filling is done when it has visibly thickened and coats the back of a spoon. After the final cook, it should be thick enough that a spatula leaves a trail when dragged through. The pie is fully set when the center is firm to the touch and a knife inserted near the edge comes out clean; the center may still be slightly soft but should not be liquid.

Scaling the Recipe

Batch Milk Coconut milk Sugar Cornstarch Egg yolks Pie crusts
Half (serves 4) ¾ cup (180 ml) ¾ cup (180 ml) 6 tbsp (75 g) 2 tbsp (15 g) 2 1 (9-inch/23 cm)
Full (serves 8) 1 ½ cups (360 ml) 1 ½ cups (360 ml) ¾ cup (150 g) ¼ cup (30 g) 4 1
Double (serves 16) 3 cups (720 ml) 3 cups (720 ml) 1 ½ cups (300 g) ½ cup (60 g) 8 2

For a half batch, use a 9-inch (23 cm) pie crust or a 9-inch (23 cm) tart pan. For a double batch, make two pies or use a 10-inch (25 cm) deep-dish pie plate; increase the chill time to 5–6 hours.

Equipment That Matters

A heavy-bottomed saucepan (2–3 quart) prevents scorching. Use a whisk, not a spoon, to keep the cornstarch smooth. A fine-mesh strainer is essential for a silky texture. If you don’t have a strainer, you can skip it, but the filling may have small lumps.

For the crust, a standard 9-inch (23 cm) pie plate works. If using a deep-dish plate, increase the filling by 1.5 times. A glass or ceramic pie plate conducts heat evenly; metal is fine but may brown the crust faster.

Storage and Make-Ahead

Refrigerate the pie within 2 hours of making. It keeps for 3–4 days in the fridge, covered loosely with foil or plastic wrap. Do not freeze the assembled pie; the filling separates and becomes watery. You can freeze the baked crust for up to 3 months, wrapped tightly.

The filling can be made 1 day ahead and stored in a bowl with plastic wrap on the surface; pour into the crust the next day. The whipped cream topping should be added within a few hours of serving, as it will weep if left longer.

Variations

Toasted Coconut Crust

Replace ½ cup (60 g) of the flour in a homemade pie crust with ½ cup (40 g) finely ground toasted coconut. This adds a nutty flavor but makes the crust more crumbly; press it firmly into the pie plate.

Lime-Coconut Cream Pie

Add 1 tablespoon of lime zest and 2 tablespoons of lime juice to the filling along with the vanilla. Omit the toasted coconut garnish and top with lime zest instead. The lime brightens the coconut but does not change the texture.

Dairy-Free Version

Use full-fat oat milk or almond milk in place of whole milk, and use a vegan butter substitute. The filling will set slightly softer; increase the cornstarch to 5 tablespoons (40 g) for a firmer set. Check that your pie crust is dairy-free.

Why the Filling Must Be Cooked

The filling contains raw egg yolks, which can carry Salmonella. Cooking the custard to 160°F (71°C) (USDA FSIS safe minimum) kills harmful bacteria. Do not skip the tempering step, as adding yolks directly to hot liquid will scramble them. If you prefer a no-cook filling, use a pasteurized egg product and follow the package instructions, but the texture will differ.

If you are using raw egg yolks for any reason, use pasteurized eggs. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw eggs and raw flour.

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