Gluten-Free Coconut Cream Pie {Dairy-Free Option}

5 from 18 votes
Jump to RecipePin Recipe

This post may contain affiliate links. To learn more check my disclosure page.

Sweet and creamy Gluten-Free Coconut Cream Pie. An easy coconut macaroon crust with a vanilla and coconut custard filling topped with fresh whipped cream.

A Gluten-Free Coconut Cream Pie with a slice cut out of it.

Recipe originally posted April 2017, photos updated April 2018. Post updated April 2019 to include the dairy-free option. 

Gluten-Free Coconut Cream Pie

Who likes pie? Especially a cream pie!

Years ago, when we lived in Santa Fe, NM there was a restaurant that served a gluten-free coconut cream pie that was divine. It brought me back to my college days when I waited tables at the Silver Diner in Baltimore, MD.

Desserts, especially cream pies, at diners are world famous.

Have you ever been to a diner and not been able to keep from staring at the gorgeous pies and cakes in the dessert case?

A Gluten-Free Coconut Cream Pie with plates and shredded coconut in the background

Yup, me neither. Being gluten-free, those diner dessert delights were off limits…until now!

I was able to figure out how to make an easy gluten-free coconut cream pie.

Seriously, this recipe does not involve making a complicated, from scratch, gluten-free dough crust (been there, done that).

Think of the crust as a giant coconut macaroon.

The pie filling is a sweet vanilla and creamy coconut custard. The pie is finished with a homemade, whipped cream topping.

Gluten-Free Coconut Cream Pie Recipe Steps photo collage

How To Make Gluten-Free Coconut Cream Pie

  • Mix the egg whites, shredded coconut and melted butter in a large bowl.
  • Pat the coconut mixture into a greased pie pan to make the crust. Bake for 20-25 minutes at 350 degrees.
  • In a medium saucepan, mix gluten-free flour, sugar, milk (or dairy-free milk) and egg yolks.
  • Cook and stir until mixture comes to a boil. Boil for 1 minute (use timer).
  • Remove from heat and add coconut, vanilla, and butter (or dairy-free butter).
  • Pour the custard filling into the baked coconut crust and refrigerate for at least 3 hours.
  • Make the homemade whipped cream (or dairy-free whipped topping) to spread or pipe on top of the pie before serving.
  • Enjoy!

A slice of gluten-free coconut cream pie on a plate with the pie and toasted coconut in the backgorund

Dairy-Free Option

This gluten-free coconut cream pie can also be made dairy-free. There are three of us in my family (including myself) that are also dairy-free, so I always try and have a dairy-free option to my gluten-free recipes.

For this recipe, I use either unsweetened almond, cashew or coconut milk and Smart Balance buttery spread for the custard filling. For the crust, I substituted Smart Balance buttery spread for the butter in the recipe.

To make the whipped topping dairy-free I used a can of cream of coconut that I refrigerated overnight.  I scraped out the top of the chilled and thickened coconut cream (leaving the liquid behind) and used the hardened coconut cream. The coconut cream makes for a lovely dairy-free whipped topping.

So now you can enjoy a gluten-free and dairy-free coconut cream pie!

This gluten-free coconut cream pie is sweet, creamy and dreamy.  It is perfect for any occasion or no occasion at all!

More Gluten-Free Dessert Recipes To Try!

Gluten-Free Coconut Cream Pie


5 from 18 votes

Gluten-Free Coconut Cream Pie {Dairy-Free Option}

Servings: 8 servings
Prep: 10 minutes
Cook: 26 minutes
Chilling Time: 3 hours
Total: 36 minutes
Gluten-Free Coconut Cream Pie
Sweet and creamy Gluten-Free Coconut Cream Pie. An easy coconut macaroon crust with a vanilla and coconut custard filling topped with fresh whipped cream. Recipe with a dairy-free option.



  • 2 2/3 cups shredded sweetened coconut
  • 3 tablespoons melted butter, , dairy-free use Smart Balance butter
  • 2 large egg whites


  • 2/3 cup granulated sugar
  • 1/3 cup gluten-free all-purpose flour, (I like Pillsbury gluten-free)
  • 2 cups milk, dairy-free use almond, cashew or coconut milk
  • 2 large egg yolks
  • 1 cup shredded sweetened coconut
  • 1 tablespoon pure vanilla extract
  • 1 teaspoon butter, , dairy-free use Smart Balance butter


  • 16 ounces heavy whipping cream
  • 1 tablespoon pure vanilla extract
  • 1/2 cup powdered sugar, I like my whipped cream sweet. Adjust to your liking
  • If you want your whipped cream to be stabilized add 2 tablespoons of cornstarch.

Dairy-Free Topping

  • 1 (14-ounce) can coconut cream, ,refrigerated overnight
  • 3/4 cup powdered sugar
  • 1 tablespoon pure vanilla extract
  • 2 tablespoons corn starch



  • Preheat oven to 350° F. Grease 9-inch pie pan with gluten-free cooking spray.
  • In a large bowl combine egg whites, shredded coconut and melted butter (or dairy-free butter) in a bowl
  • Pat coconut mixture into pie pan to make the crust.
  • Bake crust for 20-25 minutes or until golden brown. Please watch your crust because all ovens are different.


  • In a medium saucepan, mix gluten-free flour, sugar, milk (or dairy-free milk) and egg yolks.
  • Cook and stir until mixture comes to a boil. Boil for 1 minute (use timer).
  • Remove from heat and add shredded coconut, vanilla, and butter (or dairy-free butter).
  • Pour the custard filling into crust. Cover and refrigerate for 3 hours.


  • Combine heavy whipping cream, vanilla, and powdered sugar in a large bowl.
  • Use a mixer on high speed until stiff peaks form and it becomes firm. This pie works best with really firm whipped topping.
  • Before serving, either spread or pipe the whipped cream on top of the pie.
  • Optional: sprinkle with toasted coconut. To toast coconut, spray a baking sheet with cooking spray. Sprinkle shredded coconut on pan and toast in the oven at 350 degrees for 5 to 10 minutes.

Dairy-Free Topping

  • To make the topping: chill a large mixing bowl and whisk attachments of a mixer in the freezer for 10 minutes. Scrape out the top of the chilled and thickened coconut cream (leaving the liquid behind) and place the hardened coconut cream in your chilled mixing bowl. Beat for 30 seconds with a mixer until creamy. Then add vanilla, confectioners’ sugar, and corn starch and mix for 1 minute until creamy and smooth. Use immediately or cover and refrigerate. Place in an air-tight container and refrigerate the coconut whip for up to 3 days. Before serving the pie, spread the coconut whip on top of the pie.


Mama says "Check all of the labels!"
You can subsite cool whip for the whipped cream topping.


Serving: 1sliceCalories: 694kcalCarbohydrates: 42gProtein: 8gFat: 56gSaturated Fat: 42gCholesterol: 145mgSodium: 120mgPotassium: 371mgFiber: 7gSugar: 30gVitamin A: 1145IUVitamin C: 1mgCalcium: 127mgIron: 1.7mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Additional Info

Course: Dessert
Cuisine: American
Tried this recipe?Mention @mamaknowsglutenfree or tag #mamaknowsglutenfree!

About Audrey Roberts

I'm Audrey Roberts, a busy mama of four and I love sharing the recipes that I make for my family. I make gluten-free family-friendly recipes that are simple and delicious that you can too! I use easy to find ingredients that won't break your budget. You will also find dairy-free options and Paleo recipes. I am also the author of The Everything Gluten-Free & Dairy-Free Cookbook, which is an Amazon Best Selling Cookbook in the US and Internationally. Living gluten-free since 2010. I hope by me sharing my journey it may help you with yours.

You Might Also Like:

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating


  1. After I made this recipe and looking at other recipes online, I think you meant to type 1 teaspoon of vanilla and 1 Tablespoon of butter. You reversed them in the above recipe. I haven’t tried the pie yet, but I hope I didn’t ruin it by putting in 1 T of vanilla.

  2. This pie is delicious! This recipe has made me quite popular with my daughter-in-law who suffers from celiac decease. I was doing ok before, but now I’m golden! 💫
    Thank you so much!

  3. Prepared as written for GF and dairy free — it was perfection! The macaroon crust is amazingly simple, but oh—so-good for coconut lovers. The overall sweetness level did not drown out the coconut flavor. One comment I received what “where’s the chocolate?” Which could easily be added/drizzled if desired. Thank you for a marvelous, easy and super delicious recipe.

  4. Great GFDF recipe! Good flavor using canned creamy coconut milk. Easy to make. The first time I made it I was making pies for Thanksgiving so made a GFDF regular crust instead of the coconut crust as was also making a GFDF pumpkin pie. Turned out great! The second time for Christmas, I made the coconut crust as in the recipe. It was fine too but personally we preferred the regular GFDF flour crust made with 1/2 lard, 1/2 vegan butter and vodka. The coconut crust is much faster, so if in a time pinch would make that crust. Thanks for a go-to recipe that turns out great!

  5. This is an award winner recipe . I have been on a gluten free and sugar free diet for 5 weeks and needed a sweet fix. I wanted to use honey instead of sugar and to my surprise it turned out great. The crust was super simple and delicious. I used unsweetened coconut and did not notice anything different. For the filling, I substituted 1/2 cup honey for the sugar, using coconut milk, and added 1 Tbsp cornstarch, and again used unsweetened coconut. It turned out wonderful. I also used cool whip for the topping. Thankyou so much.

  6. I just made this for Thanksgiving and it was a huge hit!! I should have piped the whipped cream on top because my version wasn’t nearly as beautiful but it tasted delicious 🙂 I think next time I might go for a deep dish pie plate to equal out the coconut cream and the whipped cream ratios. But this is a keeper and the crust was super easy to make. Thank you!

  7. I made this pie for our Easter dinner dessert. I was sceptical of the macaroon crust, and if it would be too much coconut, but you know what, it was wonderful. I made this recipe dairy free, using coconut oil for my butter. I also substituted a 1/4 of the sweetened coconut for unsweetened at each step just to play it down a little as I was worried about the dessert being too sweet, and the end result was perfect. Thank you for such an interesting recipe, it made for a very happy dinner table.

  8. Deliciously wonderful filling/pudding. I made a half recipe. I have used sugar substitute before in similar recipes and it works well. I didn’t this time but made 3 smaller pudding cups for family members watching blood sugar. I used 2 tablespoons cornstarch for the recipe, almond milk and smart balance. Just cooked on top of stove until thickened. Will add some gluten free cookie crumbles on top. Next time will make the pie. Thank you for all your delicious recipes. It takes a long time to maje them just right.

  9. Absolutely scrumptious! I used a gluten-free graham style pre-made crust and Cool Whip for the topping. It looks exactly like the recipe picture. I also added a few drops of yellow food coloring to the filling to get the desired color. Thanks so much for this wonderful recipe!

  10. One word: YUMMMMMMM!!!!!!!!!!!! This was super easy to make too. One tip, DO NOT stop whisking your filling when it is heating, the gluten free flour will settle to the bottom of the pan and scorch.

  11. This Coconut Cream pie recipe is Amazing! Thank you for sharing it. My family tried it and loved it. This is our new favorite pie!

  12. i make the crust from this recipe and used jello cook and serve coconut cream pudding with additional coconut for the filling. which is gluten free and it was amazing. loved the crust. thanks for the recipe. cant wait to try the full recipe sometime

  13. You really know your stuff. Our favourite pie is coconut cream. I always thought coconut cream pie was a difficult pie to attempt but this was so easy and a real keeper recipe. Will definitely make again and again

  14. This year for Thanksgiving I decided to make homemade gluten free pies! Thank you so much for this recipe! I love your blog!! My family loves coconut cream pie and I was thrilled when I found this recipe! The pie is delicious, perfect amount of sweetness and the custard is creamy and the whipped topping was amazing, love the tip about putting corn starch in to make the cream stay firm. Worked like a charm! My family loved this pie.
    The only thing I would do different, and this is truly just a preference thing, is I would give it a regular gf pie crust (I can’t wait to try your recipe!). The coconut macaroon crust was almost a little too much coconut for me. And I would also double the amount of cream in the center, or at least 1 1/2 the recipe for the custard, but this is only my preference as the custard is my favorite part. Thank you for this recipe, I love your blog and can’t wait to try more of your recipes!

    1. Thank you so much for the wonderful recipe review and your kind words about my blog! I am so happy that you enjoyed the coconut cream pie. The custard is my favorite part of the pie too. I am glad that the tip about the starch was helpful. I hope you enjoy my traditional crust recipe as well. You are so welcome, I love sharing what I make for my family. Thanks again and I hope you enjoy other recipes that you try!

  15. I want to try this recipe this week for a friend’s birthday. He has celiacs and said coconut cream pie is his favorite …and he hasn’t had it for years. I see someone used Almond milk and it turned out ok, fingers crossed for this option. Wondering if you can use a traditional meringue and bake it in the oven to brown the peaks?

    1. Hi Pam! I have not tried making this recipe with a traditional meringue. If you try it, please let me know how it turns out. I hope you both enjoy the pie!

  16. Went a step further and made this dairy free, by using almond milk (unsweetened) and making an Italian meringue for the topping. It made a great birthday pie for the husband and gave me an excuse to use the blow torch. 😀

    1. Thank you Amy for the wonderful 5-star recipe review! Wow…an Italian meringue sounds amazing! I have made the pie dairy-free as well. I need to update the recipe to include a dairy-free option. Happy Birthday to your husband! I am so happy that you enjoyed the pie. Thank you again!

    1. Hi Judy! You can make the fresh whipped cream ahead of time just cover the bowl with plastic wrap or put in an airtight container and keep in the refrigerator. I hope you enjoy the coconut cream pie!

    1. Hi Denise! I have not tried this recipe with coconut flour. It probably will not have the same results because coconut flour is much denser than rice flour.

    1. Hi Pat! I have not tried this recipe with lactose-free milk, coconut or almond milk. I am planning on working on a dairy-free option using coconut milk after the New Year. If you try before then, it will you please let me know how it turns out?

      1. I tried this with Thai Kitchen Coconut Cream and it was amazing. I’ve made this recipe four times and it was by far the best… I think I’m going to try something with a dark chocolate cream s d rhe coconut crust… also Almond Joy. I love your recipes..

  17. OMG!!!Hosting Thanksgiving this year I was in search for a desert for me( celiac disease) Googled for such and your site came up!,,, so to make a long story short!,, I had to try it now , made this pie yesterday and would not change a thing!,,I’m gonna be making this and hope I get a piece!,
    Thank you !!! Will be try more recipes!!! Especially chicken and dumplings

    1. Thank you so much for the wonderful 5-star recipe review! It makes my heart so happy to hear that you enjoyed the pie! I made it for Thanksgiving one year to bring to a friend’s house and no one even knew it was gluten-free. It’s one of my family’s favorite pies. I hope you enjoy other recipes you try. My family LOVES the gluten-free chicken and dumplings too! You are so welcome I love sharing what I make for my family. Thank you again.

    1. Hi Diane! I have never tried it with coconut milk before. I have done a lot of dairy-free baking, but not with this recipe. If you try it please let me know how it turns out.

    1. Hi Tricia! I have not tried a sugar substitute with this recipe, but I know that a lot of people bake successfully with Stevia. If you try it please let me know who it turns out.