Homemade Coconut Cream Pie
This homemade coconut cream pie recipe is a coconut lover's dream come true. From a graham cracker and toasted coconut crust to a creamy coconut custard pie filling and a whipped cream topping, this pie is classic, timeless, and sensational.

In a world with new food trends every time you turn the page on the calendar (or log onto Instagram), sometimes it's easy to forget about or brush off the old-fashioned classics that our grandmas were making long before the Internet existed.
Cooked and baked from scratch, passed down from generation to generation, made without a fancy mixer, and always revered as something special; they are the recipes that I enjoy making the most.
When I think of classic desserts, coconut cream pie is one of the first that comes to mind.
Get your forks ready for a slice of this decadent Coconut Cream Pie. The combination of the coconut-packed graham cracker crust, creamy coconut filling, and light, airy rum whipped cream will have you licking your plate clean!
Why You Are Going to Love This Pie
If you are unfamiliar with coconut cream pies, let me introduce you to their wonderfully light decadence!
Variations to coconut cream pie range from the type of crust used to how the filling gets baked. These are the three components of the pie, and why this particular one will be your favorite yet!
- Crust - Some recipes use a flaky pastry crust, but I opt instead for a graham cracker crust. A slight variation from my best graham cracker crust recipe, this amazing crust also contains toasted shredded coconut to give every component of this divine pie a dose of coconut.
- Coconut Custard Filling - This is the difference between a coconut cream pie and a coconut custard pie. A cream pie cooks the custard filling on the stove and sets it in the fridge. A coconut custard pie, on the other hand, bakes the custard filling in the oven. This recipe features a silky coconut cream filling that packs in an abundance of coconut flavor thanks to using coconut milk and shredded coconut.
- Whipped Topping - Would it be a coconut cream pie if it weren't topped with whipped cream?? This rum-spiked whipped topping takes the pie to another level (you can easily omit the rum if you’d like).
Key Ingredients Breakdown
While this pie utilizes some pantry staples, there are a few special ingredients that combine to create this amazing pie (make sure to check the recipe card for a full list of ingredients and quantities):

- Unsweetened Shredded Coconut – This is different than what you usually find in the baking aisle (sweetened shredded coconut). I have typically found unsweetened coconut in the natural foods section of the grocery store, and you can also buy it online.
- Graham Crackers – You can use 9 full graham crackers (the rectangular sheet) or use 5 ounces of purchased graham cracker crumbs.
- Coconut Milk – NOT cream of coconut. This is found in the Asian section of the grocery store (or purchased online); make sure you stir it well.
- Whole Milk – Using whole milk creates a thick and creamy custard; I do not recommend substituting lower fat alternatives or the filling may not thicken correctly.
- Dark Rum – This adds a little spike to the whipped cream, but it can be completely omitted or substituted with your favorite type of rum or liqeuor.
How to Make Coconut Cream Pie
Let's break down the steps for making this coconut pie recipe into three different parts - the crust, the creamy coconut pudding filling, and the whipped cream topping.
Since the custard filling cooks on the stove and sets in the fridge, it's important to bake the pie crust before filling it with the creamy coconut center.
Step 1: Make the Graham Cracker Crust – Pulse the graham crackers and toasted coconut together in a food processor. In a bowl, combine the mixture with sugar, then toss with melted butter until evenly moistened. Press the mixture evenly into a 9-inch pie plate and bake until golden brown, then cool while making the filling.


Step 2: Make the Coconut Cream Pie Filling – Simmer the coconut milk, whole milk, shredded coconut, ⅓ cup of the sugar, and salt until sugar dissolves. Whisk the egg yolks and remaining sugar, temper the yolks, then whisk them into the milk mixture. Bring to a simmer and cook until thick and large bubbles pop on the surface. Remove from heat and whisk in the butter and vanilla. Pour into the cooled crust, press plastic wrap against the surface, and refrigerate for at least 3 hours.


Save This Recipe

Step 3: Make the Whipped Cream Topping – Beat the cream and sugar with an electric mixer to soft peaks, then add the rum and vanilla and beat to stiff peaks. Spread over the chilled pie filling. Sprinkle with the reserved toasted coconut and serve.

Coconut Cream Pie Topping Ideas
If you are not into rum-spiked whipped cream, try a few different toppings:
- Plain Whipped Cream: Omit the rum and make a regular homemade whipped cream.
- Whipped Topping: Use store-bought whipped topping (i.e. Cool Whip) to save time.
- Coconut Whipped Topping: Try a whipped topping made of coconut, like So Delicious Coco-whip, for an extra dose of coconut.
- Meringue: Use a meringue topping instead of a whipped cream-based topping.
- Coconut Flakes: Instead of garnishing with reserved toasted coconut, toast up extra-large coconut flakes and use those instead.
Can You Make Coconut Cream Pie Ahead of Time?
Yes! This pie needs to chill in order to set properly, it’s a perfect recipe to make ahead of time.
If you want to make this pie in advance, you can prep until you have put the filling in the crust. Then, press the plastic wrap directly on the filling and refrigerate for up to 3 days.
I would not add the whipped cream topping until less than a day before serving, as it will weep a bit.

How to Store and Freeze
- Storing Leftover Pie: Store the finished pie in the refrigerator for up to 1 day covered with plastic wrap.
- Freezing instructions: To freeze coconut cream pie, allow the filling to set in the refrigerator for 3 hours with plastic wrap directly covering the filling and then cover with an extra layer of plastic wrap and a layer of aluminum foil before moving to the freezer. Freeze for up to 3 months.
- Thawing Instructions: Thaw the pie in the refrigerator overnight, then top it with whipped cream and serve.
FAQ and Recipe Notes
- Recommended Equipment: 9-inch Pie Plate / Food Processor
- How to Toast the Coconut: Spread the 5 tablespoons of coconut needed for the crust in an even layer on a small baking sheet and toast at 325 degrees F until golden brown (about 9 minutes), stirring every couple of minutes. Set aside to cool and reserve 1 tablespoon for garnishing the finished pie.
- Crust Alternative: If you’d like to use a pastry crust, use my favorite pie dough recipe, and follow directions for how to blind bake pie crust (you want it to be fully baked), then proceed with the filling and topping.
- Leftover Egg Whites: This recipe uses just egg yolks; you can save the whites for an omelet or try any of the following recipes – Angel Food Cake, Pavlova, or Meringue Cookies.
- Why does the custard get watery? When making the custard, it can sometimes be tricky to find the right balance between a nice firm filling and a filling that never quite sets. The biggest culprit when it comes to a runny filling is not letting the cornstarch get going when cooking the filling. You want it to become thick and bubbly before tempering the egg yolks. If it doesn't get to this point, the filling won't set and firm up correctly.

More Delicious Coconut Recipes:
- Coconut Layer Cake Recipe
- Coconut Cupcakes with Coconut Buttercream Frosting
- Oatmeal Dark Chocolate Chip Coconut Cookies
- Coconut Bundt Cake
- Macadamia Nut Coconut White Chocolate Blondies
And More Cream and Custard Pies!
If you make this coconut cream pie and love it, remember to stop back and give it a 5-star rating - it helps others find the recipe! ❤️️

Homemade Coconut Cream Pie
Ingredients
For the Crust:
- 5 tablespoons (17 g) unsweetened shredded coconut
- 9 graham crackers, broken into rough pieces
- 2 tablespoons (25 g) granulated sugar
- 5 tablespoons (71 g) unsalted butter, melted
For the Filling:
- 14 ounce coconut milk, well stirred , not cream of coconut
- 1 cup (240 ml) whole milk
- ½ cup (27 g) unsweetened shredded coconut
- ⅔ cup (132 g) granulated sugar
- ¼ teaspoon salt
- 5 egg yolks
- ¼ cup (28 g) cornstarch
- 1½ teaspoons vanilla extract
- 2 tablespoons (28 g) unsalted butter, cut into pieces
For the Whipped Cream Topping:
- 1½ cups (360 ml) heavy cream, chilled
- 1½ tablespoons (19 g) granulated sugar
- 1½ teaspoons dark rum
- ½ teaspoon vanilla extract
Instructions
- Make the Crust: Preheat oven to 325 degrees. Spread the 5 tablespoons of coconut in a small baking pan and toast in the oven until golden brown, about 9 minutes, stirring every couple of minutes. When cool enough to handle, reserve 1 tablespoon for garnishing the finished pie.
- Pulse the graham crackers and the remaining 4 tablespoons toasted coconut in a food processor until the crackers are broken down into coarse crumbs, about ten 1-second pulses. Process the mixture to evenly fine crumbs, about 12 seconds more. Transfer the crumbs to a medium bowl and stir in the sugar to combine; add the melted butter and toss with a fork until the crumbs are evenly moistened. Empty the crumb mixture into a 9-inch glass pie plate. Press the crumbs evenly into the bottom and up the sides, forming a crust. Bake the crust until deep golden brown and fragrant, about 22 minutes. Cool the crust on a wire rack while making the filling.
- Make the Filling: Bring the coconut milk, whole milk, shredded coconut, 1/3 cup of the sugar, and the salt to a simmer in a medium saucepan over medium-high heat, stirring occasionally with a wooden spoon to dissolve the sugar. When the mixture reaches a simmer, whisk the egg yolks in a medium bowl to break them up, then whisk in the remaining 1/3 cup sugar and cornstarch until well combined and no lumps remain. Gradually whisk the simmering liquid into the yolk mixture to temper it, then return the mixture to the saucepan, scraping the bowl with a rubber spatula. Bring the mixture to a simmer over medium heat, whisking constantly, until 3 or 4 bubbles burst on the surface and the mixture is thickened, about 30 seconds. Off the heat, whisk in the vanilla and butter. Pour the filling into the cooled crust, press a sheet of plastic wrap directly on the surface of the filling and refrigerate until the filling is cold and firm, at least 3 hours.
- Make the Whipped Cream Topping: When ready to serve, beat the cream and sugar in the chilled bowl of an electric mixer at medium speed to soft peaks; add the rum and vanilla. Continue to beat to barely stiff peaks. Spread or pipe the whipped cream over the chilled filling. Sprinkle the reserved 1 tablespoon toasted coconut over the whipped cream and serve. Cover any leftovers with plastic wrap and store in the refrigerator.
Notes
- Recommended Equipment: 9-inch Pie Plate / Food Processor
- Crust Alternative: If you'd like to use a pastry crust, use my favorite pie dough recipe, and follow directions for how to blind bake pie crust (you want it to be fully baked), then proceed with the filling and topping.
- Coconut Milk: Be sure to stir it well before using, and ensure you are using coconut milk, NOT cream of coconut. This is found in the Asian section of the grocery store (or purchased online).
- Unsweetened Shredded Coconut: This is different than what you usually find in the baking aisle (which is sweetened shredded coconut). I have found unsweetened coconut in the natural foods section of the grocery store, and you can also buy it online. You can substitute sweetened shredded coconut, but you may want to reduce the sugar in the filling to compensate.
- Whole Milk - Using whole milk creates a thick and creamy custard; I do not recommend substituting lower fat alternatives or the filling may not thicken correctly.
- Rum: You can omit the rum entirely from the whipped cream to make a regular homemade whipped cream. You may also substitute Cool Whip or coconut whipped topping, So Delicious Coco-whip, or make a meringue for the topping.
- Coconut Flakes: Instead of garnishing with reserved toasted coconut, toast up extra-large coconut flakes and use those instead.
- Leftover Egg Whites: This recipe uses just egg yolks; you can save the whites for an omelet or try any of the following recipes - Angel Food Cake, Pavlova, or Meringue Cookies.
- Storage: Store the finished pie in the refrigerator for up to 1 day covered with plastic wrap.
- Make-Ahead: The pie can be assembled up to pouring the filling in the pie crust. Press the plastic wrap against the surface and refrigerate for up to 3 days before topping and serving.
- Freezing Instructions: To freeze coconut cream pie, allow the filling to set in the refrigerator for 3 hours with plastic wrap directly covering the filling and then cover with an extra layer of plastic wrap and a layer of aluminum foil before moving to the freezer. Use within 3 months.
- Thawing directions: Thaw in the refrigerator overnight before topping with whipped cream and serving.
- Recipe adapted from Baking Illustrated
Did you make this recipe?
Leave a review below, then snap a picture and tag @thebrowneyedbaker on Instagram so I can see it!
Photography by Dee Frances
This recipe was originally published in June 2012.




All of the images on this recipe do not show.
This was amazing! My first attempt at a cream pie, and my husband and I loved it. The vanilla, coconut and hint of rum worked beautifully. Well done!
I noticed several people are having trouble with the custard setting, I wanted to share that if your cornstarch is old, it will not be as effective as fresh. So if your cornstarch isn’t new, try buying some new and trying the recipe again. When I made this recipe it turned out beautifully, I put a meringue on top of mine, I love meringue.
I followed this recipe exactly as instructed, i even read the comments before hand to see all those who tried it, what there results were like. when i was done the taste of this pie was exceptional, as my critics gave it 10/10, however i had to convince them to try it as the appearance was horrible. The same problem encountered by a poster above with a soup like texture is what were my ending results. From review i noted the comment to make sure the custard had obviously thickened and was bursting with bubbles, but several bubbles later and a consistency that was very thick and it still had the texture of clam chowder, that i could ot cut the pie but scoop it out. Any suggestions on how to improve this? It was loved by everyone and are requesting it again, but as a lover of baking i am determined to perfect this pie. Help please! :)
Hi Krystal, Definitely make sure you are cooking it long enough on the stove and that your stove temperature is high enough. If you’re still having trouble, you can try increasing the cornstarch a bit.
Absolutely the best pie ever! I haven’t made a Coconut Creme Pie in about 20 years, so I searched online and this one seemed to be perfect to me after looking at a dozen recipes. I made this for a Memorial Day party this weekend, and it was a big hit! We ate it Sunday, and Mon and Tues all everyone said was – where’s the leftover pie??? Didn’t last more than an hour with 10 people and we loved the pie – not too sweet (even used reg. coconut, no rum in creme), the graham cracker crust was yummy, and I doubled the amount of toasted coconut – one TBSP wasn’t enough for the topping!!! Thanks for a great recipe; all my friends are expectantly waiting for me to make it again, and this time I’m making two at once – I only got a little sliver!!
I’ve made this pie twice now and it is absolutely delicious! It actually works well with skim milk and the crust is to die for! Thanks for the recipe!
I made this pie for a birthday at work today. It was absolutely fabulous and a huge hit. The coconut milk lends both favor and silkiness to the filling, and the coconut in the crust was special (I did use a bit more than called for). I particularly liked the use of unsweetend coconut because I can’t get sweetened organic coconut.
I just had coconut cream pie at Legends on the North Shore yesterday. I say this because it seems you are from the Pittsburgh area. That was the best coconut cream pie I have ever had. So today, I am naturally trying to find what I feel would be comparable and yours looks to be as close as anything – especially the coconut in crust and homemade whipped cream. Please let me know if you have ever had it, if you haven’t – please go. It is $7/slice but well worth it. I am going to make this pie this weekend, can’t wait!!!! As always, your recipes are wonderful – my family has thanked you many times!!!
Hi Becca, I have not been there, but I will definitely check it out and have a slice of the coconut cream pie. Thank you for the recommendation!
I just made this. I don’t make custardy pie fillings often (usually just chocolate), so here’s my question: I tasted the filling when it was still somewhat warm, and it tastes fine initially, but then has a strange aftertaste, almost cornstarchy, or milky. Did I do something wrong? Will this perhaps go away when it cools completely? I’m kind of afraid to offer it to guests tomorrow. Sigh.
Hi Jenni, If it tastes too much like cornstarch, there’s a possibility that the cornstarch wasn’t dissolved and cooked enough in the filling. I didn’t notice any type of aftertaste with this pie.
Actually, it tasted fine after it completely cooled. But it didn’t set up as much as I would have expected. I think maybe I should have stirred the coconut milk better, because the leftover coconut milk was really thick. :-) It’s definitely worth a second attempt!
Yes! This is the perfect cream recipe! I made it for my sister for her birthday, and the only change was that I used a different crust recipe, but otherwise I stayed true to the directions. It. Was. Fabulous. I was so scared that the cream part would be wet, like pudding status, but no sir. The egg+sugar+cornstarch concoction made the pudding set up firm and oh so stable. So happy! Thank you so much for this recipe, and I can’t wait to try making a pineapple pie with this recipe.
I made this last weekend and it turned out amazing! I couldn’t get any dark rum for the whipped topping but it still tasted great. I even added some of the coconut flakes into the topping. Delicious! I would have eaten the whole thing if I didn’t have to share.
Coconut cream pie is one of my all-time faves!
Since I love the taste of coconut, replacing the
milk w/coconut milk (try SoDelicious or Silk brands)
adds more coconut flavor. Otherwise, it doesn’t have
as much coconut flavor as I would like. I also toast
the coconut before adding to the mixture for added
coconut flavor and add 1/2 tsp coconut extract too.
For those w/dairy intolerance, the replacement of
cow’s milk w/coconut milk is helpful and if you can’t
do corn, which is high-glycemic, you can exchange the
cornstarch for tapioca starch as they both have the
same thickening properties. Enjoy! :o)
I don’t believe that coconut milk substitute for regular milk is what this recipe calls for. I used the canned coconut milk (Thai Kitchen Organic) in a can and it came out perfect. Perhaps this confusion is at the root of why some people had trouble with the pie thickening.
That filling–so fluffy and cloud-like and SO VERY DANGEROUS to a coconut lover like myself! Seriously, I could polish off this beauty in one sitting. Gorgeous!
This looks to die for! Cant wait to try it! Thanks for sharing xo C
I made this last night. Chilled it, only to find a soup in a crust. What did I do wrong? I followed your method exactly. I did notice there wasn’t any flour or baking involved, so I wasn’t sure how it was going to set. Is there anything I can do with the pie now, as it taste good, but it’s essentially a soup?
Hi Iris, I’m sorry you ran into some problems with the filling. There is indeed no flour and the filling is not baked, but it is thickened much like a pastry cream – the combination of egg yolks and cornstarch, which are cooked, is what allows it to set up. If your filling had the consistency of soup, it doesn’t sound like it was allowed to cook long enough. While there is a time estimation, it’s only a guideline, and the filling should be cooked until large bubbles burst on the surface and the mixture noticeably thickens.
This divine pie crust is in the oven right now, but wondering if it’s ok to use graham crumbs? I used a combination of both because I had a leftover packet of crumbs. Was there a particular reason you went for whole crackers? Great site!
Hi Iris, I used whole crackers but then crushed them into crumbs.
I’ve never had coconut cream pie but that looks AMAZING! I’m going to make this the very next time we have people over for dinner or something. Mmm-mm-mmmmm!!
And my dad JUST requested coconut cream pie for Father’s Day!
BTW, check the frozen food aisle near the pie crusts and cool whip, I can almost always find unsweetened coconut there.
Oh my gosh, your pie looks fantastic. I like coconut, but the eaters in my house do not. Maybe I can sneak this pie all for myself and make something on the side for everyone else!
wow that looks so delicious! i love love LOVE coconut! thanks for sharing!
I love anything with coconut and this recipe is one of them. Thank you for sharing it with us.
May I know the difference when adding granulated sugar vs. confectioners’ sugar when whipping cream? Thank you.
Hi Ela, Generally, adding granulated sugar to whipped cream or egg whites will produce a more stable, firmer whipped cream or meringue. Adding confectioners sugar will result in a thicker whipped cream.
When you say thicker do you mean fluffier with powdered sugar? Thanks.
My mom and I LOVE coconut! This WILL be made to honor my baby girl being born in July!!!
That looks goooood *-*
The pie is beautiful and it looks absolutely delicious!!
I LOVE LOVE LOVE coconut cream pie. Oh my! I may just have to make this myself!
mmmmm cream pie,looks delish!
Ok this looks beyond amazing! I only learned to love coconut a few years ago, but now I seriously can’t get enough. And that fluffy whipped cream on top is heavenly!
This is one of my favorite pies! This looks absolutely wonderful =)
OMG OMG OMG…. I love anything with coconut… oh and pie… can’t wait for my next get together with my girlfriends to make this!!!
OMG. I could bathe in a vat of coconut on a regular basis if I could afford it. This.looks.phenomenal.