These gluten free lemon bars have a crisp, buttery almond flour crust and a smooth, tangy lemon filling that is bright without being sharp.
Each bar is rich, creamy, and sweet enough to satisfy a craving, yet fits a low carb way of eating.

We built this recipe so the crust holds its shape and the filling sets cleanly for neat, sliceable squares.
Why you’ll love this recipe
This is my go-to when I want something bright and special without wheat or sugar. The lemon filling tastes fresh and rich, and the crust is sturdy enough to pick up with your fingers.
Ingredients
Full quantities are in the recipe card below.
- Almond flour: forms the gluten free crust with a tender, nutty base. Substitute with finely ground blanched almond meal if needed.
- Melted butter: binds the crust and adds richness. Substitute with coconut oil for a dairy free version.
- Erythritol sweetener: sweetens the crust and filling without sugar. Substitute with powdered monk fruit blend in equal amounts.
- Fresh lemon juice and zest: deliver the bright lemon flavor. Substitute with bottled lemon juice only if fresh is unavailable, though flavor will be milder.
- Keto sweetened condensed milk: makes the filling thick and creamy. Substitute with a homemade low carb condensed milk blend.
- Eggs: set the filling and add structure. Substitute with flax eggs only in the crust, not the filling.
- Coconut flour: absorbs moisture and firms the filling. Substitute with a small amount of extra almond flour.
- Baking powder and xanthan gum: lift the filling and help it hold together. Substitute with a pinch less xanthan gum if your texture feels gummy.
How to make keto lemon bars
Step 1: Make the crust
Preheat the oven to 350°F and line an 8×8 inch pan with parchment. Stir together the almond flour, melted butter, one egg, half the sweetener, and vanilla until a dough forms.
Step 2: Press and bake
Press the dough evenly into the pan. Bake for 12 to 15 minutes until the edges turn light golden. This partial bake keeps the crust crisp under the filling.
Step 3: Mix the filling
Whisk the lemon juice, zest, condensed milk, four eggs, remaining sweetener, coconut flour, baking powder, and xanthan gum until smooth. Whisking well prevents lumps and gives a silky set.
Step 4: Bake the bars
Pour the filling over the warm crust. Bake for 18 to 22 minutes until the center barely jiggles. Overbaking can make the filling grainy.
Step 5: Cool and slice
Let the bars cool at room temperature for one hour, then chill for at least two hours. Chilling firms the filling so the slices stay clean.
Tips
- Bring eggs to room temperature: they blend more smoothly into the filling and avoid lumps.
- Zest before juicing: the zest is easiest to remove from whole, firm lemons.
- Press the crust firmly: an even layer prevents thin spots that can burn.
- Use a parchment sling: lifting the bars out makes clean, neat squares easy.
- Wipe the knife: a damp, warm knife gives sharper edges when slicing.
- Watch the center, not the timer: the filling should wobble slightly, then firm as it cools.

Storage
Keep the bars covered in the refrigerator for up to five days. The filling stays creamy and the crust stays tender.
For longer storage, freeze the sliced bars in a sealed container for up to three months. Thaw them in the fridge overnight before serving.
Variations
Lime bars
Swap the lemon juice and zest for lime for a tangy, tropical twist.
Lemon coconut bars
Sprinkle unsweetened shredded coconut over the crust before adding the filling for extra texture.
Frequently Asked Questions
Are these lemon bars truly gluten free?
Yes, they use almond flour and coconut flour instead of wheat flour. Check that your baking powder and sweeteners are labeled gluten free for full safety.
Can I make keto lemon bars without xanthan gum?
You can, but the filling may be slightly softer and less smooth. Add a little extra coconut flour or bake a few minutes longer.
Why did my lemon bar filling crack?
Overbaking is the usual cause. Pull the pan when the center still jiggles slightly, and let the bars cool gradually.
How many carbs are in one lemon bar?
Carbs depend on how many squares you cut. Use an online nutrition calculator with your exact sweetener brand for accurate counts.
Keto Lemon Bars (Gluten Free)

Ingredients
- 2 1/4 cups super fine almond flour
- 1/2 cup grass-fed unsalted butter, melted
- 1 whole egg
- 1/2 cup Swerve confectioners (or powdered erythritol)
- 1 teaspoon vanilla extract
- 2/3 cup fresh lemon juice
- Zest of 2 lemons
- 1 cup Keto/Low Carb sweetened condensed milk
- 4 whole eggs, at room temperature
- 1 tablespoon coconut flour
- 1 teaspoon baking powder
- 1/2 teaspoon xanthan gum
Instructions
- Preheat the oven to 350°F and line an 8×8 inch pan with parchment paper.
- In a bowl, stir together the almond flour, melted butter, 1 whole egg, half of the Swerve confectioners, and the vanilla until a dough forms.
- Press the dough evenly into the bottom of the prepared pan.
- Bake the crust for 12 to 15 minutes until the edges are light golden. Remove and reduce oven heat to 325°F.
- In a large bowl, whisk the lemon juice, lemon zest, condensed milk, 4 eggs, remaining Swerve, coconut flour, baking powder, and xanthan gum until smooth.
- Pour the filling over the warm crust.
- Bake for 18 to 22 minutes until the center barely jiggles.
- Cool at room temperature for 1 hour, then refrigerate at least 2 hours before slicing into 16 bars.
Notes
- Use a damp knife for clean cuts.
- Store covered in the refrigerator for up to 5 days.
- Calorie count is an estimate and varies with sweetener brand.

