Like a ray of sunshine that’s impossible to resist, these lemon bars with a coconut shortbread crust are a tropical twist on the classic dessert we all love. Shredded coconut in the buttery crust adds a subtle coconut aroma, creating the perfect base for a vibrant, silky lemon filling made with freshly squeezed lemon juice and plenty of finely grated lemon zest.

I originally made these lemon bars with just a classic shortbread cookie crust but I recently retested the recipe with coconut in the crust, and OMG… The results were beyond amazing! I love it so much, the recipe had to change.
![]()
Trang’s Recipe Highlights
- FLAVOR: Sweet and tangy with a surprising hint of coconut from the buttery crust that is literally half a batch of my coconut shortbread recipe.
- TEXTURE: Super creamy filling with a crispy, crumbly and slightly chewy crust.
- EASE: There are two elements to this lemon bar recipe making it a little bit more involved so I would rate it to be between easy and intermediate.
Key ingredients
You’ll need 9 ingredients to make these coconut lemon bars. You can skip the powdered sugar (not pictures here) but it is recommended for serving. As always, for the full list of ingredients with quantities and step-by-step instructions, skip straight to the recipe card.

- Lemon zest – Lemon is THE key ingredient in this recipe. I used 2 very large lemons that my husband’s coworker gave me from his tree. Store bought lemons tend to be smaller, so you may need 3 or 4 to get as much zest.
- Lemon juice – Needless to say, freshly squeezed lemon juice is best, the bottled kind is not preferred but can be substituted in a pinch.
- We are using whole eggs in this recipe, just like how I make my easy tangy lemon curd. You don’t need to worry about separating the egg yolks and wasting the egg whites.
- You’ll need unsweetened shredded coconut for the crust but the sweetened kind can be used if that’s all you have. No need to adjust the amount of sugar in the crust in this case, it won’t make it too much sweeter.
Tips and tricks
Butter temperature: let your butter soften at room temperature well ahead of time. I like using extra soft butter for shortbread dough because it’s easier to beat, the flour incorporates into the butter quicker, and you’ll less likely to run into “crumbly” dough.
Butter wrapper: if your butter is very soft, you’ll likely have some leftovers stuck to the wrapper, you can use this to butter the pan and parchment instead of melting extra butter.
Butter the pan and parchment paper well: while I was testing this recipe, I was feeling lazy one day and didn’t want to melt extra butter for the pan. So I just plopped the parchment paper in the pan haphazardly. My lemon bar filling and crust flipped during baking and I ended up with lemon bar filling underneath the parchment paper and the crust floated up on top! Moral of the story: an extra minute of prep time will save you a whole lemon bar of heartache.
Adding lemon juice to lemon bar filling: you’ll want to add lemon juice to the filling mixture at the very last minute just when you’re ready to pop the whole thing back into the oven to avoid curdling of the eggs. This is why I wait to make the filling after the crust is finished baking. But if you want to prep the filling while the crust is baking, just hold off on adding the lemon juice when the crust is ready.

Easy variations you might love
- Classic lemon bars – If you are not a fan of coconut, simply omit the shredded coconut in the crust for a classic lemon bar with shortbread crust.
- Lemon on lemon – swap out the crust with my lemon shortbread cookie recipe (without the glaze) for double the lemon.
- Strawberry lemon bars – you guessed it! Swap out the crust with my strawberry shortbread cookie recipe for a pretty pink crust.
- Raspberry lemon bars – similar to the idea above, use my raspberry shortbread cookie recipe for the crust this time.
Hungry for more?
Coconut Lemon Bar Recipe

Equipment
- Square Baking Pan
Ingredients
Coconut shortbread crust
- 4 oz (113 g) unsalted butter, softened
- ⅓ cup (67 g) granulated sugar
- 1 teaspoon (5 g) pure vanilla extract
- ⅛ teaspoon (1 g) kosher salt
- 1 cup (150 g) + 2 tablespoon all-purpose flour
- 1 tablespoon (9 g) cornstarch
- ½ cup (35 g) unsweetened shredded coconut
Lemon bar filling
- 1 ¼ cup (250 g) granulated sugar
- ⅛ teaspoon (1 g) kosher salt
- Zest from 2 large lemons
- ¼ cup (33 g) all-purpose flour
- 3 large eggs
- ½ cup (117 g) freshly squeezed lemon juice, from about 1 ½ lemons
- Melted butter for pan
For serving
- Powdered sugar
Instructions
- Preheat the oven – Set the oven rack in the middle of the oven and preheat to 350°F.
- Prepare the pan – Cut a square piece of parchment paper to fit the bottom of your baking pan with 4 longer sides that can be folded over the edges of the pan. Brush the bottom and sides of the pan with melted butter, line it with the parchment paper and brush the parchment paper with butter as well. Ensure the parchment paper is completely stuck to the pan. Fold the sides over and secure with small clips.Melted butter for pan
- Cream wet ingredients together – Add softened butter, sugar, vanilla and salt to a stand mixer bowl fitted with the paddle attachment. Beat on medium speed until the mixture is thoroughly incorporated and creamy.4 oz unsalted butter, ⅓ cup granulated sugar, 1 teaspoon pure vanilla extract, ⅛ teaspoon kosher salt
- Add dry ingredients – Sift flour and cornstarch into the creamed butter mixture, add the shredded coconut, and stir to combine. Then increase the mixer speed and beat until no trace of flour remains and the dough is formed.1 cup + 2 tablespoon all-purpose flour, 1 tablespoon cornstarch, ½ cup unsweetened shredded coconut
- Form the crust – Transfer the dough to the prepared baking pan and press it into the bottom of the pan to form an even layer of crust.
- Bake – Bake the crust for 20 minutes until lightly brown. Remove from the oven and set it aside while you prepare the lemon bar filling. Don’t turn the oven off.
- Prepare the lemon bar filling – Add sugar, salt and lemon zest to a medium mixing bowl, whisk to release the lemon essential oil from the zest.1 ¼ cup granulated sugar, ⅛ teaspoon kosher salt, Zest from 2 large lemons
- Add the flour – Stir in the flour until it is evenly distributed.¼ cup all-purpose flour
- Incorporate the eggs – Whisk in the eggs until thoroughly combined and creamy.3 large eggs
- Finally, add the lemon juice – Add lemon juice and whisk until thoroughly combined.½ cup freshly squeezed lemon juice
- Bake – Pour the filling mixture into the baking pan over the prebaked crust, and bake for about 26 – 27 minutes until the center is just set and no longer jiggly.
- Cool – Remove lemon bar from the oven and let cool completely. Then chill in the refrigerator for a couple of hours before serving.
- Serve – Cut lemon bars into 16 small squares, dust with powdered sugar and serve!Powdered sugar
Notes
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.
Like this recipe? Rate & comment below!
























No me gusta como queda el crust, esperaba mejor consistencia. En cuanto al filling es muy bueno.
Delicious and easy!
Do you think this would work if I don’t have a stand mixer? :-/
You can use a hand mixer or a manual egg beater to beat the butter. Technically you can do it by hand but it would be more labor intensive. I wouldn’t give up just because no stand mixer. Back in the day, bakers get through it without one 😉
These bars look just sunshiny perfect. The texture of that lemon custard is amazing.
Thank you, they really do add lots of sunshine in a bite 🙂