Coconut Cream Pie
Of all my pie recipes, this coconut cream pie recipe may be my family’s favorite. At least it’s a close tie with Chocolate Cream Pie. It’s a luscious coconut custard pie with whipped cream. I have a lot of eggs and milk that I need to use up today, so it’s on the menu!

Like all cream pies, this coconut cream pie filling features a custard base. The great thing is that if you can make one type of cream pie, you easily can make two at the same time. The custard base is also the start of many other desserts, including banana pudding.
Traditionally, custards are made with only cream and eggs. In that way, this is really the perfect farmhouse recipe – if you’re keeping chickens and cows, then you probably have a steady supply of the primary ingredients.
Before we get to the full recipe below, let’s tackle the custard base of this coconut cream pie.
As I’ve said, if you can get the base of this pie down, then it just enables you to make so many other dessert recipes along with it!
Making the Custard Base
To start on the custard base, whisk together your egg yolks with milk. At the same time, you’ll be cooking a sugar and corn starch mixture in a stockpot.
Once you’ve got that egg and milk mixture whisked together all nice and smooth, slowly add it into the stockpot with the sugar and cornstarch.
Continually whisk over medium high heat for about 8 minutes or until it begins to thicken.
Since I added cornstarch to the eggs and milk, I am actually making a pastry cream. Anytime you thicken with flour or cornstarch, it becomes a pastry cream.
You technically don’t have to add the cornstarch to this recipe, but it’s an extra step I usually take to ensure my pie will set, plus the starch prevents my eggs from curdling.
I don’t add it when I am making a quiche or savory custard tart with meat or vegetables in it (those recipes also use this same custard base).
Just about every culture features a staple custard recipe.
Custard pies were very popular in the Middle Ages and were served in crusts, just like the one I plan to use to serve this pie.
Click here for my no-fail homemade pie crust recipe. You could also use a store-bought pie crust.
Okay, now that it is thick to my liking, I’m going to add the butter with a pinch of salt and vanilla. The butter will give your coconut cream pie a nice silky, shiny texture. Add the butter one tablespoon at a time, making sure each one melts before adding the next.
Making the Coconut Cream Filling
Next, add the coconut. This is a coconut cream pie recipe, after all, and the creamy coconut filling is undoubtedly the star. The coconut flavor comes from 2 cups of flaked coconut rather than coconut milk or cream. Note that this recipe uses sweetened flaked instead of sweetened shredded coconut. The flakes are thicker and wider than the shreds and so will give you a richer coconut flavor.
Transfer the custard to a bowl and place plastic wrap over it, making sure it touches the custard so that a film doesn’t form on the top.
Place it in the refrigerator until it’s completely cool.
Once it’s chilled, I can pour it into my pie shell. When you’re ready to serve, cover it in homemade whipped cream and sprinkle coconut over the top.
I like to double this recipe for the custard base.
You can use the extra to make a chocolate pie or banana cream pie from the same recipe.
At the step you would put the coconut into the custard, you could put melted chocolate or add banana flavoring and place over vanilla wafers with sliced bananas.
If you want to go light, you could substitute Cool Whip or other ready-made whipped topping for the whipped cream.
Toast the Coconut Topping
For a finishing touch, toast the remaining coconut flakes until golden brown and then sprinkle over the whipped cream topping.
There you go! One method of preparation for 3 different recipes. I hope you’re ready for some pies!
How do you prevent a soggy coconut cream pie?
Usually, a soggy crust happens when you start with an unbaked flour crust. You can avoid this problem by blind baking the crust. That just means pre-baking the crust before you add the cream filling.
Steps to Blind Bake Pie Crust: Chill the crust for at least 30 minutes. Then line it with parchment and fill with pie weights. (Dried beans will work just fine.) Bake until the edges are golden. Then remove the weights and continue baking until the bottom of the crust is lightly browned.
Can coconut cream pie be frozen?
Yes, carefully! If you want to freeze portions to thaw individually, first let the pie cool completely. Then wrap each portion tightly in plastic wrap. The airtight wrapping will prevent freezer burn. Add a layer of aluminum foil wrapping for extra protection. Rest pie on a flat surface in the freezer, without anything on top of it. The pie will stay good in the freezer for about 2 months.


Coconut Cream Pie
Ingredients
For the Coconut Cream Pie
- 1 cup sugar
- 1/3 cup cornstarch
- 3 cups milk
- 4 large egg yolks
- 1/3 cup butter
- 1 pinch kosher salt
- 2 teaspoons vanilla
- 2 cups sweetened flaked coconut divided
- 1 prepared pie crust (flour or graham cracker crust)
- whipped cream (see instructions below)
For the Whipped Cream
- 2 cups heavy whipping cream
- 6 tablespoons powdered sugar
- 1/2 teaspoon vanilla extract
Instructions
For the Coconut Cream Pie
- In a medium-size heavy saucepan, whisk together sugar and cornstarch. In a large bowl, whisk milk and egg yolks. Begin to slowly whisk milk and egg mixture into the saucepan with the dry ingredients. On stove, bring mixture almost to a boil (medium heat) and whisk continuously until thickened, about 8 minutes. Remove from heat.
- Add butter, one tablespoon at a time, allowing each one to melt completely before adding the next, while continually stirring. Add the extract, salt, and 1 3/4 cups coconut, until combined. Save the rest of the coconut to sprinkle on top. Pour custard into baked pie shell. Cover with plastic wrap, making sure the wrap is touching the custard, and cool on a wire rack for about 30 minutes. Place in the refrigerator to chill until set.
- Preheat oven to 350 degrees. On a sheet pan, optionally lined with parchment paper, place the remaining coconut and bake for 5 to 6 minutes or until the coconut is lightly toasted. Turn pan and stir once during the cooking cycle.
- Remove pie from refrigerator and spread whipped cream all over the pie. Sprinkle with toasted coconut.
For the Whipped Cream
- In a stand mixer or electric mixer, whip cream at a high speed until it's foamy with stiff peaks and has increased in volume. Add vanilla and then slowly add sugar until soft peaks form.
Oh my goodness, this has to be one amazing pie. Looks divine!
Thank you so much Julie! I adore this recipe. It’s easy and always a winner.
This looks yummy. Glad I found your site. I love coconut cream pie so will definitely try this. I do have a question on the amount of salt though. In the video you just say a pinch. The written recipe says a tablespoon??? A tablespoon seems like too much to me. Thanks for recipe. Will check out more of your blog.
Thanks Susan. I changed the recipe to read “pinch.” Originally, I meant 1 teaspoon. I hope you make the pie! I think you will love it.
Love this!! Jus made it and oh so good!!thank you so much for this recipe!
Sunshine, You are welcome! I’m so glad it worked out!
Oh my goodness!! I made this coconut cream pie for Easter, yesterday.. it is sooooo good. I followed the recipe exactly. Looked beautiful and tasted delicious .This recipe is deff a keeper.
Lynda, I’m thrilled that it was great for you. I do love this recipe. I’m working on a few other pie recipes right this minute that I think you are going to love. I can’t wait to share the. Thanks so much for letting me know!
Great recipe, love it. I have a question. I have unsweetened flake coconut,, can I use it and add more sugar ? if so, How much sugar do I add per cup of unsweetened flakes ?
Gary, you can just used the unsweetened flakes and not add more sugar at all to the pie. The toasted ones on top will be fine too even if unsweetened; they will just not be as sweet but will still have the coconut flavor!
Pie was delish but 4 lg egg whites did not yield the tall fluffy meringue that was pictured with recipe -disappointed in presentation!
Thx
Martha
Thanks for letting me know. It has worked for me, but often I do use more than 4 egg whites to make a really big meringue. If the weather is humid (which Often it is in Alabama), I have to use more. They will shrink on humid days.
Confused, is the topping whipped cream or egg white meringue?
Recipe doesn’t mention browning after topping is added, picture appears browned.
Thanks
Hi Colleen!! Thanks so much for asking. I can certainly see why that is confusing. I am changing the photo that is in the print recipe box to the one with the whipped cream topping. You can make it both ways, so I posted the picture of the meringue in the post and link to the meringue recipe on my chocolate meringue pie, BUT I need to change the other photo out!! Thank you so very much!! Hope you enjoy the pie. It’s one of my family’s favorites.
Plan to try the Coconut Cream pie recipe but I would also like the recipe for Chocolate Cream pie (my very favorite).
Nancy, I know you will love the Coconut Cream Pie. It’s a winner in our house. Here’s my Chocolate Meringue Pie recipe. It’s fantastic. Just add whipped cream if you don’t want the meringue. https://stacylynharris.com/grandmamas-chocolate-meringue-pie/
So easy and tasty
I am so glad you liked it!!
The filling tastes like Grandma’s!
That makes me so happy!!
Great pie! And great egg custard base! Your egg custard base is perfect for homemade banana pudding egg custard and chocolate pie.
Thanks!! I use it for all the pies you mentioned! It’s so versatile.
Awesome pie, and very easy to make, the hardest part is waiting on the filling to cool. I made it for my daughter’s birthday because coconut pie is her favorite.
I love that!! I hope she loved it!
I love it!!! Thank you so much! It’s my dad’s favorite pie and glad I ran into your recipe. I have a picture to share!
I’d love to see your picture!
Recipe was easy and detailed this pie is delicious
Great pie recipe has detailed instructions and tastes delicious.
watched the video & made the cream filling like you did but the filling didn’t set like yours. It’s a bit soft even after being in the fridge for 3 hours. what could I have done wrong?
Make sure you use whole milk, real butter at the end, enough cornstarch and you cook it long enough to make it thick but not scorch. The cornstarch with the egg yolks should have made it thicken up nicely.
I reheated the filling let it cook a bit longer & it thickened up!!! yay!
I also made another base & added chocolate to it. Made 2 1/2 & 1/2 pies. 1 for d-i-l’s 40th birthday!!! This is a great recipe, thank you.
I am so glad Judi! That is music to my ears! Hope it was a happy birthday celebration!
Amazing! Made it for the holidays and everyone thought I bought it from a bakery. Wanted to make a chocolate cream. You mentioned the same base but adding chocolate instead of coconut. In your chocolate meringue pie recipe the base is slightly different. Can I just add 3 Tbsp of cocoa to the coconut cream pie base? Thanks for your help!
Thank you very much. This is so great to hear. You’ll need to add about 1/4 cup melted chocolate morsels (semi-sweet) and 3 heaping tablespoons of cocoa. You are going to love it!
Not sure if I put a star rating on my comment. This pie is a definite 5 star!
Thank you so very much. It means a lot.
I made this coconut cream pie for a co-worker’s birthday. Everyone LOVED it!!! It was wonderful…extra creamy and super easy to make.
I am so so happy to hear that!! Thanks so much for letting me know!
made 2 coconut cream pies for Easter tomorrow, love your video, I usually don’t watch them, and I’m SO glad I watched yours, Stacy, bc it was so engaging! I have a question about freezing a whole pie…any thoughts?
You can definitely freeze this coconut pie. I wouldn’t put any whipped cream on the top, but you can freeze the pie with the filling.
I made this pie for a gentleman who adores coconut cream pie, and this is what he texted me: “OMG, that was the BEST coconut creme pie I’ve ever had, and I’ve had a lot of them. It was perfect. Janice, you need to open a “Pie ‘n Coffee Cafe”. Seriously, it was great, thank you.”
This is great! Thanks Janice for letting me know. Makes my day for sure.
I cannot believe how easy this recipe was. The Coconut Cream Pie turned out perfect. Rich, creamy, perfect.
I’m so glad you liked it!
Is this an 8 inch pie plate? It seems as if it should be but it would certainly be helpful for a novice baker to know for sure.
Yes, I’d make it in an 8-inch pie plate. Thanks for asking.
Turned out really good. The only thing I did different I had unsweetened coconut flakes I needed to use up, but I liked it with unsweetened coconut since filling was already sweet.
I thought it would turn out great even with unsweetened coconut. I am so glad you like it!
excellent 5 stars i replaced 1 t vanilla with 1 t of coconut extract
can this pie be made a day or 2 ahead of tine without compromising the quality?
Yes, Amy. You can make this pie 2 days ahead. It will be great.
This coconut cream pie is awesome!! I made 2 and they were gone by day 2!!!! Omgoodness, so delicious! My family is asking when will I make it again! The custard is velvety smooth and the whipped cream topping is so good!!
I’m so happy I found you!
I’m looking forward to going through more of your recipes, to see what I will make next!
Any recommendations?
Oh, and a big Thank you from my family and neighbor!
I am so glad you liked it!! Truly makes me so happy. Thanks for letting me know.
oh good grief! we did everything but lick the plate clean. So creamy and cococutty and NOT overly sweet. I did use coconut extract in both the pie and the whipped cream because -well, I had it! I will definitely be making this dish of deliciousness again!
That makes me so very happy! I hope it becomes a tradition forever in your home.
thank you so much for a great recipe. I have unsweetened flaked coconut. Can I use it and add more sugar ? If I can, how much sugar to add for 2 cups of unsweetened coconut ?
I would just go ahead and use the unsweetened coconut and go with that! I think it will be marvelous.
Delicious! Directions are clear and easy to follow. I toasted the coconut in a skillet instead of firing up the oven. Thank you for sharing!
So glad it worked great for you. That’s a great way to toast coconut!
1st time ever making a custard style pie from scratch your recipe is easy to follow I’m confidently taking this to a friend’s for game night. the custard came out great the topping beautifully whipped and the coconut toasted on top it looks like I bought it from a bakery.
This makes my day! I love this recipe so very much. Glad you liked it!