If you love coconut cream pie, you know how hard it is to find a good version that fits a healthy lifestyle. Traditional pies are usually packed with regular sugar and white flour.
That is why I made these keto coconut cream pie bars. They give you the same rich, coconut flavor in easy square slices.

The best part is that this dessert is completely low carb and keto friendly. You get to enjoy a sweet treat without worrying about extra sugar.
Between the buttery crust, smooth custard, and light topping, every bite has great texture.
It is simple to make ahead of time, which makes it perfect for family dinners or a casual weekend dessert.
Why I Love This Recipe
Intense Coconut Flavor – You get three full layers of rich coconut flavor in every single bite.
Irresistible Texture – Silky custard pairs beautifully with a buttery crust and crunchy toasted coconut topping.

Naturally Low Carb – This treat satisfies sweet cravings while keeping your blood sugar stable on a keto diet.
Easy to Slice – Unlike traditional messy pies, these bars slice cleanly into neat, mess-free party squares.
Ingredients You’ll Need
For the Coconut Crust
- 1 1/4 cups Almond Flour
- 1/2 cup Unsweetened Shredded Coconut
- 3 tbsp Powdered Monk Fruit Sweetener
- 5 tbsp Unsalted Butter, Melted
- 1 pinch Sea Salt
For the Coconut Custard
- 1 1/2 tsp Unflavored Gelatin
- 2 tbsp Cold Water
- 1 can (13.5 oz) Full Fat Coconut Milk
- 1/2 cup Heavy Cream
- 4 Large Egg Yolks
- 1/2 cup Powdered Monk Fruit Sweetener
- 1/2 tsp Xanthan Gum
- 2 tbsp Unsalted Butter
- 1 tsp Vanilla Extract
- 1/2 cup Unsweetened Shredded Coconut
For the Topping
- 1 cup Heavy Cream
- 2 tbsp Powdered Monk Fruit Sweetener
- 1/3 cup Unsweetened Coconut Flakes
How To Make
Step 1
Preheat the oven to 350°F and line an 8×8-inch baking pan with parchment paper, leaving an overhang on two sides. Mix the crust ingredients, press firmly into the pan and bake for 12 minutes until golden. Let it cool.
Step 2
Sprinkle the gelatin over the cold water in a small bowl and set aside to bloom. Heat the coconut milk and 1/2 cup heavy cream in a saucepan over medium heat until steaming but not boiling.
Step 3
Whisk the egg yolks, 1/2 cup powdered sweetener and xanthan gum in a bowl until smooth. Slowly pour in about half of the hot coconut milk while whisking constantly, then pour everything back into the saucepan.
Step 4
Cook over medium-low heat for 5 to 6 minutes, stirring constantly, until the custard thickens enough to coat the back of a spoon. Do not let it boil.
Step 5
Remove from the heat and stir in the bloomed gelatin, butter, vanilla and 1/2 cup shredded coconut until the gelatin and butter are fully melted. Pour the custard over the cooled crust.
Step 6
Refrigerate for at least 4 hours, until the custard is fully set.
Step 7
Toast the coconut flakes in a dry skillet over medium-low heat for 2 to 3 minutes until golden. Whip 1 cup heavy cream with 2 tbsp powdered sweetener until stiff peaks form.
Step 8
Spread the whipped cream over the set custard, sprinkle with the toasted coconut and cut into 16 bars.

Tips
Press the Crust Down Firmly
Almond flour crusts can easily crumble if they are not packed tight into the pan. I recommend using the flat bottom of a measuring cup or a drinking glass to press the crust flat.
Be sure to push firmly into the corners and edges as well. This creates a solid base that holds together when you lift the sliced bars out later.
Blend the Xanthan Gum Thoroughly
Xanthan gum is great for thickening low carb fillings, but it can quickly form gummy clumps if added to hot liquid. My favorite trick is to whisk it directly into the dry powdered sweetener and egg yolks first.

The yolks and sweetener coat the powder and help it dissolve smoothly. This guarantees your custard turns out silky with no jelly-like lumps.
Temper the Egg Yolks Slowly
When you pour hot coconut milk into the egg yolks, you need to go very slowly. Pour just a thin, steady stream with one hand while whisking constantly with the other.
From my experience, pouring the hot liquid in too quickly will scramble the eggs. Taking your time here keeps the custard perfectly smooth and creamy.
More Recipes
- Keto Boston Cream Cheesecake
- Keto Cinnamon Roll Cheesecake Bars
- Keto Key Lime Cheesecake Crunch Bars
- Keto Lemon Meringue Bars
- Keto Pecan Pie Cheesecake Cups
FAQ
Can I use carton coconut milk instead of canned coconut milk?
No, you need to use canned full fat coconut milk for the custard to set properly.
Carton coconut milk has a high water content and will make your filling runny instead of thick and creamy.
Keto Coconut Cream Pie Bars
Equipment
- 8x8-inch baking pan
- hand mixer
Ingredients
For the Coconut Crust
- 1 1/4 cups Almond Flour
- 1/2 cup Unsweetened Shredded Coconut
- 3 tbsp Powdered Monk Fruit Sweetener
- 5 tbsp Unsalted Butter, Melted
- 1 pinch Sea Salt
For the Coconut Custard
- 1 1/2 tsp Unflavored Gelatin
- 2 tbsp Cold Water
- 1 can (13.5 oz) Full Fat Coconut Milk
- 1/2 cup Heavy Cream
- 4 Large Egg Yolks
- 1/2 cup Powdered Monk Fruit Sweetener
- 1/2 tsp Xanthan Gum
- 2 tbsp Unsalted Butter
- 1 tsp Vanilla Extract
- 1/2 cup Unsweetened Shredded Coconut
For the Topping
- 1 cup Heavy Cream
- 2 tbsp Powdered Monk Fruit Sweetener
- 1/3 cup Unsweetened Coconut Flakes
Instructions
- Preheat the oven to 350°F and line an 8x8-inch baking pan with parchment paper, leaving an overhang on two sides. Mix the crust ingredients, press firmly into the pan and bake for 12 minutes until golden. Let it cool.
- Sprinkle the gelatin over the cold water in a small bowl and set aside to bloom. Heat the coconut milk and 1/2 cup heavy cream in a saucepan over medium heat until steaming but not boiling.
- Whisk the egg yolks, 1/2 cup powdered sweetener and xanthan gum in a bowl until smooth. Slowly pour in about half of the hot coconut milk while whisking constantly, then pour everything back into the saucepan.
- Cook over medium-low heat for 5 to 6 minutes, stirring constantly, until the custard thickens enough to coat the back of a spoon. Do not let it boil.
- Remove from the heat and stir in the bloomed gelatin, butter, vanilla and 1/2 cup shredded coconut until the gelatin and butter are fully melted. Pour the custard over the cooled crust.
- Refrigerate for at least 4 hours, until the custard is fully set.
- Toast the coconut flakes in a dry skillet over medium-low heat for 2 to 3 minutes until golden. Whip 1 cup heavy cream with 2 tbsp powdered sweetener until stiff peaks form.
- Spread the whipped cream over the set custard, sprinkle with the toasted coconut and cut into 16 bars.