This post may contain affiliate links. Please read our disclosure policy.

These gluten free lemon bars have a crisp, buttery shortbread crust and a smooth, bright lemon custard filling that sets just right every time. They’re simple to make, slice neatly, and deliver that classic balance of sweet and tart without any guesswork.

Three lemon bars on a white platter
Want to save this recipe?
Enter your email and we’ll send it to you! Plus, get new recipes every week.

Why this recipe works

The texture is exactly what you want from classic lemon bars, and is even better without gluten. The crust bakes up tender but sturdy, with just enough chew to hold its shape under the filling without turning soft or greasy.

The filling is smooth, creamy, and full of real lemon flavor. Fresh lemon zest flavors the crust, not just the custard, so every bite tastes balanced and bright instead of flat or overly sweet.

The filling sets properly because you’re not guessing when it’s done. Since ovens vary, I give you multiple doneness cues so you can use your best judgment and pull it at just the right moment. That’s how you avoid a filling that’s underbaked or firm and rubbery.

Recipe ingredients

Here's a bit about the ingredients you'll need to make these bars, how to select the best of each, and what they do to contribute to the best result:

Overhead view of measured ingredients in bowls with labels including confectioners’ sugar, gluten free flour, lemon zest, eggs, lemon juice, baking powder, sugar, melted butter, and salt.
  • Gluten free flour blend: Both the shortbread-style crust and the filling require a gluten free flour blend with superfinely ground rice flour as a base, without any xanthan gum. I’ve found that adding a binder like that makes the crust more chewy and the filling gummy, not smooth. The flour blend adds structure to both components of the bars. You can use my 3-ingredient blend or Nicole's Best. If you choose to use King Arthur Flour's gf blend without xanthan gum, I highly recommend sifting it multiple times before you measure to ensure there's no grittiness.
  • Confectioners' sugar: In the crust, it adds sweetness and helps create a lightly crispy crumb that melts in your mouth. We dust more on top for extra sweetness and because it looks pretty (and covers any imperfections in the top of the bars).
  • Granulated sugar: In the filling, it balances out the tartness of the lemon and ensures that the filling is smooth since the sugar dissolves in the lemon juice.
  • Lemon juice: We use a lot to add tons of fresh lemon flavor. As it bakes, the taste intensifies, so avoid bottled juice in favor of freshly-squeezed. And strain out the pulp and seeds before measuring, to make sure you have enough.
  • Lemon zest: Adds extra lemon flavor since it contains all of the essential lemon oils. Be sure not to grate down all the way to the bitter white pith.
  • Butter: Brings the shortbread crust together, provides buttery flavor and richness, and makes the crust crisp on the outside.
  • Eggs: Thicken and bind the custard filling, setting into a creamy structure that holds as the bars cool.
  • Salt: Balances the sweetness and brightens the other flavors.
  • Baking powder: Gives the filling a bit more rise for a slightly lighter-textured custard.

How to make gluten free lemon bars (step by step photos)

To make these bars, you have to place the pan in the oven twice. This visual guide includes an explanation of the reason behind each step in the recipe. For full ingredient amounts, see the recipe card below.

For the crust: whisk dry ingredients
Whisk together all of the dry ingredients to make the shortbread-style cookie crust of these bars, including the flour blend, confectioners' sugar, salt, and lemon zest. The lemon zest will stick to itself, so keep whisking until everything is fully combined, with no clumps.

Metal mixing bowl filled with white dry ingredients and a small pile of yellow lemon zest, with a glass of melted butter mixture partially visible to the side.
Metal mixing bowl with white dry ingredients being whisked with a metal whisk, with some visible yellow flecks of lemon zest

Add melted butter
The only remaining ingredient to bring the crust together is 9 tablespoons of melted unsalted butter. I melt the butter in the microwave on medium power, stopping just before it's fully liquid, as the residual heat will melt the rest and it cools more quickly and doesn't cook, losing moisture.

Hand holding a small glass of melted butter mixture about to pour it into a bowl of white dry ingredients, with a fork resting nearby.
Melted butter mixture poured over white dry ingredients in a metal mixing bowl.

Mix into clumps
I prefer to mix the butter into the dry ingredients with a fork to create large, fully incorporated clumps that are easy to scatter evenly in a fully lined and greased pan. To keep the parchment paper in place during baking, you can clip all 4 sides with small binder clips.

Clumpy pale dough mixture in a metal bowl with a fork.
Pale dough clumps scattered in an even layer in a square baking pan lined with parchment paper, clipped to each of the four sides with a small black binder clip.

Smooth the crust
Use a small offset spatula or butter knife to press down on the cookie clumps, smoothing them into an even layer on the bottom of the prepared pan. Don't press down too hard or you'll compress the crust and it won't bake as evenly.

Parbake it
To seal the crust and ensure it doesn't get soggy once you add the liquid filling, partially bake it first at 325°F for about 15 minutes. As it parbakes, the crust will turn shiny as the ingredients melt, then lose its shine and the crust will turn very pale and matte. Let it cool briefly while you make the filling mixture. This also prevents you from having to overbake the filling just to get the crust firm enough to hold it.

Hand holding a small offset spatula to press pale dough into a smooth, even layer in a parchment-lined square pan.
Baked pale yellow crust in a square pan, with very lightly golden color on the edges.

For the filling: whisk dry, then wet ingredients
In a separate mixing bowl, whisk together the remaining 2/3 cup of the flour blend, granulated sugar and a bit of baking powder. Whisk fully to avoid any pockets of leavening which will cause uneven baking and can taste off.

Add 2/3 cup of fresh-squeezed and strained lemon juice and 4 eggs to the mixing bowl, and whisk to combine. Whisk fully to ensure that everything is smooth and fully combined, and the eggs well-beaten, but not so roughly that introduce too many air bubbles.

Metal mixing bowl with white dry ingredients and a whisk resting inside.
Hand holding a metal whisk about to whisk together a mixture of white dry ingredients with eggs and lemon juice liquid mixture.

Combine crust and filling
Pour the smooth filling into the partially baked crust. It will be thin enough to smooth itself into an even layer. Tap the bottom of the pan a few times on the counter to help break as many air bubbles as possible for a filling that bakes as smoothly as possible.

Hand pouring a pale yellow liquid filling mixture from a metal bowl into a baked crust in a parchment-lined square pan.
Square pan filled with a smooth pale yellow layer over the crust, spread evenly to the edges.

Finish baking the bars
Bake the crust and filling together for about 25 minutes. The filling may seem like it's going to remain liquid for the first 18 to 20 minutes, until it finally appears set. When it's done baking, the filling will have begun to pull away from the sides of the pan, will look uniformly risen across the top, and will only jiggle a bit in the center when you shake the pan gently back and forth, much like gluten free cheesecake.

Chill and slice
Remove the baked bars from the oven, place them on a wire rack, and let them cool in the pan for at least 20 minutes. This allows the pan to release any residual hot air from the oven so you don't trap condensed steam, making the bars soggy. Refrigerate the bars for at least 2 hours to allow the egg custard to set enough to allow you to slice it.

Uncut, baked lemon bars in a parchment-lined square pan resting on a round wire rack, lightly golden around the edges.
Hand holding a square lemon bar dusted with powdered sugar over several cut bars on parchment paper, with a sieve partially visible to the side.

Expert tips

Use fresh lemon juice

Like in our gluten free lemon pie, bottled lemon juice tends to taste bitter, and the heat of baking intensifies flavors. If the flavor isn't great at the start, it will be worse after baking. Conventional lemons are available year-round, and there are even seedless ones that have more juice per lemon. Be sure to strain any pulp and seeds away before you measure the 2/3 cup of juice you need.

Whisk the filling fully, but gently

The filling mixture is quite thin, since it starts out as mostly liquid, then thickens in the oven as the eggs set with some stability added by the added flour. If you whisk the filling too vigorously, you'll create more air bubbles in the mixture which will break through the surface during baking.

If you've created too many bubbles, just let the filling sit for a while to allow the bubbles to break through, tapping the filling flat on the counter to help them burst. You can't eliminate every bubble though, so don't stress.

Allow for setting time

The lemon filling slices cleanly on top of the shortbread crust, but only if you allow it enough time to set in the refrigerator. Chilling allows the egg-based filling to set so that it's firm enough to slice.

Image of 8 squares of lemon bars

Ingredient substitutions

Here are my suggestions for how you might be able to avoid some of the ingredients in these bars, and where you can't:

Dairy free

For the butter in the crust, I recommend using half Spectrum brand nonhydrogenated vegetable shortening and half block-style vegan butter to mimic the flavor profile and moisture content of dairy butter. For vegan butter, I like Melt or Miyoko's brand.

Egg free

There are 4 eggs in this recipe. 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.

Lemon alternatives

In place of freshly squeezed lemon juice, try lime juice or orange juice, along with the corresponding zest.

A single lemon bar on a small square plate

Storage suggestions

These bars can be stored in a sealed container in the refrigerator for 3 to 5 days. If you've already dusted them with confectioners' sugar, it will likely absorb into the bars so you'll have to dust them again before serving.

For longer storage, freeze the bars uncovered just until firm (about 1 hour), then wrap each bar individually with plastic wrap for up to 3 months. They won't freeze solid, so they'll defrost quickly even in the refrigerator. Before serving, dust with confectioners' sugar.

Go Ad-Free

Gluten Free Lemon Bars Recipe

4.96 from 282 votes
Prep Time: 15 minutes
Cook Time: 40 minutes
Chilling time: 2 hours
Yield: 9 bars
Fresh, tart and sweet gluten free lemon bars are packed with the bright taste of citrus in a smooth, creamy filling and easy shortbread crust.
Save this recipe!
Get this sent to your inbox, plus get new recipes from us every week!

Ingredients 

For the crust

  • 1 cup (140 g) gum-free gluten free flour blend, (See Recipe Notes)
  • ½ cup (58 g) confectioners’ sugar, plus more for dusting
  • ½ teaspoon kosher salt
  • 1 tablespoon finely grated lemon zest, from 1 large lemon
  • 9 tablespoons (126 g) unsalted butter, melted and cooled

For the filling

  • cup (93 g) gum-free gluten free flour blend, (See Recipe Notes)
  • 1 cup (200 g) granulated sugar
  • ¾ teaspoon baking powder
  • cup (5.33 fluid ounces) freshly squeezed lemon juice, juice of 4 to 5 medium lemons, strained of seeds and pulp
  • 4 (200 g out of shell) eggs, at room temperature

Instructions 

  • 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 blend, confectioners’ sugar, salt and lemon zest and whisk to combine, breaking up any clumps of lemon zest.
  • Add the melted butter and mix with a fork until well-combined. The mixture will be clumpy.
  • Scatter the clumps evenly across the bottom of the prepared baking dish. Then use a small offset spatula or knife to press the mixture into a smooth, even layer on the bottom of the dish.
  • Place the baking dish in the center of the preheated oven and bake for about 15 minutes or until no longer shiny. When it's done, it will have a matte look to it and be very pale in color.
  • Allow the crust to cool briefly while you make the filling.

Make the filling

  • In a separate large mixing bowl, place the remaining 2/3 cup (93 g) flour blend, granulated sugar, and baking powder, and whisk to combine.
  • Add the lemon juice and the eggs, and whisk until smooth. The mixture will be very thin. Make sure there are no dry patches and the eggs are fully combined.
  • Pour the filling into the baked crust.

Bake

  • Return the pan to the center of the oven. Bake until just set (25 to 30 minutes).
  • The filling is set when it does not jiggle more than a tiny bit in the center when the pan is shaken gently back and forth. It will also likely have begun to pulled away from the sides of the pan and should look uniform across the top.
  • Remove the pan from the oven. Place the pan on a wire rack and allow the bars to cool, still in the pan, for about 20 minutes.

Chill the bars

  • Cover the top of the pan with plastic wrap, and chill in the refrigerator until firm (at least 2 hours).
  • Remove the bars from the pan by running a butter knife or thin spatula around the perimeter of the baking dish, then lifting the bars out of the pan by the overhung pieces of parchment paper.
  • Pull the paper away from the sides of the baked bars to expose the sides. Use a very sharp knife to slice into 9 equal squares. Separate the bars from one another.
  • Dust the top of the cut bars with confectioners sugar. Serve chilled.

Video

Notes

Flour blend notes
To make the full 1 2/3 cups (233 grams) of the gum-free blend needed for the filling and the crust, combine 154 grams superfine white rice flour + 51 grams potato starch + 28 grams tapioca starch/flour. Since I created Nicole's Best, I often use that in place of this blend.

Nutrition

Serving: 1bar | Calories: 292kcal | Carbohydrates: 47g | Protein: 5g | Fat: 14g | Saturated Fat: 8g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 4g | Trans Fat: 0.5g | Cholesterol: 103mg | Sodium: 194mg | Potassium: 51mg | Fiber: 2g | Sugar: 23g | Vitamin A: 457IU | Vitamin C: 8mg | Calcium: 51mg | Iron: 1mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Like this? Leave a comment below!

FAQs

How much juice is in one lemon?

One average-sized fresh lemon, when squeezed, will produce about 3 tablespoons of fresh lemon juice. This recipe requires 2/3 cup of juice (or just over 10 tablespoons), so you'll need about 4 lemons to get enough juice.

Can I use bottled lemon juice?

I don't recommend using bottled lemon juice, as it tends to be bitter, and baking with it will only intensify its bitterness. There are some bottled lemon juice brands, like Best Select, that people swear taste like fresh-squeezed. If you have a brand of bottled lemon juice that has juice you love the taste of, then use it!

Can I make this recipe with a graham cracker crust instead of shortbread?

Yes, you can make these lemon squares with a graham cracker crust if you'd like. Just follow my gluten free graham cracker crust recipe, which uses my homemade graham crackers.

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 plate
Lemon bars on brown paper with two lemons
A close up of a lemon square
A small white plate with two lemon squares and powdered sugar
Step by step images of raw and baked crust and raw and baked custard on top

More lemon dessert recipes

Here are a few more of my favorite gluten free lemon dessert recipes.

  • Gluten Free Lemon Cookies – Buttery-rich and light, these delightful lemon cookies melt in your mouth, and call for only 15 minutes of prep time.
  • Gluten Free Lemon Brownies – The chewy consistency of a brownie with the bright flavor of citrus.
  • Gluten Free Lemon Cake – If you've ever had the lemon cake at Olive Garden, try this tender, lemon-rich copycat recipe.

About Nicole Hunn

Hi, I’m Nicole. I create gluten free recipes that really work and taste as good as you remember. No more making separate meals when someone is GF, or buying packaged foods that aren’t good enough to justify the price. At Gluten Free on a Shoestring, “good, for gluten free” just isn’t good enough!

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating





191 Comments

  1. Ruth says:

    I couldn’t find the nutritional data for this recipe, despite a note that said it updates automatically.

    1. Nicole Hunn says:

      Hi, Ruth, I just added the approximate nutritional information in the recipe card. I hope that’s helpful!

  2. Patricia Anna Thomas says:

    5 stars
    A girlfriend made these for me at our womens club meeting. Have to admit, I had 2 servings.

    1. Nicole Hunn says:

      Thank you for taking a moment to shout out your friend, Patricia! So glad you enjoyed the lemon bars.

  3. Diane says:

    5 stars
    I have not made these, having just made lemon bars though I am curious about the filling. Each time I’ve made lemon bars the filling is cooked over a double boiler then when thick, poured into crust and baked. It does not include any flour. Yours is not cooked and includes flour. Why did you develop the recipe in this way? This is certainly less time consuming.

    1. Nicole Hunn says:

      The filling bakes perfectly without being cooked first like lemon curd, Diane. As you said, it’s less time consuming and has a better texture this way.

  4. Simone Xouris says:

    5 stars
    I don’t cook sweet recipes but tried this as had so many fresh lemons!! This turned out delicious in fact whole family loved it. Thank you for the recipe from Australia 😊

    1. Nicole Hunn says:

      You’re so welcome, Simone! Thanks for sharing your experience!

  5. Elisabeth says:

    5 stars
    Is it possible to make these lemon bars also dairy free by using margarine instead of real butter?

    1. Nicole Hunn says:

      Hi, Elisabeth, you can definitely make them dairy free, but I really prefer vegan butter to margarine, which is much softer and is usually mostly oil. For details, please see the text of the post under the heading “Gluten free dairy free lemon bars”

  6. Jim Roberts says:

    5 stars
    I love this recipe! ❤️ I’ve made it for several years and it’s always a hit and so quick and easy to make. I like it best with fresh blueberries mixed in with the lemon sauce.

    1. Nicole Hunn says:

      Oooh that sounds like a great addition, Jim. Thanks for sharing your experience, and so glad you love the recipe!

  7. Amy says:

    Does recipe or time change at all if using a glass baking dish?

    1. Nicole Hunn says:

      Glass baking dishes heat more slowly than metal, but retain heat for significantly longer, so it’s much more likely that the bars will burn on the bottom and sides before baking all the way through. Since the baking temperature on these bars is a relatively low 325°F, they shouldn’t burn, but you will really need to use a standalone oven thermometer to ensure that your oven isn’t running hot.

  8. DJ says:

    5 stars
    These turned out delicious! Nice and sharp, all the right textures. Straightforward and easy to make. I love how few ingredients are in this recipe. I used King Arthur gf flour without xanthan gum and had great results. Highly recommend. Thank you for this recipe!

    1. Nicole Hunn says:

      You’re very welcome, DJ, and I’m really glad that your chosen flour blend worked well here. Thank you for sharing that, and your overall experience!

  9. Abby Dernburg says:

    4 stars
    Good… but I think that the recommended cooking time is too short (although it probably depends on the type of oven, humidity, etc.). I made a batch according to the recipe – the oven thermometer said 330˚F – and they were gooey and underbaked. I accidentally left the 2nd batch in the oven for closer to an hour. When I pulled them out they were solid with a light brown edge. I worried that they’d be dried out, but they were actually great! I also strongly recommend adding zest to the filling as well as the crust. I used Meyer lemons, which are sweeter than Eureka lemons, so I cut the sugar in the custard by 25%, and it was just about right. I also added some salt to the custard, because salt makes things taste better, and I’m glad I did.

    I note that the recipe multiplier is a great idea, but it doesn’t change the quantities described in the step-by-step instructions, which was very confusing. Luckily I figured this out midstream and compensated.

  10. Val says:

    5 stars
    These bars were perfect and easy to make.. They were so delicious!

    1. Nicole Hunn says:

      So happy to hear it, Val! Thanks so much for sharing your experience.