Jump to Recipe

A good lemon bar has two distinct textures: a tender, buttery base and a smooth, tart layer of lemon custard. The filling should be bright enough that you can taste the fresh lemon after the sugar, and the bottom should be firm enough to pick up. These squares use a pressed shortbread crust, so there is no dough rolling and no separate pot of lemon curd to prepare.

Prep time20 min
Cook time45 min
Rest / chill3 hrs
Total time4 hrs 5 min
Servings16 bars
DifficultyEasy

If you are looking for lemon dessert recipes that can be made a day ahead, bars are convenient. The pan needs time to chill, but once it is cold you can lift out the whole slab and cut it into small squares. The most useful details are how long to prebake the base, how gently to mix the filling and when to stop baking.

Why the shortbread needs to bake first

Raw flour and butter make a soft, fragile layer that cannot support a wet lemon filling. Prebaking sets that base and dries its surface enough to resist the custard. The eggs and flour in the lemon mixture then create a tender gel as the filling cooks. If you bake at a very high temperature, the edges can become rubbery before the center sets. A moderate oven and a warm prebaked crust keep the two layers more even.

Ingredients you’ll need

Shortbread

  • 1 cup all-purpose flour (120 g). Spoon and level the flour or weigh it. Excess flour produces a dry base.
  • 1/4 cup granulated sugar (50 g). Adds tenderness and a light sweetness.
  • 1/2 cup unsalted butter (113 g), melted. Let it cool slightly before mixing so the dough does not feel oily.
  • 1/4 teaspoon fine salt (1.5 g). Balances both the butter and sugar.

Lemon filling

  • 3 large eggs (150 g without shells). Eggs set the lemon custard. Whisk just until blended.
  • 1 cup granulated sugar (200 g). Sugar is needed for the custard structure as well as sweetness.
  • 3 tablespoons all-purpose flour (24 g). Helps stabilize the filling and gives cleaner cuts.
  • 1/2 cup fresh lemon juice (120 g). Usually three to four lemons. Measure after juicing.
  • 2 teaspoons finely grated lemon zest (4 g). Grate before juicing and avoid the white pith.

Finishing

  • 1 tablespoon confectioners’ sugar (8 g). Dust over the chilled bars just before serving.

Equipment to have ready

An 8-inch (20 cm) square glass or ceramic baking dish, parchment paper, two mixing bowls, a fine-mesh sieve, a whisk, a citrus juicer, a fine grater and a cooling rack. A glass or ceramic dish is nonreactive and useful for acidic fillings. Leave two parchment handles to lift out the chilled bars; do not use wax paper in the oven.

Allergen information: Wheat, milk and egg.
Flour, sugar, butter, eggs, fresh lemons, lemon zest and powdered sugar.
Gather the shortbread and lemon filling ingredients using the written amounts.

How to make lemon bars, step by step

1. Line the pan and heat the oven

Preheat to 325°F (165°C), with a rack in the center. Lightly grease the baking dish and fit parchment across the bottom and two opposite sides.

Press parchment into the corners so the crust sits flat. A little grease beneath the paper keeps it from sliding while you press the dough. Allow the oven to finish preheating before the pan goes in.

2. Mix and press the shortbread

Stir flour, the 1/4 cup sugar and salt together. Add melted butter and mix until all the flour is moistened. Press evenly into the pan.

The mixture should resemble soft crumbs that hold when squeezed. Use the flat bottom of a cup to level it gently, particularly at the corners. Do not overwork the dough; once the flour is moistened, stop stirring.

Shortbread dough pressed flat with a measuring cup in a lined baking pan.
Step 2: Press the shortbread mixture into an even layer.

3. Prebake the base

Bake the crust for 18–22 minutes, until the surface is set and the edges are faintly golden. Leave the oven on.

The middle may look pale but should not look wet. Let the pan rest for a few minutes while you finish the filling. Avoid letting the base cool completely: pouring onto a warm crust helps the layers come together.

4. Prepare the lemon custard

Whisk the 1 cup sugar with the 3 tablespoons flour until no clumps remain. Add eggs and whisk gently, then stir in lemon juice and zest.

Sifting the flour into the sugar helps avoid pale flour pockets in the filling. Do not beat the eggs into a foam; excess air can create bubbles on the surface. If there are large lumps, pass the mixture through a sieve before adding the zest.

5. Bake until just set

Pour the filling over the warm crust. Return the pan to the center rack for 22–25 minutes, until the edges are set and the middle moves only slightly. The egg mixture should reach 160°F (71°C).

Do not wait for the filling to turn brown. A slight wobble is normal, but a liquid ripple across the whole center is not. If the center is not ready, check in three-minute increments. Keep the oven at the same temperature; a hotter oven can toughen the edges.

Yellow lemon filling poured onto a prebaked shortbread crust.
Step 5: Pour the filling over the warm prebaked crust before returning it to the oven.

6. Cool, chill and slice

Cool on a rack for about an hour, then refrigerate for at least two hours. Lift out using the parchment, cut into 16 bars with a clean sharp knife and dust with confectioners’ sugar.

Do not try to slice the warm slab. Wipe the knife after each cut to prevent lemon custard from dragging across the next square. Add the dusting sugar at serving time; moisture dissolves it if it sits on the bars overnight.

Oven guide for a tender lemon custard

Use 325°F (165°C) conventional bake, or around 300°F (150°C) for fan-assisted ovens. Check the crust at 18 minutes and the filled bars at 22 minutes. Glass may retain heat after the pan comes out, which is one reason not to wait until the custard is completely rigid. The eggs need to reach a safe temperature while still retaining a tender texture. The total bake time is the sum of both oven stages, not just the time after the filling is poured.

Common problems and how to fix them

ProblemWhy it happensWhat to do
Wet or soggy crustThe base was not prebaked long enough.Prebake until the surface is set and the edges just start to color.
Filling has flour lumpsFlour was added directly to liquid.Mix or sift flour into sugar before adding eggs and juice.
Rubbery edgesOven was too hot or bars baked too long.Use the center rack and check the set before the edges brown.
Bars will not cut neatlyThey were sliced before chilling.Refrigerate for at least two hours and wipe the knife between cuts.
White bubbles on topEggs trapped air during whisking.Mix gently. A dusting of sugar hides harmless surface bubbles.

Recipe variations worth trying

Lime bars

Use fresh lime juice and zest in place of lemon. Keep the measured juice volume the same.

Lemon berry bars

Serve with fresh raspberries or a spoonful of berry sauce. Add fruit after baking so extra water does not disrupt the custard.

Coconut shortbread

Replace a small portion of flour with finely shredded unsweetened coconut; the texture will be more crumbly.

Lemon cheesecake dessert

For a creamier citrus dessert, add lemon zest to a cheesecake rather than trying to add a lot of cream cheese to this custard.

Serving ideas

A small chilled square pairs well with coffee or tea because the lemon flavor stays bright after a rich meal. Cut smaller pieces for a dessert buffet, and set them out in batches instead of warming the whole slab. For more lemon-inspired desserts, consider a lemon-zest cheesecake, a berry tart with lemon curd or an ice cream sundae with a little lemon sauce.

For more options, try our Classic Cheesecake — a rich dessert that also pairs well with lemon. You could also make Strawberry Tart, a fresh fruit option for a spring dessert table.

Make ahead, store and reheat

Store in a covered container in the refrigerator for up to 3 days. Separate layers with parchment and dust with sugar only when serving. Freeze individual undusted bars for up to one month for best texture; thaw overnight in the refrigerator. Keep the egg-based dessert chilled and do not leave it at room temperature longer than two hours.

For general cooling and refrigeration advice, see USDA food safety guidance.

Frequently asked questions

Can I use bottled lemon juice?

Fresh juice gives the clearest flavor. Bottled juice can work by measured volume, but flavor may be flatter.

Do I need baking powder in shortbread?

No. This pressed crust relies on butter and flour rather than a cake-like rise.

Why do lemon bars taste eggy?

Overbaking and too little lemon flavor can make egg notes stronger. Measure fresh juice and use moderate heat.

Can I double the recipe?

A 9 × 13-inch pan is smaller than twice an 8-inch square, so the layers will be somewhat thicker. Allow extra time and check the center.

Can I reduce the sugar in the filling?

Large reductions can change the firmness and make the custard very tart. Start with the stated ratio.

Should lemon bars be served cold?

They are easiest to cut and hold when chilled. A brief rest before eating is fine.

Why did the powdered sugar disappear?

It dissolves on the moist custard surface. Add a fresh light dusting just before serving.

Further reading

For a different preparation, see Sally’s lemon bars for another shortbread-and-lemon custard technique.

Printable recipe card

Lemon Bars

Bake tangy lemon bars with a tender shortbread crust and fresh lemon filling. Learn how to prevent a soggy base, check doneness and cut neat squares.

Prep time20 min
Cook time45 min
Rest / chill3 hrs
Total time4 hrs 5 min
Servings16 bars
DifficultyEasy

Ingredients

Shortbread

  • 1 cup all-purpose flour (120 g)
  • 1/4 cup granulated sugar (50 g)
  • 1/2 cup unsalted butter (113 g), melted
  • 1/4 teaspoon fine salt (1.5 g)

Lemon filling

  • 3 large eggs (150 g without shells)
  • 1 cup granulated sugar (200 g)
  • 3 tablespoons all-purpose flour (24 g)
  • 1/2 cup fresh lemon juice (120 g)
  • 2 teaspoons finely grated lemon zest (4 g)

Finishing

  • 1 tablespoon confectioners’ sugar (8 g)

Instructions

  1. Line the pan and heat the ovenPreheat to 325°F (165°C), with a rack in the center. Lightly grease the baking dish and fit parchment across the bottom and two opposite sides.
  2. Mix and press the shortbreadStir flour, the 1/4 cup sugar and salt together. Add melted butter and mix until all the flour is moistened. Press evenly into the pan.
  3. Prebake the baseBake the crust for 18–22 minutes, until the surface is set and the edges are faintly golden. Leave the oven on.
  4. Prepare the lemon custardWhisk the 1 cup sugar with the 3 tablespoons flour until no clumps remain. Add eggs and whisk gently, then stir in lemon juice and zest.
  5. Bake until just setPour the filling over the warm crust. Return the pan to the center rack for 22–25 minutes, until the edges are set and the middle moves only slightly. The egg mixture should reach 160°F (71°C).
  6. Cool, chill and sliceCool on a rack for about an hour, then refrigerate for at least two hours. Lift out using the parchment, cut into 16 bars with a clean sharp knife and dust with confectioners’ sugar.

Recipe notes

Use 325°F (165°C) conventional bake, or around 300°F (150°C) for fan-assisted ovens. Check the crust at 18 minutes and the filled bars at 22 minutes. Glass may retain heat after the pan comes out, which is one reason not to wait until the custard is completely rigid. The eggs need to reach a safe temperature while still retaining a tender texture. The total bake time is the sum of both oven stages, not just the time after the filling is poured.

Store in a covered container in the refrigerator for up to 3 days. Separate layers with parchment and dust with sugar only when serving. Freeze individual undusted bars for up to one month for best texture; thaw overnight in the refrigerator. Keep the egg-based dessert chilled and do not leave it at room temperature longer than two hours.

Nutrition information (per serving)

Calories~160 kcal
Carbohydrates~23.6 g
Protein~2.2 g
Fat~6.7 g
Sugars~16.4 g
Fiber~0.3 g
Sodium~50 mg

Estimated from the listed ingredient weights and typical generic nutrition values, divided by 16 servings. Brand-specific data and any optional additions may change these numbers. For nutrition data lookup, use USDA FoodData Central.

Allergens: Wheat, milk and egg.