Creamy Old-Fashioned Coconut Cream Pie
This coconut cream pie is a from-scratch classic with a flaky crust, silky custard, and a drift of toasted coconut on top. It’s the dessert to pull out when you want something that feels special but is completely doable on a lazy Sunday.

Nothing in this pie comes from a box. The filling is full-fat coconut milk and whole milk cooked with egg yolks into a thick, vanilla-speckled custard.
Why This Coconut Cream Pie Works
The custard sets up with a spoon-coating texture that slices clean without leaking once it’s chilled. It tastes deeply of coconut without veering into suntan lotion territory because the fat from the canned coconut milk carries the flavor gently.
I also like that the topping is just whipped cream and toasted coconut. No thick layer of meringue, no tricky piping. The nutty, crispy coconut over the soft cream is the whole point.
Ingredients

- 1 (9-inch) unbaked pie crust, homemade or store-bought: use a deep-dish pan if your crust is generous.
- 2 cups whole milk: the fat helps the custard set creamy.
- 1 (13.5 oz) can full-fat coconut milk: do not use light or the pie will be watery.
- 3/4 cup granulated sugar: plain white sugar dissolves cleanly.
- 1/4 cup cornstarch: this thickens the custard without any eggy taste.
- 1/4 tsp fine sea salt: a quiet nudge for the coconut flavor.
- 4 large egg yolks: rich color and body.
- 2 tbsp unsalted butter, cut into pieces: stirred in at the end for sheen.
- 1 1/2 tsp vanilla extract: rounds out the sweetness.
- 1 1/2 cups sweetened shredded coconut, divided: 1 cup goes into the filling, 1/2 cup gets toasted for the top.
- 1 1/2 cups heavy cream, cold: for the whipped topping.
- 2 tbsp powdered sugar: dissolves easily into the cream.
Variations / Substitutions
- Graham cracker crust: swap the pastry crust for a 9-inch graham crust and skip the blind baking. The flavor leans toward a coconut cream bar.
- Coconut swap: replace the sweetened shredded coconut with unsweetened if you prefer a less sweet filling. The texture stays the same.
- Dairy-free version: use an extra can of full-fat coconut milk in place of the whole milk, vegan butter for the butter, and whip chilled coconut cream for the topping. The custard will be slightly softer but still sliceable.
- Chocolate layer: spread 3 oz melted semisweet chocolate on the still-warm baked crust before filling. The chocolate firms as it cools and adds a thin snap under the custard.
For a fruitier twist, try a Mango Coconut Tart, which uses the same custard base topped with fresh mango.
How to Make Coconut Cream Pie
Step 1: Blind-Bake the Crust

Preheat the oven to 375°F (190°C) with a rack in the lower third. Roll out your pie dough into a 9-inch pie plate, crimp the edges, and dock the bottom all over with a fork. Line the crust with parchment paper and fill it with pie weights or dried beans.
Bake for 20 minutes, then remove the paper and weights and bake another 10 to 12 minutes, until the bottom is dry and the edges are light brown. The crust should smell buttery and feel firm to the touch.
Let the crust cool completely on a wire rack while you make the filling. Hot custard poured into a warm crust will soften it, so this wait matters.
Step 2: Whisk the Custard Base

In a medium saucepan, whisk together the 3/4 cup sugar, 1/4 cup cornstarch, and 1/4 tsp salt until no lumps remain. Slowly pour in the 2 cups whole milk and the 13.5 oz can of coconut milk, whisking constantly to keep the cornstarch from clumping. Place the pan over medium heat.
In a separate medium bowl, whisk the 4 large egg yolks until smooth. You will use this to temper the eggs later. The yolks should look glossy and lemon-colored.
Step 3: Cook the Filling

Bring the milk mixture to a gentle simmer over medium heat, stirring constantly with a silicone spatula, especially around the corners of the pan. After about 6 to 8 minutes, the liquid will start to thicken and leave a trail when you drag the spatula through it. Once it bubbles lightly, cook for 1 full minute more, still stirring, to cook out the starch taste.
Remove the pan from the heat. Scoop about 1 cup of the hot custard into the bowl of egg yolks while whisking, then pour the egg mixture back into the saucepan. Return to medium heat and cook, stirring, for another 2 minutes, until the custard is very thick and a few large bubbles break the surface. The texture should be like a soft pudding.
Take the pan off the heat. Stir in the 2 tbsp butter pieces and 1 1/2 tsp vanilla until the butter melts and the custard is glossy. Fold in 1 cup of the sweetened shredded coconut (reserve the remaining 1/2 cup for the top). The filling will be pale with coconut flecks and smell sweet and warm.
Step 4: Fill the Pie Shell

Pour the hot coconut custard into the completely cooled blind-baked crust. Smooth the top with a spatula, then press a piece of plastic wrap directly onto the surface of the filling. This stops a rubbery skin from forming.
Chill the pie in the fridge for at least 4 hours, or until it is cold all the way through and feels firm when you press the center. You can make it a day ahead at this point.
Step 5: Top and Serve

About 30 minutes before you plan to serve, toast the reserved 1/2 cup coconut. Spread it on a dry skillet over medium heat and shake the pan frequently for 3 to 4 minutes, until the shreds are mostly golden with a few white bits. The color changes fast so keep an eye on it, then transfer to a plate to cool completely.
In a large bowl, whip the 1 1/2 cups cold heavy cream with the 2 tbsp powdered sugar to soft peaks. Spoon the cream over the chilled pie and spread it to the edges with the back of a spoon. Scatter the cooled toasted coconut generously on top. Serve slices cold, and the knife should glide through the layers cleanly.
Tips for the Best Coconut Cream Pie
- Chill long enough: The filling needs a full 4 hours to set. Cutting it sooner will give you a soupy slice, even if the custard was thick on the stove.
- Toast the coconut with care: Stir or shake the pan almost constantly. Coconut goes from golden to burnt in seconds once the pan is hot.
- Use canned coconut milk, not carton: Carton coconut milk is too thin and will not set into a sliceable custard.
- Plastic wrap on the custard: Press it right on the surface while the filling is still warm to prevent a skin. Peel it off gently before adding the cream.
- Whip the cream just before serving: The pie can hold in the fridge for a few hours topped, but the cream is fluffiest within that first hour.
Storing Leftovers
- Refrigerate: Cover the pie loosely with plastic wrap or a pie dome and keep in the fridge for up to 4 days. The crust will soften a little but the flavor holds.
- Serve cold: This pie is always eaten chilled, straight from the fridge. No reheating needed.
Frequently Asked Questions
Can I use a store-bought graham cracker crust?
Yes, that works fine. No blind baking is needed so you can skip Step 1 entirely. The pie will be a little sweeter and softer at the base.
My custard got lumpy. What went wrong?
The cornstarch likely clumped before the liquid heated up, or the eggs curdled from too much heat. Whisk the cornstarch into the sugar first, and make sure to temper the yolks slowly with the hot milk before adding them to the pan.
Can I make this pie dairy-free?
You can, but the texture shifts. Replace the whole milk with a second can of full-fat coconut milk, use vegan butter, and whip chilled coconut cream for the topping. The custard will be slightly looser and the coconut taste more pronounced.
How far ahead can I make it?
The pie shell and custard filling can be made and chilled up to 1 day ahead. Keep the pie covered with plastic wrap directly on the surface. Add the whipped cream and toasted coconut a few hours before serving.

Coconut Cream Pie Recipe
Ingredients
Method
- Blind-bake the crust at 375°F for 20 minutes with weights, then 10 to 12 minutes uncovered, until golden. Cool completely.
- Whisk sugar, cornstarch, and salt in a saucepan. Add milks and cook over medium heat, whisking, until it simmers and thickens, about 6 to 8 minutes.
- Temper egg yolks with 1 cup of the hot custard, return to the pan, and cook 2 minutes more until thick. Off heat, stir in butter, vanilla, and 1 cup coconut.
- Pour filling into cooled crust, press plastic wrap on top, and chill at least 4 hours until firm.
- Toast remaining 1/2 cup coconut in a dry skillet over medium heat until golden, about 3 to 4 minutes. Whip cold cream with powdered sugar to soft peaks, spread over pie, and top with toasted coconut. Serve cold.
