About
My Cookbooks
Work With Me
Contact
  • Facebook
  • Instagram
  • Pinterest
  • X
  • YouTube
The Flavor Bender

Master the Science of Delicious

  • Recipe Index
    • All Recipes
    • Desserts
      • Cakes & Cupcakes
      • Candy & Bite Sizes
      • Chocolate
      • Cookies, Brownies & Bars
      • Frozen Desserts
      • Fruit Desserts
      • Puddings & Custards
      • Dessert drinks
      • No Bake
      • Pastries & Breads
      • Sweet Syrups & Spreads
      • Tarts & Pies
      • Cheesecakes
      • Healthy sweets
    • Breakfasts
      • Tarts, Quiches, & Pies
      • Waffles, Pancakes & Crepes
      • Quick Breads, Scones & Muffins
      • Breakfast Sandwiches
      • Breakfast Pastries
      • Eggs
      • Breakfast & Brunch Drinks
      • Make Ahead Breakfasts
      • Healthy Breakfasts
      • Coffee and Tea drinks
      • Breakfast Smoothies & Juices
      • Breakfast Sides
      • Casseroles
      • Jams & Spreads
    • Courses
      • Main Meals
        • Bread, Sandwiches & Burgers
        • Curries
        • Salads
        • Roasts & BBQ
        • Soups & Stews
        • Casseroles
      • Bread
      • Lunch
      • Beverages
      • Appetizers & Tapas
      • Sides
      • Dips & Condiments
      • Tea Time & Snacks
      • Desserts
      • Meal Prep
      • Cocktails
      • Pet Friendly Recipes
    • Cuisines
      • American
      • European
      • Australasian
      • Sri Lankan
      • East Asian
      • Mexican
      • Middle Eastern
      • South Asian
    • Sri Lankan
      • Main Meals
      • Drinks
      • Desserts
      • Breakfasts
      • Snacks
    • Skill Level
      • Easy
        • Easy Desserts
        • Easy Cooking
        • Easy Breads
        • Easy Breakfasts
        • Easy Dinners
      • Intermediate
        • Intermediate Desserts
        • Intermediate Cooking
        • Intermediate Breads
        • Intermediate Breakfasts
        • Intermediate Dinners
      • Advanced
        • Advanced Desserts
        • Advanced Cooking
    • Recipes by Season
      • Christmas
      • Fall & Winter
      • Halloween
      • Spring & Summer
      • Thanksgiving
      • Valentines Day
    • Recipes by Diet
      • Dairy Free
      • Eggless
      • Gluten Free
      • Paleo
      • Vegan & Vegetarian
    • Recipe Basics
      • Baking Basics
      • Cooking Basics
      • Baking & Cooking 101
  • New? Start Here
  • Measurement Conversions
  • How-To Posts
  • About
  • My Cookbooks
  • Work With Me
  • Contact
The Flavor Bender   ›   Recipes   ›   Delicious Desserts   ›   Custards and Puddings   ›   Pastry Cream Recipe (Crème Pâtissière)

Pastry Cream Recipe (Crème Pâtissière)

Author:

Dini Kodippili







Jump to Recipe


Updated: 5/12/2024
Total Time8 hours hrs 40 minutes mins
Quick and Easy Recipes
{{title}}
Creme Patissiere - creamy Vanilla pastry cream, that is used in many desserts. Perfect for profiteroles and eclairs.  This recipe is gluten free, and also dairy free friendly.

A simple yet delicious recipe for Vanilla Pastry Cream (Creme Patissiere). This is a rich and creamy type of custard used in many types of dessert. This recipe is gluten free, and also dairy free friendly.

For the chocolate version, check out my chocolate pastry cream recipe. Here, I’ll show you how to make the most perfect, rich, creamy vanilla pastry cream from scratch with all the troubleshooting tips!

Creme Patissiere - creamy Vanilla pastry cream, that is used in many desserts. Perfect for profiteroles and eclairs.  This recipe is gluten free, and also dairy free friendly.
Contents
 [hide]
  • What is pastry cream?
  • Ingredients (and ingredient notes)
  • How to make pastry cream (with recipe tips)
  • What is pastry cream used for? (Desserts with pastry cream)
  • Recipe variations
  • Storage instructions
  • Frequently asked questions and troubleshooting

What is pastry cream?

Pastry cream (crème pâtissière) is a quintessential part of pastry making and used as a filling in many pastry recipes. Colloquially it’s also known as cream pat.

It’s an essential skill to learn if you love to bake pastries and other desserts. Creme patissiere is basically a delicious, rich, creamy custard, thickened with starch and eggs. It’s an important component for many desserts.

Pouring custard being poured into a small bowl to show the consistency.
Creme Anglaise (Thin custard)
Pastry cream piped into a small bowl.
Creme Patissiere (Thick custard)

What’s the difference between pastry cream and custard?

A custard is made with milk, sugar and eggs, and pastry cream (crème pâtissière) is one of many types of custard that is made with milk, sugar, and eggs. Pastry cream is simply a thicker version of custard, due to the addition of starch in the form of cornstarch or flour.

There seems to be some confusion about custard desserts and their terminology, so I’m going to clear that up before I get into the pastry cream recipe.

  • Creme Anglaise (pouring custard) is the “sauce” version of custard. It It’s not typically thickened with a starch (although some use a little cornstarch to prevent egg scrambling), and usually only uses eggs/egg yolks. It’s like a thick sauce that can be poured over desserts. This custard isn’t heated to a boil to prevent the eggs from curdling.
  • Creme Chantilly is lightly whipped cream sweetened with sugar and (usually) flavored with vanilla.
  • Creme Patissiere (pastry cream) is a thicker custard. It’s thickened using starch and eggs/egg yolks and can be piped. It’s mostly used to fill French pastries and desserts. Pastry cream is heated to a boil, so that it thickens well. Because of the starch, the eggs don’t curdle readily.
  • Creme Legere is pastry cream (creme patissiere) with sweetened and flavored whipped cream (chantilly) added. Most people refer to crème légère as creme diplomat as well.
  • Creme Diplomat is pastry cream mixed with chantilly, gelatin, and any extra flavorings (optional). It’s basically creme legere made with stabilized whipped cream.
  • Creme Bavarois is a dessert on its own. It’s like panna cotta, but made with creme patissiere. It’s creme patissiere mixed with chantilly, but with extra gelatin (so that it sets like a pudding), and extra flavorings.

Crème pâtissière (pastry cream) is the base for so many pastry essentials, so I hope you give this recipe a go!

Ingredients (and ingredient notes)

Overhead image of ingredients needed to make pastry cream or cream pattisiere with labels.
  • Milk – Full cream milk is preferred for better flavor. You can also mix in half milk and half cream for an even richer tasting pastry cream.
  • Sugar – I use white sugar, but you can use brown sugar as well (which will change the flavor though).
  • Egg yolks – Egg yolks add richness and helps to thicken the pastry cream a little.
  • Cornstarch – This starch helps thicken the pastry cream to the desired thickness, while also acting as a buffer to prevent the egg yolks from curdling too quickly. Using cornstarch makes this pastry cream naturally gluten free.
  • Salt – Just a pinch of salt adds depth of flavor to your pastry cream. It’s the difference between a bland tasting custard and a spectacular one!
  • Vanilla – Obviously needed to add flavor. You can use vanilla extract, fresh vanilla beans, or vanilla bean paste.
  • Gelatin and water – This is an optional ingredient, but gelatin will add more stability to your pastry cream, especially if you’re using it as a filling in a cake.

The importance of eggs

Eggs (specifically egg yolks) play two roles in creme patissiere (pastry cream). It adds richness (especially the yolks), and also thickens the custard. 

I use large eggs in this recipe, where an egg weighs 2 oz / 57 g on average, or an egg yolk that weighs about 0.7 oz / 17 – 20 g on average. So if you’re using different-sized eggs, you can adjust accordingly. But a little extra egg (or egg yolk) won’t mess up your pastry cream.

I use 4 egg yolks from large eggs OR 3 large egg yolks, plus 1 large egg for this recipe.

This easy pastry cream is delicious and spreadable and pipeable (i.e. isn’t too stiff). If you want a RICHER tasting pastry cream then I’d suggest to use up to 5 large egg yolks instead.

This version is slightly thicker because of the extra egg yolks.

The higher the ratio of eggs to milk, the richer and better the custard will taste. BUT as soon as the balance is tipped, it will also greatly increase the chances of it turning into scrambled eggs, or turning into an omelet.

The importance of cornstarch

Pastry cream is cooked with cornstarch or flour. This helps to thicken the pastry cream further AND it also acts as a buffer to prevent the eggs from turning into scrambled eggs. But I use cornstarch here, as you need less of it AND it’s gluten free as well.

However, you still need to stir or whisk the pastry cream very frequently to prevent the eggs from scrambling. But the starch in the cornstarch will create a buffering matrix which will reduce the chances of the eggs coagulating.

The more cornstarch you add, the thicker the pastry cream will be. For example, for diplomat cream, I prefer to add much more cornstarch for a thicker pastry cream that will still be stable after mixing with whipped cream.

How to make pastry cream (with recipe tips)

Heating the milk on the stove, using a whisk to heat the milk evenly.

Step 01 – Heat the milk

Some recipes call to scald the milk, which isn’t necessary if you’re using pasteurized milk. 

However, if you’re using fresh vanilla beans, scalding the milk with the vanilla and letting it cool down a little will allow the vanilla to infuse into the milk.

I heat the milk until almost to a boil, so that it speeds up the process of dissolving the sugar and thickening. Make sure to mix the milk, to prevent the milk from burning on the bottom.

Egg yolk, sugar and cornstarch in a glass jug in the left image, and the ingredients mixed really well till pale, in the right image.

Step 02 – Mix the eggs, cornstarch, sugar together in a separate bowl

Whisk really well until you have a nice, smooth paste. I like to whisk until the egg yolk mixture turns a little pale in color. This ensures that you have NO LUMPS in the cornstarch, or the egg yolks, and will not form lumps in the hot milk.

The egg mixture being whisked until pale in color simply helps with making sure that the hot milk does not immediately scramble the egg yolks (that have not been mixed in properly).

But don’t do this too far ahead of time. I only mix it just before heating the milk, or while the milk is heating. The egg yolks will tend to “cook” in the sugar the longer you keep it together.

Two image collage showing how to temper egg mixture with hot milk, and using a whisk to mix the egg and milk mixture.

Step 03 – Temper the eggs

Be careful when you temper eggs with the hot milk. If you’re a beginner, you could get someone to help you whisk the egg mix while you pour the hot milk in a thin stream to temper the eggs.

Another way to temper the eggs is to keep the bowl with the egg-sugar mix on a slightly damp tea towel (to prevent slipping), and pour the hot milk from a light and small measuring cup (light enough to control with one hand).

This makes it easier to whisk the egg mix with one hand and pour hot milk with the other.

Pour hot milk, in a slow, thin stream into the egg mixture, while whisking the eggs constantly. Add just enough hot milk to warm up the egg mixture, and then use the whisk to make sure the egg mixture has been mixed in well with the milk (no egg mixture stuck to the side or bottom).

Tempered egg mixture poured back into the saucepan, and placing the pot back on the stove to cook.

Next, pour the heated egg mixture back into the saucepan to mix with the remaining milk. Whisk to mix very well, and return the pan to the stove to thicken.

Stirring pastry cream mixture with whisk, while cooking it on a stove to thicken.

Step 04 – Thicken the pastry cream mixture

Here is the tricky part. The custard mixture should be heated to bring to a boil, BUT you absolutely must keep whisking is while the pastry cream is cooking.

It’s important to keep the milk-egg mix moving while it’s heating. The eggs in the milk will curdle when it comes closer to the boiling point, and you do NOT want that.

The whisking will help keep the custard smooth. I find that a good whisk is perfect at this, as long as you whisk constantly and well.

If you’re new to making pastry cream, use a low heat to cook the pastry cream. If the milk is “setting” at the bottom of the pan and creating scrambled-like lumps, then the heat is too high OR you’re not mixing the custard fast enough and causing it to “set” too quickly.

The bubbles or foam on top of the pastry cream mixture will reduce as it starts to thicken as well, so keep an eye on that as you whisk your mixture.

If you feel that the pastry cream is heating up too fast, lower the heat of the stove, and remove the pot from the heat periodically while stirring to re-distribute the heat in the custard and make it smooth again.

The pastry cream will thicken up just before coming to a boil.

An image showing what the pastry cream will look like when it comes to a boil, with the bubbles labeles, and whisking to thicken the boiling pastry cream in the second image.

Step 05 – Bring the vanilla pastry cream to a boil

Unlike other custards, pastry cream needs to be brought to a boil. This is essential for the consistency of the custard. The cornstarch is only able to reach its best thickening ability when it has been boiled in the liquid. This will also ensure that the cornstarch cooks through and does not leave any starchy taste.

When the pastry cream comes to a boil, the starch in the cornstarch expands, forming starch bonds that thicken and stabilize the pastry cream. Heat also allows the eggs to form strong protein bonds.

You will know that the pastry cream has come to a boil when it releases large thick bubbles on the surface, kind of like bubbling lava. I like to say that the custard makes “blub blub” sounds.

Once these bubbles break the surface, keep stirring continuously and let the pastry cream cook at least for a further 1 minute at low-medium heat.

4 image collage showing adding and whisking butter and gelatin to cooked and thickened, hot pastry cream.

Step 06 – Add the butter and gelatin (if using)

As soon as the cutard is done, turn off the stove and immediately add the butter and bloomed gelatin. Bloomed gelatin is gelatin that has soaked in water. While the gelatin is optional, the butter is not.

Whisk in the gelatin and butter well until it has dissolved and mixed in with the pastry cream very well. The residual heat in the custard and the turned off stove will be enough to melt the gelatin and butter.

Cooked pastry cream placed in a sieve and passing through using a spatula, and a smooth, thick pastry cream in glass container.

Step 07 – Strain the pastry cream

It’s not necessary to strain the creme patissiere unless it’s lumpy, BUT it’s still a good extra measure to make sure the pastry cream is silky smooth. Another way to remove any lumps is to use a stick blender to blend the custard WHILE it’s still hot.

Place a fine-mesh sieve over a bowl, and pour the custard through the sieve into the bowl. You can use a spatula to push the custard through as well.

Covering the entire surface of the pastry cream with plastic wrap to prevent a skin from forming as it cools.

Step 08 – Store and cool down the pastry cream

Spread the custard evenly inside the bowl or container, and then cover it with a piece of plastic wrap or parchment paper. It’s ABSOLUTELY crucial that the plastic wrap is in contact with the entire surface of pastry cream to prevent a skin from forming as the pastry cream cools down.

Once the pastry cream has cooled down a little, then transfer it to the fridge to cool completely.

To allow the pastry cream to cool down quickly, spread it in a large bowl or shallow pan, so that the custard layer is fairly shallow.

Chilled and set pastry cream in container, next to a chilled pastry cream that has been whisked, and has a softer texture.

Step 09 – Prepare the pastry cream for use

Once the pastry cream is chilled, you will find that the pastry cream sets a bit. If you added gelatin, the pastry cream will be firmer than without gelatin. Adding more cornstarch will also result in a firmer chilled custard.

Remove the chilled custard from the fridge and scrape the set custard into a large bowl. Then, use a whisk to break and mix the custard to make a smooth pastry cream.

The pastry cream is now ready to be used!

Creme Patissiere - creamy Vanilla pastry cream, that is used in many desserts. Perfect for profiteroles and eclairs.  This recipe is gluten free, and also dairy free friendly.

What is pastry cream used for? (Desserts with pastry cream)

  • It’s used to fill choux pastries, classic profiteroles, and cream puffs
  • To fill chocolate eclairs
  • As filling for cakes such as Boston cream pie
  • Filling for fruit tarts such as this strawberry tart
  • To make mille feuille
  • To make vanilla pudding or chocolate pudding
  • As a filling for cakes (you may need to use buttercream as a dam to ensure the custard doesn’t squeeze out of the cake layers).
  • As a filling inside croissants.
  • Making baked custard breads like this brioche tart.
  • To make crème mousseline for this Paris Brest pastry.
  • It’s also the base for my banana pudding and banana cream pie.
  • Butterscotch pastry cream is used to make this delicious butterscotch mousse.
Creme Patissiere - creamy Vanilla pastry cream, that is used in many desserts. Perfect for profiteroles and eclairs.  This recipe is gluten free, and also dairy free friendly.

How to use pastry cream with different textures as a filling

For a softer pastry cream filling, I like to add 30g of cornstarch to my pastry cream. This is great for profiteroles, or even as a thick topping for desserts. To make this more stable, but still creamy you can add a little gelatin.

Side by side comparison of the thickness and stability of pastry cream made with the addition of gelatin for stability vs no gelatin.

For a firmer pastry cream, I add 40 g of cornstarch. This is great to use as a cake filling for lighter layer cakes, but I would also add a little gelatin to make it more stable.

You can also use a buttercream dam, and fill it with this pastry cream as well. This can also work as a filling for smaller tarts, eclairs, or profiteroles.

You can also use 50 g of cornstarch if you like an even thicker, more stable pastry cream.

This pastry cream will even pipe well and keep its shape fairly well. Great for cake fillings when used with a little gelatin. I also use this pastry cream as a base for making diplomat cream or chiboust cream.

The thickest pastry cream that I make is with 60 g of cornstarch. This pastry cream is EXETREMELY stiff.

I use this as a base for mousseline cream or German butter cream, as the extra butter will make this pastry cream much lighter.

Both diplomat cream or chiboust cream can also use this pastry cream as a base, but I prefer 50g for those versions as mentioned above.

Overhead view of wavy piped lines of pastry cream showing texture differences with varying cornstarch amounts. Less cornstarch and more runny at top, and the firmer pastry cream at the bottom.

Pastry cream with different sweetness levels

I personally don’t like my pastry cream to be too sweet. So, I only add 6 tbsp / 70 g of sugar for every 2 cups of milk. 

Feel free to adjust the sweetness to your taste. This will change depending on what I will be using the pastry cream for as well.

Recipe variations

  • Chocolate pastry cream
  • Earl grey pastry cream
  • Salted caramel diplomat cream – a lighter and sweeter version of this pastry cream.
  • Banana pastry cream – This is the base for my homemade banana pudding that tastes HEAPS better than the Magnolia Bakery banana pudding!
  • Butterscotch pastry cream – Use to make butterscotch mousse.
  • Matcha pastry cream – Add culinary grade matcha to the milk while making pastry cream.
  • Strawberry pastry cream – Add freeze dried strawberry powder to the custard to give it a lovely strawberry flavor. Remember that the dry powder will also contribute to making the custard a little thicker (depending on how much you add). Then use it to fill these strawberry cream puffs!
  • Lemon pastry cream – For a lovely lemony hint in your pastry cream, add grated lemon zest to the milk when making the pastry cream.
  • Orange pastry cream – Just like with lemon pastry cream, add orange zest to the milk when making the custard for a orange pastry cream.
Chocolate Creme Patissiere (Chocolate Pastry Cream) - a rich, creamy custard with deep chocolate flavor, that can be used in many types of dessert. This recipe is gluten free and dairy free friendly. 
Chocolate Pastry Cream
Overhead close up of the smooth banana pudding pastry cream after mixing in the butter and gelatin.
Banana Pastry Cream

Dietary variations

  • Dairy free pastry cream – If you’d like to make this recipe dairy free, substitute the milk with a plant-based milk such as almond milk, coconut milk, cashew milk, or even soy milk. And substitute the butter with a dairy free or vegan butter. 
  • Vegan pastry cream – Vegan pastry cream is possible by replacing the eggs with more cornstarch. How much cornstarch to be used will depend on how thick you want the pastry cream to be. Also use a dash of kala namak to give the pastry cream at least a little hint of the egg flavor. But remember, without the eggs, the flavor of the custard will be different. Also substitute the milk and butter with vegan substitutes and skip the gelatin.
  • Eggless pastry cream – Eggless pastry cream is also possible if you substitute the eggs with cornstarch. However, without eggs, the custard will lose flavor. Just as I mentioned in the vegan version, add a pinch of kala namak.
Filling the tart with the pastry cream base

Storage instructions

Never keep the vanilla pastry cream outside. It’s made with milk and eggs that go bad when not refrigerated. The pastry cream will go bad if stored at room temperature, so it is important to store it in the fridge as soon as you can.

I prefer not to store pastry cream in the freezer, UNLESS I add gelatin. The starch in the pastry cream can cause the custard to split as it thaws out, but gelatin acts as a stabilizer.

There are some who have stored cream pat in the freezer and have still got good results, but I haven’t tried it myself WITHOUT gelatin.

I prefer to store pastry cream in the fridge, in an airtight container, with a piece of plastic wrap covering the entire surface of the pastry cream. It will last about 3 – 4 days in the fridge. This means you can make vanilla pastry cream ahead of time for your recipes too.

Frequently asked questions and troubleshooting

Is this recipe gluten free?

This pastry cream recipe is gluten free, because I use cornstarch instead of flour to thicken it. Some pastry cream recipes use flour, or both flour and cornstarch, but that’s not necessary.

I also find that using cornstarch alone makes the pastry cream less likely to taste floury, which is a common issue with pastry cream made with flour.

Can I use flour instead of cornstarch?

Yes! As stated above, some recipes make pastry cream with flour. In theory, you will need to increase the flour 3-fold to get the same thickening effect as cornstarch.

I personally have not made this recipe with flour, so it will take some experimentation to determine how much flour is needed.

What kind of vanilla is best to use for this recipe?

Since vanilla is the key flavoring in this pastry cream recipe, PLEASE make sure to use good quality vanilla. It’s the one flavoring that I never skimp out on.

Use a good vanilla extract and try to avoid vanilla essence (usually imitation flavor), and if you can use vanilla bean paste or vanilla beans, even better.

My pastry cream is lumpy?

This happens if you’ve heated the pastry cream at too high of a temperature or you didn’t stir it well when it was coming to a boil.

If the custard only formed a few lumps, don’t worry, whisk it VERY well to get rid of the lumps (off the heat), or if that doesn’t work, pass it through a sieve as soon as you’ve cooked it. You can also use a stick blender to blend the custard while it’s still hot to remove lumps as well.

My pastry cream is too thin?

This happens if you haven’t cooked the pastry cream properly. This recipe makes a pastry cream that is spreadable and pipeable, but it’s not stiff enough to hold its shape.

If you did want a stiffer and thicker vanilla pastry cream, you can increase the amount of cornstarch as mentioned above in the post and/or add gelatin as well.

If you added extra cornstarch and it’s still not thick enough, you absolutely need to allow the pastry cream to bubble (boil) and cook for a minute while whisking to activate the cornstarch thickening properties.

My pastry cream has discolored (looks gray in color)?

If you used an aluminum pot to make the custard, chances are that some of that aluminum can get into the pastry cream. Use a stainless steel pot, a copper pot, or a non-stick pot.

My pastry cream tastes like cornstarch?

If you did not cook the pastry cream properly to activate the cornstarch, then it will taste a little starchy.

My pastry cream is too thick?

Chances are you added too much cornstarch. If you compacted the cornstarch into your measuring spoon, or used an incorrect measuring spoon, this could happen.

You can fold in a little stabilized chantilly cream to loosen up the pastry cream to achieve the right consistency – like a creme diplomat.

My pastry cream feels grainy?

This happens if the pastry cream was cooked at too high of a heat and it curdled at some point. Even though you whisked the mixture to break down the curdled egg, and passed it through a sieve, some of the curdled egg is still there.

It has dispersed through the custard making it feel grainy. Unfortunately, there is no fix for this and it needs to be made again.

Can I use this pastry cream as a cake filling?

As the recipe stands, you can use this as a cake filling ONLY if you have a buttercream damn along the edge of your cake. The pastry cream is too soft and will run out the sides if not.

If you want to have a thicker pastry cream as a filling, then I recommend making the pastry cream with 40 – 50 g of cornstarch. Adding about 1 – 2 tsp of bloomed gelatin will also increase the stability of the pastry cream to be used as a filling.

And if the cake layers are heavy, I ALWAYS recommend a buttercream dam simply because the pastry cream will squeeze out the sides if the cake layers are heavy.

Equipment and tools I use for this recipe

  • Whisks and silicone spatula – to stir the pastry cream
  • Plastic wrap
  • Pyrex glass containers with lids – to store the pastry cream (remember to cover the surface with plastic wrap).
  • Measuring cups & spoons

Recipe

Creme Patissiere - creamy Vanilla pastry cream, that is used in many desserts. Perfect for profiteroles and eclairs.  This recipe is gluten free, and also dairy free friendly.
5 from 156 votes

Creme Patissiere (Vanilla Pastry Cream)

Author: Dini Kodippili
Yield: about 750 g or 600 mL (about 2 ½ cups)
Cuisine: French, Other
Creme Patissiere - creamy Vanilla pastry cream, that is used in many desserts. Perfect for profiteroles and eclairs.  This recipe is gluten free, and also dairy free friendly.

 Difficulty: 

Easy
Creamy vanilla pastry cream used in many types of dessert. Perfect for profiteroles, cream puffs, eclairs etc. This recipe is gluten free and also dairy free friendly.
Easy – This is an easy recipe, but requires constant supervision. Please read the recipe fully before proceeding.
Please use weight measurements for accurate, consistent results.

US based cup, teaspoon, tablespoon measurements. Weight‌ ‌measurements‌ ‌are‌ ‌recommended‌ ‌for‌ ‌accurate‌ ‌results whenever available.

Common Measurement Conversions
Prep: 10 minutes mins
Cook: 30 minutes mins
Chilling Time (overnight): 8 hours hrs
Total Time: 8 hours hrs 40 minutes mins
Print Recipe Rate SaveSaved!
Makes: 14 servings , 50g each

Ingredients:
 

  • 480 mL milk 2 cups (Preferably whole milk, see recipe notes)
  • 75 g sugar 6 tbsp (Use more if you want a sweeter pastry cream. This recipe isn't too sweet)
  • Pinch sea salt kosher salt is fine too
  • 30 g cornstarch (cornflour) 3 tbsp. packed tablespoons (4 tbsp / 40 g for a stiffer pastry cream OR you can also add up to 50 g / 5 tbsp if you want an even thicker, more stable pastry cream)
  • 15 mL vanilla bean paste or extract 1 tbsp. 1 vanilla bean pod
  • 4 large egg yolks about 17 – 20 g each (please see recipe notes)
  • 43 g unsalted butter 3 tbsp, softened
Adding gelatin (optional)
  • 45 mL water 3 tbsp
  • 5 g powdered gelatin 1½ tsp. 225 bloom strength

Instructions:
 

  • If using vanilla bean pods, split the bean and scrape the vanilla seeds / caviar out of the beans.
    15 mL vanilla bean paste or extract
  • Add the bean and caviar with the milk into a saucepan. Heat the milk over medium high heat and bring it to a simmer, almost to a boil (see recipe notes below).
    480 mL milk
  • While heating the milk, place the sugar, egg yolks, cornstarch, and salt in a bowl. Whisk until you have a thick, smooth mix. (If you're using vanilla bean paste or extract, add it to the egg mix too). Place the bowl with the egg mix on a towel or napkin (to prevent the bowl from slipping while whisking in the next step), and set aside until the milk comes to a boil (almost to a boil).
    75 g sugar, Pinch sea salt, 30 g cornstarch (cornflour) , 4 large egg yolks, 15 mL vanilla bean paste or extract
  • As soon as the milk starts to steam or simmer, remove it from the heat. Slowly pour about a half of the hot milk in a thin stream into the egg mix, WHILE WHISKING CONSTANTLY to temper the egg mix. When the eggs have been tempered, add the egg mix back into the hot milk in the saucepan.
  • Heat the custard base over medium heat, while whisking vigorously until it starts to thicken. This should take about 1 – 2 minutes depending on the heat of your stove and size of your saucepan. Make sure to reach the corners of the saucepan so that the custard does not catch at the bottom of the pan.
  • While whisking, let the custard come to a boil (the custard will release bubbles). You may need to stop whisking from time to time for a few seconds to see if the custard is "bubbling". Look for big "bloops" breaking the surface of the custard (see pictures in the post for reference).
  • Lower the heat and cook for a further 1 – 2 minutes after you see the first bubbles break the surface, and make sure to whisk constantly.
  • Remove from the heat and add the butter. Whisk in the butter until it’s completely mixed in.
    43 g unsalted butter
  • Pour the custard into a bowl and immediately cover the surface with plastic wrap, making sure the plastic wrap is touching the whole surface. This is to prevent a custard skin from forming on top. You can also choose to pass the custard through a sieve to remove any lumps.
  • Let the custard cool down to room temperature and then let it chill in the fridge for a few hours, until completely chilled.
  • The custard will "set" after chilling. So it's important to whisk the pastry cream to make it smooth again before using.
  • Use as needed after the pastry cream has been chilled. 
Adding gelatin
  • Gelatin should be added to the pastry cream WHILE IT'S STILL HOT. Please read recipe notes below on whether adding gelatin to your pastry cream is the right option for you.
  • While the milk is heating (for the pastry cream), place the water in a small bowl.
    45 mL water
  • Sprinkle the gelatin over the water and use a toothpick or skewer (something slim) to mix the gelatin into the water so that there is no dry gelatin. Let this sit for at least 10 minutes to bloom (or until the pastry cream has cooked and thickened).
    5 g powdered gelatin
  • While the pastry cream is hot, add the bloomed gelatin along with the butter, and thoroughly whisk to make sure all the gelatin has dissolved in the hot pastry cream.
  • Cover the pastry cream with plastic wrap (same as above), and keep an eye on the pastry cream. Let it come to room temperature and then use the pastry cream as needed. If you chill the pastry cream it will harden as the gelatin sets.

Recipe Notes

This recipe initially called for 1 whole egg, but I have updated the recipe to include ONLY egg yolks. I have also included more information on how to make it thicker for other applications.
  • For a thicker and richer vanilla creme patissiere, you can add up to 5 egg yolks. 
  • For a richer taste, you can also substitute half of the milk with heavy cream or 18% fat cream (half and half). 
  • Increase the amount of cornstarch to 50 g for a thicker pastry cream. 
  • For a dairy-free version, substitute the milk and butter with a plant-based milk such as almond milk, coconut milk, cashew milk, or even soy milk, and use a plant-based butter. 
  • You can choose to bring the milk to a boil, or just let it come to a simmer. It was important to boil the milk back in the days when milk wasn’t pasteurized. However, I have not noticed any difference in the pastry cream consistency when using boiling milk vs steaming hot milk. 
  • Here’s the recipe for classic vanilla diplomat cream (crème diplomat).
  • Here’s the recipe for classic chocolate pastry cream.

Adding gelatin to your pastry cream

You can absolutely add gelatin to your pastry cream for any reason. 
If you allow your pastry cream to cool in the fridge, the gelatin will set. You can still re-whisk and use this pastry cream as normal, but it won’t “set” the same way as before, but will be thicker and more stable than if you hadn’t used gelatin at all. 
For proper setting properties, allow the pastry cream to cool to slightly warmer than room temperature. Then you may use it for any application you please. But this means you cannot make it ahead of time.
You can add whipped cream to it to make diplomat cream (and you do not have to add extra gelatin to the whipped cream). You may also add Italian meringue to make chiboust cream as well. 

Nutrition Information:

Serving: 50g Calories: 59kcal (3%) Carbohydrates: 5g (2%) Protein: 1g (2%) Fat: 3g (5%) Saturated Fat: 1g (6%) Cholesterol: 44mg (15%) Sodium: 15mg (1%) Potassium: 38mg (1%) Sugar: 4g (4%) Vitamin A: 145IU (3%) Calcium: 33mg (3%) Iron: 0.1mg (1%)

“This website provides approximate nutrition information for convenience and as a courtesy only. Nutrition data is gathered primarily from the USDA Food Composition Database, whenever available, or otherwise other online calculators.”

Tag me on Instagram!I love seeing what you’ve made! Tag me on Instagram at @TheFlavorBender or leave me a comment & rating below.
Dini Kodippili Avatar

About

Dini Kodippili

Dini Kodippili is a professional food writer, recipe developer, food photographer, cookbook author, and baker. Dini has been featured on HuffPost, Cosmopolitan, Forbes, Delish, Food & Wine and more. Learn More

I love hearing from you! Submit your question or recipe review here.

4.95 from 156 votes (12 ratings without comment)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Made this? Rate this recipe:




This site uses Akismet to reduce spam. Learn how your comment data is processed.

571 responses

  1. Alexandra
    April 11, 2025

    Hi, I wanted to know if I can mix this after it is cooled with mascarpone ? I want to make a 3 layer cake with vanilla cream (creme patissiere base) and I would need it to be firmer but I’m afraid it will split.

    Reply
    1. Dini
      April 11, 2025

      Hi Alexandra
      You can mix it with mascarpone if you like.
      However, the mascarpone won’t make it firm as mixing it with pastry cream will make it looser in texture.
      If you want to use this as a cake filling, then I highly recommend using gelatin to make the pastry cream firmer, OR to use a thick pastry cream to begin with (with a higher cornstarch amount), and to use a buttercream dam to create stable cake layers.
      I hope that helps!

      Reply
  2. Dawn
    February 13, 2025

    I’m looking for a Bavarian pastry cream that can be used as a filling for a king cake. It would be baked inside of a sweet dough.

    Would this work for that?

    Reply
    1. Dini
      February 13, 2025

      Hi Dawn!
      So, a traditional Bavarian cream is made with creme anglaise and thickened and set with gelatin, this unfortunately isn’t the best option for fillings. But, Diplomat cream is ALSO called bavarian cream by some (especially as a filling for donuts), and this is made with pastry cream mixed with whipped cream. While the diplomat cream version will work better as a filling for desserts, it won’t be suitable for baking because of the whipped cream content. The whipped cream will melt in the heat and reduce the filling greatly.

      If you are looking to bake a custard filling, then this classic pastry cream recipe will work the best! The high egg content will help keep the filling together and set like a baked custard. I used this very recipe for my brioche custard tarts, and they worked perfectly in baked goods.

      I hope that helps!

      Reply
      1. Dawn
        February 13, 2025

        Thanks, Dini…this was very helpful!
        I’m gonna give it a try and will let you know how it turns out.

        Reply
  3. Bev
    January 5, 2025

    How long can you store the finished eclairs in the refrigerator and is this recommended for making ahead
    Love your recipe, the real deal with excellent instructions!

    Reply
    1. Dini
      January 5, 2025

      Hi Bev
      I would keep the eclair shells unfilled in the fridge and then re-crisp them in the oven and fill them as close to serving time as possible. Filled eclairs will lose their crispness very quickly (which is the nature of eclairs), but if they are filled overnight, they can become soggy too.
      If you must store filled and prepared eclairs, I would make sure that the eclair shells are baked till very crisp and slightly darker golden brown. As the crisp pastries will hold it’s shape longer without becoming soggy.
      You can find more information about eclairs on my eclair recipe FAQ section too!

      Reply
  4. Laura
    December 30, 2024

    I have family members with gluten and corn allergies. Would arrowroot starch perform the same way? Especially if it has have to use the dairy free alternatives as well? And yes, cooking anything for my family gets complicated XD

    Reply
    1. Dini
      December 31, 2024

      Hi Laura
      Unfortunately I have not use arrowroot before, so I’m not sure how well it will work in this recipe!
      I’m so sorry about that!

      Reply
  5. Steph
    November 9, 2024

    5 stars
    You do the BEST job of explaining the “why” with all of your instructions. Well done and thank you.

    Reply
    1. Dini
      November 9, 2024

      Thank you so much Steph! 🙂 I’m so happy to hear the instructions are helpful!

      Reply
  6. Kate
    October 23, 2024

    Finally found a recipe with gelatin added…thank you so much! Cant wait to try 🙂

    Reply
  7. Miles Burns
    September 26, 2024

    5 stars
    I keep coming back to this recipe! It is the PERFECT pastry cream, (I have also made the diplomat which is incredible) And the method is so well worded and thought out. But a lot of the times I come back is for the article attached, anytime I need to brush up on some custard knowledge I come back here, anytime I want to make a custard adjacent “thing” or explore a new recipe in that realm I always come back here and compare the recipe to this family of recipes for context because they are the best that I can find. Thank you Dini for creating this wonderful resource.
    And If ur still reading this, buy her book

    Reply
    1. Dini
      September 27, 2024

      Thank you so much for your lovely review Miles! That makes me so happy. That’s precisely my goal too – to build helpful, useful, informative resources, and I’m so glad you found it helpful! 🙂

      Reply
  8. Polly
    August 8, 2024

    Hi, Do you think I could fold in some whipped egg whites to make an almost mousse like component. I want to use it in a tiramusu.

    Reply
    1. Dini
      August 8, 2024

      Hi Polly
      If you are looking to fold in egg whites, then I suggest adding about 50g of cornstarch. OR using 40g, along with the gelatin. Pastry cream with added egg whites is called Creme Chiboust, and I have a recipe for Creme chiboust on my website as well.
      Egg whites will make this custard more “loose”, so a more stable and thicker pastry cream will handle the extra egg white meringue folded in.
      However, please do note that tiramisu is usually made with mascarpone cheese and Zabaglione.
      But, you can absolutely make a different variation with creme chiboust as well.
      I hope that helps

      Reply
      1. Polly
        August 9, 2024

        Thank you so much for your quick and helpfull answer!
        I’ll definetly try these out

        Reply
  9. Francesca
    August 7, 2024

    I was wondering if this will be sturdy enough for a Boston creme pie style cake. Will it hold up to being used as a filling for cake? Will it pipe or hold a shape? Should I use gelatin if it’s going to be used in this way?

    Reply
    1. Dini
      August 8, 2024

      Hi Francesca
      Yes you can use this as a filling. As a boston creme pie style cake, I recommend using gelatin for extra stability.
      It can hold it’s shape ONCE it’s chilled, but it will not be able to hold up a lot of weight either. I have included pictures of what the pastry cream looks like at different thicknesses in the post as well and the uses too.
      I would use about 40g cornstarch with the gelatin. The pastry will set very firm as it cools down. Whisk the pastry cream so it’s smooth again and it can be used as a filling.
      I hope that helps!

      Reply
      1. Melissa
        January 14, 2025

        Can half and half be substituted for the milk in this recipe?

        Reply
        1. Dini
          January 16, 2025

          Hi Melissa
          Yes you can. Half and half will result in a richer pastry cream as well.
          I hope that helps

          Reply
  10. Carly F
    July 28, 2024

    5 stars
    Best custard I’ve ever made! And I super appreciate the dairy-free modifications and all the ways to customize it.

    Would this work as a base for making homemade dairy-free ice cream? I was thinking of using this custard to replace steps 2-4 of the Vegan Vanilla Ice Cream by “Addicted to Dates” to make it ever richer tasting and to further reduce the amount of refined sugar in that recipe. How much cornstarch would you recommend for this application?

    Reply
    1. Dini
      July 28, 2024

      Hi Carly
      It can work as a base for ice cream. However, my ice cream custard base isn’t as thick as this pastry cream base.
      I usually only add eggs and no cornstarch in the custard base, and you can find my vanilla ice cream recipe here, where you can substitute milk with a plant based milk and cream with coconut cream for a dairy free option.
      However in the recipe you mentioned, cornstarch is used INSTEAD of the eggs to thicken the custard base.
      My experience with vegan ice cream is that cornstarch is an OK stabilizer, but the cornstarch will break down when thawed from frozen (so make sure not to let the ice cream thaw and refreeze). My favorite thickener / stabilizer for vegan ice cream is Instant ClearJel, that is a modified cornstarch that can be heated AND frozen. It can usually be substituted 1:1 for cornstarch.

      As for the sugar, cornstarch and sugar do not have the same function in ice cream and cornstarch is not a substitute for sugar. Sugar softens the ice cream, so lowering it can further cause the ice cream to be hard and icy without extra fat from heavy cream and eggs. So you can lower the sugar without adjusting cornstarch, but depending on how much you reduce sugar it will have an impact on the softness and texture of the ice cream too.
      I hope that helps

      Reply
      1. Carly F
        July 28, 2024

        5 stars
        This is very helpful! Thanks! I was looking for an egg base, since I’m dairy-free (not vegan). So maybe your recipe is a better starting point. I’m also trying to minimize refined sugar since I have a mild sensitivity to that as well, but I realize it plays an important role for texture in some recipes. Do you think I could further reduce the sugar in your recipe, and if so, by how much? Could I boost the fat content with more eggs and/or use a coconut whipping cream (such as cha’s organic 35%- but also has tapioca starch) to compensate? Or perhaps partially substitute with date sugar or coconut sugar or stevia/erythritol? I also heard that 1 TBSP of vodka can help with texture for the vegan ice cream. What are your thoughts on that?

        Reply
        1. Dini
          July 29, 2024

          Hi Carly
          If you’re trying to reduce refined sugar, then you can absolutely use other sugar substitutes like, honey, maple syrup, coconut sugar or date sugar too. Infact I have a date and tahini ice cream, that uses fresh dates as the main sweetener in the ice cream and contains no other sugar and the tahini adds fat to the ice cream so I don’t use a lot of eggs either.
          I have not had any experience using artificial sugars unfortunately.
          Yes, you can also use coconut whipping cream as well, but I have also had luck using coconut cream (which is about 25% fat) in a can (not cream of coconut, as that is sweetened). Yes, you can add a little extra yolks to increase the fat, but too many will make the ice cream taste eggy.
          Alcohol absolutely helps to keep the ice cream soft because alcohol doesn’t freeze. Whether 1 tbsp of vodka will be enough? I’m not sure unfortunately.
          I hope that helps! Let me know if you have any more questions!

          Reply
  11. Solace
    July 24, 2024

    5 stars
    I’d never made pastry cream before, and it came out perfectly. It can be a little intimidating if you’ve never made something like an egg custard before, but if you whisk until your arm feels like it’s going to fall off, everything will be alright.

    I added 90g of sugar and 40g of corn flour to make a filling for some Boston creme donuts, and it will work wonderfully. This level of sugar is sweet, but not overpowering. Perfect to fill some slightly less sweet donuts.

    If you’re on the fence about which recipe to use, this one is great. I’d highly recommend it.

    Reply
  12. Mastureh
    July 8, 2024

    5 stars
    Thanks

    Reply
  13. Kels
    July 7, 2024

    5 stars
    I did not use gelatin and I whisked really well. It didn’t need straining and it’s very luxurious! Warm still, but I used the 50g of cornstarch.
    Thanks for an easy and great custard!

    Reply
  14. George
    June 15, 2024

    If not using gelatin (have not tested with that) you can just add it all to a pan and cook it together rather than cooking the milk then tempering the egg etc.

    just add the eggs sugar cornstarch and salt to your pan and mix, then add the milk and mix/whisk. turn on the heat and keep stirring while it cooks. it will all mix together and in the end you have about the same tiny amount of egg bits in the strainer from those little white things on the yolk.

    simplifies the whole recipe, cheers!

    Reply
    1. Dini
      June 15, 2024

      Hi George!
      It is absolutely possible to make custard that way! This is how I make my ice cream base that does not need to be heated to a boil. Even if you’re adding gelatin, which you add at the end anyway.
      The only drawback with this method is that you have to whisk the mixture longer because you’re starting at room temperature and must bring it to a boil. With warmed milk and tempered eggs, the whisking time is much less.

      Reply
  15. Eamon
    June 6, 2024

    How and when do you suggest adding powdered gelatin to the custard?

    Reply
    1. Dini
      June 6, 2024

      Hi Eamon
      The instructions are already provided in the recipe card under “adding gelatin”
      I hope that helps!

      Reply
  16. Viki
    May 21, 2024

    5 stars
    Fantastic!! The 50g cornstarch was ideal for a firm, very stable German buttercream. This is hands down THE BEST pastry cream recipe I’ve ever used.

    Reply
  17. Crystal miller
    March 5, 2024

    5 stars
    Fantastic pastry cream. Easy and delicious. Followed the recipe exactly. Refrigerated overnight. Thanks

    Reply
  18. Teri Hamsher
    February 26, 2024

    5 stars
    Awesome recipe! No more burned pans or too runny custard filling. Finally found the best recipe after 40 years.

    Reply
  19. Anya
    February 15, 2024

    5 stars
    I have done this recipe 3 different times and it came out beautifully each time. I am not sure why it took me this long to come here and say that lol. Thank you for the easy recipe- it sure did not look this easy on the British Baking Show :). Also, thank you for the breakdown of the different creme used in pastry- I learned a lot!

    Reply
  20. Laura
    February 12, 2024

    5 stars
    I had 6 egg yolks I didn’t know what to do with, so I gave creme patissiere a shot! Perfect for cream puffs, and absolutely delicious. I need to try the chocolate crem patissiere next.

    Reply
←Older Comments
1 … 13 14 15 16
Newer Comments→

Hey There!

Hi! I’m Dini, a third culture kid by upbringing and a food-geek by nature. I was born in Sri Lanka, grew up in New Zealand and lived in Australia, and then the US, before moving to and settling down in Canada. My food is a reflection of those amazing experiences!

Read More
Front cover of the Secret Layer Cakes cookbook by Dini Kodippili.

The Flavor Bender

Cookbook

Buy now on Amazon!

Recipe Basics

  • How To Make Perfect Choux Pastry

    How To Make Perfect Choux Pastry

  • Flaky All Butter Pie Crust Recipe

    Flaky All Butter Pie Crust Recipe

  • How To Make Homemade Marshmallows (Foolproof Guide)

    How To Make Homemade Marshmallows (Foolproof Guide)

  • The Best Homemade Bread (White Bread Recipe)

    The Best Homemade Bread (White Bread Recipe)

  • Homemade French Croissants (Step By Step Recipe)

    Homemade French Croissants (Step By Step Recipe)

  • The BEST Pavlova Recipe (Step by step recipe and video)

    The BEST Pavlova Recipe (Step by step recipe and video)

Featured On

Master the science of baking!

Get my FREE Printable Cake Pan Conversion Chart!

So you’ll know how to substitute cake pans of different shapes, sizes & volumes in a pinch!

A must have resource for all pro bakers, novice bakers, and aspiring bakers alike!

Download now!

Reader Faves

  • How to make the Best Instant Pot Short Ribs

    How to make the Best Instant Pot Short Ribs

  • Perfect Quick and Easy Rough Puff Pastry

    Perfect Quick and Easy Rough Puff Pastry

  • The Best Spicy Sweet Chili Sauce (Easy Recipe!)

    The Best Spicy Sweet Chili Sauce (Easy Recipe!)

  • The Best Homemade Bread (White Bread Recipe)

    The Best Homemade Bread (White Bread Recipe)

The Flavor Bender

I love baking, cooking, experimenting with flavors and ingredients, and passing on all my tips and tricks to you!

Read More

About

Meet Dini
My Book
Work With Me
Contact

Browse

Recipes
Measurement Guide
Baking How-To’s
Shop My Faves
Privacy
Disclosure
Terms

Branding by MRD

Theme by OC

Back to Top
  • Facebook
  • Instagram
  • Pinterest
  • X
  • YouTube
101515 shares

Rate This Recipe

Your vote:




A rating is required
A name is required
An email is required

Recipe Ratings without Comment

Something went wrong. Please try again.