Posted on — Leave a comment

Lemon Bars Recipe: Easy, Tangy Bars with Buttery Shortbread Crust

Finished lemon bars with smooth pale-yellow lemon filling over thin golden shortbread crusts, lightly dusted with powdered sugar.

Homemade lemon bars—also called lemon squares—ask you to trust a filling that looks far too thin when it first goes into the oven. It sits over freshly baked shortbread, pours almost like cream, and is still surprisingly soft when the pan comes back out.

After cooling and chilling, that loose mixture becomes a smooth, bright lemon layer that holds its shape when cut. Underneath, the shortbread stays buttery and crisp-tender, substantial enough to support the filling without taking over the bite.

Classic Lemon Bars Recipe

Bright lemon custard over tender shortbread, baked only until the center moves softly and then chilled until fully set. Have the filling ready before the crust comes out so the two layers can go straight back into the oven.

Pan
9 × 13 in / 23 × 33 cm

Yield
20 standard bars

Hands-On
About 20 min

Crust Bake
20–24 min

Filling Bake
About 22–27 min

Cool
About 1–1½ hr

Chill
At least 3 hr

Total
About 5½ hr

Equipment

  • 9 × 13-inch / 23 × 33 cm light-colored metal baking pan
  • Parchment paper
  • Two mixing bowls, whisk and silicone spatula
  • Fine grater or Microplane and citrus juicer
  • Flat-bottomed measuring cup or glass for pressing the crust
  • Kitchen scale, recommended
  • Long sharp knife for cutting

Pan note: A light-colored metal pan gives the most predictable bake for these timings. If your bare aluminum pan has previously given acidic foods a metallic taste, use glass instead and follow the visual cues rather than trying to match the timing exactly.

Shortbread Crust

  • 1 cup / 226 g unsalted butter, melted and cooled for a few minutes
  • 1¾ cups plus 2 tablespoons / 225 g all-purpose flour
  • ⅓ cup / 40 g cornstarch
  • ¾ cup / 90 g powdered sugar
  • ½ teaspoon fine salt
  • 1 teaspoon vanilla extract, optional

Using cups? Spoon the flour into the measuring cup and level the top instead of scooping straight from the bag. Packed flour can make the chilled crust much harder than intended.

Lemon Filling

  • 2 cups / 400 g granulated sugar
  • 2 tablespoons finely grated lemon zest, from 2–4 of the lemons
  • 6 tablespoons / 46 g all-purpose flour
  • ¼ teaspoon fine salt
  • 6 large eggs
  • 1 cup / 240 ml freshly squeezed lemon juice, usually from 5–7 lemons total
  • Powdered sugar, for finishing

Zest before you juice. Grate only the yellow outer peel and stop before you reach the bitter white pith. Then squeeze the same lemons and measure the juice. Once you have 1 cup / 240 ml, stop.

Method

Prepare the Crust and Lemon Filling

  1. Heat the oven. Set a rack in the center and heat the oven to 350°F / 175°C conventional. For a fan oven, use 160°C and start watching the crust a little early. Line the pan with a parchment sling, leaving overhang on two opposite sides so the chilled slab can be lifted out later.
  2. Mix the shortbread. Stir together the flour, cornstarch, powdered sugar and salt. Add the melted butter and optional vanilla. Mix until no dry flour remains. The mixture will look crumbly but hold easily when squeezed.
  3. Press an even base. Scatter the mixture over the whole pan before pressing it down. Use the bottom of a measuring cup or glass to level it, paying particular attention to the corners and perimeter. Close visible cracks or thin spots, then leave it alone.
  4. Par-bake the crust. Bake for 20–24 minutes. The surface will look dry and set, with light-golden color beginning around the edges. Make the filling while the crust is in the oven.
  5. Make the lemon sugar. Put the granulated sugar and zest in a large bowl. Rub them together with your fingertips for 30–60 seconds. The sugar will become damp, and the bowl should smell much more strongly of fresh lemon. Whisk in the flour and salt.
  6. Mix the lemon filling. Whisk in the eggs until evenly combined, then add the measured lemon juice and whisk just until smooth. The mixture will be very thin and easy to pour. If this is your first batch, this is often the point that looks wrong. It isn’t.

Bake, Chill and Finish

  1. Pour onto the hot crust. Take the crust from the oven and reduce the temperature to 325°F / 165°C conventional; for a fan oven, use 150°C. If you see an obvious crack or edge gap, gently nudge the surrounding shortbread closed with the back of a spoon before pouring in the filling. If a thick layer of foam has collected on top, let it settle briefly and give it one gentle stir. Pour the filling onto the hot crust and return the pan straight to the oven.
  2. Bake until the center moves as one layer. Begin checking at about 22 minutes. The edges will be set while the center moves softly when the pan is nudged. If liquid visibly ripples or sloshes underneath, give it a few more minutes. Most pans will finish in roughly 22–27 minutes.
  3. Cool, then chill. Set the pan on a rack until the filling and pan are no longer warm, usually 1–1½ hours. Refrigerate for at least 3 hours. Cutting while the custard is warm or only partly chilled turns defined layers into a much messier job. Overnight chilling is excellent when neat slices matter.
  4. Cut and finish. Lift the cold slab out by the parchment. Use a long sharp knife and wipe the blade after each cut. Dust with powdered sugar shortly before serving.

Cold from the refrigerator, the lemon filling is silky and firm enough to hold its shape, with lemon arriving before the butter and shortbread. As the chill comes off, both layers soften slightly and the citrus aroma comes forward.

What the Pan Should Look Like

The crust, raw filling and finished custard look quite different from one another. These are the checkpoints worth remembering.

StageLook for
Pressed crustAn even layer reaching the corners and perimeter, without obvious cracks or thin channels.
Par-baked crustA dry, set surface with the first light-golden color around the edges.
Raw fillingThin, smooth and easily pourable. A few small bubbles are normal.
Finished bakeSet edges and a center that moves gently as one soft layer, with no liquid sloshing underneath.
Fully chilledFirm enough to lift and slice neatly, but still silky when you bite into it.
Five-stage visual showing pressed shortbread, lightly par-baked crust, thin raw lemon filling, a soft-set baked lemon layer, and a chilled finished bar.
The important changes happen in texture and structure, not just color: the flat crust sets first, the very thin filling follows, and chilling finally turns the soft baked center into a clean-cut bar.

The Shortbread Has Two Jobs

It needs to taste like shortbread, and it has to support a bowlful of liquid filling. A very thick base may feel safer under all that liquid, but too much shortbread leaves you with a bar that tastes mostly of crust.

A little cornstarch takes the place of some flour and helps the shortbread stay tender once the bars are cold. Spread the crumbs throughout the pan before pressing them down. Even thickness matters more than brute force.

Firmly packed is enough. Once the crust is level and the obvious gaps are gone, leave it alone. Butter-rich shortbread is naturally firmer when cold.

Gluten-free: For gluten-free lemon bars, use a recipe developed for the particular flour blend you plan to use instead of making a straight 1:1 substitution in this shortbread. Different blends absorb butter differently.

Lemon Juice and Zest

Lemon juice provides most of the acidity and the bulk of the liquid; zest adds concentrated aromatic citrus oils. For stronger lemon aroma, add more zest. Extra juice changes the amount of liquid the custard has to set. Lemons vary widely in size and juiciness, so measure the juice rather than relying on the number of lemons.

Hands rubbing finely grated lemon zest into granulated sugar beside a clear glass of fresh lemon juice.
Fresh zest and lemon juice do different jobs in the filling: rubbing the zest into sugar releases aromatic oils first, while the juice brings the sharp acidity that makes the bars taste distinctly lemony.

Fresh juice is the better default when lemon is the main flavor. Serious Eats’ fresh-versus-bottled testing found the difference mattered most in lemon-forward recipes, while fresh zest narrowed the gap. If you don’t have enough lemons for a full cup, bottled juice plus fresh zest is the better fallback.

Meyer lemons work at the same measured juice volume and give a sweeter, more floral result with less sharp acidity.

Can you use prepared lemon curd instead? Not as a direct swap. Lemon curd has already been cooked and balanced differently, so it will not behave like the raw egg-lemon filling used here.

When to Add the Filling

Pour the filling onto the crust while it is still hot. The residual heat begins setting the custard where it meets the shortbread, helping the two layers stay where they belong.

Keep the handoff short. Lower the oven temperature, pour in the filling and send the pan straight back in.

Thin pale-yellow lemon filling pouring from a clear pitcher onto a flat par-baked shortbread base in a rectangular metal baking pan.
The raw lemon mixture should look almost unexpectedly loose; when it lands on the hot shortbread, it levels into a shallow layer rather than sitting on top as a thick mound.

How to Tell When Lemon Bars Are Done

Begin checking around 22 minutes. Lemon bars are ready when the edges are set and the center moves softly as one layer when you gently nudge the pan. If liquid visibly ripples or sloshes underneath, keep baking.

Rectangular baking pan showing the desired soft-set lemon-bar center alongside smaller examples of a liquid underbaked center and a firmer overbaked center.
Don’t wait for the center to look completely firm in the oven; a gentle, unified movement is the useful checkpoint, whereas obvious liquid sloshing means the filling is not there yet.
What you seeWhat to do
Liquid ripples or sloshingKeep baking and check again after a few minutes.
Set edges; center moves softly as one layerTake the pan out. Cooling and chilling will firm it substantially.
Heavy puffing, strong browning or a rigid hot centerThe custard is heading toward a firmer, more rubbery texture.

Glass, dark nonstick and light metal pans heat differently, and home ovens are rarely perfectly calibrated. Use the timing as a guide, then watch the center. Chilling finishes the texture; it does not finish the cooking.

If the texture already looks wrong, jump to troubleshooting.

Cooling and Cutting

Let the pan cool until it is no longer warm before covering and refrigerating it. Cover too early and trapped steam can settle back onto the lemon layer as condensation.

What the Chilled Layers Should Look Like

The long chill is worth it. Once the slab lifts out in one piece, the layers are easy to see: lemon on top, shortbread underneath, without the two smearing together as you cut.

Close side view of a chilled lemon bar showing a smooth pale-yellow filling above a thin compact golden shortbread crust.
The clean boundary between the two layers is the useful clue here: the chilled lemon custard should cut as one tender layer while the shortbread stays compact underneath.

How to Cut Clean Lemon Bar Squares

Use a long sharp knife and wipe it after each cut. That is mostly about presentation—the bars taste just as good if the edges are less tidy. Cut the slab into 15 generous bars, 20 standard squares or 24 smaller pieces, depending on how you plan to serve them.

Chilled lemon-bar slab being lifted with parchment while a knife makes clean cuts and finished pieces receive powdered sugar.
The long chill does more than cool the bars: it gives the lemon layer enough structure for the knife to reveal two clean layers instead of dragging the filling through the shortbread.

Dust with powdered sugar after cutting and preferably shortly before serving. It gradually absorbs moisture from the surface and disappears, which is normal.

For a softer bite and stronger lemon aroma, let the bars sit out for about 10–15 minutes before eating.

Troubleshooting Lemon Bars

The crust floated or the filling baked underneath it

A lemon-bar crust floats when thin filling finds a crack, thin spot or edge gap, gets underneath the shortbread and pushes it upward as it bakes.

Cross-section of a lemon bar with the shortbread lifted above the lemon filling, with a smaller detail showing filling beneath an edge gap.
An upside-down-looking crust is actually a useful diagnostic clue; when lemon filling appears beneath the shortbread, check the edge for the path it took underneath.

Next time, press the base evenly to the perimeter so the thin filling has no easy route underneath. If the slab is fully set and intact despite the layers ending up upside down, you may be able to chill it thoroughly, invert it and cut it.

The filling is still runny

If the center was actually sloshing instead of moving softly as one layer, the bars were underbaked. If you catch that as soon as the pan comes out, return it to the oven and check again after a few minutes.

Three close-up lemon-bar textures comparing a loose runny filling, a smooth silky filling, and a firm rubbery filling.
Once chilled, the center reveals the bake more clearly: the ideal lemon custard stays smooth and tender, without collapsing on the knife or bouncing back like a firm gel.

A smaller pan, extra lemon juice or an oven running cool can all lengthen the bake.

The filling tastes eggy or feels rubbery

If the filling is firm and rubbery as well as eggy, overbaking is the likely cause. If the texture is good but the flavor seems egg-forward, use more zest next time—not extra juice. Zest strengthens the lemon aroma without adding more liquid.

There are white bubbles or foam on top

A few white bubbles are cosmetic. Ignore them. Heavy foam usually means the filling was whisked harder than necessary; next time, let it settle briefly before pouring.

The filling has flour lumps

If you see flour lumps before pouring, press the filling through a fine-mesh sieve. Scrape any zest caught in the sieve back into the bowl. Next time, whisk the flour into the lemon sugar before adding the eggs and juice.

The crust is soggy or very hard

For a soggy base, first look back at the par-bake. The surface needed to be dry and set before the lemon mixture went on. Filling that slipped underneath the crust can cause a similar texture, and several days in the refrigerator will soften even a well-baked base.

A very hard crust points toward too much flour, excessive par-baking, an unusually thick layer or heavy compaction. Let one bar lose some refrigerator chill before deciding; butter-rich shortbread is much firmer when cold.

Comparison of lemon-bar shortbread showing a tender crust, a moisture-softened soggy crust, and a dense hard crust beneath lemon filling.
The best shortbread should break cleanly without fighting the bite: it stays tender enough to chew, yet firm enough to carry the lemon layer without turning wet or dense.

The top looks pale, cracked or wet

Pale yellow is normal. It says very little about how lemony the bars will taste. Cracks can come with excess air or too much oven time. If a properly set surface looks wet after chilling, condensation is a likely cause, especially if the pan was covered while warm.

Lemon-bar surface close-ups showing a normal pale top with small bubbles, heavy foam, cracking, and condensation.
Start with the ordinary-looking surface: a pale top and a few tiny bubbles can be perfectly fine, so appearance alone is not a reason to call the batch a failure.

The bars taste metallic

If lemon or other acidic foods have picked up a metallic taste from your pan before, use glass next time and avoid letting aluminum foil touch the filling. Stainless-steel bowls, whisks and utensils are fine.

Ugly does not always mean ruined. Surface bubbles are cosmetic. A set slab with inverted layers may still be usable. And if the bars break while cutting but taste good, spoon the pieces into glasses with whipped cream or yogurt and berries.

Using an 8×8 Pan

For an 8×8-inch / 20×20 cm pan, make half the recipe. That gives you almost the same layer depth as the full batch in a 9×13, so begin checking around the normal time. It may finish a little earlier.

If you want the math, a 9×13 pan has about 117 square inches of surface area; half of that is 58.5 square inches. An 8×8 pan has 64 square inches, so a half batch is about 9% shallower. Putting the entire recipe into an 8×8 would make the layers more than 80% deeper and require a substantially different bake.

Two lemon-bar pans comparing a full batch in a 9-by-13-inch pan with a half batch in an 8-by-8-inch pan at similar finished depth.
The useful thing to compare is the finished depth, not simply the pan dimensions: using half the mixture in an 8×8 keeps the lemon-bar layer close to the thickness of a full batch in a 9×13.

Make Ahead, Storage and Freezing

Make the Bars a Day Ahead

Lemon bars are particularly easy to make a day ahead because the long chill is already part of the recipe. Bake and cool the slab, refrigerate it overnight, then lift, cut and dust the bars the next day. Besides taking work off your serving day, the overnight chill makes especially neat slices easier.

Whole uncut lemon-bar slab in the background with clean powdered-sugar-dusted lemon-bar squares in the foreground, illustrating make-ahead preparation.
Overnight chilling turns the bars into an easier make-ahead dessert: tomorrow’s slab is firmer, steadier and much easier to portion neatly than one that is still warm from the oven.

Yes, lemon bars should be refrigerated. Keep them covered and plan to finish them within about 4 days. Their texture is best during the first 2–3 days, while the shortbread still contrasts clearly with the creamy lemon layer. That four-day limit also lines up with FDA guidance for cooked egg dishes, which gives a 3–4 day refrigerator window.

For a party or bake sale, put out smaller batches and replenish them from the refrigerator. Don’t leave the bars unrefrigerated for more than 2 hours, or more than 1 hour when the temperature is above 90°F / 32°C.

For longer storage, chill and cut the bars first but leave off the powdered sugar. Freeze the pieces until firm, then wrap them well or stack them with parchment between layers in a freezer-safe container. For best quality, use them within about 3 months. Thaw overnight in the refrigerator, then dust shortly before serving.

If oven space is the real constraint, No-Bake Lemon Bars take a different route, setting in the refrigerator instead of relying on eggs and oven heat.