Gluten Free Lemon Bars

Gluten Free Lemon Bars

A simple lemony shortbread crust with a tart, refreshing lemon custard, these gluten free lemon bars are so easy to make. Perfect for any occasion, from potlucks to bake sales. 

Three lemon bars on a white platter

Smooth, creamy and tart classic gluten free lemon bars seem to be beloved by nearly everyone. If you don’t love them, or anything lemon flavored, then this recipe is not going to be for you. 

But if you’re a lemon lover (and if you are, then you have to try our lemon pound cake and our lemon meltaway cookies), you are going to love these bars. The crust is the perfect blend of chewy and crunchy, and the custard is lemony cool and fresh. 

Overhead image of a square baking pan with raw crust and a spatula

Promise you’ll use freshly squeezed lemon juice

Conventional lemons are available year-round, but we do tend to get the best ones in the dead of winter. A little sunshine for an overall dreary season, I guess! ?Meyer Lemons, which are thought to be a cross between oranges and lemons, aren’t available year-round. They seem to be most plentiful in the middle winter through the very early spring (why do I always want to capitalize ‘spring’ but leave winter as is?)

All this is to say … there is really just no excuse for using bottled lemon juice. I’ll never be able to grow my own lemons, but I’ll bake with them forever and ever because lemon-flavored things are almost as universally loved as chocolate-flavored things. 

I vow never to use bottled lemon juice in baking (or otherwise for that matter). Baking and cooking mean applying heat, and heat intensifies flavors. If the flavor isn’t great at the start, just wait until you bake with it.

Overhead image of baked lemon crust in a square pan

Anyway, you’ll need at least one fresh lemon for the lemon zest so your crust, and not just your filling is pucker-worthy. These lemon bars are no joke. You’ll never confuse them with any other flavor. I believe the term is ROBUST. ?

If you’ve ever had lemon curd, which is similar to a lemon pudding or custard, this filling will taste similar. Unlike lemon curd, though, the filling in these bars is baked, not cooked. It will be firm enough to bite into once it’s set in the refrigerator. 

Image of 8 squares of lemon bars

How to make these gluten free lemon bars

To make these bars, you will have to place the pan in the oven twice. I promise it’s not a big deal, though.

The crust is a relatively sticky dough that’s made with gluten free flour, confectioners’ sugar (to keep it light), lemon zest, salt, and melted butter. Just press it into the pan with an offset spatula (or even just a spoon) and bake it just until it’s set. 

There’s no leavening in the crust, so it won’t rise very much at all. Baking it alone prevents it from getting soggy when you add the filling. 

As the crust is cooling, make the filling by whisking eggs, granulated sugar, baking powder and lemon juice. Pour the filling right on top of the blind-baked crust and pop it back in the oven to bake until the filling barely jiggles when it’s shaken from side to side.

As the filling is baking, if you peek in the oven (not advisable, but if you can’t help it) before the last 7 or 8 minutes, you’ll think that the bars will never actually set. It will seem almost like a liquid for most of the baking time. As long as you haven’t changed the recipe and your oven is at the proper temperature, it will set.

A single lemon bar on a small square plate

Ingredients and substitutions

There are dairy, eggs, and two types of sugar in these decadent lemon bars. I don’t regret any one of those ingredients, but if you can’t have one of them, here’s what I’m thinking:


The only source of dairy in these bars is the butter in the crust. That’s good news if you’re dairy-free. The crust should still turn out if you replace the butter with half Earth Balance buttery sticks and half Spectrum brand nonhydrogenated vegetable shortening.

You can also use Melt Vegan Butter or Miyoko’s Kitchen Vegan Butter in place of the butter entirely. Watch the salt, though, since butter replacements tend to be quite salty (unlike shortening, which contains no salt).


There are 4 eggs in this recipe. I’m afraid I don’t believe that you can replace all 4 of them with an egg substitute and achieve anything like the texture of these smooth, creamy custardy bars. So sorry!


The confectioners’ sugar should be able to be replaced with Swerve brand powdered sugar replacement. That tends to work quite well. You can try replacing the granulated sugar with Swerve brand granulated sugar substitute or Lankato monkfruit granulated sweetener.

Sugar replacements tend to be drying, though, so you may have to add some moisture to the filling. Try another tablespoon of freshly squeezed lemon juice.


Since you’ve already promised to use freshly squeezed citrus in this recipe, we don’t have to revisit that point. If you’d prefer a lime-flavored bar, try my key lime pie bars. They’re similar in texture, and simply amazing. 

Gluten free flour blends

I do specify my gum-free gluten free flour blend for this recipe, which is made with a mix of mostly superfine white rice flour, with potato starch and tapioca flour/starch. There is no xanthan gum in this recipe.

I’ve found that it makes for an almost chewy, gummy filling. It’s not nearly as important for the crust as it is for the filling.

You do need a scale to make the blend, but if you must purchase a blend to use, I’d try using Cup4Cup. It contains xanthan gum, but much less and is a very light, starchy blend.


A simple lemony shortbread crust with a tart, refreshing lemon custard, these gluten free lemon bars are so easy to make!Two lemon bars on a small plateLemon bars on brown paper with two lemonsA close up of a lemon square A small white plate with two lemon squares and powdered sugarStep by step images of raw and baked crust and raw and baked custard on top

Like this recipe?

Prep time: Cook time: Yield: 9 to 12 bars


1 2/3 cups (233 g) basic gum-free gluten free flour blend (superfine white rice flour + potato starch + tapioca starch/flour)

1/2 cup (58 g) confectioners’ sugar, plus more for dusting

1/2 teaspoon kosher salt

Zest of 1 large lemon

9 tablespoons (126g) unsalted butter, melted and cooled

4 eggs (200 g, weighed out of shell), at room temperature

1 cup (200 g) granulated sugar

3/4 teaspoon baking powder

2/3 cup freshly squeezed lemon juice (juice of 4 to 5 lemons)


  • Preheat your oven to 325°F. Grease an 8-inch square baking pan, line with criss-crossed pieces of parchment paper that overhang the sides, and grease the parchment paper. Set the pan aside.

  • Make the crust. In a medium-sized bowl, combine 1 cup (140 g) of the flour, confectioners’ sugar, salt and lemon zest and whisk to combine, breaking up any clumps of lemon zest. Add the butter and mix with a fork until well-combined. Press the mixture into the bottom of the prepared baking dish in an even layer. Place the baking dish in the center of the preheated oven and bake for about 15 minutes or until firm. Remove from the oven and allow to cool briefly.

  • Make the custard layer. In a medium-sized bowl, place the eggs, granulated sugar, baking powder, lemon juice and remaining 2/3 cup (93 g) flour, whisking vigorously to combine after each addition. Pour the custard mixture into the baked crust and return the pan to the center of the oven. Bake until just set (about 25 minutes). The custard is set when it does not jiggle more than a tiny bit in the center when the pan is shaken gently back and forth. Remove the pan from the oven and allow to cool in the pan for about 20 minutes.

  • Place in the refrigerator to chill until firm, about 2 hours and up to overnight. Remove the bars from the pan by running a butter knife or thin spatula around the perimeter of the baking dish, and then lifting the bars out of the pan by the overhung pieces of parchment paper. Dust lightly with confectioners sugar, and slice into 9 or 12 squares with a large knife. Serve chilled.

  • Recipe originally published in 2011, updated in 2015 and modified again (photos, video, text mostly new) in 2019. 



Where should I send your free guide?

By entering your email, you're agreeing to our Privacy Policy. We respect your email privacy, and will never share your information.