That first bite — where the tart lemon custard meets the jammy blueberry swirl on top of a buttery shortbread crust — is the exact moment my family stops whatever they’re doing and wanders into the kitchen. Every single time. These bars have become my most-requested recipe for a reason: they’re simple enough to throw together on a Wednesday night and pretty enough to be the star of a party.
The short version: A buttery shortbread base, a bright lemon custard center, and a juicy blueberry swirl on top. 20 minutes of hands-on work, 40 minutes in the oven.
I’ve taken these to exactly four summer potlucks and I’ve been asked for the recipe every single time. Not because they’re fancy — because they taste like summer should.
- Serves: 16 as dessert bars
- Hands-On Time: 20 min | Total Time: 1 hour (plus 2 hr chilling)
- Difficulty: Easy enough for a Tuesday, pretty enough for a party
- Cost per serving: ~$0.80
- Calories: ~220 per bar
- Dietary Notes: Vegetarian. Easily adaptable for gluten-free.
(Photo above: Overhead shot of the pie bars cooling on a wire rack, showing the golden shortbread crust, the pale yellow lemon custard, and the deep purple-blueberry jam swirls. A fork rests on the plate next to a bar with a clean, sharp cut edge. Soft afternoon light from the left.)
The Secret to Bars That Actually Hold Together (No Soggy Crust Here)

The first time I made these, I skipped the par-bake step. I was in a hurry and figured it would all cook together in the oven. Big mistake. The crust turned into a soft, almost doughy layer that couldn’t support the custard at all. Ten extra minutes of oven time is the difference between a crust that crumbles nicely and one that turns into a soggy mess the second you add the filling.
The other trick? Tossing the blueberries with a tiny bit of cornstarch before cooking them into a jam. It sounds fussy, but it keeps the blueberry juice from bleeding into the lemon custard and making everything look muddy. Two minutes of tossing saves you a whole lot of “well, it tastes good” energy.
The result is a bar that cuts cleanly, stacks beautifully on a dessert plate, and leaves everyone asking what bakery you found them at.
What Goes In (Plus a Few Notes From My Kitchen)
- For the Crust: 1½ cups all-purpose flour, ½ cup powdered sugar, ¾ cup unsalted butter (cold, cubed — don’t let it get soft or the crust will spread), 1 tsp vanilla extract. The powdered sugar makes it melt-in-your-mouth tender. My kids beg for the raw dough but I hide it because they’ll eat the whole batch.
- For the Lemon Custard: 1 can (14 oz) sweetened condensed milk, 3 large egg yolks, ½ cup fresh lemon juice (bottled juice tastes flat here — I know it’s an extra step, but it really matters). The sweetened condensed milk is the secret to the silky texture — no baking, no curdling.
- For the Blueberry Swirl: 1½ cups fresh or frozen blueberries (if using frozen, don’t thaw them first), 2 tbsp granulated sugar, 1 tsp lemon zest, 1 tsp cornstarch. If using frozen berries, you might need an extra minute or two to get the jammy texture right.
The Tools You’ll Actually Need
- 8×8 or 9×9 baking pan (metal or glass both work — just line it well with parchment)
- Electric mixer (hand or stand — a whisk and strong arm works too)
- Medium saucepan
- Sharp knife (for clean slices — run it under hot water between cuts)
- Pastry cutter or your fingertips (for the crust)
Let’s Make Them (Step by Step)
This goes fast, so I like to get the crust in the oven before I even start the filling.
- Preheat and Prep: Preheat oven to 350°F. Line your pan with parchment paper, leaving a 2-inch overhang on two sides. (This is your handle for lifting the bars out later — don’t skip it!) (📸 Photo tip: Parchment tucked neatly into the corners of the pan, with the overhang draping over the sides.)
- Make the Crust: In a medium bowl, whisk together the flour and powdered sugar. Cut in the cold butter using a pastry cutter or your fingertips until the mixture looks like coarse sand with a few pea-sized butter pieces. Stir in the vanilla. Press firmly into the prepared pan.
- Par-Bake the Crust: Bake for 14-16 minutes, until the edges are just barely golden. (The center will still look pale — that’s exactly what you want.) Let it cool for 10 minutes while you make the filling.
- Make the Blueberry Swirl: In a small saucepan, combine the blueberries, sugar, lemon zest, and cornstarch. Cook over medium heat for 5-7 minutes, mashing gently with the back of a spoon, until the berries release their juices and the mixture thickens to a jammy consistency. Set aside. (📸 Photo tip: The blueberry mixture in the saucepan, thick and glossy, with a spoon showing the jammy texture.)
- Make the Lemon Custard: In a large bowl, whisk together the sweetened condensed milk, egg yolks, and fresh lemon juice until smooth. It will thicken naturally as you whisk.
- Assemble: Pour the lemon custard over the warm crust. Drop spoonfuls of the blueberry jam on top, then swirl gently with a knife or toothpick — just a few figure-eights, don’t overmix it or it will turn gray.
- Bake: Bake for 20-22 minutes, until the edges are set and the center jiggles just slightly when you gently shake the pan. (A toothpick inserted in the center should come out mostly clean.)
- Cool Completely: This is the hardest step. Let the bars cool at room temperature for 30 minutes, then refrigerate for at least 2 hours. The custard needs this time to fully set into a sliceable texture. I know it’s hard to wait. It’s worth it.
Make-Ahead Notes (Because Summer Gets Busy)
These bars are actually better the next day. The lemon custard gets firmer, the blueberry flavor deepens, and the crust stays perfectly crisp. I usually make them the night before I need them and let them chill overnight.
- Fridge: Store in an airtight container for up to 5 days. (They never last that long at my house.)
- Freezer: Yes! Wrap individual bars tightly in plastic wrap, then store in a freezer bag for up to 3 months. Thaw in the fridge overnight.
- Reheat: No reheating needed — serve cold or at room temperature. If you want a slightly softer texture, let them sit on the counter for 10 minutes before serving.
The Mistakes I Made So You Don’t Have To
- Don’t over-swirl the blueberry jam. I know it’s tempting to keep going until it looks perfectly marbled, but too much stirring turns the lemon custard gray and muddy. Two or three gentle figure-eights are plenty.
- Use cold butter for the crust. If the butter melts before the crust hits the oven, it will spread and puff instead of staying compact and tender. I cube it and pop it in the freezer for 10 minutes before I start.
- Line the pan with parchment. I cannot stress this enough. Without the parchment overhang, you will be digging these out of the pan with a spatula and they will look sad. The parchment lifts the whole slab out in one perfect piece.
- Wait for the chill time. The first batch I made, I cut into them after 30 minutes because I couldn’t wait. They were delicious but basically lemon pudding with a crust. That overnight rest in the fridge is where the magic happens.
Make Them Yours (Easy Swaps My Family Loves)
- Gluten-Free: Use a 1:1 gluten-free flour blend in the crust. I’ve done this with King Arthur Measure for Measure and it works beautifully. No one in my family even noticed the swap.
- Raspberry Lemon or Strawberry Lemon: Swap the blueberries for raspberries or chopped strawberries. If using strawberries, cook them a little longer to break them down into a jammy consistency.
- Lighter Version: Use fat-free sweetened condensed milk and a whole-wheat blend for the crust. (I won’t pretend it’s exactly the same, but it’s still pretty great.)
- Extra Lemon: Add a tablespoon of lemon zest to the custard and a pinch to the crust. My lemon-obsessed daughter requests this version for her birthday.
Questions My Readers Ask Every Time
Q: Why did my lemon custard turn out runny and not set?
A: Ugh, I’ve been there! This usually happens for one of two reasons: either the oven wasn’t hot enough (an oven thermometer is a lifesaver) or the custard wasn’t baked long enough. That center jiggle should be a slow, gentle wobble — not a liquid wave. Also, make sure you’re using full-fat sweetened condensed milk, not evaporated milk or a low-fat version.
Q: Can I use frozen blueberries?
A: Yes! In fact, I often do. Don’t thaw them first — just add them straight to the saucepan with the sugar and cornstarch. You might need to cook them an extra minute or two to get the same thick, jammy consistency.
Q: How long do these last? Can I freeze them?
A: They keep beautifully in the fridge for up to 5 days in an airtight container. And yes, they freeze wonderfully! Wrap individual bars in plastic wrap, then pop them in a freezer bag. They’ll be perfect for up to 3 months. Just thaw in the fridge overnight.
Q: What do you serve with these bars?
A: Honestly, they’re perfect on their own with a cup of coffee. But if I’m feeling fancy, I’ll add a dollop of lightly sweetened whipped cream and a few fresh blueberries on top. My kids love them with a scoop of vanilla ice cream for a summer dessert.
More Recipes My Family Makes on Repeat
If you loved these pie bars, here are a few other things that disappear fast at our table:
- Classic Lemon Squares — The tart, powdered sugar-topped version that started my love for all things lemon.
- Easy Blueberry Crisp — The 15-minute prep, 30-minute bake dessert that’s become our go-to summer weeknight treat.
- No-Bake Lemon Cheesecake — Creamy, dreamy, and perfect for days when you don’t want to turn on the oven.
These Blueberry Lemon Pie Bars have become my most-requested recipe for a reason. They’re simple enough to throw together on a Wednesday night and pretty enough to be the star of a party. I hope they become a staple in your kitchen too.
If you make them, I’d love to hear about it! Drop a comment below and let me know how they turned out, or tag me on Pinterest so I can see your beautiful bars.
📌 Save this Blueberry Lemon Pie Bars recipe for your next summer potluck — it’s the easy, do-ahead dessert that everyone asks for the recipe for.

Blueberry Lemon Pie Bars
Equipment
- 8×8 or 9×9 baking pan (metal or glass)
- Electric mixer (hand or stand)
- Medium Saucepan
- Sharp Knife
- Pastry cutter (or your fingertips)
Ingredients
For the Crust
- 1 1/2 cups all-purpose flour
- 1/2 cup powdered sugar
- 3/4 cup unsalted butter (cold, cubed)
- 1 teaspoon vanilla extract
For the Lemon Custard
- 1 can (14 oz) sweetened condensed milk
- 3 large egg yolks
- 1/2 cup fresh lemon juice
For the Blueberry Swirl
- 1 1/2 cups blueberries (fresh or frozen, do not thaw)
- 2 tablespoons granulated sugar
- 1 teaspoon lemon zest
- 1 teaspoon cornstarch
Instructions
- Preheat oven to 350°F. Line an 8×8 or 9×9 baking pan with parchment paper, leaving a 2-inch overhang on two sides.
- Make the crust: In a medium bowl, whisk together flour and powdered sugar. Cut in cold butter using a pastry cutter or your fingertips until the mixture resembles coarse sand with a few pea-sized butter pieces. Stir in vanilla. Press firmly into the prepared pan.
- Par-bake the crust for 14-16 minutes, until the edges are just barely golden. The center will still look pale. Let cool for 10 minutes.
- Make the blueberry swirl: In a small saucepan, combine blueberries, sugar, lemon zest, and cornstarch. Cook over medium heat for 5-7 minutes, mashing gently, until the mixture thickens to a jammy consistency. Set aside.
- Make the lemon custard: In a large bowl, whisk together sweetened condensed milk, egg yolks, and fresh lemon juice until smooth.
- Assemble: Pour lemon custard over the warm crust. Drop spoonfuls of blueberry jam on top and swirl gently with a knife or toothpick – just a few figure-eights to avoid muddying the colors.
- Bake for 20-22 minutes, until the edges are set and the center jiggles slightly when shaken. A toothpick inserted in the center should come out mostly clean.
- Cool at room temperature for 30 minutes, then refrigerate for at least 2 hours (overnight is best) before cutting into bars. Run a hot knife under water and dry it for clean slices.






