- Pastry cream is a versatile, classic custard made from milk, egg yolks, sugar and starch, essential in many cakes, tarts and pastries.
- Infusing the milk and cooking slowly over low heat while stirring constantly are key steps for a smooth, lump-free and stable texture.
- Proper storage requires refrigeration for up to 3–4 days, avoiding freezing because it breaks the structure and ruins the cream.
- Once mastered, pastry cream becomes a base for variations like Diplomat, mousseline or frangipane, multiplying dessert possibilities.

Homemade pastry cream is one of those baking basics that can instantly turn a simple dessert into something that looks like it came straight out of a professional pastry shop. With its silky texture, pale yellow color and gentle vanilla aroma, this classic cream is perfect for filling cakes, tarts, éclairs, cream puffs and an endless list of sweet treats.
Even though the ingredient list is short and very affordable – milk, egg yolks, sugar and a starch such as cornstarch or flour – getting the right texture can feel a bit tricky the first times. With a few key techniques, detailed tips and some patience, you will nail a pastry cream that is smooth, rich, stable and free of lumps, ready to use in all your favorite desserts.
What is classic pastry cream and why it matters in baking?
At its core, classic pastry cream (crème pâtissière) is a cooked custard made from milk, egg yolks, sugar and a thickener. The traditional version is usually flavored with vanilla, though it can be adapted with many other aromas. It has a creamy yet sliceable consistency that allows it to hold its shape inside cakes, pastries and tart shells without running.
Historically linked to European – especially French – pastry, pastry cream has become a staple in bakeries all over the world. You will find it in fruit tarts, mille-feuille, éclairs, cream puffs, custard-filled breads and countless other sweets. Because it is so versatile and acts as a base for many other creams, learning to prepare it properly is one of the most valuable skills for any home baker.
The most recognizable feature of this cream is its light yellow tone, which comes mainly from the egg yolks. Depending on the eggs you use and whether you add extra butter or cream, the color can be more or less intense. Another hallmark is the gentle vanilla fragrance, either from a real vanilla bean, extract or vanilla sugar.
Beyond vanilla, the milk used for pastry cream can be infused with citrus peels, cinnamon sticks or other spices to create different profiles. Orange zest, lemon peel, a stick of cinnamon or even star anise can subtly transform the character of the cream while keeping the same base method.
In pastry shops, this cream is considered a “mother preparation”: once you know how to make it, you can turn it into many other fillings and toppings. Whether you are layering it into a simple sponge cake or building an elaborate French dessert, mastering pastry cream opens a door to endless recipes.
Ingredients for a reliable homemade pastry cream
Although there are small variations from one baker to another, most classic pastry cream recipes share the same base ingredients. The differences usually lie in the quantity of sugar, the type of thickener and the aroma used to infuse the milk.
A very balanced, classic version for about 4 servings (around 600 ml of cream) would look like this:
- 500 ml whole milk (full-fat milk gives better flavor and a more stable texture than low-fat milk)
- 3-4 egg yolks (depending on the recipe and how rich you want the cream; some versions use 3, others 4)
- 100 g sugar (enough to make it sweet without being cloying)
- 40-50 g cornstarch (maicena) or fine corn flour as a thickener
- 1 vanilla bean, 1 tsp vanilla extract or vanilla sugar for classic flavor
- Citrus peel (usually lemon) and/or a cinnamon stick if you want an extra aromatic twist
- Optional 40-50 g unsalted butter, added at the end for extra silkiness and more structure in fillings
Some recipes replace cornstarch with wheat flour or even use a mix of both, but using pure corn starch has a clear advantage: the final cream is naturally gluten-free, so it is safe for people with celiac disease or gluten intolerance, as long as the other ingredients are also guaranteed gluten free.
The choice of milk really makes a difference: whole milk produces a more flavorful, creamier and more stable pastry cream compared to semi-skimmed or skim milk. While you can technically make it with reduced-fat milk, many bakers notice a thinner texture and a less rich taste. Vegetable milks are another story: they do not behave like dairy milk and often require recipe adjustments, so if you try them, treat it as an experiment rather than a guaranteed success.
As for the aromatics, you can play around according to your taste and the dessert you are making. Lemon peel, orange zest, cinnamon stick, vanilla pod, star anise or even a splash of liquor can be used to customize the personality of your cream. Just remember to remove solid aromatics (like peels and sticks) before thickening the cream.
In terms of nutrition, pastry cream is not exactly a light ingredient, but it is also not over-the-top heavy if eaten in moderate portions. Depending on the exact recipe, it usually stays around 170-270 kcal per 100 g or per serving. For example, a typical batch of 600 ml divided into four portions gives about 265 kcal per portion.
Step-by-step: how to make classic homemade pastry cream
Most well-tested recipes follow a very similar structure, broken down into two main stages: flavoring the milk and then thickening the cream. The whole process takes about 20 minutes in total – around 5-10 minutes of active preparation and another 10-15 minutes of gentle cooking.
1. Infuse the milk with flavor
Start by preparing your aromatics. If you are using a vanilla bean, split it lengthwise with a sharp knife and scrape out the tiny seeds inside. If you prefer citrus, wash the lemon or orange and peel only the colored part of the skin, avoiding the white pith, which tastes bitter. You can use more or less peel depending on how intense you want that citrus note.
Pour almost all of the 500 ml of milk into a saucepan, reserving around 150 ml or a few tablespoons for later. Add the vanilla pod (and its seeds), the lemon peel, orange zest and/or a cinnamon stick to the pan. Heat the milk over medium heat until it is very hot but not boiling; you should see steam and small bubbles forming around the edges, but it must not reach a rolling boil.
Once it reaches this point, remove the saucepan from the heat, cover it and let the milk infuse. Ideally, let it rest for about 20-30 minutes so that the flavors fully develop. If you are in a hurry, you can cut that down to about 10 minutes while you prepare the rest of the ingredients, but the final aroma will be a bit milder.
This infusing step is what gives pastry cream that distinctive complexity without extra effort. The heat gently extracts the essential oils from the peel and spices, leaving you with milk that already smells like dessert before you even add the eggs.
2. Mix yolks, sugar and starch
While the milk is resting, take the reserved cold milk and pour it into a separate bowl or jug. Add the cornstarch (around 40-50 g) and stir thoroughly until it dissolves completely. If you see any lumps, keep whisking or pass the mixture through a fine sieve to make sure it is perfectly smooth – this is key to avoiding lumps later in the cream.
In another bowl or directly in a small saucepan, add the egg yolks. Gradually pour in the sugar while whisking constantly, until the mixture turns paler, thick and slightly creamy. This step helps dissolve the sugar and starts to incorporate air, giving the cream a smoother texture.
Once the yolks and sugar are well blended, pour in the milk-starch mixture in a thin stream, whisking at the same time so everything combines evenly. You should end up with a fluid, lump-free base that will thicken once heated with the infused milk.
If you notice stubborn lumps at this stage, strain the mixture through a fine-mesh sieve into a clean bowl or directly back into the saucepan. Removing lumps now is much easier than trying to fix them once the egg mixture starts cooking.
3. Combine with infused milk and cook gently
Return to the saucepan with the infused milk. Take out the vanilla pod, citrus peel, cinnamon stick or any other solid aromatics. To avoid bits falling into the cream, it is best to pour the milk through a strainer into a clean jug or directly over the egg mixture.
Now you have to temper the egg mixture so it does not cook too quickly. Start by pouring a small amount of the warm infused milk into the yolk-starch base, whisking continuously. This gradually raises the temperature of the yolks, preventing them from scrambling. Then, pour the rest of the milk in a thin stream while you keep whisking.
Transfer everything back to the saucepan if you were mixing in a separate bowl, and place it over medium-low heat (around 4 out of 10). From this point on, you must stir the mixture constantly with a whisk or a spatula, reaching the bottom and corners of the pan so that nothing sticks or burns.
During the first few minutes, the mixture will look very liquid and you might feel like nothing is happening. Stay calm and keep stirring; as the temperature slowly rises, the starch will start to swell and the yolks will set, and you will see the cream gradually becoming thicker and smoother.
At some point – quite suddenly – the texture will change noticeably. The cream will become much thicker and will begin to bubble gently. You will know it is ready when it can coat the back of a spoon and your finger leaves a clear line through the cream on the spoon. Avoid vigorous boiling: gentle bubbles are okay, but rolling boils can break the texture and risk curdling the eggs.
4. Finish off the cream and cool it properly
As soon as the cream reaches the desired thickness, remove the saucepan from the heat. If you want an extra silky and rich result – especially for cake fillings where you need more stability – you can add about 40-50 g of room-temperature unsalted butter at this point. Stir or whisk until the butter melts completely and disappears into the cream.
For the smoothest possible texture, many pastry chefs like to pass the hot cream through a sieve into a heatproof bowl or jug. This step catches any tiny bits of cooked egg or leftover lumps and guarantees a perfectly velvety finish.
To prevent a thick skin from forming on top, cover the surface of the cream with plastic wrap (cling film) in direct contact. Do not just cover the bowl; press the film gently over the surface so that no air is trapped between the cream and the plastic.
Let the cream cool down at room temperature until it is no longer hot, and then transfer it to the refrigerator. Well covered, pastry cream will keep for up to 3-4 days in the fridge. When you are ready to use it, whisk it briefly to bring back its smooth texture before piping or spreading.
Can you freeze pastry cream?
It is very tempting to try to freeze leftover pastry cream, especially if you like to batch cook and store. However, in practical terms, the answer is no – it does not freeze well. After thawing, the texture tends to break: it may look fine at first, but quickly turns grainy and then watery.
This happens because the starch and egg structure that keep the cream stable are damaged when frozen and thawed. The water separates from the fat and proteins, leading to a split or runny mixture that is difficult, if not impossible, to bring back to its original smoothness. Many bakers who tried it end up disappointed, watching a once-perfect cream turn into something unusable.
The safest approach is to prepare only the amount you need or, if you are not sure, make a half batch when working on small bakes. Because the recipe is quick and straightforward, mixing a fresh small amount whenever you need it is usually more reliable than trying to rescue a thawed cream.
If you still end up with leftovers, your best option is simply to store them in the fridge and enjoy them within 3-4 days. And yes, eating the remaining spoonfuls straight from the bowl is a completely valid “recipe” and a very popular one among pastry cream fans.
Storage tips and baker’s tricks
For safe storage, always transfer the hot cream to a clean glass or ceramic container (to avoid off-flavors from metal pans), then cool and refrigerate as soon as it reaches room temperature. Never leave pastry cream at room temperature for hours, especially in warm climates, because it contains eggs and milk, which are perishable.
If you only need the egg yolks for the cream, do not throw away the whites. You can freeze egg whites in a clean container or ice cube tray and save them for later to make meringue, pavlova, angel food cake or macarons. They freeze and thaw very well and are a great way to reduce kitchen waste.
When reheating or loosening pastry cream that has firmed up in the fridge, do not cook it again. Instead, whisk it vigorously in a bowl or gently warm it in a heatproof bowl over a bain-marie (double boiler), stirring until it becomes smooth. Avoid overheating it, or you may change its texture.
One extra insider tip from experienced bakers is to cook the cream slowly over low heat and stir without rushing. It might be a bit more work for your arm, but the final texture and flavor are far superior to creams cooked quickly over high heat, which are far more likely to scorch or curdle.
Common uses of pastry cream in desserts
Pastry cream is so versatile that you can easily find dozens of dessert ideas for a single batch. Some of the most popular applications include:
- Layer cakes and sponge rolls, such as Swiss rolls or jelly rolls, where the cream is spread inside as a filling
- Puff pastry desserts like mille-feuille or napoleons, where crisp layers of pastry are alternated with thick pastry cream
- Choux pastries – éclairs, profiteroles or cream puffs – filled generously with vanilla cream
- Sweet breads and holiday loaves, for example the traditional kings’ bread (roscón de Reyes), with pastry cream spiraled inside
- Fruit tarts and tartlets, where a layer of cream is spread inside the baked shell and topped with fresh fruit
Beyond its direct uses, pastry cream is also the foundation for many other classic creams and fillings that you will find in both home and professional baking. By combining it with whipped cream, butter, meringue or ground nuts, you can build more elaborate textures and flavors.
Some notable variations include the beloved Diplomat cream (pastry cream lightened with whipped cream), the sophisticated Saint Honoré cream (a mix of pastry cream and meringue), and the rich mousseline cream (pastry cream enriched with a generous amount of butter). Each of these maintains the soul of pastry cream while adding its own twist.
In other traditions, you also find custard-like drinks and desserts that are very similar in preparation to pastry cream. An example is Venezuelan ponche crema, which uses a cooked egg and milk base sweetened and flavored in a way that echoes the same technique.
Popular pastry cream variations and derivatives
Once you are comfortable with a basic pastry cream, it becomes very easy to create spin-off recipes by adding or combining just one or two extra ingredients. This is where pastry cream truly shows how flexible it can be.
Diplomat cream is made by folding whipped cream into cooled pastry cream. The result is a lighter, more airy filling that is wonderful for chilled desserts, no-bake tarts and layered cakes where you want volume without being too heavy.
Saint Honoré cream, traditionally used in the dessert of the same name, mixes pastry cream with Italian meringue. This creates a stable yet fluffy cream that holds its shape beautifully and has a delicate sweetness that pairs very well with caramel and puff pastry.
Mousseline cream starts with pastry cream but then incorporates a large quantity of very soft butter, beaten in until the mixture is airy and rich. This cream is fantastic for piping and decorating because it is firm, smooth and intensely creamy, ideal for special-occasion cakes.
Another classic derivative is frangipane, a filling often used in tarts and galettes. It usually combines pastry cream with ground almonds and sometimes butter. The mixture is then baked inside a pastry shell, creating a custard-like, nutty interior with a luxurious taste.
Texture, troubleshooting and expert advice
Getting the perfect texture in pastry cream means finding the balance between thickness, smoothness and stability. If the cream is too runny, it will not hold as a filling; if it is too thick or overcooked, it can become heavy, gummy or even grainy.
If you find that your cream is too thin even after cooling completely, it is often because it did not cook long enough after thickening started, or there was not enough starch compared to the liquid. Next time, you can let it bubble gently for a minute or two once it has thickened, while continuously stirring, to ensure the starch fully activates.
If the cream turns lumpy, the most common reasons are starch not properly dissolved at the beginning or the mixture heated too quickly, partially scrambling the egg. To reduce lumps in an already cooked cream, you can try to blend it briefly with an immersion blender and then strain it. It will not be exactly the same as a perfectly made cream, but it is often salvageable.
In some cases, when adding the infused milk, if it is too hot and poured too fast onto the yolks, you may see little cooked egg bits forming. Tempering slowly, as described earlier, prevents this issue. Some bakers also prefer to cook pastry cream over a bain-marie for extra control, especially when they do not trust their stovetop’s low settings.
Finally, if you want to ensure a super smooth cream from the start, remember these mini-rules: fully dissolve the starch in cold milk, strain mixtures when in doubt and keep the heat low while stirring constantly. Patience really is your best friend when cooking this type of cream.
Alternative flavorings and small tweaks
Although traditional pastry cream leans heavily on vanilla and a hint of citrus or cinnamon, there is a lot of room to customize it to match your favorite flavors or the theme of your dessert.
You can transform the cream into a chocolate version by adding chopped dark or milk chocolate at the end of cooking, letting it melt completely into the hot cream. For a more citrusy profile, increase the amount of lemon or orange zest, or add a few drops of orange blossom water for a floral touch.
Spices such as cinnamon, nutmeg, star anise or cardamom can be added to the milk during the infusion stage, then removed before thickening. Each will give the cream a different personality, perfect for seasonal desserts or to pair with specific fruits and nuts.
A small splash of liquor or liqueur – like rum, amaretto or a nut liqueur – added once the cream is cooked and slightly cooled can provide a more adult, complex flavor. Just keep the quantity modest so the alcohol does not overpower the delicate custard.
If you are after an even richer mouthfeel, a part of the milk can be replaced with heavy cream. Even a small amount will make the cream feel more luxurious and decadent, though it will also increase the calorie count.
Serving ideas and portion guidance
From a practical point of view, a batch of around 500-600 ml of pastry cream is just the right amount to fill a standard-sized tart shell, a small layer cake or a generous tray of choux pastries. Recipes often mention servings like 4 people, but the real usage will depend on how thickly you like to layer your cream.
Because the cream is quite rich, using it as a component in multi-layer desserts helps keep portions reasonable. A thin but generous layer between sponge cake, under sliced fruit or inside puff pastry is enough to give a luxurious feeling without making the dessert overwhelming.
If you plan to use pastry cream as a decorative element with a piping bag, for example to top pastries or create designs, it is important that the cream is well chilled and on the thicker side. Adding a little butter at the end of cooking, as mentioned before, helps it hold up better when piped.
For a very simple dessert, you can also serve pastry cream in small glasses or bowls with fresh berries, caramel sauce or cookie crumbs on top. It is a quick way to offer a homemade dessert when you do not have time to bake a full cake or tart.
Once you get used to the method, you will probably find yourself making this cream on autopilot, changing the flavors, sweetness or richness depending on the occasion. It is one of those recipes that feels basic, but quietly elevates everything it touches.
Bringing all these ideas together, pastry cream proves to be far more than a simple filling: it is a foundational recipe that can anchor countless desserts, adapt to different flavors and textures, and still be easy and fast enough for everyday baking. With good ingredients, gentle heat and a bit of attention, you will have a smooth, fragrant cream ready to turn any cake, tart or pastry into something special.



