Dinners

Coconut Cream Pie Day: Make the Pie

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
4 hr 55 min
Prep
25 min
hands-on
Cook
30 min
oven or stovetop
Serves
8
as written

Jump to recipe Save

Coconut cream pie is a baked custard pie with a coconut-infused filling, a flaky or crumb crust, and a whipped cream topping. It suits a spring or summer dessert table, a holiday meal, or a Sunday dinner. The filling relies on a cornstarch-thickened custard that must be cooked until it reaches 160°F (71°C) to set properly and be safe to eat.

Ingredients

  • 1 ½ cups (190 g) all-purpose flour
  • ½ teaspoon salt
  • ½ cup (113 g) cold unsalted butter, cut into small pieces
  • 3 to 4 tablespoons (45 to 60 ml) ice water
  • 2 cups (480 ml) whole milk
  • 1 cup (240 ml) heavy cream
  • ¾ cup (150 g) granulated sugar
  • ¼ cup (32 g) cornstarch
  • ¼ teaspoon salt
  • 4 large egg yolks
  • 1 teaspoon vanilla extract
  • 1 cup (85 g) sweetened shredded coconut, plus extra for garnish
  • 1 ½ cups (360 ml) cold heavy cream for topping
  • 2 tablespoons (25 g) powdered sugar

Instructions

  1. Make the crust: In a medium bowl, whisk the flour and ½ teaspoon salt. Cut in the cold butter with a pastry blender until the mixture looks like coarse crumbs. Sprinkle with ice water, 1 tablespoon at a time, and stir with a fork until the dough holds together when pressed. Shape into a disk, wrap in plastic, and refrigerate for 30 minutes.
  2. Roll the dough on a lightly floured surface into a 12-inch (30 cm) round. Fit it into a 9-inch (23 cm) pie plate, trim the overhang to ½ inch (1 cm), fold under, and crimp. Freeze for 15 minutes.
  3. Preheat the oven to 375°F (190°C). Line the crust with parchment paper and fill with pie weights or dried beans. Bake for 15 minutes. Remove the weights and parchment, then bake for 10 to 12 minutes more, until the crust is golden. Let cool completely on a wire rack.
  4. Make the filling: In a medium saucepan, whisk together the milk, 1 cup heavy cream, sugar, cornstarch, and ¼ teaspoon salt. Cook over medium heat, stirring constantly, until the mixture thickens and comes to a gentle boil, about 8 to 10 minutes.
  5. In a small bowl, whisk the egg yolks. Gradually whisk about 1 cup of the hot milk mixture into the yolks to temper them, then pour the yolk mixture back into the saucepan. Cook over medium heat, stirring constantly, until the custard thickens and reaches 160°F (71°C) on an instant-read thermometer, about 2 to 3 minutes. Remove from heat.
  6. Stir in the vanilla and 1 cup shredded coconut. Pour the filling into the cooled crust. Press a piece of plastic wrap directly onto the surface of the filling to prevent a skin from forming. Refrigerate for at least 4 hours, until fully chilled and set.
  7. Make the topping: In a chilled bowl, beat the 1 ½ cups cold heavy cream and powdered sugar with an electric mixer on medium-high speed until soft peaks form, about 2 to 3 minutes. Spread or pipe the whipped cream over the chilled pie. Sprinkle with extra toasted coconut if desired.

Why the Filling Can Turn Out Runny or Dense

The most common failure is a runny filling. This happens when the custard is not cooked long enough for the cornstarch to fully gelatinize, or when the pie is not chilled long enough. Cornstarch needs to reach a boil to thicken properly; if you stop at the first sign of thickening, the filling will set weakly. Always cook until the mixture visibly bubbles and reaches 160°F (71°C).

A dense, heavy filling usually comes from overcooking the custard, which causes the cornstarch to break down and the eggs to curdle. It can also happen if you use low-fat milk instead of whole milk, which makes a thinner custard that may not set evenly. Stick to whole milk and heavy cream as written.

If the filling is too thick and gluey, you likely added too much cornstarch or cooked it too long. Measure cornstarch by spooning it into the measuring cup and leveling off; do not pack it.

Substitutions and Changes

  • Graham cracker crust: Use 1 ½ cups (150 g) graham cracker crumbs, 6 tablespoons (85 g) melted butter, and ¼ cup (50 g) sugar. Press into the pie plate and bake at 350°F (175°C) for 10 minutes. The crust will be sweeter and less flaky.
  • Unsweetened coconut: Use the same amount (1 cup / 85 g) but add 2 tablespoons (25 g) extra sugar to the filling to compensate for the lost sweetness.
  • Milk alternative: For a dairy-free version, use full-fat oat milk or canned coconut milk in place of whole milk and heavy cream. The filling will be slightly less rich and may set a bit softer; chill for at least 5 hours.
  • Cornstarch substitute: Use ⅓ cup (45 g) all-purpose flour instead of cornstarch. The filling will be slightly more opaque and may have a faint floury taste if not cooked enough.

Storing the Pie and Keeping It Safe

Because the filling contains eggs and dairy, the pie must be refrigerated. Cover the pie loosely with plastic wrap or a cake dome once the whipped cream is set. It will keep for 3 to 4 days in the refrigerator. Do not leave the pie at room temperature for more than 2 hours total (1 hour if the room is above 90°F/32°C).

The pie can be frozen, but the texture will change: the custard may weep slightly and the whipped cream will deflate. To freeze, skip the whipped cream topping. Wrap the chilled, unfrosted pie tightly in plastic wrap and then foil, and freeze for up to 2 months. Thaw overnight in the refrigerator before adding the whipped cream.

If you have leftover whipped cream, keep it in an airtight container in the fridge for up to 2 days; re-whip briefly before serving.

Common Mistakes and Their Fixes

  • Soggy crust: The crust absorbs moisture from the filling. To prevent this, brush the baked crust with a thin layer of melted white chocolate or egg white before adding the filling, or bake the crust until deeply golden. A fully baked crust is less likely to become soggy.
  • Skin on the filling: If you do not press plastic wrap directly onto the hot filling, a thick skin will form. Press the wrap so it touches the entire surface, and leave it until the pie is chilled.
  • Whipped cream that deflates: If the cream is not cold enough or you overbeat it, it can turn grainy and lose volume. Use cream that has been chilled for at least 12 hours, beat on medium speed, and stop as soon as soft peaks hold their shape.

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