This lemon filling suits weekend baking when you want a bright, creamy center for homemade danish pastries. It pairs well with flaky, buttery dough and balances sweetness with sharp citrus. Make it ahead and chill for easier filling and cleaner assembly.
Choose Your Lemons and Check Ripeness
Use 3–4 medium Meyer or Eureka lemons. Meyer lemons are slightly sweeter and less acidic; Eureka lemons give a sharper tang. All work, but taste varies. Roll each lemon firmly on the counter before cutting to release more juice. Juice yields about 1/3 cup (80 ml) from 3 lemons; zest one lemon finely, avoiding the white pith.
Measure Ingredients for Consistent Texture
- 1/3 cup (80 ml) fresh lemon juice, about 3 medium lemons
- 2 tablespoons (6 g) finely grated lemon zest
- 3/4 cup (150 g) granulated sugar
- 3 large egg yolks, pasteurized if serving to young children, pregnant people, or immune-compromised individuals
- 2 tablespoons (30 g) unsalted butter, cut into small pieces
- 1 tablespoon (8 g) cornstarch
- Pinch of salt
Use real lemon juice, not bottled, for the best flavor. Bottled juice has preservatives and a flat taste. If you must substitute, use 100% lemon juice with no additives.
Cook the Lemon Filling Until Thick and Smooth
- In a small saucepan, whisk together sugar, cornstarch, salt, egg yolks, lemon juice, and lemon zest until smooth. Place over medium heat.
- Cook, stirring constantly with a silicone spatula or wooden spoon, for 6–8 minutes. The mixture will thicken and begin to bubble gently.
- Once it reaches a boil, continue cooking for 1 minute, still stirring. Remove from heat when it coats the back of a spoon and holds a line when you run your finger through it.
- Stir in butter pieces one at a time until fully melted and incorporated. The filling will be glossy and smooth.
- Transfer to a clean bowl. Press plastic wrap directly onto the surface to prevent a skin from forming. Chill in the refrigerator for at least 1 hour before using.
The filling must reach a safe minimum internal temperature of 160°F (71°C) for egg dishes, as defined by USDA FSIS. Use a food thermometer to confirm if unsure. This ensures safety while preserving texture.
Fill Danish Pastries Without Leaks or Sags
Use a piping bag with a round tip or a resealable plastic bag with one corner snipped. Cut a 1-inch (2.5 cm) opening for controlled flow. Pipe filling into center of each Danish, leaving 1/2 inch (1.25 cm) border. Do not overfill—1 tablespoon (15 g) per pastry is enough. Overfilling causes spillage during baking.
If assembling ahead, fill unbaked pastries and refrigerate for up to 4 hours before baking. Do not freeze filled unbaked danishes—the filling may separate. Bake immediately after filling if not chilled.
Adjust Thickness and Sweetness to Taste
If the filling is too thin after cooling, reheat gently in 10-second bursts in the microwave, stirring between bursts. Add 1 teaspoon (4 g) cornstarch mixed with 1 teaspoon water if further thickening is needed.
If too sweet, stir in 1 teaspoon lemon juice. If too tart, add 1 tablespoon sugar and reheat briefly to dissolve. Always re-cover and rechill after adjusting.
Substitute Ingredients When Needed
Lime juice can replace lemon juice in a 1:1 ratio, but the flavor will be more floral and less bright. Orange juice is not recommended—it lacks acidity and will not thicken properly.
For dairy-free, swap butter with refined coconut oil or vegan butter stick (not tub). Texture remains similar, but flavor may have a slight coconut note if unrefined oil is used.
Replace cornstarch with tapioca starch at 1:1 ratio. Arrowroot works but may give a slightly glossy sheen. Do not use flour—it results in a chalky texture.
Scale the Recipe for More or Fewer Pastries
| Batch Size | Sugar | Egg Yolks | Lemon Juice | Cornstarch |
|---|---|---|---|---|
| Half | 6 tbsp (75 g) | 1 1/2 yolks | 3 tbsp (40 ml) | 2 tsp (4 g) |
| Full | 3/4 cup (150 g) | 3 yolks | 1/3 cup (80 ml) | 1 tbsp (8 g) |
| Double | 1 1/2 cups (300 g) | 6 yolks | 2/3 cup (160 ml) | 2 tbsp (16 g) |
To use 1 1/2 egg yolks, beat one whole egg and one yolk together, then use half the mixture. Freeze or refrigerate the remainder for another use.
Serve With Complementary Toppings and Sides
Top baked danishes with a simple glaze: 1/2 cup (60 g) powdered sugar mixed with 1–2 teaspoons (5–10 ml) milk or lemon juice. Drizzle lightly. Add a sprinkle of toasted sliced almonds or extra lemon zest for visual appeal.
Pair with coffee, tea, or a fruit smoothie. Serve within 2 hours of baking for best texture. The filling firms as it cools but remains soft inside.
Store Leftovers Safely and Maintain Quality
Refrigerate unfilled lemon filling in a sealed container for up to 5 days. Press plastic wrap on the surface before sealing to prevent skin.
Baked danishes keep in the refrigerator for 3–4 days. Reheat in a 325°F (160°C) oven for 8–10 minutes until warm. Do not microwave—pastry becomes soggy.
Freeze unfilled baked danish pastries for up to 2 months. Thaw and reheat before adding filling. Do not freeze filled danishes—filling texture breaks down.
Any dish containing eggs and dairy must be refrigerated within 2 hours (1 hour if above 90°F/32°C). Discard if left out longer.
Fix Common Issues Before Baking
If the filling curdles during cooking, immediately remove from heat and blend with an immersion blender or whisk vigorously. It may recover if not overheated. If lumps persist, strain through a fine-mesh sieve.
If filling separates after chilling, whisk in 1 teaspoon room-temperature butter until smooth. Do not reheat above 160°F (71°C) or risk scrambling.
If pastries leak during baking, reduce filling amount next time and ensure edges are sealed well. Use cold filling to slow early melting.
Related
- Cake and Pastry Filling: How to Choose and Use
- Casserole Bake with Puff Pastry
- Skillet Recipes with Puff Pastry
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).