Dinners

Lemon Danish Filling Recipe for Flaky Pastries

Updated · By Stir & Share

Total timeprep + cook
30 min
Prep
20 min
hands-on
Cook
10 min
oven or stovetop
Serves
12
as written

Jump to recipe Save

Time: 20 min prep · 10 min cook · 30 min total  ·  Serves: 12  ·  The key step: Cook the filling until it thickens and bubbles, then cool completely before using. This bright, creamy lemon filling is made from pantry staples and works in danishes, croissants, or puff pastry. It has a smooth, curd-like texture with a tangy citrus flavor that balances sweet pastry.

Why the Filling Thickens on the Stove, Not in the Oven

Cooking the filling on the stove before baking ensures it sets properly. If you add raw lemon juice and eggs to pastry, the filling stays runny and can make the dough soggy. Pre-cooking gelatinizes the cornstarch, so the filling holds its shape when sliced. The result is a stable, sliceable filling that won’t leak out of the pastry.

Use a heavy saucepan and stir constantly with a whisk. Constant stirring prevents scorching and keeps the texture silky. The filling is done when it thickens to a pudding-like consistency and a whisk leaves a clear trail that slowly disappears.

Ingredients

  • 1 cup (240 ml) water
  • 1/2 cup (100 g) granulated sugar
  • 3 tablespoons (24 g) cornstarch
  • 3 large egg yolks
  • 1/4 cup (60 ml) fresh lemon juice (about 2 lemons)
  • 1 tablespoon (15 ml) lemon zest (about 2 lemons)
  • 2 tablespoons (28 g) unsalted butter, cut into small pieces
  • 1/4 teaspoon salt

Instructions

  1. In a medium bowl, whisk the egg yolks lightly. Set aside.
  2. In a small bowl, dissolve the cornstarch in 2 tablespoons (30 ml) of the water. Set aside.
  3. In a heavy saucepan, combine the remaining water, sugar, and salt. Bring to a simmer over medium heat, stirring until the sugar dissolves.
  4. Slowly whisk about 1/2 cup (120 ml) of the hot sugar water into the egg yolks to temper them. Then pour the yolk mixture back into the saucepan.
  5. Whisk in the cornstarch mixture and lemon juice. Cook over medium heat, whisking constantly, until the mixture thickens and comes to a gentle boil, about 5–7 minutes. It should be thick enough to coat the back of a spoon.
  6. Remove from heat and whisk in the lemon zest and butter until the butter is melted and the filling is smooth.
  7. Pour the filling through a fine-mesh strainer into a bowl to remove any cooked egg bits. Cover with plastic wrap, pressing it directly onto the surface to prevent a skin from forming.
  8. Cool to room temperature, about 20 minutes, then use immediately or refrigerate until ready to assemble. The filling will thicken more as it cools.

What Goes Wrong and How to Fix It

Runny Filling

If the filling is too thin, it wasn’t cooked long enough. The cornstarch needs to reach a full boil to activate. If you undercook, return it to the stove and boil for 1–2 minutes more, whisking constantly.

Lumpy Filling

Lumps form when the cornstarch is added directly to hot liquid without being dissolved first, or when the eggs are not tempered. Always dissolve cornstarch in cold water, and whisk the hot liquid into the yolks slowly. If lumps appear, strain the filling after cooking.

Curdled Filling

Curdling happens when the eggs get too hot too quickly. Temper them slowly, and keep the heat at medium, not high. If the filling looks curdled, straining will remove the bits, but the texture may be slightly less smooth.

Make-Ahead and Storage

This filling can be made up to 3 days ahead. Store it in an airtight container in the refrigerator. The filling will firm up when chilled; let it sit at room temperature for 10 minutes before using, or stir it to loosen.

Assembled danishes can be refrigerated for up to 1 day before baking, but the pastry may become less flaky. For best results, bake them the same day you assemble. Baked danishes with this filling keep for 2 days at room temperature in a covered container, or up to 4 days refrigerated. Reheat in a 350°F (175°C) oven for 5–8 minutes to refresh the pastry.

Freeze unbaked danishes on a baking sheet until solid, then transfer to a freezer bag for up to 2 months. Bake from frozen, adding 5–10 minutes to the baking time.

Using the Filling in Danishes

This recipe makes about 1 1/2 cups (360 ml) of filling, enough for 12 standard-sized danishes. For each danish, place a heaping tablespoon (about 20 g) in the center of the pastry. Do not overfill—the filling will spread as it bakes.

Pair the lemon filling with fresh blueberries or raspberries for a mixed-berry danish. Add a teaspoon of poppy seeds to the filling for a lemon-poppy variation. For a sweeter finish, drizzle a simple powdered sugar glaze (1 cup powdered sugar, 2 tablespoons milk) over the baked danishes.

If you prefer a thicker, more curd-like texture, increase the cornstarch to 4 tablespoons (32 g). For a softer, more custard-like filling, reduce the cornstarch to 2 tablespoons (16 g) and expect a slightly runnier result.

Related

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).