WHY MAKE IT

A little comfort, a lot of flavor.

Lemon Coconut Shortbread Bars offer an uplifting harmony of sharp acidity and rich tropical aroma. The foundation relies on classic Scottish shortbread principles, modified with cornstarch for a tender snap and finely shredded toasted coconut for nuttiness. Atop this buttery platform sits a classic baked lemon custard enriched with milk and scented with freshly grated zest. As the bars bake, the top layer of raw coconut gently toasts under radiant oven heat, creating a contrasting textural finish against the silky curd below. Balanced precisely between tart and sweet, these bars slice cleanly into elegant squares that brighten afternoon tea trays or summer gatherings.

Balancing Curd Texture and Density

A successful lemon bar layer requires enough structural starch to hold clean, sharp edges when sliced without turning rubbery or paste-like. Incorporating a modest amount of all-purpose flour directly into the egg and sugar slurry stabilizes the proteins against curdling under oven heat. Whisking gently rather than whipping minimizes surface foam, which would otherwise bake into an unsightly, dry white film across the top of the vibrant yellow custard. The inclusion of whole milk tempers the high acidity of the lemon juice, softening the sharpness into a rounded creaminess.

The Function of Starch in Shortbread

Standard shortbread relies entirely on gluten formation from wheat flour and butterfat for its crumb, which can sometimes become dense or tough if compressed heavily into a pan. Adding cornstarch lowers the overall gluten percentage, yielding a short, melt-in-the-mouth texture that crumbles delicately when bitten. Toasting the coconut before blending it into the dry ingredients drives off internal moisture, ensuring the crust remains crisp rather than chewy or soggy underneath the moist lemon custard during the second bake.

Achieving Clean Cuts and Presentation

Slicing custard-topped bars requires chilling the baked slab thoroughly so the egg matrix fully solidifies. Once cooled to room temperature, chilling the pan in the refrigerator for at least half an hour ensures clean margins. Use a sharp chef's knife wiped clean with a warm, damp towel between every single cut. Dusting with confectioners' sugar should be reserved for the final moments before presentation, as the hygroscopic nature of sugar pulls moisture from the custard, causing it to dissolve into a clear syrup if left sitting.

Before you start

Always bake citrus bars in a light-colored metal pan rather than glass or ceramic. Glass retains heat unpredictably and can cause the delicate egg-based custard to overcook along the perimeter before the center sets. Freshly squeezed lemon juice is mandatory here; bottled juice lacks bright aromatic terpenes and often contains preservatives that lend a harsh, metallic aftertaste to rich custard fillings.

THE RECIPE

Lemon Coconut Shortbread Bars

16 servings · 25 minutes preparation · 47 minutes cooking · 75 minutes cooling, chilling or resting

Ingredients

Step-by-step instructions

  1. Adjust an oven rack to the middle position and preheat the oven to 350°F (177°C). Line an 8-inch square metal baking pan with parchment paper, leaving a 2-inch overhang on opposite sides, and lightly grease the exposed sides.
  2. Spread 30 grams of the shredded coconut across a small rimmed baking sheet and toast in the oven for 4 to 5 minutes until pale golden and fragrant, then set aside to cool completely.
  3. In a food processor, pulse the 150 grams of flour, powdered sugar, cornstarch, salt, and toasted coconut until combined, then add the cold cubed butter and pulse until the mixture forms coarse, sandy crumbs that hold together when pressed.
  4. Transfer the crumb mixture into the prepared pan, spread it evenly, and press it firmly into a compact, level layer using the flat bottom of a measuring cup.
  5. Bake the shortbread crust at 350°F (177°C) for 18 to 20 minutes until the edges are light golden brown and the surface looks set, then remove from the oven and reduce the oven temperature to 325°F (163°C).
  6. While the crust bakes, whisk together the eggs, granulated sugar, and 25 grams of flour in a medium bowl until thoroughly combined and free of lumps.
  7. Whisk in the fresh lemon juice, lemon zest, and whole milk until the filling is smooth and uniform, avoiding vigorous beating that introduces excessive air bubbles.
  8. Pour the lemon filling carefully over the warm baked crust, scatter the remaining 30 grams of untoasted shredded coconut over the surface, and bake at 325°F (163°C) for 20 to 22 minutes until the center is just set and reaches 160°F (71°C) when checked with an instant-read thermometer.
  9. Cool the pan completely on a wire rack at room temperature for 45 minutes, then refrigerate for at least 30 minutes before lifting the slab out by the parchment handles and slicing into 16 equal squares.

Kitchen notes

Always bake citrus bars in a light-colored metal pan rather than glass or ceramic. Glass retains heat unpredictably and can cause the delicate egg-based custard to overcook along the perimeter before the center sets. Freshly squeezed lemon juice is mandatory here; bottled juice lacks bright aromatic terpenes and often contains preservatives that lend a harsh, metallic aftertaste to rich custard fillings.

Storage & make-ahead

Refrigerate perishable lemon bars in an airtight container between sheets of wax paper for up to 4 days. Do not leave the bars at room temperature for more than 2 hours. Dust with powdered sugar shortly before serving, as moisture from the chilled lemon curd absorbs sugar over time. Freezing is not recommended because the custard layer weeps moisture when thawed.

Save to Pinterest ↗

An original recipe guide inspired by themes in our Pinterest research. Recipe has not been independently kitchen-tested. AI-generated image is illustrative; your finished dish may look different.

Frequently asked questions

Can I use sweetened shredded coconut instead of unsweetened?

Unsweetened coconut is preferred because the crust and filling already contain calibrated sugar amounts. If using sweetened coconut, reduce the granulated sugar in the lemon filling by 25 grams to keep the bars from becoming cloying.

How do I know when the lemon layer is properly cooked?

The custard should be set around the edges and exhibit a slight, uniform jiggle in the center when gently shaken, reaching an internal temperature of 160°F (71°C). It should not brown heavily or puff up like a soufflé.

Can I make these bars gluten-free?

You can replace the all-purpose flour in both the crust and the filling with a commercial 1-to-1 gluten-free baking flour blend containing xanthan gum. The texture remains crumbly and sets properly without altering bake times.