This foolproof recipe for easy lemon bars is made with a shortbread base and topped with tart lemon curd. These lemon squares are bright yellow and very lemony!
What you will need to make lemon squares
- all-purpose flour for the crust to make a firm base for the lemon filling so that you can easily cut and serve them
- sugar—use granulated sugar (white sugar), not brown sugar because we don’t want the flavour of the sugar to mask the brightness of the lemon
- Salt—I use Diamond Crystal fine kosher salt but table salt will work. Use half if you make this change.
- butter—preferably unsalted butter though salted butter could work, especially in the crust. Omit the salt from the recipe if using salted butter.
- lemon juice—I highly recommend using fresh lemon juice. Bottled lemon juice doesn’t have a great flavour and we want these bars to shine!
- egg yolks and eggs—use large eggs as recommended, otherwise your filling may not set properly and the texture may be affected.
See recipe card for quantities.
How to make lemon bars
To make lemon bars, there are 2 components: a base and a lemon filling. Once baked, the bars are cut into squares and dusted with powdered sugar.
The shortbread base
Typically the base for lemon bars is an easy shortbread crust, made in the food processor from
For the base, you can easily fall back on the classic shortbread ingredient ratio of 1:2:3 of sugar/butter/flour, by weight. If you can remember some of the common baking ratios, you could make the base without a recipe! Baking ratios make it easy to scale up and down recipes.
We assemble the crust in the food processor to make this recipe really easy and we bake the crust to ensure the base is solid and has good flavour. Underbaked shortbread crust doesn’t taste good and may lead to a soggy bottom on these lemon bars.
The base for these lemon squares is a shortbread cookie crust. You could also opt for a graham cracker crust, made from either store-bought or homemade graham crackers. I have a friend who actually makes the crust for her lemon squares using saltines (salted soda crackers) instead of graham crackers! There's room for creativity here.
Lemon filling without cornstarch or flour
The lemon filling for lemon bars always contain:
- egg yolks and/or whole eggs
- lemon juice (duh!)
Still, there are variations between different recipes because there are actually two ways to make the filling for lemon bars:
- With a starch thickener, either flour or cornstarch. The fluid filling is uncooked and poured over the par-baked crust. The bars have to be baked in the oven for 30 minutes or more to thicken the filling and to get it to set properly.
- lemon curd filling with or without butter that doesn't contain any flour or cornstarch. The filling is pre-cooked on the stove first before pouring over the hot crust. The bars are baked briefly to set the curd, but actually, you don't have to finish them in the oven.
All roads lead to lemon bars, obviously, but there are some drawbacks to each method.
Why we aren’t adding flour or cornstarch in the filling
I prefer to make lemon bars without adding a starch to the filling and I prefer to cook the filling separately on the stove before pouring it over the crust because:
- the thickeners can mask the bright citrus flavour, mellowing it out or even muting it.
- the thickeners, especially flour, give the filling a whiter, more opaque appearance.
- the liquid filling is poured over the shortbread base when it is very fluid and this can lead to it seeping where the filling leaks under the crust.
- the uncooked filling is whisked, which makes a foam that rises to the top of the bars as they bake, leading to a bubbly texture on top that has a white cast, so the lemon bars appear white, not yellow.
Cooking the filling on the stove
For lemon bars where the filling is made from a lemon curd cooked on the stove and without thickeners:
- the lemon filling tends to be sourer which, for some, can be too sour. Some recipes may compensate by adding more sugar to balance out the tart flavour.
- the filling is cooked on the stove first, and there's a risk that the eggs cook to the point of being hard. The eggs are strained out then, which means there's a risk that the bars won't set properly.
- hard-cooked eggs can cause an eggy taste in the curd.
To make lemon bars foolproof, I prefer to cook the lemon curd filling separate from the shortbread base:
- thicken the lemon filling by cooking it on the stove, just like for lemon curd, cooking it above 170 ºF or 72 ºC.
- pour it over the shortbread crust and finish the bars in the oven
With this method and recipe, the thickened filling is much less likely to seep between the edge of the crust and the side of the pan. It makes it almost impossible for you to end up with upside-down lemon bars, which is a common problem for many of us.
Tip: if you find that your bars sweat a little and have a thin layer of water on the surface after refrigerating, simply blot it with a paper towel. Do this right before dusting with powdered sugar and serving.
Pre-cooking the lemon curd filling on the stove also means that you actually don't have to bake the bars a second time. The second baking step is actually optional but it can help the edges of the bars set more firmly, making it easier to separate them from the parchment paper when cutting.
I used the same filling recipe to make this orange pie recipe, but instead of baking the curd in the pie shell, I added gelatin to help it set firm.
With desserts made with lemon juice and citrus that tend to be particularly acidic, it’s important to use non-reactive bakeware. Use an OXO whisk that is made with high quality stainless steel, for example, and bake the bars in a glass square baking dish or a non-reactive metal pan (either made of anodized aluminum, aluminized steel, or a pan coated with a non-stick finish, like this one from USA pans). If you use a regular aluminum pan for this recipe, the edges of filling may react with the metal, which will give the bars an unpleasant metallic taste.
Beware of vintage or antique metal brownie pans, which are most definitely made of reactive aluminum. They are great at conducting heat but they will impart a metallic flavour to baked goods like these!
Store these lemon bars in the fridge and keep them refrigerated. Serve them cold. Usually, they aren’t served with ice cream or anything more than a dusting of powdered sugar, though a dollop of lightly sweetened whipped cream would be lovely to make these lemon squares into a plated dessert.
Frequently asked questions and troubleshooting
Refrigeration is essential to achieve the perfect set with lemon bars because the filling is not stabilized by gelatin. Refrigeration keeps the filling cold, especially the butter in the curd, which keeps the bars firm so that you can slice and serve them easily without the filling oozing.
Lemon bars freeze surprisingly well. I have tested this a few times and I noticed no changes in the consistency of the filling or the crust after freezing and thawing.
To freeze lemon bars, chill the bars in the refrigerator overnight, then cut into squares.
Set the squares on a sheet pan lined with parchment, separating them out to allow them to freeze individually and to allow air circulation between them. Once frozen solid, you can place them in an airtight container or a freezer bag, and seal tightly, removing as much air as possible.
I suggest storing them for up to 1 month, after which the texture of the filling may be compromised.
To defrost lemon bars, take them out of the freezer and place them on a parchment-lined sheet pan. Place in the refrigerator, uncovered, overnight to thaw slowly. Serve cold.
You can also defrost one bar at a time, just place the bar on a plate in the fridge overnight to thaw.
The lemon bars may weep when a layer of water forms on the surface. That water could form if you cover the pan of bars too quickly when they are still warm. Steam will be trapped and condense and drip back down onto the surface of the bars. To avoid this, always cool lemon bars COMPLETELY before covering and storing in the fridge. Sometimes I actually cool them to room temperature, and then I put the pan in the fridge to cool for an hour or two before covering them with foil. This works quite well!
Another option is that the curd was overcooked and in that case, sometimes as the curd cools, the proteins will shrink back and water will be pushed out of the curd. I find it can happen if the lemon bars are made with cooked curd (like here) and then baked for another 10 minutes or so.
The good news is that if water forms on the surface of your bars, you should be able to blot it with a clean paper towel, which will absorb that layer of moisture without ruining the look of the bars. Just be gentle!
If your lemon bars are too soft to cut, it could be that the filling wasn't cooked sufficiently. Make sure to heat the curd to between 77 ºC and 82 ºC (170 ºF–180 ºF) to ensure the curd sets properly and has the right texture, firm enough to cut but still creamy.
Another reason could be that they are too warm. Remember that lemon curd is thick and fairly firm when properly chilled in the refrigerator at 4 ºC, but lemon curd can loosen and become quite fluid if it's sat at room temperature for too long. Make sure to chill the bars for several hours in the refrigerator, or better yet, overnight.
After chilling for several hours (or overnight) so that they are completely cold, if your lemon bars are too soft to cut, you will have to bake them in the oven to try and set the filling. Preheat the oven to 350 ºF while the bars come to room temperature, then place the pan in the oven. Bake until the edges are set but the middle is still jiggly.
If the texture of the lemon curd filling in your lemon bars isn't creamy and smooth, it's probably bits of egg. Did you overcook the curd? The lumps could be bits of hard-cooked egg. Strain the curd before pouring it over the baked shortbread crust.
With other recipes that contain thickeners like cornstarch or flour, you need to whisk all the filling ingredients together very carefully when it's cold in order to properly incorporate the starch or flour. Otherwise, the thickener will be lumpy and the edges will gel, but the lumps will not dissolve or break down. It's very important to whisk the filling well and to make sure there are no lumps before you bake the bars. The recipe below has no starch or flour in the filling, so maybe try this cooked curd filling instead next time!
Other desserts with lemon and citrus
Take advantage of citrus season and make these other citrus dessert recipes:
Shortbread cookie crust
- 156 grams bleached all-purpose flour
- 50 grams granulated sugar
- 1.25 mL Diamond Crystal fine kosher salt
- 115 grams unsalted butter cut into cubes, cold
Lemon curd filling
- 250 mL fresh lemon juice
- 300 grams granulated sugar
- 8 large egg yolk(s)
- 2 large egg(s)
- 115 grams unsalted butter cut into cubes, room temperature
- Preheat the oven to 350 °F (175 °C). Butter and line an 8x8-inch (20x20 cm) with parchment paper, making sure that you leave overhangs on all sides. You can use metal binder clips to secure the parchment overhangs to the edge so that they stay upright and in place. Set aside.
Shortbread cookie crust
- In a food processor, combine the flour, sugar, and salt. Let it run so they are well mixed.
- Drop in the cubes of butter, and then pulse to form a coarse sandy mixture.
- Dump the mixture in the prepared pan and press it well into the corners and edges. You can use a flat-bottomed glass to even out the surface and to help you press down the crust firmly.
- Bake the crust on the middle rack for 20 to 30 minutes. The edges should be golden brown. If you like a blonder shortbread crust, bake it for 20 minutes, for a more caramelized cookie crust, bake it for 30 minutes.
Lemon curd filling
- While the crust is baking, cook the lemon curd filling.
- Prepare a fine-mesh sieve and place it over a 4-cup liquid measuring cup with a pouring spout or a bowl with a pouring spout. Set aside.
- In a medium saucepan, combine the lemon juice with half the sugar. Heat it on medium–high.
- In a large bowl, whisk together the egg yolks, whole eggs, and the rest of the sugar until light in colour.
- When the lemon juice begins to steam and is almost simmering, turn the heat off, and pour it over the whisked eggs and sugar, while whisking. Combine everything together and when the filling is well mixed, transfer it back to the saucepan.
- Turn the stove back on to medium heat and whisking constantly, heat the filling until it's 77 °C (170 °F). The lemon curd should be thick, creamy and coat the back of the spoon.
- Immediately take the curd off the stove and incorporate the cubes of butter while still whisking.
- Once the butter has all been incorporated, pour the curd through the strainer into the measuring cup.
- When the crust has baked sufficiently, take it out of the oven and place the pan on a cooling rack.
- Pour the curd over the hot crust and smooth the surface with an offset spatula if needed. Make sure the curd covers the entire surface, from one edge of the pan to the other.
- Place the pan back in the oven and bake for 10 minutes more. The edges of the curd will appear set but the centre will still be wobbly. Note that this baking step is optional but it can help the edges of the bars set more firmly, making it easier to separate them from the parchment paper when cutting.
- Set the pan on a wire rack to let it cool completely for a few hours. Once cooled to room temperature, chill in the fridge overnight. You may want to leave the pan unwrapped to avoid any condensation, but if any water forms on the surface of the lemon curd, you can easily blot it with a paper towel.
- Once chilled overnight, you can lift the bars out of the pan using the parchment overhangs. Carefully peel off the parchment from the edges of the bars, and place on a cutting board to cut into 16 eual bars. Decorate with powdered sugar before serving.