French Pastry Custard: Recipe for Tarts & Éclairs
In this article
French pastry custard, often called crème pâtissière or simply pastry cream, is the silky, vanilla-scented filling behind classic éclairs, fruit tarts, and mille-feuille. This recipe uses a careful balance of egg yolks, sugar, milk, and cornstarch to create a thick yet light custard that holds its shape without being gluey. It comes together in about 20 minutes on the stove, and once you master the technique, you'll have a versatile base for countless desserts.
Ingredients
- 2 cups (480 ml) whole milk
- 1 vanilla bean (or 2 teaspoons vanilla extract)
- 5 large egg yolks (about 90 g)
- 1/2 cup (100 g) granulated sugar
- 1/4 cup (30 g) cornstarch
- 2 tablespoons (30 g) unsalted butter, cut into small pieces
- 1/4 teaspoon salt
Instructions
- Prepare the milk: Pour the milk into a medium saucepan. Split the vanilla bean lengthwise and scrape the seeds into the milk; add the pod too. Heat over medium heat until the milk is steaming and small bubbles form around the edges (about 180°F/82°C). Do not boil. Remove from heat, cover, and let steep for 10 minutes. If using vanilla extract, skip steeping and add it later.
- Whisk the yolks: In a medium bowl, whisk the egg yolks and sugar together until pale and slightly thickened, about 1 minute. Add the cornstarch and salt, and whisk until smooth and no lumps remain.
- Temper the yolks: Slowly pour about 1/2 cup of the hot milk into the yolk mixture while whisking constantly. This raises the temperature of the yolks gradually so they don't scramble. Then pour the yolk mixture back into the saucepan with the remaining milk, whisking to combine.
- Cook the custard: Place the saucepan over medium heat. Whisk constantly and firmly, making sure to scrape the bottom and corners of the pan. The mixture will thin out, then start to thicken. After about 2-4 minutes, it will bubble and become thick, like a pudding. Continue whisking for 1 full minute after it bubbles to ensure the cornstarch is fully cooked and the custard is smooth.
- Finish with butter: Remove the pan from heat. If you used a vanilla bean, remove the pod now. Add the butter pieces and whisk until completely melted and incorporated. If you're using vanilla extract instead of the bean, stir it in now.
- Chill quickly: Immediately transfer the custard to a shallow dish or a bowl. Press a piece of plastic wrap directly onto the surface of the custard to prevent a skin from forming. Refrigerate for at least 2 hours, or until completely cold. The custard will firm up more as it chills.
Tips
- Lumps happen: If your custard becomes lumpy, don't panic. Once it's cooked, you can press it through a fine-mesh sieve to remove any cooked bits. For a smoother texture, you can also blend it briefly with an immersion blender, but do this while it's still warm.
- Use whole milk: Whole milk gives the custard its rich body. Low-fat or skim milk will make a thinner custard that may not hold up as well in tarts. For a richer version, replace 1/4 cup of the milk with heavy cream.
- Don't skip the tempering: Adding hot milk too quickly to the egg yolks will scramble them. Go slow and whisk constantly. This is the most common mistake and the easiest to avoid.
- Flavor variations: You can infuse the milk with other flavors like a strip of orange zest, a cinnamon stick, or a few coffee beans. Steep them with the vanilla bean, then strain them out before adding to the yolks.
Serving Suggestions
This pastry custard is incredibly versatile. Pipe it into cream puffs or éclairs, then top with chocolate ganache. Spread it into a pre-baked tart shell and arrange fresh berries or sliced peaches on top. Layer it with puff pastry and whipped cream for a quick mille-feuille. You can also serve it simply in small glasses with a dusting of cocoa powder and a few raspberries.
Variations
- Chocolate pastry cream: Add 3 ounces (85 g) of chopped dark chocolate to the hot custard after you remove it from the heat. Stir until melted and smooth.
- Lemon or orange: Add 1 teaspoon of finely grated citrus zest to the milk while it steeps. Omit the vanilla bean if you prefer a pure citrus flavor.
- Coffee: Add 1 tablespoon of instant espresso powder to the milk before heating. Stir to dissolve.
- Lighter version: Fold in 1/2 cup of softly whipped cream into the chilled custard just before using. This makes it lighter and more mousse-like, perfect for layering in trifles.
Storage and Reheating
Store the pastry custard in an airtight container with plastic wrap pressed directly on the surface. It will keep in the refrigerator for up to 3 days. Do not freeze it, as the texture will become watery and grainy upon thawing.
To use cold custard straight from the fridge, give it a good whisk to loosen it. If it seems too stiff, you can whisk in a tablespoon of milk or cream. To reheat, place it in a saucepan over low heat, stirring constantly, until just warm. Do not let it boil or it will curdle. Reheated custard is best used immediately and should not be re-refrigerated.
Frequently Asked Questions
Can I use cornstarch instead of flour? Yes, this recipe uses cornstarch, which gives a cleaner, more neutral flavor and a glossy finish. You can substitute an equal amount of all-purpose flour, but the custard will be slightly more opaque and have a bit more of a starchy taste.
Why did my custard turn out runny? The most common reasons are not cooking it long enough (it must bubble for at least 1 minute) or using too little cornstarch. Also, make sure you measure the cornstarch correctly—scoop and level it, don't pack it.
Can I make this dairy-free? Yes, you can substitute the whole milk with full-fat oat milk or coconut milk (from a carton, not a can). The flavor will change slightly, and the custard may be a bit softer. Use the same amount, and add an extra tablespoon of cornstarch if you need a firmer set.
How do I prevent a skin from forming? Always press plastic wrap directly onto the surface of the hot custard before chilling. This creates a barrier that stops evaporation and skin formation.
Can I use this custard to fill a cake? Absolutely. It works beautifully as a layer in a sponge cake. Just make sure the cake is completely cool, and pipe or spread the custard evenly. For a sturdier filling, you can fold in some whipped cream as described in the variations.
My custard is lumpy. Can I fix it? Yes, if it's already cooked, press it through a fine-mesh sieve with a spatula. This will remove any lumps and leave you with a smooth custard. To prevent lumps in the future, whisk the yolk-sugar-cornstarch mixture thoroughly before adding the milk, and whisk constantly while cooking.