Coconut Cream Pie
My dad spent one whole summer talking about the coconut cream pie at a diner two towns over, the way other people talk about a vacation. Thick filling, a pile of whipped cream, toasted coconut on top. The diner closed before I ever got there, so I did the next best thing and learned to make the pie at home. It took a few tries to get the filling right, but this is the version that finally made him stop bringing up that diner.
The filling is a cooked coconut custard, made on the stove with milk, coconut milk, egg yolks, and a good handful of shredded coconut stirred in at the end. It cooks up thick and silky, then sets in the refrigerator until it slices into clean wedges. A layer of real whipped cream and a sprinkle of toasted coconut finish it, and the toasted part matters more than you would think, since it gives the soft pie a little crunch and a deeper coconut flavor.
This is a make ahead pie in the best sense. It needs at least four hours in the refrigerator, and overnight is even better, so it is a natural fit for holidays and Sunday dinners when the oven is busy with other things. Make it the day before, keep it cold, and dessert is simply done.
Why You’ll Love This Recipe
- The filling is a real cooked custard, thick enough to slice cleanly and soft enough to feel silky.
- Toasted coconut on top adds crunch and a deeper flavor than raw coconut alone.
- It is made a day ahead, so dessert is finished before the busy part of the day starts.
- A store bought crust works fine, which keeps the whole project calm and manageable.
- The coconut flavor is clear and strong without being heavy or too sweet.

Ingredient Notes and Easy Substitutions
Start with the crust. A plain 9 inch pie crust is what you want, either a store bought one you roll into your own dish or a homemade one if that is your habit. Bake it fully and let it cool before the filling goes in, because the filling never goes back into the oven. A soggy bottom is the one real risk with a cream pie, and a fully baked, cooled crust is the whole defense against it.
The filling gets its flavor from two places: canned coconut milk and sweetened shredded coconut. Use full fat canned coconut milk, the kind in the can that you shake well, not the drinkable kind in a carton. The shredded coconut is split in the recipe. Most of it goes into the filling as is, and a small handful gets toasted for the top, where it turns golden and crisp.
Egg yolks make the custard rich and help it set, and cornstarch does the steady thickening work. Whole milk keeps the filling from turning heavy. For the top, real heavy cream whipped with a little powdered sugar tastes far better than anything from a tub, and it only takes a few minutes with a mixer. Vanilla goes in both the filling and the cream, quietly holding everything together.
Step by Step Overview and Practical Kitchen Tips
Heat the oven and bake your crust first, then let it cool completely. While it cools, toast the coconut for the topping in a dry skillet or on a small baking sheet at 350 degrees F for 4 to 6 minutes. Watch it closely, because coconut goes from pale to too dark in about a minute, and stir it once so it colors evenly.
For the filling, whisk the sugar, cornstarch, and salt in a saucepan before any heat is involved, then whisk in the milk and coconut milk. Cook over medium heat, whisking often, until the mixture thickens and starts to feel heavy on the whisk. The step that protects your eggs is tempering: whisk a ladle of the hot mixture into the yolks first, then pour the warmed yolks back into the pot. From there, keep cooking and whisking until the filling is thick and bubbling briefly in the center. That short boil is what cooks out the starchy taste and makes sure the pie sets.
Take the pot off the heat, stir in the butter, vanilla, and the untoasted coconut, and pour the filling into the cooled crust while it is still hot and pourable. Press plastic wrap directly onto the surface so a skin does not form, then refrigerate the pie for at least 4 hours. Overnight gives the cleanest slices. Whip the cream just before serving, spread it over the cold pie, and shower the toasted coconut over the top.
Cream pies are a small family on this site, and each one has its own personality. Our Chocolate Cream Pie is the deep chocolate cousin of this one, built the same way with a cooked filling and a whipped cream top. The Key Lime Pie is brighter and tangier, for the days when you want something sharp instead of soft. You can browse the rest of the pies, bars, and cakes in our Sweets and Desserts collection.
Storage, Freezing, and Reheating
Keep this pie in the refrigerator at all times, covered loosely with plastic wrap or stored in a pie carrier. The whipped cream and custard are both dairy, and this is not a dessert that sits out on the counter. It keeps well for 3 to 4 days, and the slices hold their shape the whole time.
Freezing is not a great fit for the finished pie. The custard can turn watery as it thaws and the whipped cream loses its soft texture. If you want a head start, bake the crust ahead and freeze it on its own, then make the filling fresh when you are ready to assemble.
There is no reheating here, and that is part of the charm. Serve the pie cold, straight from the refrigerator, and use a sharp knife wiped clean between slices for the neatest cuts. Let a slice sit on the plate for just a few minutes if you like the filling a touch softer.

FAQs
Why did my filling not set?
The most common reason is that the filling never quite reached a brief boil. Cornstarch needs that short bubbling moment to reach its full thickening power. The other usual cause is slicing too early. Give the pie the full 4 hours in the refrigerator, and overnight if you can.
Can I use a graham cracker crust?
Yes, and it is a good match. A graham crust adds a little sweetness and crunch. Bake it for about 8 minutes to help it hold together, cool it completely, and fill it the same way. A vanilla wafer crust works too.
Can I make it with only regular milk?
You can swap the coconut milk for more whole milk, and the pie will still set and taste pleasant, but the coconut flavor will be much quieter, carried mostly by the shredded coconut. If coconut is the point of the pie for you, the canned coconut milk is worth having.
How do I keep the whipped cream from weeping?
Whip the cream to soft, stable peaks and add it close to serving time. A tablespoon or two of powdered sugar helps it hold. If the pie will sit for a day before serving, you can whip the cream with a teaspoon of cornstarch beaten in, which keeps it steadier in the refrigerator.
Coconut Cream Pie
Ingredients
- 1 9 inch pie crust baked and cooled
- 3/4 cup granulated sugar
- 1/3 cup cornstarch
- 1/4 teaspoon salt
- 2 cups whole milk
- 1 cup canned coconut milk shaken well
- 4 large egg yolks
- 2 tablespoons unsalted butter
- 1 teaspoon vanilla extract
- 1 1/2 cups sweetened shredded coconut divided
- 1 cup heavy whipping cream
- 2 tablespoons powdered sugar
Instructions
- Bake the pie crust according to its directions until golden, then cool it completely. Spread 1/2 cup of the shredded coconut on a small baking sheet and toast at 350 degrees F for 4 to 6 minutes, stirring once, until lightly golden. Set aside for the topping.
- In a medium saucepan, whisk the granulated sugar, cornstarch, and salt together. Slowly whisk in the whole milk and coconut milk until smooth.
- Cook the milk mixture over medium heat, whisking often, until it begins to thicken, about 6 to 8 minutes.
- Whisk the egg yolks in a small bowl. Scoop about 1/2 cup of the hot milk mixture into the yolks and whisk quickly to warm them, then pour the yolk mixture back into the saucepan, whisking the whole time.
- Keep cooking and whisking until the filling is thick and bubbling briefly in the center, about 2 more minutes. It should coat the back of a spoon.
- Remove the pan from the heat and stir in the butter, vanilla, and the remaining 1 cup of untoasted shredded coconut.
- Pour the hot filling into the cooled crust and smooth the top. Press a piece of plastic wrap directly onto the surface so a skin does not form.
- Refrigerate the pie for at least 4 hours, or overnight, until the filling is fully set.
- Just before serving, beat the heavy cream and powdered sugar until soft peaks form. Spread the whipped cream over the pie, sprinkle the toasted coconut over the top, slice, and serve cold.