Dinners

Coconut Cream Pie Slice: Classic Recipe

Updated · By Patriot Kitchen

USDA safe temp
160°F / 71°C
check the thickest part
Ingredients
16
Steps
6

Jump to recipe Save

Time: 4 hr 25 min  ·  Serves: 8  ·  The key step: Chill the pie completely so the custard sets into clean, firm slices. This classic coconut cream pie has a crisp, buttery crust, a rich vanilla-coconut custard, and a cloud of whipped cream on top, all toasted with coconut flakes. It’s a make-ahead dessert that suits spring dinners, potlucks, and holidays.

Ingredients

  • 1 ½ cups (190 g) all-purpose flour
  • ½ teaspoon salt
  • ½ cup (115 g) cold unsalted butter, cut into cubes
  • 3 to 4 tablespoons (45–60 ml) ice water
  • 2 cups (480 ml) whole milk
  • 1 cup (240 ml) canned coconut milk (full-fat)
  • ¾ cup (150 g) granulated sugar
  • ¼ cup (30 g) cornstarch
  • ¼ teaspoon salt
  • 4 large egg yolks
  • 2 tablespoons (30 g) unsalted butter
  • 1 teaspoon vanilla extract
  • 1 cup (85 g) sweetened shredded coconut, divided
  • 1 ½ cups (360 ml) heavy cream
  • 2 tablespoons (15 g) powdered sugar
  • ½ teaspoon vanilla extract (for whipped cream)

Instructions

  1. Make the crust: In a medium bowl, whisk flour and salt. Cut in cold butter with a pastry blender or your fingers until the mixture looks like coarse meal. Sprinkle with ice water, 1 tablespoon at a time, stirring with a fork until the dough just comes together. Form into a disk, wrap in plastic, and refrigerate for 30 minutes.
  2. Roll and bake: On a lightly floured surface, roll dough into a 12-inch (30 cm) round. Fit into a 9-inch (23 cm) pie plate, trim and crimp the edges. Prick the bottom with a fork. Freeze for 15 minutes. Preheat oven to 375°F (190°C). Line the crust with parchment and fill with pie weights or dried beans. Bake for 20 minutes, then remove weights and parchment and bake for 10–15 minutes more, until golden brown. Cool completely on a wire rack.
  3. Make the custard: In a medium saucepan, whisk together milk, coconut milk, sugar, cornstarch, and salt. Cook over medium heat, stirring constantly, until the mixture thickens and bubbles, about 8–10 minutes. Remove from heat. In a small bowl, whisk the egg yolks. Gradually whisk about 1 cup of the hot milk mixture into the yolks, then pour the yolk mixture back into the saucepan. Return to medium heat and cook, stirring constantly, for 2–3 minutes until thick and bubbling. Remove from heat and stir in butter, vanilla, and ½ cup (40 g) of the shredded coconut.
  4. Fill the crust: Pour the hot custard into the cooled crust. Smooth the top. Press a piece of plastic wrap directly onto the surface of the custard to prevent a skin from forming. Refrigerate until completely chilled and set, at least 4 hours, preferably overnight.
  5. Toast the coconut: In a dry skillet over medium heat, toast the remaining ½ cup (40 g) coconut, stirring frequently, until golden and fragrant, about 3–5 minutes. Set aside to cool.
  6. Top and serve: In a cold bowl, beat the heavy cream, powdered sugar, and vanilla until stiff peaks form. Spread or pipe the whipped cream over the chilled pie. Sprinkle with toasted coconut. Serve immediately, or refrigerate until serving.

Doneness Cues

The custard is done when it reaches 160°F (71°C) on a food thermometer, which is the USDA FSIS safe minimum for egg dishes. It should be thick enough to coat the back of a spoon and leave a clear path when you drag a finger through it. The crust is done when it is deep golden brown and feels dry to the touch. The pie is fully set when the center feels firm and does not jiggle when you gently shake the pan.

Common Mistakes

Curdled or Scrambled Custard

If the custard turns lumpy, the eggs were added too quickly or the heat was too high. Always temper the yolks by slowly whisking in hot milk, and keep the heat at medium, not high. If you see lumps, strain the custard through a fine-mesh sieve before pouring into the crust.

Soggy Crust

A soggy bottom happens when the crust is underbaked or the custard is poured in while the crust is still hot. Blind-bake the crust until fully golden and let it cool completely before adding the custard. Also, brush the inside of the baked crust with a thin layer of melted white chocolate or egg white and bake for 2 minutes to create a moisture barrier.

Runny Pie

If the pie doesn’t set, the custard wasn’t cooked long enough or the cornstarch wasn’t activated. Bring the custard to a full boil for at least 1 minute after the yolks are added, and make sure it thickens visibly. Chill for at least 4 hours—overnight is better—before slicing.

Storing Leftovers

Store leftover pie in the refrigerator, loosely covered, for up to 3 days. The whipped cream may soften slightly but will still be safe. 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). For longer storage, freeze the pie without the whipped cream topping for up to 1 month; thaw in the refrigerator overnight and add fresh whipped cream before serving.

Making Ahead

You can make the entire pie (without the whipped cream) up to 2 days ahead. Keep it refrigerated. Add the whipped cream and toasted coconut no more than 4 hours before serving to keep the topping fresh. The crust can be baked and stored at room temperature in an airtight container for up to 2 days.

Variations

Toasted Coconut Crust

Replace ¼ cup (30 g) of the flour with ¼ cup (20 g) finely ground toasted coconut. Toast the coconut in a dry skillet until golden, let cool, then pulse in a food processor until fine. This adds coconut flavor to the crust but makes it slightly more crumbly.

Dairy-Free Version

Use cold vegan butter or shortening for the crust, and replace the whole milk with unsweetened oat milk or almond milk. Use a dairy-free heavy cream alternative for the topping, such as coconut cream whipped with powdered sugar. The custard will be slightly less rich but still set.

Lighter Coconut Flavor

If you prefer a milder coconut taste, use only ½ cup (120 ml) coconut milk and increase the whole milk to 2 ½ cups (600 ml). Reduce the shredded coconut in the custard to ⅓ cup (30 g).

Frequently Asked Questions

Can I use a store-bought crust?

Yes, a 9-inch (23 cm) store-bought graham cracker or shortbread crust works. Skip the blind-baking step if the crust is pre-baked. If it’s raw, bake according to package directions.

Why does my custard have a skin?

A skin forms when the custard is exposed to air. Press plastic wrap directly onto the surface before chilling. If a skin still forms, gently stir it back in before serving, or lift it off and discard.

Can I use light coconut milk?

Light coconut milk will make the custard thinner and less creamy. If you use it, reduce the milk to 1 ½ cups (360 ml) and increase the cornstarch to 3 tablespoons (25 g) to compensate.

How do I get clean slices?

Use a sharp chef’s knife dipped in hot water and wiped dry between cuts. Chill the pie for at least 4 hours, preferably overnight, so the custard is fully set.

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