Gluten-Free Coconut Cream Pie

Prep 10 minutes
Cook 26 minutes
Servings 8 servings

Coconut cream pie brings back all the cozy memories of family gatherings and summer potlucks. This gluten-free coconut cream pie keeps all the creamy, dreamy texture of the classic, with a naturally gluten-free coconut macaroon crust and smooth vanilla-coconut filling. It’s the perfect make-ahead dessert for holidays, summer get-togethers, or a laid-back Sunday treat.

Slice of gluten-free coconut cream pie on a white plate with a fork, next to a full pie topped with whipped cream and toasted coconut.

Years ago, I tried a gluten-free coconut cream pie at a restaurant in Santa Fe that reminded me of classic diner desserts—rich, creamy, and full of nostalgic flavor. This version has everything you want: a smooth coconut custard with real coconut flavor, a light and flaky gluten-free crust (no complicated dough here), and a topping of fluffy whipped cream. I also include a dairy-free whipped topping option, so everyone can enjoy a slice. Best of all, it can be made ahead and chilled until you’re ready to serve.

Gluten-Free Baking Tips

  • Stir constantly while the custard cooks to avoid lumps and keep the texture smooth and creamy.
  • Use full-fat coconut milk for the richest, silkiest custard—light versions just don’t compare.
  • Press plastic wrap directly onto the surface of the custard as it cools to keep a skin from forming.
4.96 from 23 votes

Gluten-Free Coconut Cream Pie

Servings: 8 servings
Prep: 10 minutes
Cook: 26 minutes
Chilling Time: 3 hours
Total: 36 minutes
Side view of coconut cream pie with a large slice missing, showing layers of crust, custard, and whipped cream.
This gluten-free coconut cream pie keeps all the creamy, dreamy texture of the classic, with a naturally gluten-free coconut macaroon crust and smooth vanilla-coconut filling. It’s the perfect make-ahead dessert for holidays, summer get-togethers, or a laid-back Sunday treat.
Want to save this recipe?
Just enter your email and get it sent to your inbox! Plus you’ll get new recipes from us every week!

Ingredients 

CRUST

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

FILLING

  • 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

TOPPING

  • 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

Instructions 

CRUST

  • Preheat oven to 350°F (177°C). 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.

FILLING

  • 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.

TOPPING

  • 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 airtight container and refrigerate the coconut whip for up to 3 days. Before serving the pie, spread the coconut whip on top of the pie.

Notes

You can substitute Cool Whip for the whipped cream topping.

Nutrition

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!

How to Make Gluten-Free Coconut Cream Pie Step-by-Step

Gluten-free coconut cream pie ingredients

Gather the Ingredients: Gather all the ingredients together.

Large mixing bowl filled with shredded sweetened coconut, egg whites, and melted butter for the crust mixture.

Make the crust: Preheat your oven to 350°F and lightly grease a 9-inch pie pan with gluten-free cooking spray. In a large bowl, stir together 2 large egg whites, 2 2/3 cups shredded sweetened coconut, and 3 tbsp melted butter (or Smart Balance for dairy-free).

Unbaked coconut crust mixture pressed evenly into a fluted pie dish.

Press the crust into the pie pan: Press the coconut mixture evenly into the bottom and up the sides of the pie pan to form a crust.

Baked coconut crust in a pie dish, golden brown around the edges.

Bake the crust: Bake for 20 to 25 minutes, or until the crust is golden brown. Keep a close eye on it, as oven times can vary. Set aside to cool completely. The crust must be fully cooled before adding the filling.

Custard ingredients in a saucepan before cooking, with visible egg yolks and milk.

Make the custard filling: ​​In a medium saucepan, whisk together 2/3 cup granulated sugar, 1/3 cup gluten-free all-purpose flour (I like Pillsbury), 2 cups milk (use almond, cashew, or coconut milk for dairy-free), and 2 large egg yolks.

Custard mixture in a saucepan beginning to thicken as it cooks.

Boil the filling: Cook over medium heat, stirring constantly, until the mixture thickens and comes to a boil. Let it boil for 1 minute, stirring the whole time to prevent lumps. 

Finished thickened custard with coconut stirred in, ready to pour into crust.

Finish the custard: Remove from the heat and stir in 1 cup shredded sweetened coconut, 1 tbsp pure vanilla extract, and 1 tsp butter (or dairy-free Smart Balance).

Coconut custard filling spread into the baked coconut crust.

Pour the custard into the crust: Pour the custard into the fully cooled crust. Press plastic wrap directly onto the surface of the custard to prevent a skin from forming, then refrigerate for at least 3 hours until fully chilled and set.

Whipped cream ingredients—heavy cream, powdered sugar, and vanilla—added to a glass mixing bowl before whipping.

Make the whipped topping: ​​In a large mixing bowl, combine 16 oz heavy whipping cream, 1 tbsp pure vanilla extract, and 1/2 cup powdered sugar (adjust to taste).

Freshly whipped cream in a glass mixing bowl with stiff peaks formed.

Stabilize the whipped cream (optional): If you want a stabilized whipped cream, add 2 tbsp cornstarch.

Toasted shredded coconut spread on a baking sheet, golden and crisp.

Whip the ingredients: Beat on high speed with a hand or stand mixer until stiff peaks form and the whipped cream is firm.

Gluten-free coconut cream pie in a pie dish, topped with piped swirls of whipped cream.

Optional topping: For extra flavor and texture, sprinkle with toasted coconut. To toast, spread shredded coconut on a baking sheet sprayed with cooking spray and bake at 350°F for 5 to 10 minutes, watching closely to prevent burning.

Coconut cream pie fully assembled with toasted coconut sprinkled over whipped topping.

Top the pie: Just before serving, spread or pipe the whipped cream over the chilled pie. Sprinkle the toasted coconut over the whipped topping, if using.

Side view of coconut cream pie with a large slice missing, showing layers of crust, custard, and whipped cream.

Serve and enjoy: Chill the pie for 10 minutes in the fridge before slicing. Serve and enjoy!

Close-up of a single slice of coconut cream pie on a white plate, with toasted coconut on top and a fork nearby.

Dairy-Free Whipped Topping

  • Place a large mixing bowl and the whisk attachment of your mixer in the freezer for 10 minutes.
  • Open one 14-ounce can of coconut cream that has been refrigerated overnight. Scoop only the solid cream into the chilled bowl, leaving the liquid behind.
  • Beat the coconut cream for about 30 seconds, until smooth and creamy.
  • Add 3/4 cup powdered sugar, 1 tbsp vanilla extract, and 2 tbsp cornstarch, then beat for another minute until fully combined and fluffy.
  • Use immediately or store in an airtight container in the fridge for up to 3 days. Spread the coconut whip over the pie just before serving.

Serving Suggestions

Serve this gluten-free coconut cream pie nice and cold, with an extra dollop of whipped cream and a sprinkle of toasted coconut for that perfect finishing touch—the flavor reminds me of my coconut macaroons in the best way. I love adding a handful of fresh berries on the side for a pop of color and a fruity twist—it makes the whole dessert feel a little more special. It’s especially good on warm days with a glass of iced coffee or even a tropical drink if you’re feeling festive. My family loves this for special occasions including Thanksgiving and Easter and my husband always requests it on Father’s Day!

Storage Instructions

Store the pie covered in the fridge for up to 4 days—it actually tastes even better after a day or two as the flavors meld together.

I don’t recommend freezing this one, since the custard can separate and lose its creamy texture. If you’re making it ahead, go ahead and prepare the crust and filling a day in advance, then add the whipped topping just before serving for the freshest flavor and best texture.

More Warm Weather Desserts

 

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:

4.96 from 23 votes
Subscribe
Notify of
guest
Recipe Rating




50 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Miriam Bell
February 22, 2026 10:20 pm

Made this tonight with help from my 4 yr old. She distracted me and I accidentally put ALL the filling ingredients in the pan at once. Also used coconut cream instead of coconut milk. Even with all my accidents it turned out PERFECT!! My hubs said it was the best one ever. This recipe is a keeper.

Janszan
December 23, 2025 4:32 pm

I see above you said 1tbsp. Vanilla extract and 1tsp of butter.did you mean that vice versa

Amy - Mama Knows Gluten Free
January 8, 2026 1:39 pm
Reply to  Janszan

Hi Janszan, nope 🙂

robert bladen
November 28, 2025 4:54 pm

o my gosh. this is so darn good. we just lived it

Sue
February 26, 2025 1:04 pm

I made this last night. This morning the filling was still runny. Any idea why this didn’t set up for me?

Amy - Mama Knows Gluten Free
February 27, 2025 11:22 am
Reply to  Sue

Hi Sue, Did you let the mixture come to a boil and then stir and boil for 1 minute?

Winston Japhet
November 13, 2024 5:53 pm

Love all of the recipes I’ve made of yours so far! My wife has Celiac disease recently diagnosed and I do most of the cooking SO these nice treats I can make for her , and we help eat some 😉, are extremely helpful! Thank you for your time in helping us! I do hope it’s not to much vanilla . I do use cup4cup flour which seems to work in about everything I’ve made so far. Thanks again

Karen
September 14, 2024 9:07 pm

Love the coconut crust ! It does seem like measurements may be a little skewed. The crust is pretty thick and the filling amount didn’t fill it up. I made and added a full cup more filling. My pie pan is deep dish. I should have made crust much thinner on bottom and much thicker all the way to top of sides. Or maybe recipe could call for less coconut and definitely more filling. Rich and delicious though!

Carolyn T
May 30, 2024 3:24 pm

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.

Kim Martinez
May 18, 2024 9:26 pm

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!

Susan Carlson-Geer
April 18, 2024 4:08 pm

Question~Do I use a gf all-purpose flour with or without xanthan gum?

Sam - Mama Knows Gluten Free
April 19, 2024 10:23 am

Hi Susan, use gf flour with xanthan gum!

S Miller
March 19, 2023 9:52 am

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.

Rosa
December 19, 2024 3:37 pm
Reply to  S Miller

How many days in advance can I make this?