Home ยป Recipes ยป Desserts ยป Lemon Bars Recipe

Lemon Bars Recipe

posted April 22, 2025 by
Cassandra Morris
This lemon bars recipe is made with a buttery shortbread crust and a bright, tangy lemon filling that sets up perfectly every time. These classic lemon squares are easy to make and taste even better chilled the next day.

Who else LOVES lemon bars?! For me, theyโ€™re one of my all-time favorite dessertsโ€”bright, tangy, buttery perfection. This lemon bars recipe is one Iโ€™ve tested to perfection, made with an easy, melt-in-your-mouth shortbread crust and a smooth lemon filling that strikes just the right balance of sweet and tart. I love a generous bite, which is why I created this recipe in a 9ร—9-inch pan, giving you that perfect ratio of thick lemon filling to buttery crust. If life gives you lemons, this is the recipe to make. Whether youโ€™re bringing dessert to a spring brunch, prepping for a holiday tray, or just craving something citrusy and nostalgic, this is the kind of recipe youโ€™ll come back to again and again.

Recipe Ingredients

This lemon bars recipe is made with simple, staple ingredientsโ€”but knowing why each one matters is what takes them from basic to bakery-level. Hereโ€™s what youโ€™ll need:

Ingredients for lemon bars recipe displayed on a white surface, including flour, granulated sugar, butter, eggs, lemon juice, lemon zest, powdered sugar, salt, vanilla extract, and baking powder.

For the Shortbread Crust

  • All-Purpose Flour โ€“ The structural base of the crust. It provides the right amount of sturdiness to hold the lemon layer without being too dense.
  • Granulated White Sugar โ€“ Adds sweetness and helps create that just-crisp-enough bite in the shortbread.
  • Unsalted Butter (Cold + Cubed) โ€“ Cold butter is key to getting that bakery-style shortbread crust. When it hits the oven, it releases steam and creates flaky, tender layers. Melted or room-temp butter just doesnโ€™t give the same textureโ€”itโ€™ll leave you with something too dense or greasy. Trust me, starting with cold, cubed butter is the tiny detail that makes a big difference.
  • Salt โ€“ Just a touch sharpens all the flavors and keeps the crust from tasting flat.
  • Vanilla Extract โ€“ Adds a subtle warmth and depth that balances out the tart lemon layer on top.

For the Lemon Filling

  • Eggs โ€“ Eggs are what give the lemon filling its rich, custardy texture and help it set properly. But hereโ€™s the thingโ€”when I first started testing lemon bar recipes, I was shocked by the range I found. Some recipes called for just 2 eggs, other recipes used as many as 8! More eggs make the filling firmer, almost like a lemon curd or baked custard. Fewer eggs keep it soft, but it can end up runny or not slice cleanly. After testing and re-testing, I found 4 large eggs to be the sweet spot. They give the bars just enough structure to hold their shape while keeping that smooth, tangy, melt-in-your-mouth bite.
  • Granulated White Sugar โ€“ Sweetens the filling and balances out the sharpness of the lemon juice without dulling its brightness. It also plays an important role in helping the filling set. Sugar works together with the eggs to create that smooth, custard-like texture. If you cut back too much, the filling wonโ€™t set properly and may turn out too soft.
  • All-Purpose Flour โ€“ A bit of flour thickens the filling just enough to keep it from being runny. It also helps create a soft, smooth bite.
  • Freshly Squeezed Lemon Juice โ€“ For this recipe, fresh lemon juice isnโ€™t just recommendedโ€”itโ€™s essential. Bottled lemon juice can taste overly acidic and lacks the natural oils and bright citrus flavor you get from squeezing fresh lemons. If you want lemon bars that truly shine, fresh juice makes all the difference. Trust me, itโ€™s worth every squeeze.
  • Lemon Zest โ€“ Zest might seem like a small thing, but it makes a big impact. It holds the essential oils of the lemon, which means even more flavor without added tartness. Donโ€™t skip itโ€”it brings that extra โ€œwowโ€ to every bite.
  • Baking Powder โ€“ This isnโ€™t in every lemon bar recipe, but I like to add just a touch. It helps the filling rise slightly while baking, giving the top a smooth, lightly lifted finish without cracks or sinkage.

For Serving

  • Powdered Sugar โ€“ Sifted on top for a classic lemon bar finish. It not only looks pretty, but adds just the right touch of sweetness.
Close-up overhead shot of lemon bars topped with powdered sugar and garnished with lemon wedges on parchment paper.

Step-by-Step Instructions

Step One: Preheat & Prepare the Pan โ€“ Preheat your oven to 350ยฐF (175ยฐC). Butter a 9ร—9-inch baking dish and line it with parchment paper, leaving a bit of overhang on the sides to make it easy to lift the bars out later.

Step Two: Make the Shortbread Crust โ€“ In a food processor, combine the flour, sugar, and salt. Add the cold, cubed butter and vanilla extract, then pulse until the mixture starts to come together and resemble a crumbly dough. (No food processor? A pastry cutter or clean hands work too.)

Shortbread crust dough in a food processor, just combined and forming a soft, crumbly texture.

Step Three: Press & Bake the Crust โ€“ Press the dough firmly and evenly into the bottom of the prepared pan. Bake for 23 to 26 minutes, or until the edges are lightly golden and the top feels set.

Hand pressing shortbread crust dough evenly into a parchment-lined baking dish for lemon bars.
Shortbread crust evenly pressed into a parchment-lined 9x9 baking dish, ready to be baked for lemon bars.

Step Four: Poke Fork Holes โ€“ Remove the pan from the oven and, while the crust is still hot, use a fork to gently poke shallow holes all over the surface (but donโ€™t go all the way through). This helps the lemon filling stick to the crust and keeps it from separating.

Golden brown shortbread crust just out of the oven, cooling in a parchment-lined pan before lemon filling is poured on top.
Using a fork to gently poke holes into the freshly baked shortbread crust to help the lemon filling adhere.

Step Five: Make the Lemon Filling โ€“ While the crust is baking, combine the sugar and lemon zest in a mixing bowl and rub them together with your fingers to release the oils and make the bars extra-lemony. Add the lemon juice, flour, baking powder, and eggs. Using a hand mixer, beat the mixture until fully combined and no flour streaks remain.

Granulated sugar mixed with fresh lemon zest in a bowl, showing the step where citrus oils are released to enhance lemon bar flavor.
Smooth lemon bar filling in a glass mixing bowl, being blended with a hand mixer until fully combined and slightly foamy.

Step Six: Bake with the Filling โ€“ Pour the lemon filling over the hot crust and return to the oven. Bake for approximately 30 minutes, or until the center is just set and doesnโ€™t jiggle when you gently shake the pan. The edges should be lightly golden.

Lemon filling being poured over the hot baked crust in a parchment-lined dish, ready to go back into the oven.
Golden brown lemon bars just out of the oven in a white baking dish, showing a perfectly set and evenly baked top.

Step Seven: Cool & Chill โ€“ Remove from the oven and let the bars cool completely in the pan. Once cool, refrigerate for at least 6 hours (or overnight) to allow the filling to fully set for clean slicing.

Step Eight: Slice into Squares โ€“ Use the parchment paper overhang to lift the bars out of the pan. Cut into squares with a sharp knife, wiping the blade clean between cuts for neat edges.

Freshly baked and chilled lemon bars sliced into squares on parchment paper, surrounded by lemon slices and powdered sugar.

Step Nine: Dust & Serve โ€“ Just before serving, dust the tops with powdered sugar using a fine mesh sieve or sifter. Enjoy chilled or at room temperature.

Close-up of powdered sugar being dusted over lemon bars with a mesh sifter, highlighting the soft, golden texture.

How to Adapt Lemon Bars for a 9ร—13 Pan

Iโ€™ve also tested this lemon bars recipe in a standard 9ร—13-inch baking dish, and it works beautifullyโ€”no need to double the recipe. The bars will bake up with a more classic lemon bar thickness, but still set perfectly and slice cleanly. I personally love a thick, generous lemon layer (which is why this recipe is written for a 9ร—9 pan), but if youโ€™re going for that bakery-style bar or serving a larger crowd, the 9ร—13 version is a great option. Just reduce the bake time slightlyโ€”by about 5 minutes for both the crust and the lemon fillingโ€”to account for the thinner layers.

Frequently Asked Questions

Why do lemon bars sometimes have a white layer on top after baking?

That pale, powdery-looking layer is totally normal and happens when air bubbles rise to the surface of the lemon filling while baking. Itโ€™s most common if the filling is vigorously whisked or beaten, which incorporates extra air. It doesnโ€™t affect the flavor at all! A light dusting of powdered sugar before serving will cover it beautifully.

Do lemon bars need to be refrigerated?

Yes, they do. The filling contains eggs, so they should be stored in the fridge once fully cooled. Theyโ€™re best enjoyed chilled or at room temperature (after sitting out for 10โ€“15 minutes), but always store leftovers in an airtight container in the fridge.

Can I freeze lemon bars?

Absolutely! Lemon bars freeze surprisingly well. Once chilled and cut, layer them between parchment in an airtight container and freeze for up to 3 months. Thaw overnight in the fridge or at room temp for about an hour before serving. Add fresh powdered sugar after thawing for the best look.

Can I use bottled lemon juice instead of fresh?

I really donโ€™t recommend it. Bottled lemon juice lacks the natural oils and brightness of fresh lemons, and can leave the bars tasting dull or overly acidic. If youโ€™re baking from scratch, freshly squeezed lemon juice is worth every squeeze.

Stacked lemon bars on a white cake stand, dusted with powdered sugar and surrounded by fresh lemon slices.

Expert Tips & Tricks

  • Donโ€™t Reduce The Sugar โ€“ It might be tempting to cut back on sugar, but in this recipe, sugar isnโ€™t just about sweetness. It balances the tartness of the lemons and works with the eggs to create that smooth, custardy filling. Reducing the sugar too much can throw off that structure, making the bars more likely to crack as they bake and cool.
  • Grease And Line Your Pan Well โ€“ Lemon bars like to stick, so donโ€™t skip this step! Butter your pan and line it with parchment paper, making sure it covers the bottom and sides, leaving an overhang for easy removal. Once chilled, run a thin, sharp knife along the edge of the pan, then use the parchment โ€œhandlesโ€ to lift the whole slab out onto a cutting board to slice. 
  • Donโ€™t Overbake The Filling โ€“ The lemon layer should be just set. Give the pan a gentle shakeโ€”if the center no longer jiggles, itโ€™s done. Overbaking can lead to cracks or a rubbery texture.
  • Chill For At Least 6 Hours โ€“ Chilling is non-negotiable. It gives the bars time to fully set, which means cleaner slices, better texture, and even more developed flavor. Overnight is best if you have the time, but 6 hours is the minimum.
  • Wipe Your Knife Between Cuts โ€“ For sharp-edged squares, wipe your knife clean with a damp paper towel between each slice. Itโ€™s a tiny thing that makes a big difference in presentation.
Two thick lemon bars stacked on top of each other, dusted with powdered sugar, with a bite taken out to show the soft, tangy lemon filling and buttery crust.

Make Ahead, Storage & Freezing

Make Ahead: Lemon bars are one of those desserts that are meant to be made ahead. They actually taste even better the next day once theyโ€™ve had time to chill and set overnight. You can bake them 1โ€“2 days in advance and store them covered in the fridge until youโ€™re ready to slice and serve.

Storage: Store lemon bars in an airtight container in the refrigerator. Theyโ€™ll stay fresh for up to 5 days. If youโ€™ve already dusted them with powdered sugar, you may want to add a fresh sprinkle before serving, as it tends to dissolve over time in the fridge.

Freezing Instructions: Yes, lemon bars freeze beautifully! Once fully chilled and sliced, layer them between parchment paper in an airtight freezer-safe container. Freeze for up to 3 months. To serve, thaw overnight in the fridge or at room temperature for about an hour. Wait until after thawing to add powdered sugar so it doesnโ€™t melt into the surface.

Love All Things Lemon? If youโ€™re as lemon-obsessed as I am, donโ€™t stop at dessert! Here are more bright and zesty recipes to try next:

If you enjoyed this recipe, Iโ€™d love to hear from you! Leaving a 5-star rating and a quick review not only means the world to meโ€”it also helps other home cooks find and trust my recipes. You can also follow along on Instagram @cookwithcassandra. Thank you so much for being hereโ€”I hope you love this one as much as I do. Happy Baking!

Close-up of a lemon bar with a golden buttery crust and tangy lemon filling, dusted with powdered sugar

Lemon Bars Recipe

This lemon bars recipe is made with a buttery shortbread crust and a bright, tangy lemon filling that sets up perfectly every time. These classic lemon squares are easy to make and taste even better chilled the next day.
Prep Time 15 minutes
Cook Time 55 minutes
Chill Time 6 hours
Total Time 7 hours 10 minutes
Servings 16

Ingredients

Shortbread Crust

  • 2 cups all-purpose flour
  • 1/2 cup granulated white sugar
  • 1 cup unsalted butter cold and cubed
  • 1/2 teaspoon salt
  • 2 teaspoons pure vanilla extract

Lemon Filling

  • 4 large eggs
  • 1 ยฝ cups granulated white sugar
  • 1/4 cup all-purpose flour
  • 3/4 cup (plus 1 tablespoon) lemon juice freshly squeezed
  • 1 ยฝ tablespoons lemon zest
  • 1 teaspoon baking powder

For Serving

  • powdered sugar for dusting

Instructions

  • Preheat & Prepare Pan: Preheat your oven to 350ยฐF. Butter a 9ร—9-inch baking dish and add parchment paper, leaving a bit of overhang for easy removal.
  • Make the Crust: In a food processor, combine the flour, sugar, and salt. Then add the cold, cubed butter and vanilla then pulse until the mixture starts to just come together into a dough. (No food processor? You can also cut in the butter using a pastry cutter or your fingertips.)
  • Add Crust to Prepared Pan and Bake: Press the mixture evenly and firmly into the bottom of the prepared pan. Bake for 23 โ€“ 26 minutes or until the edges are lightly golden.
  • Fork Holes: Remove from the oven. Using a fork, poke shallow holes all over the top of the warm crust (not all the way through the crust) before pouring the lemon filling ontop.
  • Make the Lemon Filling: While the crust is baking, combine the lemon zest and sugar in a mixing bowl. Then add the lemon juice, flour, baking powder, and eggs. Using a hand mixer, on medium low beat the mixture until fully combined, the sugar has dissolved, and no visible flour remains. The filling should be smooth and well incorporated.
  • Bake Again: Pour the lemon filling over the hot crust and return to the oven. Bake for approximately 30 minutes, or until the filling is set and no longer jiggles in the center. The edges should be lightly golden.
  • Cool & Chill: Place the pan on a cooling rack and let it cool completely. Then refrigerate (still in the pan) for at least 6 hours before slicing.
  • Slice: Use the parchment paper to lift the bars out and cut into squares after being lifted out of the pan. For neat squares, wipe your knife each time you slice.
  • Dust & Serve: Use a sifter to dust the bars with powdered sugar just before serving.
Cassandraโ€™s Notes: If you prefer a more classic lemon bar thickness, this recipe works perfectly in a 9ร—13-inch panโ€”no need to double it. I personally love a generous bite, which is why I bake these in a 9ร—9 for a thicker crust and lemon filling. In a 9ร—13, they still set beautifully and bake up with that more traditional lemon bar thickness. Just reduce the bake time slightlyโ€”about 5 minutes less for both the crust and the filling.
Cassandra | Cooking With Cassandra

Hi, I’m Cassandra!

ย Iโ€™m so happy youโ€™re here! Iโ€™m here to spill the beans (and maybe some wine) on the best, tested-till-perfect recipes for every occasion. Whether youโ€™re a beginner or a seasoned pro, all of my recipes come with clear, easy-to-follow step-by-step directions, plus helpful tips and tricks to make cooking delicious meals easy for everyone. Letโ€™s get cooking and make every meal a success!

More about me

Featured On

Never miss a recipe!

Sign up for free recipes straight to your inbox:

Unsubscribe at any time.

pink flower

Hello, Spring!

Best Banana Cake With Cream Cheese Frosting

Moist banana cake slice topped with cream cheese frosting being lifted from the pan, showing fluffy texture and creamy topping

If youโ€™re looking for a cake thatโ€™s perfectly moist, full of banana flavor, and topped with a delicious cream cheese frosting, this Banana Cake with Cream Cheese Frosting is exactly what you need! With its soft texture and sweet, subtle notes of maple syrup, this cake is the perfect balance of comfort and indulgence. Whether you're baking for friends, family, or just yourself, this one will have everyone asking for your recipe! Itโ€™s always a hit at my gatherings. This easy banana cake is made in a 9ร—9-inch pan, keeping things much simpler than a traditional layer cake, making it a go-to...

Asparagus Puff Pastry Bundles

Asparagus Puff Pastry Bundlesย | cookingwithcassandra.com

So, here is my recipe for fresh asparagus with puff pastry, a lovely side dish for any dinner party.  Iโ€™ll be honest: it doesnโ€™t look like much at first, and itโ€™s definitely not as tantalizing as a colorful berry salad. But donโ€™t be fooled, one bite into this asparagus with puff pastry and youโ€™ll be amazed: glazed with honey, oozing with the best cheese mixture, and simply robust asparagus, this is definitely going to be one of the most memorable dishes youโ€™ll ever have.  It is very similar to cheesy asparagus tarts, except this one has already been apportioned and is shaped...

Easy Brown Sugar Glazed Ham

Fully glazed brown sugar ham sliced and served with orange slices and rosemary on a white platter.

Looking for the perfect holiday ham thatโ€™s packed with flavor, easy to make, and guaranteed to impress your guests? This Easy Brown Sugar Glazed Ham recipe is everything you need and more. Itโ€™s sweet, savory, juicy, and has the yummiest sticky glaze with hints of garlic, orange, and warm spices. Whether itโ€™s Christmas, Easter, or a cozy Sunday dinner, this ham will be the star of the table. And yesโ€”it's so much better than the store-bought glaze packets. Once you try this homemade brown sugar glaze, youโ€™ll never go back! And if you're feeling a little intimidated by cooking a whole...

Easter Sugar Cookies

A colorful assortment of decorated Easter sugar cookies in egg, bunny, and carrot shapes, arranged on a white surface with pastel icing and sprinkles.

Introducing the best Easter sugar cookies recipe! These soft, buttery cookies are perfect for spring baking and couldnโ€™t be easier to make. My simple cut-out cookies come together quickly and are ideal for decorating with pastel icing and sprinkles. One of the best parts? No chill time is needed! This dough rolls out smoothly, holds its shape in the oven, and has that melt-in-your-mouth texture everyone loves. Paired with my easy icing, theyโ€™re perfect for stacking, gifting, or setting out at your Easter brunch. Donโ€™t be intimidated by the decoratingโ€”this icing is not royal icing and is...

Free E-Cookbook!

Cooking dinner doesnโ€™t have to take all night. Subscribe & receive my favourite 10 Quick & Easy Dinner Recipes in an easy e-cookbook format!

You Might Also Like

Easter Sugar Cookies

Introducing the best Easter sugar cookies recipe! These soft, buttery cookies are perfect for spring baking and couldnโ€™t be easier to make. My simple cut-out...

Easter Sugar Cookies

Almond Snowball Cookies Recipe

If youโ€™re searching for a festive, quick, and easy-to-make dessert, this Almond Snowball Cookies Recipe is the holiday treat you need! These buttery, nutty cookies...

Almond Snowball Cookies Recipe

๎‚š

Did you make this recipe?

Tag @cookingwithcassandra on Instagram and hashtag it #cookingwithcassandra

0 Comments

Submit a Comment

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

Recipe Rating




Cassandra | Cooking With Cassandra

Hi, I'm Cassandra!

ย Iโ€™m so happy youโ€™re here! Iโ€™m here to spill the beans (and maybe some wine) on the best, tested-till-perfect recipes for every occasion. Whether youโ€™re a beginner or a seasoned pro, all of my recipes come with clear, easy-to-follow step-by-step directions, plus helpful tips and tricks to make cooking delicious meals easy for everyone. Letโ€™s get cooking and make every meal a success!

More about me

Never miss a recipe!

Sign up for free recipes straight to your inbox:

Unsubscribe at any time.

Free E-Cookbook!

Cooking dinner doesnโ€™t have to take all night. Subscribe & receive my favourite 10 Quick & Easy Dinner Recipes in an easy e-cookbook format!

Jujeh kabab - Eating | cookingwithcassandra.com

Get the Inside

Scoop

Be the first to receive free e-books, recipes, inspiration, and exclusive extras you wonโ€™t want to miss!

We wonโ€™t send you spam. Unsubscribe at any time.