Fillings, creams, frostings and saucesFrench
Pastry cream
A thick, cooked custard of milk, sugar, egg yolks and starch, usually flavored with vanilla, used to fill pastries and tarts.
Also called crème pâtissière

At a glance
- Base
- Milk, egg yolks, sugar and cornstarch or flour
- Texture
- Thick, silky, sets firm when chilled
- Best for
- Éclairs, cream puffs, fruit tarts, Boston cream cake
- Holds at room temperature?
- No; keep it refrigerated
- Make ahead
- Yes, a few days ahead, chilled
Overview
Milk is heated with vanilla, then whisked into egg yolks, sugar and cornstarch or flour, and the mixture is cooked until it thickens and comes to a boil. Because it contains starch, pastry cream is boiled for about a minute while whisking: this cooks out the raw starch taste and keeps the cream from thinning later. It is chilled with plastic wrap pressed onto the surface so no skin forms.
Pastry cream fills éclairs, cream puffs, Boston cream cake and fruit tarts. Folded with whipped cream it becomes diplomat cream; beaten with butter it becomes crème mousseline.
What it's made of
Pastry cream, or crème pâtissière, is a cooked custard that relies on two thickeners at once: egg yolks and starch. The yolks bring richness, color and a custardy body, while cornstarch or flour supplies the structure that lets the cream set firm and hold its shape. Milk is the liquid, sugar sweetens and softens the set, and vanilla, often a split vanilla bean, gives the classic flavor.
The starch only reaches full thickening at the boiling point, and the yolks actually slow it down, so the cream must come to a true boil. Many cooks whisk in a knob of butter at the end for extra gloss and a rounder, smoother taste.
How it's made
- Warm the milk with vanilla until steaming, letting a split bean steep if you use one.
- Whisk the yolks, sugar and starch together until pale and completely smooth.
- Pour a little hot milk into the yolks while whisking, then add the rest gradually to temper them.
- Return the mixture to the pan and whisk constantly, reaching into the corners, until it thickens and bubbles.
- Keep it boiling and whisking for about a minute so the starch cooks fully.
- Strain into a clean bowl, press plastic wrap onto the surface and chill until set.
Best uses
- Piped into baked choux pastry shells for éclairs and cream puffs
- Spread in a baked tart shell as a bed for fresh fruit
- Layered inside Boston cream cake under a chocolate glaze
- Folded with whipped cream into diplomat cream for lighter cake and pastry fillings
- Beaten with butter into crème mousseline for sturdier layered cakes
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| Turns runny after chilling | Removed from heat before boiling, so the starch never set | Bring it back to a full boil and whisk for about a minute |
| Tastes floury or starchy | Starch was undercooked and kept its raw cereal taste | Boil longer while whisking; do not stop at first thickening |
| Lumpy or grainy | Yolks scrambled from hot milk added too fast or scorched edges | Temper slowly, whisk the pan edges, and strain while hot |
Variations and flavorings
- Swap vanilla extract for a split vanilla bean to get the speckled look and deeper aroma
- Steep orange zest in the milk for a bright citrus cream
- Whisk pistachio paste into the warm cream for a nutty, green-tinted filling
- Stir in melted chocolate or a spoonful of ganache for a chocolate version
- Add instant coffee or espresso to the hot milk for a coffee cream
Storage and food safety
Pastry cream is a cooked egg and dairy mixture, so cool it quickly, keep it covered with wrap touching the surface, and store it in the refrigerator. It keeps well for a few days, which makes it easy to prepare ahead; whisk it briefly before using to loosen it. Anything filled with it, from éclairs to fruit tarts, should go back in the refrigerator too, and it is best not to freeze it, since thawed cream tends to weep and turn grainy.
Make it at VanillaGoods
Tools for this
Farberware Stainless SaucepanA heavy base heats evenly so dairy and sugar don't scorch.See it on Amazon
OXO Balloon WhiskLump-free batters and silky custards.See it on Amazon
Cuisinart Fine Mesh Strainers (3)Strain the base for a perfectly smooth, silky finish.See it on Amazon
As an Amazon Associate, VanillaGoods earns from qualifying purchases. We only suggest tools that help with this.
Common questions
Can you use flour instead of cornstarch in pastry cream?
Yes. Flour works but needs a bit more by volume and gives a slightly softer, less glossy set. Either way, the cream must boil long enough for the starch to cook fully and lose its raw taste.
What is the difference between pastry cream and diplomat cream?
Diplomat cream is pastry cream folded with whipped cream. It is lighter and airier, while plain pastry cream is denser and holds a firmer shape.
Why do you have to boil pastry cream?
Cornstarch only finishes thickening at the boiling point, and the egg yolks slow that process down. Stopping short leaves a thin cream with a cereal-like taste that can loosen further after it cools.
Sources
Written by VanillaGoods in our own words from these sources. Last reviewed November 9, 2026.
- 1.6: Custards (Introduction to Baking and Pastries), LibreTexts (Rink and Thibodeaux, Chef John Folse Culinary Institute, Nicholls State University)
- Types of Thickening Agents, BCcampus Open Education (Understanding Ingredients for the Canadian Baker)
- Picture Perfect Pies, K-State Research and Extension (Walnut Creek Extension District)
