Keto Coconut Cream Pie

Annie Lampella @ Ketofocus

By Annie Lampella, Pharm.D.

Published February 18, 2025 • Updated March 9, 2026

Reader Rating
4.7 Stars (9 Reviews)

This post may contain affiliate links. See my disclosure policy.

I've made a lot of low carb pies, and this keto coconut cream pie is the one I keep coming back to. Flaky almond flour crust, silky coconut custard, sugar-free whipped cream on top.

I’ve made a lot of pies since going keto. My pecan pie, my chocolate cream pie, my pumpkin pie. They all turned out close to the originals, and I was pretty happy with my lineup. But this coconut cream pie is on another level. It doesn’t taste gluten-free or sugar-free. It just tastes like pie.

A bite taken out of the tip of a slice of coconut pie.

Why this pie is the best

  • The crust actually flakes. I use my flaky keto pie crust, which rolls out and handles like traditional pastry dough. The cream cheese matters more than you’d think here (fat content, a little acid, and it keeps everything from crumbling when you transfer to the pan). I’ve had readers tell me their family didn’t believe the crust was almond flour.
  • Arrowroot powder instead of xanthan gum. Most low carb pie recipes thicken the custard with xanthan gum or cornstarch. I chose arrowroot powder because it’s neutral in flavor and stronger than flour, so I need very little. No gummy aftertaste, no weird texture. If you’ve been disappointed by other versions, this is the difference.
  • The filling sets up clean. Nut milk, heavy cream, egg yolks, butter, coconut and vanilla extracts, plus a concentrated coconut base that pulls the whole flavor forward. I tested this custard more times than I want to admit, and this combination is what finally gave me slices that hold their shape on the plate even after sitting out through dinner.

One swap I love: a reader named Rachel replaced the milk with full-fat coconut cream and said the filling went from subtle to genuinely coconutty. I’ve been doing the same thing ever since. If you want more coconut flavor, try that swap. You’ll taste the difference immediately.

Another thing: toast your shredded coconut before sprinkling it on top. I do mine in a dry skillet for a couple of minutes, watching it close because it burns fast. That toasty, almost nutty crunch on every bite makes a real difference in the finished pie.

This pie takes some time (you’re blind baking a crust, cooking a custard from scratch, and whipping a topping), but every component can be made ahead. I break that down in the sections below. What I can tell you is that the finished pie slices clean and stays firm for days in the fridge. If you’ve tried other versions and ended up with runny filling or a crust that fell apart, give this one a shot.

How to get the custard right

The custard is where most people run into trouble, and I get it. I’ve overcooked it, undercooked it, and watched it curdle on the stove more than once before I figured out the window. Cook it over low heat for 10-12 minutes, stirring the entire time, until it reaches the consistency of thick runny yogurt. That’s the target. If you pull it too early, the filling won’t set and you’ll cut into a runny mess. If you cook it too long or turn up the heat, the egg yolks curdle and you’ll see little scrambled bits in the custard.

Pour it into the baked crust while it’s still warm (it thickens more as it cools and bakes), and trust the jiggle. When the center wobbles like jello but the edges are slightly puffed, it’s done. Then cool at room temperature for an hour before refrigerating. I know it’s tempting to cut into it early, but the filling needs those 2-3 hours in the fridge to fully set.

Youtube
639K+ subscribers
Discover More Keto Recipes on Our Channel

Explore 684+ keto recipe videos with step-by-step instructions, tips, and tricks to make keto easy.

Recipe
Print Pin

Keto Coconut Cream Pie

4.7 (9) Prep 30m Cook 45m Total 75m 12 servings

Flaky Keto Pie Crust Ingredients

Keto Coconut Cream Filling Ingredients

  • 1 cup milk of choice
  • 1 cup heavy cream
  • 1/2 cup sugar-free sweetener
  • 6 large egg yolks
  • 1 1/2 tablespoons arrowroot powder
  • 1 tablespoon unsalted butter, softened
  • 1/2 teaspoon coconut extract
  • 1/2 teaspoon vanilla extract
  • 3 tablespoons coconut cream

Coconut Whipped Topping Ingredients

  • 1 cup unsweetened shredded coconut
  • 2 cups heavy cream
  • 1/4 cup sugar-free sweetener
  • 1 teaspoon vanilla extract

Step by Step Instructions

Step by Step Instructions

1
Make the pie dough

Start by making the pie crust. Add almond flour, coconut flour, xanthan gum and salt to a food processor. Give a quick pulse to combine. Add in chilled, cubed butter and cream cheese. Pulse until coarse crumbles form. Add egg and vinegar. Pulse until combined and a dough ball forms.

Pie dough in a food processor.
Tip I put the cubed butter in the freezer for 30 minutes to chill before using. Keeping the butter cold and in visible chunks is the key to creating flaky crust.
Ingredients for this step
  • 1 cup almond flour
  • 3 tablespoons coconut flour
  • 1 teaspoon xanthan gum
  • 1/2 teaspoon salt
  • 1/2 cup unsalted butter, chilled & cubed
  • 1 ounce cream cheese, softened
  • 1 large egg
  • 1 1/2 teaspoons white, rice, or apple cider vinegar
2
Flatten and chill

Flatten the dough into a circle disc in between two sheets of parchment paper and refrigerate for 30 minutes.

A ball of pie dough on a sheet of parchment paper next to a rolling pin.
Tip This will chill those butter chunks and prevent them from melting into the dough as you roll out the crust.
3
Roll it out

To roll out the dough, place a damp paper towel on the counter and the parchment sandwiched dough on top. This will keep the parchment paper from sliding around the counter. Using a rolling pin, roll out the dough into a pie crust about ⅛ to ¼ inch thick – enough to fit a 8-9 inch pie plate. Keep the dough sandwiched between the parchment paper as your roll it out. Start from the center of the disc and work your way out in all directions. If the parchment paper crumbles or wrinkles beneath the dough, flip and carefully remove the parchment and replace back on and continue rolling.

Pie dough rolled out to a thin circle and sandwiched between sheets of parchment paper.
Tip Flip the sandwiched dough upside down as you roll out to get out the wrinkles formed on the underside.
4
Place dough in pie pan

Remove the top layer of parchment paper. Place pie pan upside down over pie crust. Hold one hand on the pie pan. Slide your hand under the bottom parchment paper and flip so the pie pan is on the bottom and crust is on the top. Remove the parchment paper.

Pie dough placed in a pie plate with the edges draped over.
5
Blind bake

Gently press the pie dough into the pie plate. Flute the ends of the crust. Prick the bottom of the crust all over with a fork. Add a sheet of parchment paper on top of the crust and fill with pie weights. This will keep the crust from puffing up on the bottom. Bake at 350°F for 10-15 minutes or until the edges turn golden brown.

A blind baked pie crust with fluted edges.
Tip Pie will bake again when you add the filling so don’t overbake.
6
Start making custard filling

Start making the filling as the pie crust cools. Decrease oven temperature to 325°F. Pour milk of choice, cream and sugar-free sweetener into a medium saucepan. Over medium heat, bring to a boil and remove immediately once boiling. Set aside.

Cream and sweetener mixture in a saucepan with a spatula inside.
Ingredients for this step
  • 1 cup milk of choice
  • 1 cup heavy cream
  • 1/2 cup sugar-free sweetener
7
Beat the yolks

Pour egg yolks into a large bowl. Beat yolks using an electric mixer until fluffy and pale yellow in color. Add arrowroot powder and butter, continue beating until combined. Add coconut and vanilla extracts, and coconut cream. Set the mixer to low speed and slowly pour in the warm cream mixture into the egg mixture.

An electric mixer mixing a creamy egg yolk mixture.
Ingredients for this step
  • 6 large egg yolks
  • 1 1/2 tablespoons arrowroot powder
  • 1 tablespoon unsalted butter, softened
  • 1/2 teaspoon coconut extract
  • 1/4 teaspoon vanilla extract
  • 3 tablespoons coconut cream
8
Let the custard thicken

Once combined, pour the filling back into the saucepan and cook over low heat for 10-12 minutes, stirring constantly, until the custard has thickened to the consistency of thick runny yogurt.

Thick coconut custard in a saucepan.
Tip If you don't let the custard thicken enough, it won't set up properly. If you heat it for too long, it will curdle.
9
Bake the pie

Pour the coconut filling into the baked pie shell. Bake until the edges are puffed and the center is jiggly and wobbles like jello, about 20-22 minutes. Remove from the oven. Allow it to cool at room temperature for 1 hour, then stick in the fridge to cool for another 2-3 hours or overnight.

Coconut custard filling inside a bake pie crust.
10
Make the whipped topping

Place coconut on a parchment lined baking sheet and toast under the broiler on high until lightly toasted. Pour whipping cream into a large bowl along with sugar-free sweetener and vanilla. Whip using an electric mixer until stiff peaks form. Place whipped cream in the center of the pie and create a dome shape using a spatula. Sprinkle the top with toasted coconut. Refrigerate until ready to serve.

Finished coconut cream pie next to a bowl of toasted coconut flakes.
Ingredients for this step
  • 1 cup unsweetened shredded coconut
  • 2 cups heavy cream
  • 1/4 cup sugar-free sweetener
  • 1 teaspoon vanilla extract
Nutrition Per Serving
487 Calories
46.6g Fat
6.7g Protein
4.4g Net Carbs
7.3g Total Carbs
12 Servings
Nutrition disclaimer

The nutrition information provided is an estimate and is for informational purposes only. I am a Doctor of Pharmacy (Pharm.D.); however, this content is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always consult your physician or other qualified health provider before making any lifestyle changes or beginning a new nutrition program.

Your Macros. Your Recipes. Calculated in 60 Seconds.

Get personalized keto macros and instantly see which recipes fit your targets. No more guessing what to eat.

Get My Macros + Recipes →

Get weekly keto recipes from Annie.

Join the list and get new recipes delivered to your inbox every week.

Keto Coconut Cream Pie

Frequently Asked Questions

Can I substitute full-fat coconut cream for the milk in the filling?

I started doing this after a reader suggested it, and now I do it every time. Swap the cup of milk for the full-fat canned version and the filling goes from subtle to genuinely, deeply coconutty. The custard still sets up the same way and slices just as clean.

What sweetener works best in this pie?

I've tested erythritol, allulose, and monk fruit blends in this custard. Erythritol works and measures 1:1, but it can have a slight cooling aftertaste. Allulose is my favorite here because it dissolves completely and the custard tastes closest to the real thing. One of my readers, Dana, used allulose in the whipped cream too and bumped the amount up slightly, which I thought was smart. Monk fruit blends work fine, just check the conversion on the package since they vary by brand.

How do I know when the custard is thick enough?

I look for the consistency of thick runny yogurt. When I drag a spoon through it and the trail holds for a second before closing, it's ready. Mine takes a full 10-12 minutes over low heat, stirring constantly. Don't rush it.

Can I make this dairy-free?

I've swapped individual dairy components in this recipe enough times to know the path. Use coconut oil in place of butter (both in the crust and filling), full-fat canned coconut instead of heavy cream, and skip the cream cheese in the dough (an extra tablespoon of coconut oil works). The crust won't be quite as flaky without the cream cheese structure, but it holds together. For the whipped topping, I chill a can of full-fat canned coconut overnight and whip just the thick part that rises to the top.

Why did my filling come out runny?

I've had this happen to me too, and the fix is almost always the same: the custard wasn't cooked long enough on the stove. I cook mine for the full 10-12 minutes, stirring constantly, until it coats a spoon and holds a trail. If yours was thinner than that when you poured it in, that's the issue. The other thing I see is cutting too early. I cool mine at room temperature for an hour, then refrigerate for at least 2-3 hours before slicing. Without that fridge time, the custard won't fully set.

Can I use a different crust for this pie?

I really think you should try this flaky almond flour crust first because it's the best keto crust I've made. But if you want something closer to a graham cracker base, a simple mix of almond flour, melted butter, and a tablespoon of sweetener pressed into the pan and baked for 8-10 minutes works. I've done it when I'm short on time. My no-bake peanut butter pie uses that style of crust and it holds filling well.

What can I substitute for arrowroot powder?

Cornstarch works. I use 1 tablespoon of cornstarch in place of the arrowroot and the custard thickens the same way. I chose arrowroot for this recipe because it's flavor-neutral and a little stronger, so I need less of it. But if cornstarch is what you have, go with it. I'd skip xanthan gum here because it can give custard a slightly gummy texture that I don't love in pie filling.

Similar Recipes

Others looking for “Keto Coconut Cream Pie” also liked:

A slice carved out of a whole coconut cream pie next to a cup of coffee.

How I make this ahead of time

I make parts of this pie ahead almost every time, because the day-of assembly is so much easier.

Make ahead pie crust

I make the dough, wrap it in a flat disc between parchment, and store it in the fridge for up to 5 days. You can also freeze the dough disc in plastic wrap inside a freezer bag for up to 3 months. I’ve also blind baked the crust a day or two early and stored it covered in the fridge.

Make ahead pie

Once the custard is in the crust and baked, the whole pie keeps in the fridge for 3-4 days before you add the whipped topping. This is actually how I prefer to do it for holidays and dinners (same approach I use for my banana cream pie too). Bake the pie the day before, let it chill overnight, then whip the cream and toast the coconut right before serving.

Whipped topping

The sugar-free whipped cream holds for about a day in the fridge, but it’s best made fresh. Same with the toasted coconut flakes. I toast them ahead of time and store in a paper bag at room temperature. They stay crispy for a full day that way.

How to store this pie

Keep the assembled pie covered in the refrigerator for up to 3 days. The custard stays firm and the crust won’t get soggy as long as it’s covered.

I don’t recommend freezing this one. Unlike my apple pie (which freezes beautifully), the custard filling tends to separate and turn watery when it thaws. If you want to prep ahead, bake the crust and filling and store the finished pie in the fridge. It keeps for days.

About the Author
Annie Lampella, Pharm.D.

Annie Lampella, Pharm.D.

Annie is a Doctor of Pharmacy, mom, and the recipe creator behind KetoFocus. With a B.S. in Genetics from UC Davis, she has over 14 years of experience developing family-friendly keto recipes based on the science of human metabolism.

More Dessert Recipes

slice of keto carrot cake
45 Mins
Keto Carrot Cake with Almond Flour
4.9 Stars (95 Reviews)

Almond flour, real shredded carrots, and cream cheese frosting with sour cream. 5.6g net carbs per slice. I make this every Easter and Thanksgiving.

See the Recipe
keto chocolate chip cookie stack
145 Mins
Keto Almond Flour Chocolate Chip Cookies
4.8 Stars (40 Reviews)

I accidentally invented these while making butter bars, and they turned out to be the chewiest almond flour chocolate chip cookies I've ever baked....

See the Recipe
holding a spoonful of fluffy jello dessert over a bowl of pink creamy pudding
5 Mins
Jello Whip
4.8 Stars (6 Reviews)

Jello whip is a fluffy, 3-ingredient keto dessert I make when I want something sweet in under 5 minutes. Whipped cream cheese, heavy cream, and sugar...

See the Recipe
five golden brown chocolate chip cookies on the table with dark chips spread around
16 Mins
Best Keto Chocolate Chip Cookies
4.8 Stars (33 Reviews)

Almond flour and coconut flour together create a keto chocolate chip cookie that's close to Toll House. 1.2g net carbs per cookie. Crispy edges, soft...

See the Recipe
creamy chocolate mousse in a small dish topped with sprinkles and strawberries
3 Mins
Keto Chocolate Mousse
4.9 Stars (14 Reviews)

When a chocolate craving hits, this 3-ingredient mousse saves the day. No cooking, no eggs, and I can have it ready in under 10 minutes.

See the Recipe
A keto pretzel chocolate chip cookie broken open to show a soft center filled with melted chocolate chips and crunchy pretzel pieces.
20 Mins
Keto Pretzel Chocolate Chip Cookies
4.4 Stars (5 Reviews)

These thick, chewy keto pretzel chocolate chip cookies land at about 2g net carbs each. I skip chill time so the pretzel pieces stay crunchy, and six...

See the Recipe
Reviews 20
4.7 Stars (9 Reviews)
  1. L
    Leah Garcia Mar 13, 2026

    My grandmother made coconut cream pie every Easter and I gave it up when I went keto three years ago, figured that was just gone. The silky custard in this one stopped me cold on the first bite. Something about the way it sets up with the heavy cream, it has that same cool, almost wiggly texture I remembered. I wasn't expecting to feel anything, and then there I was in my kitchen having a moment over a slice of pie.

  2. B
    Brian Mar 9, 2026

    Went in skeptical about the xanthan gum dough. Figured it would be rubbery or dense. It flakes like an actual crust, and the coconut filling sets up firm enough to slice clean. Didn't see that coming.

    1. Annie Lampella
      Annie Lampella Mar 12, 2026

      Xanthan gum in cold butter dough is not what most people expect. The filling sets because I cook mine the full 10-12 minutes on the stove. Most people pull it too early.

  3. T
    Tasha Mar 6, 2026

    Made at least four keto cream pies this year and none of them had a crust that actually flaked. This one did. Didn't expect that from keto baking anymore.

  4. L
    Lisa Mar 3, 2026

    Never made a real pie in my life and here I am rolling out almond flour dough like I know what I'm doing. Somehow it worked and now I'm the person who makes homemade keto coconut cream pie.

    1. Annie Lampella
      Annie Lampella Mar 8, 2026

      The almond flour dough throws people off but it's actually pretty forgiving. You're the pie person now.

  5. S
    Sam Feb 27, 2026

    My daughter asked me point blank if I ordered this from a bakery because she couldn't believe I made the crust myself. I'd never used xanthan gum before and was half-convinced the whole thing was going to crack apart when I tried to transfer it to the pie pan, but it rolled out like actual pastry dough and blind baked into this perfectly flaky shell that holds together when you cut it. She kept eating the crust edge first before getting to the coconut filling, like she was saving the best part, and I thought okay, this is the one. Made it on a Sunday afternoon when it was freezing outside and the coconut filling set up so clean that the slices held their shape on the plate even after sitting out while we ate dinner. I've tried a couple other keto pie crusts and they either crumble or taste too almond-forward, but this one (with the cream cheese in the dough, I think that's doing something) tastes like it should. Already planning a second one for her birthday in March.

    1. Annie Lampella
      Annie Lampella Feb 28, 2026

      Yeah, the cream cheese is doing a lot in that dough (fat content, a little acid, keeps it from crumbling when you transfer). Crust first before the filling is the actual compliment here. Hope March goes just as well.

  6. L
    Luis Feb 25, 2026

    Brought this to a Sunday dinner in January and my cousin, who makes a traditional coconut cream pie every Christmas and takes real pride in it, said she'd probably just make this one going forward. Coming from her, that's saying something. Filling could be a touch sweeter, but the almond flour crust held together after two hours out, which I honestly wasn't counting on.

    1. Annie Lampella
      Annie Lampella Feb 27, 2026

      A scratch coconut cream baker making the switch permanently, that's not nothing. For a bit more sweetness, bump the powdered sweetener by a tablespoon in the filling. Doesn't change the custard texture at all.

  7. R
    Rachel N. Feb 24, 2026

    Swapped the milk for full-fat coconut cream and the filling went from subtle to actually, genuinely coconutty (in the best way). You can really taste it now, not just sense it. Also, toast your shredded coconut before adding it on top, 2-3 minutes in a dry pan. Adds this almost nutty crunch to every bite.

    1. Annie Lampella
      Annie Lampella Feb 28, 2026

      Full-fat coconut cream in the filling is obvious in retrospect. More coconut in coconut cream pie. Can't believe I'm still using milk.

  8. D
    Donna Feb 20, 2026

    Brought this to a Sunday dinner last month and my friend who bakes everything from scratch kept circling back for more slices. When I told her the crust was almond flour she looked genuinely confused, which from her is about the highest compliment I could imagine.

    1. Annie Lampella
      Annie Lampella Feb 20, 2026

      Ha, the scratch baker double take is genuinely the best review. Almond flour has no business being that flaky.

  9. P
    Paul Mar 24, 2025

    Toasting the coconut makes it. Adds texture and brings out the flavor.

    1. Annie Lampella
      Annie Lampella Mar 25, 2025

      I do mine in a dry skillet, couple minutes, watching it close. Burns fast but worth it.

  10. R
    Rebecca Mar 10, 2025

    Family loved it. The custard filling is rich without being too sweet. Didn't miss regular pie at all.

    1. Annie Lampella
      Annie Lampella Mar 12, 2025

      Rebecca that's great. The custard is what makes it feel like real coconut cream pie.

  11. D
    Dana S Mar 4, 2025

    I just made this and it was delicious! This is probably one of the top five best keto desserts I've ever made and I've been doing keto for over 7 years now. The only adjustment I made was because I used allulose in the whipped cream mixture. Just increased it. It's quite a bit of work but the result was amazing!

    1. Annie Lampella
      Annie Lampella Mar 6, 2025

      Dana that's so good to hear, especially from someone who's been keto as long as you have. Allulose is my go-to for the whipped cream too. It whips up better than most other sweeteners.

Leave a Review