Lemon Bars Recipe: Tart, Buttery, and Worth the Mess
To make lemon bars, press a buttery shortbread crust into a pan and bake it until just set, then pour a lemon curd filling made from eggs, sugar, lemon juice, and flour over the warm crust and bake until firm. Cool completely, refrigerate, and dust with powdered sugar before cutting into bars.
There is an unspoken competition at office bake sales where nobody admits they're competing but everyone is absolutely competing. I brought lemon bars to one of these events and they were gone before the chocolate chip cookies, which is a social outcome I had not anticipated and which produced a level of quiet satisfaction I was unprepared for.
The batch before that one had a filling that was too sweet and not tart enough. It tasted like lemon-scented sugar rather than actual lemon, and the crust was slightly soft. I had overbaked the crust as a standalone step and then underbaked the filling when it was on top, and the whole thing was a textural misunderstanding. Good enough to eat, not good enough to clear the table before the cookies.
The shortbread crust needs to be fully baked before the filling goes on — edges golden, center just set, not pale and soft. It will bake again once the filling is added, and underbaking the crust in the first stage gives you a soggy bottom. The filling is eggs, sugar, lemon juice, zest, and a small amount of flour to help it set. The ratio of lemon juice to sugar is where bars go wrong — more lemon than you think, less sugar than the recipe often calls for, because the powdered sugar you dust on top adds sweetness back in.
Let them cool completely before cutting. The filling is liquid when it comes out of the oven and firms as it cools. Cut them warm and the filling runs. Cut them cold and they're clean squares. The patience required is about two hours. The reward is winning a bake sale you weren't officially in.
Ingredients
- FOR THE SHORTBREAD CRUST:
- 1 cup (2 sticks / 227g) unsalted butter, softened to room temperature
- 1/2 cup (60g) powdered sugar, sifted
- 2 cups (240g) all-purpose flour
- 1/4 teaspoon salt
- FOR THE LEMON FILLING:
- 4 large eggs, room temperature
- 1 1/2 cups (300g) granulated sugar
- 1/3 cup (40g) all-purpose flour
- 2/3 cup (160ml) fresh lemon juice (from about 4-5 large lemons)
- 1 tablespoon lemon zest (from about 2 lemons)
- 1/4 teaspoon salt
- FOR FINISHING:
- 2-3 tablespoons powdered sugar, for dusting
Instructions
- 1Preheat your oven to 350°F (175°C). Line a 9x13-inch baking pan with parchment paper, leaving an overhang on the long sides so you can lift the bars out later. Lightly grease the parchment.
- 2Make the shortbread crust: Beat the softened butter and powdered sugar together with a hand mixer or stand mixer on medium speed until pale and fluffy, about 2 minutes. Add the flour and salt and mix on low until the dough just comes together —? it will look crumbly but will hold when pressed.
- 3Press the dough evenly into the bottom of the prepared pan. Use the flat bottom of a measuring cup to get it smooth and level all the way into the corners. The layer should be about 1/4 inch thick.
- 4Bake the crust for 18-20 minutes, until the edges are lightly golden and the center looks set and dry. Do not underbake it —? a pale, soft crust will not support the filling.
- 5While the crust bakes, make the lemon filling: Whisk the eggs and granulated sugar together in a large bowl until combined. Add the flour, lemon juice, lemon zest, and salt. Whisk until completely smooth. Set aside.
- 6When the crust comes out of the oven, immediately reduce the oven temperature to 325°F (163°C). Pour the lemon filling directly over the hot crust —? you do not need to let the crust cool first.
- 7Return the pan to the oven and bake for 22-25 minutes, until the filling is set at the edges and has only a very slight jiggle at the very center when you gently shake the pan. It should not look liquid or sloshy.
- 8Remove from the oven and let the bars cool in the pan at room temperature for at least 30 minutes, then transfer to the refrigerator and chill for at least 1 hour before cutting. Do not skip this step.
- 9Once fully chilled, lift the bars out using the parchment overhang and set on a cutting board. Dust generously with powdered sugar. Cut into 16 bars using a sharp knife, wiping the blade clean between cuts for tidy edges.
- 10Serve cold or at room temperature. Add a second dusting of powdered sugar right before serving if they've been sitting out.
Pro Tips
- Use fresh lemon juice, full stop. Bottled lemon juice produces a filling that tastes like it came from a cleaning supply cabinet, and you will know it and so will everyone else.
- The parchment overhang is not optional. Trying to cut lemon bars out of an unlined pan is a grief experience that doesn't need to happen to you.
- Let the knife do the work when cutting —? one clean downward press, then wipe the blade. Sawing through lemon bars drags the filling and makes a mess that will bother you more than it bothers anyone eating them.
Substitutions
Storage Instructions
Store lemon bars in an airtight container in the refrigerator for up to 5 days. Layer between sheets of parchment or wax paper to prevent sticking. Do not store at room temperature for more than 2 hours due to the egg-based filling. Lemon bars can be frozen (before dusting with powdered sugar) for up to 2 months —? wrap individually in plastic wrap, then place in a freezer bag. Thaw overnight in the refrigerator and dust with fresh powdered sugar before serving.
Make Ahead
The shortbread crust can be pressed into the pan, covered with plastic wrap, and refrigerated up to 24 hours before baking. The full assembled bars are actually better made a day ahead —? the filling firms up overnight in the refrigerator and cuts much more cleanly. Hold the powdered sugar dusting until just before serving.
Frequently Asked Questions
Why is my lemon bar filling runny or not setting up?
The most common cause is underbaking. The filling needs to reach an internal temperature where the eggs set —? pull them when the edges are firm and there's only a very slight wobble at the center, not a liquid slosh. Also make sure your oven temperature is accurate; ovens often run cooler than the dial says. A fully liquid center after 25 minutes usually means the oven temp dropped too much when you reduced it.
Can I make lemon bars ahead of time for a party or event?
Yes, and honestly you should. Lemon bars made the night before and refrigerated overnight cut much more cleanly and hold their shape better than same-day bars. Make them fully, cool and chill them in the pan, then cut and dust with powdered sugar the morning of your event. They'll keep in the refrigerator for up to 5 days total, so there's no reason to rush yourself.
Why did my crust come out soggy under the filling?
Almost always this means the crust was underbaked before the filling went on. The shortbread needs to be fully cooked —? golden at the edges, set and dry-looking at the center —? before you pour the lemon filling over it. A pale, underdone crust absorbs the wet filling and turns soft. Don't rush the crust bake time, even if it looks done at 15 minutes.
Do I have to use fresh lemon juice or can I use bottled?
Fresh lemon juice makes a meaningful difference in this recipe. The filling is simple enough that the lemon flavor is the whole point, and bottled juice often has a flat, slightly metallic quality that comes through clearly in the finished bar. You'll need about 4-5 large lemons for 2/3 cup juice. Zest them before juicing —? it's much easier that way.
Can I make these in an 8x8 pan instead of 9x13?
Yes —? halve the full recipe for an 8x8 pan. The crust bake time will stay roughly the same (18-20 minutes), but the filling layer will be thicker, so extend the filling bake time to 28-32 minutes and watch for that slight-wobble-only-at-center cue. The bars will be taller and more substantial, which is not a complaint.
How do I get clean cuts on my lemon bars?
Three things: chill completely before cutting (at least 1 hour in the refrigerator, overnight is better), use a sharp chef's knife rather than a serrated knife, and wipe the blade clean between every single cut. A warm or dull knife drags the filling. Some people also find it helpful to score the top lightly before pressing all the way through.
Can I make lemon bars gluten-free?
Yes. Use a 1:1 gluten-free all-purpose flour blend in the crust —? most cup-for-cup blends work well here because shortbread is naturally forgiving. For the filling, substitute 3 tablespoons of cornstarch for the 1/3 cup of flour. The texture will be slightly different —? a touch silkier and more translucent —? but the flavor is just as good.
Why does the powdered sugar disappear into the bars?
Moisture from the filling absorbs the powdered sugar over time, especially if the bars are refrigerated after dusting. This is normal and doesn't affect flavor. The fix is simple: dust with powdered sugar right before serving rather than right after cutting. If you've stored them and the sugar has vanished, just add a fresh dusting —? it takes ten seconds and nobody will know.