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
Custards and Puddings
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 155 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 155 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.

570 responses

  1. Alexis
    April 1, 2026

    Hi, where can I still find the whole egg recipe? Or how many whole eggs to 4 egg yolks? Thank you!

    Reply
    1. Dini Kodippili
      April 2, 2026

      Hi Alexis
      This recipe didn’t have a version will all whole eggs. The previous version contained 3 yolks and 1 whole egg.
      You can make this with all whole eggs if you like, but it will make it less thick. There’s no way to 100% substitute the yolks with all whole eggs.
      If you use all whole eggs, this pastry cream will contain about 1 cup of eggs to 2 cups of milk, which will make it very eggy.
      If you less eggs, then it will be even less thick.
      As long as you expect these changes and understand that the pastry cream will be different than the one in this recipe, you are absolutely welcome to use all whole eggs.
      I hope that helps!

      Reply
  2. Lam pun
    March 19, 2026

    great recipe I like it.

    Reply
  3. Rachelle
    March 16, 2026

    What will happen if we don’t use the gelatin? I don’t have any on hand. Maybe use a little more cornstarch?

    Reply
    1. Dini Kodippili
      March 19, 2026

      Hi Rachelle
      The gelatin is optional as noted in the recipe card.
      It’s for pastry cream that requires more stability, like as a filling between cakes.
      For regular use, the pastry cream can be used as is!
      I generally make pastry cream with about 40 or 50 g of cornstarch.
      I hope that helps!

      Reply
  4. Laura C.
    February 14, 2026

    5 stars
    Dear Dini, I’ve been using your recipes for years and they have never failed me. Hands down yours are the most detailed and fail-proof recipes I have come across on the net (and that includes recipes from famous chefs). Thank you for sharing all your craft and talent with all of us 🙌🏻!

    Reply
  5. Brittany
    January 29, 2026

    5 stars
    This creme pat is always the recipe I reach for! Fabulous! Always works out!

    I had a question; I’m making a strawberry cake this weekend, and it only uses egg whites, so I’ll be using the yolks for creme pat, but my question is, how much freeze-dried strawberry powder would you recommend for use in a single batch of creme pat? I’m seeing a lot of differing amounts online.

    Reply
    1. Dini Kodippili
      January 29, 2026

      Hi Brittany!
      I’m so glad you like this recipe!
      As for how much strawberry powder to add, there’s a reason why it’s so varied online. Unfortunately it really depends on how much strawberry flavor you wish to have in the pastry cream.
      Also, freeze dried powder tends to thicken the pastry cream as well, so the more you add, the stronger the flavor, but the pastry cream becomes thicker too.
      I unfortunately haven’t added freeze dried powder to this recipe, so I can’t be sure how much should be added.
      I might start by adding the powder to the milk to make a strong flavored “strawberry milk” and then making the recipe with the milk. Then you can add extra powder at the end if you need to boost the flavor a little more.
      That’s where I might start if I wanted to make strawberry pastry cream.
      I hope that helps!

      Reply
      1. Brittany
        January 31, 2026

        5 stars
        Thanks for the info! I ended up using 40 grams of freeze-dried strawberry powder per batch of pastry cream, which I think was just perfect for this 🙂

        Reply
  6. Evelyn K
    December 26, 2025

    Hi I have been using your recipe for years now and always works thank you❤️❤️❤️❤️❤️

    Reply
  7. Lisa C
    October 30, 2025

    Can I swap potato starch for cornstarch? Almost all of my recipes use potato starch, and, although it does not yield the glossy finish, I prefer the mouth feel. So, I don’t keep cornstarch on hand.

    Reply
    1. Dini Kodippili
      October 30, 2025

      Hi Lisa!
      They do perform the same function in recipes, and thicken beautifully.
      However, I do not know if cornstarch and potato starch will be a 1:1 swap for the same level of thickness. Potato starch does tend to thicken sauces more than cornstarch, so you may need to use a little less depending on how thick you would like the pastry cream to be.
      I hope that helps

      Reply
  8. Jamie
    October 28, 2025

    Hi! What amount of cornstarch should I use when making a Boston cream pie? Also, should I use gelatin?

    Reply
    1. Dini Kodippili
      October 30, 2025

      Hi Jamie
      I can’t be 100% sure, but I would start with using about 40 – 50 g of cornstarch for a stiffer pastry cream, or 30 g cornstarch with gelatin.
      I hope that helps

      Reply
  9. Laurie Vincent
    October 26, 2025

    What type of chocolate or cream goes across the tops? I want it to taste good.

    Reply
    1. Dini Kodippili
      October 27, 2025

      Hi Laurie
      I’m not sure exactly which recipe you’ve mentioned here?
      There’s no chocolate or cream in this recipe for pastry cream.

      Reply
  10. Jill
    September 25, 2025

    5 stars
    Excellent crème patisserie! My adult daughter had forgotten how good homemade is! Thank you!

    Reply
  11. Den M
    August 23, 2025

    Dini, you don’t include temperature of the mixture as you proceed with each step. For me, I find that helpful as the ATK include so that an instant read can help along rather than just visual. Your recipes/ingredients are more desirable to me but I always feel more confident with temp. Just thought I’d mention this in case you choose to include. Thank you.

    Reply
    1. Dini
      August 23, 2025

      Hi Den
      Thank you so much for your comment! I definitely prefer working with temperatures as well, and try to include it whenever possible and especially when its crucial, like with my pouring custard recipe, where I share the temperature it should be heated to, as there are no easy to note visible cues for when the custard is done.
      For this recipe, the temperature isn’t as important because the final mixture is heated until it starts to “boil”, so technically the temperature is at about 100 C / 212 F. However, I find that if I try to read the temperature of this recipe, I have to stop whisking it, which will lead to a curdled pastry cream. So I do find that it is much easier to look out for the visual signs so you can focus on getting the right consistency!

      But I will continue to provide temperatures whenever possible and also try to give temperatures whenever my readers asks for them too!
      I hope that helps!

      Reply
      1. Den M
        August 23, 2025

        Dini, thank you for your prompt and thoughtful response. I understand your point as I always have my husband stand by when trying to get to temp while juggling components! I rely on temp because I don’t have the expertise in visual signs, however for this recipe you have made points that have given me more confidence for this particular pastry cream. Thank you.

        Reply
  12. Sandra
    August 9, 2025

    5 stars
    Very delicious and the tips helped to make a very stable cream.

    Reply
  13. Sandra
    August 8, 2025

    How long can you keep the pastry cream in the fridge

    Reply
    1. Dini
      August 9, 2025

      Hi Sandra
      You can find the information on storing pastry cream in the storage instructions here.
      I hope that helps!

      Reply
  14. Gis
    July 13, 2025

    Hi, i need advise pls, I saw the vanilla extract put in with the egg mixture and cook together. Or is it add in after pastry cream cooked and remove from heat, put in with the butter?

    Reply
    1. Dini
      July 13, 2025

      Hi Gis
      It doesn’t really matter when you put it in.
      With vanilla beans, jt should be before cooking so that it has time to infuse. With vanilla extract the timing isn’t as important for this recipe.
      I hope that helps

      Reply
  15. Beryl Cheneval
    July 9, 2025

    I haven’t used this recipe yet I was wondering if I could use this for cream horns?

    Reply
    1. Dini
      July 9, 2025

      Hi Beryl
      Usually cream horns are filled with whipped cream and not pastry cream. While a pastry cream filling is possible, it would be a heavy and thick filling that weigh down the cream horn pastry.
      If you do want a filling that has more flavor than whipped cream, then I recommend looking into making diplomat cream (sometimes known as boston cream), which pastry cream that has been lightened up with heavy cream and stabilised with gelatin. This tastes like a lighter ice cream (but room temperature), and can work inside cream horns.
      I hope that helps

      Reply
      1. Chry
        July 13, 2025

        I had tried this recipe, using 50g cornstarch without gelatin. Want to give a try on less cornstarch, possible to use agar to replace gelatin? If yes, how to do and portion

        Reply
        1. Dini
          July 17, 2025

          Hi Chry
          50g cornstarch isn’t a lot for a stiff pastry cream. It’s still creamy once whipped after. If the pastry cream is made properly and boiled, then the cornstarch is cooked properly with no starchy taste.
          As for the agar agar, there is not direct conversion unfortunately. There are some sources that say you should use 1/3 of a teaspoon of agar agar powder for every teaspoon of gelatin, and other sources mention using 1/2 tsp of agar powder for 1 tsp of gelatin. I haven’t used agar agar myself, so I’m not certain which is the best option. Agar agar also sets differently than gelatin, and has a more crumbly texture than the elastic texture of gelatin, which might effect the final texture.

          Agar agar also MUST be boiled to be activated unlike gelatin, so it should be added earlier and careful cooking is required to not curdle the eggs.
          I hope that helps

          Reply
        2. Chry
          July 19, 2025

          Hi Dini, i tried 40g and 50g on starch. For 50g to me little stiff, 40g abit soft, I don’t wantto use gelatin. I need ur help to get the right texture I want. As you mentioned egg yolk help thicken too.
          I able to try on 45g with 4egg yolk?
          Or try 5 egg yolk with 40g?
          Or 45g with 5 egg yolk?

          Reply
          1. Dini
            July 21, 2025

            Hi Chry
            It is really hard for me to know exactly which consistency you want the pastry cream to be, and how to achieve it. If 40 was too little and 50 was too much, then 45 g will be in the middle.
            Yes, egg yolks can help thicken it, but adding too much can cause the pastry cream to be too eggy and also have a higher risk of scrambling when you heat it.
            Unfortunately, the best bet is to start at 45 g and then test to see what will give you the consistency you are looking for.
            Also remember that pastry cream sets hard, but is whisked after it is chilled. This will also make the pastry cream “looser” than it was after chilling.
            I hope that helps

  16. Sav Rose
    June 13, 2025

    5 stars
    Delicious! I’ve used it for a trifle and now a tart. Goes well with everything

    Reply
  17. Angela
    April 16, 2025

    5 stars
    I’ve used this recipe numbers of time for a great pastry cream. Typically I use the additional note option of all egg yolks to make it a bit thicker.

    Thanks for all the great content!!

    I’m wanting to use this to fill a banana foster cream tart. Do you recommend the gelatin option for a tart?

    Reply
    1. Dini
      April 20, 2025

      Hi Angela
      I would add gelatin to the pastry cream! The custard will still have a soft creamy texture but will stay stable and will be easy to slice as well.
      I hope that helps!

      Reply
  18. Ani
    April 14, 2025

    I live in the tropics , so need a custard recipe that will be firm enough & gives a clean slice when cut through. Your advice pls… shld i try with 50g or 60g cornflour? By the way, it’s for a strawberry tart to be served outdoors.

    Reply
    1. Dini
      April 17, 2025

      Hi Ani!
      I recommend using gelatin to stabilizer the pastry cream because gelatin will give you a cleaner slice.

      Cornstarch may not be enough to keep it stable for clean slices.
      I hope that helps

      Reply
←Older Comments
1 … 14 15 16

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

  • Perfect All Butter Pie Crust (For Beginners)

    Perfect All Butter Pie Crust (For Beginners)

  • 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
101454 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.