Time: 25 min prep, 40 min bake, 4 hr chill · Serves: 9 · The key step: Whisk the lemon filling until smooth before pouring over the warm crust, then chill fully before slicing.
These dairy-free lemon bars have a tender coconut-oil shortbread crust and a bright, tangy custard-like topping made with coconut milk and cornstarch. They set firm enough to cut into clean squares, making them a good pick for potlucks, spring parties, or any time you need a dessert that skips butter and cream.
Ingredients
- For the crust: 1 ½ cups (190 g) all-purpose flour, ½ cup (60 g) confectioners’ sugar, ¼ teaspoon salt, ½ cup (115 g) cold coconut oil (solid, not melted), 2 tablespoons (30 ml) cold water
- For the filling: 1 cup (240 ml) full-fat coconut milk, ¾ cup (180 ml) fresh lemon juice (about 4–5 lemons), 1 tablespoon (6 g) lemon zest, 1 cup (200 g) granulated sugar, ¼ cup (30 g) cornstarch, ¼ teaspoon turmeric (optional, for yellow color), 2 large eggs (pasteurized if you prefer extra safety)
- For dusting: 1–2 tablespoons (15–30 g) confectioners’ sugar
Instructions
- Heat the oven to 350°F (175°C). Line an 8×8-inch (20×20 cm) baking pan with parchment paper, leaving overhang on two sides.
- Make the crust: In a medium bowl, whisk flour, confectioners’ sugar, and salt. Cut in the cold coconut oil using a pastry blender or your fingers until the mixture looks like coarse meal. Add cold water and stir until the dough just comes together. Press evenly into the bottom of the prepared pan.
- Bake the crust for 18–20 minutes, until lightly golden around the edges. Remove from oven and let cool for 10 minutes while you make the filling. Keep the oven on.
- Make the filling: In a medium saucepan, whisk together coconut milk, lemon juice, lemon zest, sugar, cornstarch, and turmeric (if using). Whisk in the eggs until completely smooth.
- Cook over medium heat, whisking constantly, until the mixture thickens and just begins to bubble, about 5–7 minutes. It should coat the back of a spoon. Remove from heat immediately.
- Pour the hot filling over the warm crust. Smooth the top with a spatula.
- Bake for 18–22 minutes, until the filling is set around the edges but still slightly jiggly in the center. The filling will firm up as it cools.
- Cool completely on a wire rack for 1 hour, then refrigerate for at least 4 hours (or overnight) until fully set.
- Dust with confectioners’ sugar just before serving. Lift out using the parchment overhang, slice into 9 squares, and serve cold.
Why the Filling Can Turn Out Runny, Dense, or Too Dry
Three common problems have specific causes. If the filling is runny, the cornstarch wasn’t fully activated—either the mixture wasn’t cooked long enough on the stove, or the bars were cut before the full 4-hour chill. If the bars are dense and heavy, the eggs were over-whisked or the filling was overcooked, causing the eggs to scramble. If the crust is too dry and crumbly, the coconut oil was too soft or the dough was overworked. Fix each by following the times exactly: cook the filling until it visibly thickens, chill for the full 4 hours, and handle the dough only until it just comes together.
Scaling for Half and Double Batches
| Batch | Pan size | Crust (flour/sugar/oil) | Filling (milk/lemon juice/sugar/cornstarch/eggs) | Bake time (crust/filling) |
|---|---|---|---|---|
| Half | 8×4-inch (20×10 cm) loaf pan | ¾ cup (95 g) / ¼ cup (30 g) / ¼ cup (60 g) | ½ cup (120 ml) / 6 tbsp (90 ml) / ½ cup (100 g) / 2 tbsp (15 g) / 1 egg | 15–18 min / 15–18 min |
| Single | 8×8-inch (20×20 cm) | 1 ½ cups (190 g) / ½ cup (60 g) / ½ cup (115 g) | 1 cup (240 ml) / ¾ cup (180 ml) / 1 cup (200 g) / ¼ cup (30 g) / 2 eggs | 18–20 min / 18–22 min |
| Double | 9×13-inch (23×33 cm) | 3 cups (380 g) / 1 cup (120 g) / 1 cup (230 g) | 2 cups (480 ml) / 1 ½ cups (360 ml) / 2 cups (400 g) / ½ cup (60 g) / 4 eggs | 20–22 min / 22–25 min |
For the half batch, use one whole egg; for the double, four eggs. The half-batch filling will be thinner, so check for doneness at the shorter end of the time range. The double batch may need a few extra minutes of chilling—refrigerate for 5 hours if you can.
Storing and Freezing Lemon Bars
Keep the bars in an airtight container in the refrigerator for up to 4 days. They are best served cold; let them sit at room temperature for 5 minutes before cutting if you prefer a softer texture. To freeze, wrap the uncut slab (or individual bars) tightly in plastic wrap, then foil, and freeze for up to 3 months. Thaw overnight in the refrigerator before dusting with sugar and serving. Do not leave the bars at room temperature for more than 2 hours total (1 hour if above 90°F/32°C).
Swaps That Change the Result
Use lime instead of lemon: Substitute lime juice and zest for the lemon. The bars will be slightly less tart and more floral; use the same amounts.
Replace coconut milk with oat milk or almond milk: Use the same amount of any plain, unsweetened non-dairy milk. The filling will be a bit less rich and may set slightly softer because of lower fat; add 1 extra tablespoon (8 g) cornstarch to compensate.
Use a gluten-free flour blend: Swap the all-purpose flour for a 1:1 gluten-free baking flour. The crust will be more crumbly; press it firmly and chill the dough for 15 minutes before baking.
Always check labels on non-dairy milks and flours for allergens if serving someone with allergies.
How to Tell When the Bars Are Done
The filling should be set around the edges and slightly jiggly in the center when you remove it from the oven. It will continue to set as it cools. After the full chill, the top should feel firm to the touch and a knife inserted into the center should come out mostly clean, with just a slight residue. If the knife comes out wet, the bars need more chilling—return them to the fridge for another hour.
Related
- Dairy Free Banana Bread UK Recipe
- Dairy-Free Chocolate Banana Bread Recipe
- Lemon Bread Undertale Recipe Guide
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).
