How to Make Pastry Cream (Crème Pâtissière)

Homemade pastry cream (crème pâtissière) is a versatile custard filling you can use in so many baked goods, such as pies, eclairs, cupcakes, cream puffs, mille-feuille, and more. Follow my step-by-step instructions and success tips to get started, and then let your imagination run wild with all the ways to use it!

pastry cream in glass bowl with spoon.

If you’ve ever had the pleasure of biting into a classic cream puff, eclair, or a slice of Boston cream pie, you’re familiar with pastry cream. Crème pâtissière, in French, is a vanilla-flavored custard-like filling you can use to fill pastries and other treats, such as fruit tarts, doughnuts, and more. You cook it on the stove just like you prepare the filling for banana cream pie, and then chill it before using.

And yes, it can replace the pudding filling in banana cream pie!

It’s not only versatile in its uses, but also in its many variations. Fold in whipped cream to make a crème légère, or lightened cream (which we do for the filling of this mille-feuille). Mix with whipped butter to make a crème mousseline. And experiment with different flavors, such as adding lemon, cinnamon, flavored liqueur, or a splash of almond extract.

The one in the recipe card below is a classic vanilla-flavored pastry cream.

Ingredients You Need:

  1. Egg Yolks: Just like when making custard, lemon curd, or pumpkin pie in a jar, you need just the rich yolks of the eggs here. (Use the leftover egg whites in one of these recipes.)
  2. Cornstarch: Cornstarch thickens the pastry cream as it cooks.
  3. Whole Milk: Do not substitute a lower-fat or nondairy milk in this recipe.
  4. Sugar: Granulated sugar sweetens the cream.
  5. Butter: A Tablespoon adds just enough buttery flavor, and keeps the cream, well, creamy!
  6. Vanilla: This is the key flavor in this pastry cream, so don’t skimp on quality. You need pure vanilla extract, plus the seeds scraped from half a vanilla bean. Alternatively, you could use pure vanilla bean paste in place of both extract + seeds.
  7. Salt: Just a pinch, to balance and round out the flavor.
ingredients on counter including egg yolks, milk, sugar, butter, and vanilla.

Recommended Tools for Making Pastry Cream


How to Make It

The detailed instructions are in the recipe below, but let me share some key steps and success tips so you have a better understanding before you begin.

Cornstarch and egg yolks thicken the cream. Combine those first, to begin dissolving the powdery cornstarch.

fork in yellow mixture in glass bowl.

Heat the milk and sugar. You’ll simmer whole milk and granulated sugar together on the stove, and then remove it from heat:

heated milk and sugar mixture in pot.

Now you’ll temper the egg yolks.

Tempering is important here. If you’ve never done it before, tempering egg yolks is nothing to fear—all you’re doing is slowly raising the temperature of the egg yolks so they don’t scramble. If you can whisk, you can temper! Slowly pour the hot milk mixture into the egg yolks and cornstarch, whisking constantly.

Here is the egg yolk/cornstarch mixture with *some* of the warm milk/sugar whisked in. It begins to thin out almost immediately.

thinned out tempered egg yolks.

Strain it. After you’ve whisked in all of the hot milk/sugar mixture, pour it all into the saucepan through a fine-mesh sieve, to strain out any solids that may have formed during tempering:

tempered milk and egg yolk mixture and shown again being strained through a sieve.

Now you’ll place the mixture back on the stove.

Bring it to a boil. At first it won’t seem like it’s thickening much, just getting frothy, but as soon as it reaches a boil with big bubbles bursting on the surface, it will thicken up pretty much immediately.

Remove from heat & add flavor. Stir in butter, vanilla extract, vanilla bean + a pinch of salt.

vanilla and butter on top of pastry cream in pot.

This recipe makes about 2–2.5 cups of pastry cream, or about 580–610g.

Here is the pastry cream before chilling:

pastry cream in stainless steel pot.

Place a piece of plastic wrap on top of the pastry cream before chilling to prevent a “skin” from forming on the surface. Chill it in the refrigerator for a minimum of 3 hours or overnight. It will firm up a lot during this time.

Give it a stir after chilling and it’s ready to use!

close-up of pastry cream (crème pâtissière).

Try It as Diplomat Cream

You can take this recipe a step further and add whipped cream to the chilled pastry cream. This considerably lightens up the texture, making it velvety-smooth—think homemade whipped cream, but richer and more substantial. When you add whipped cream to pastry cream, I learned, it’s called crème légère, or lightened cream. (It can also be called diplomat cream or crème diplomate, but that sometimes includes gelatin.)

This is the pastry cream after combining with whipped cream. I use it to fill mille-feuille.

Flavor Ideas

Add these flavoring suggestions when you whisk in the butter and salt:

  • Lemon: Skip the vanilla bean, reduce the vanilla extract to 1 teaspoon, and whisk in 1 Tablespoon lemon juice and 1 teaspoon lemon zest.
  • Lime: Same as above, but with lime juice/zest.
  • Coconut: Skip the vanilla bean, reduce the vanilla extract to 1 teaspoon, and whisk in 1/2 teaspoon coconut extract. Taste, then whisk in more if desired.
  • Espresso: Skip the vanilla bean, keep the vanilla extract the same, and whisk in 1 teaspoon espresso powder.
  • Cinnamon: Skip the vanilla bean, keep the vanilla extract the same, and whisk in 1/2 teaspoon ground cinnamon.
  • Almond: Skip the vanilla bean, reduce the vanilla extract to 1 teaspoon, and whisk in 1/2 teaspoon almond extract. Taste, then whisk in more if desired.
  • Liqueur: Skip the vanilla bean, reduce the vanilla extract to 1 teaspoon, and whisk in 1 to 2 Tablespoons of your favorite flavored liqueur, such as Chambord or Grand Marnier.

Uses for Pastry Cream Filling

I also use it as a cake filling, like Boston cream pie. Note the recipe difference, though. That recipe is from America’s Test Kitchen cookbook, and it uses half-and-half, flour, and more egg yolks. In my own testing, the recipe below produces pretty much the same results in terms of thickness and stability, so it’s great to use in layer cakes! Either works wonderfully.

Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
pastry cream in glass bowl with spoon.

How to Make Pastry Cream

5 Stars 4 Stars 3 Stars 2 Stars 1 Star 5 from 5 reviews
  • Author: Sally McKenney
  • Prep Time: 5 minutes
  • Cook Time: 15 minutes
  • Total Time: 3 hours, 20 minutes (includes chilling)
  • Yield: 2–2.5 cups
  • Category: Dessert
  • Method: Cooking
  • Cuisine: French
Save Recipe

Description

Homemade pastry cream (crème pâtissière) is a versatile custard filling you can use in so many baked goods, such as pies, eclairs, cream puffs, mille-feuille, and more. Follow my step-by-step instructions and success tips to get started, and then let your imagination run wild with all the ways to use it!


Ingredients

  • 4 large egg yolks, cold or room temperature
  • 3 Tablespoons (23g) cornstarch
  • 2 cups (480ml) whole milk (do not use low-fat or nondairy)
  • 1/2 cup (100g) granulated sugar
  • 1 Tablespoon (14g) unsalted butter, softened to room temperature
  • 1 teaspoon pure vanilla extract
  • seeds scraped from 1/2 vanilla bean (or extra 1/2 teaspoon vanilla extract)
  • small pinch salt


Instructions

  1. In a large heatproof bowl (preferably with a pour spout), whisk the egg yolks and cornstarch together with a fork. It may not look like it will all come together (it will be dry at first), but keep mixing until the mixture is thick and combined. If it’s not coming together at all, add a few drops of the milk you need in step 3 to bring it together. Set aside at room temperature. fork in yellow mixture in glass bowl.
  2. Combine the milk and sugar in a medium saucepan over medium heat. Whisk until the sugar has dissolved, then bring to a gentle simmer. Remove from heat. Pour the warm milk and sugar mixture in a slow and steady stream into the egg yolk and cornstarch mixture, whisking the entire time. Keep those egg yolks moving so they don’t scramble. Pour the mixture back into the saucepan through a sieve, to strain out any egg yolk solids that may have formed during tempering.
    collage of 2 photos showing milk and sugar mixture and whisked into egg yolks.
    tempered milk and egg yolk mixture and shown again being strained through a sieve.
  3. Return the saucepan to medium heat, and whisk constantly. The mixture will be frothy on the surface at first, and then it will begin to thicken quickly and large bubbles will begin to burst on the surface. This usually takes about 1–2 minutes. Stand back and use caution. Let the bubbles burst for about 20 seconds, or until the mixture has thickened into a custard- or pudding-like consistency. (For a more accurate test, the custard is done when the temperature reaches 185–190°F (85–88°C).) Remove from heat. Whisk in butter, vanilla extract, vanilla bean seeds, and a pinch of salt. Cool for 10 minutes.
    vanilla and butter on top of pastry cream in pot.
    vanilla pastry cream (crème pâtissière) with rainbow whisk in pot.
  4. Transfer the pastry cream from the saucepan to a heatproof bowl and place a piece of plastic wrap or parchment directly on the surface of the custard, to prevent a skin from forming. Refrigerate for at least 3 hours, and up to 24 hours. Makes 2–2.5 cups, or about 580–610g.

Notes

  1. Make Ahead Instructions: You can make this pastry cream up to 24 hours in advance. See step 4.
  2. Special Tools (affiliate links): Egg SeparatorHeatproof Bowl With a Pour Spout | Wire Whisk or Silicone WhiskMedium Saucepan | Sieve | Heatproof Bowl
  3. Can I Use Vanilla Bean Paste Instead of Vanilla + Vanilla Bean? Yes, you can use vanilla bean paste because it combines both extract AND vanilla bean seeds. Omit the vanilla extract and vanilla bean seeds and use 2 teaspoons vanilla bean paste instead.
  4. Other Flavor Ideas: See list above the recipe, including lemon, cinnamon, espresso, coconut, etc.
  5. How to Make Diplomat/Lightened Cream: Using a handheld or stand mixer fitted with a whisk attachment, whip 1/2 cup (120ml) cold heavy cream on medium-high speed until medium peaks form, about 3 minutes. Add the chilled pastry cream to the bowl with the whipped cream. Beat on low speed until just combined and smooth. Do not over-mix. Cover and refrigerate for at least 1 hour and up to 4 hours.
  6. Leftover egg whites? I have some recipe ideas for you!
  7. Can I Use This as a Filling for Layer Cakes? Yes. See this Boston cream pie recipe. Note the pastry cream recipe differences, though. That recipe is from America’s Test Kitchen cookbook, and it uses half-and-half, flour, and more egg yolks. In my own testing, the recipe here produces pretty much the same results in terms of thickness and stability, so it’s great to use in layer cakes! Either works wonderfully for your cakes.

sally mckenney headshot purple shirt.
About the Author

Sally McKenney

Sally McKenney is a baker, food photographer, and New York Times best-selling author. Her kitchen-tested recipes and step-by-step tutorials have given millions of readers the knowledge and confidence to bake from scratch. Sally’s work has been featured on TODAY, Good Morning America, Taste of Home, People, and more.

Read More

Leave a Comment

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

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star

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

Reader Comments and Reviews

  1. Sonia says:
    September 27, 2025

    I made this cream, it was delicious, but so very runny. It didn’t set even after many hours. What could I have done wrong?

    Reply
    1. Lexi @ Sally's Baking says:
      September 29, 2025

      Hi Sonia, it sounds like the pastry cream may have been undercooked a bit. In step 3, did the mixture thicken into a custard- or pudding-like consistency? (For a more accurate test, the custard is done when the temperature reaches 185–190°F (85–88°C).)

      Reply
  2. Sherry says:
    August 29, 2025

    Do you have to refrigerate the cupcakes once filled?

    Reply
    1. Lexi @ Sally's Baking says:
      August 29, 2025

      Hi Sherry, yes, we recommend refrigerating cupcakes with this pastry cream filling.

      Reply
  3. Leanne Trent says:
    July 27, 2025

    I have a question (I think I know the answer):
    Can this recipe be frozen?
    I made 6 batches of Swiss Meringue Buttercream this weekend and need to use up the yolks.
    I would like to some filled cruffins, but will not be able to do for another week.
    Thanks for all your help! Love your website- you are my go to for my baking needs!

    Reply
    1. Trina @ Sally's Baking says:
      July 29, 2025

      Hi Leanne! Pastry Cream isn’t the best recipe to freeze and thaw, it could split or get grainy. You could potentially get it creamy again, but it may take some work re-heating and whisking.

      Reply
  4. Lydia Hersman says:
    July 22, 2025

    Do you think I could use this pastry cream in a poke cake? Or will it be too thick to absorb into the cake?

    Reply
    1. Lexi @ Sally's Baking says:
      July 23, 2025

      Hi Lydia, we haven’t tried it in a poke cake, but that should work! Let us know if you do give it a try.

      Reply
  5. Roshi says:
    July 14, 2025

    I don’t have whole milk, but I have half and half. Could that work?

    Reply
    1. Trina @ Sally's Baking says:
      July 14, 2025

      Hi Roshi, you could use half and half, but your pastry cream will be thicker.

      Reply
  6. S.R. says:
    June 30, 2025

    This recipe is absolutely delicious! I used it in your cream puffs recipe, which were also great. It was a huge hit and nobody (including myself) could stop eating!

    Reply
  7. S.R. says:
    June 28, 2025

    How many cream puffs would this recipe fill if you only fill the hollow part of the puff?

    Reply
    1. Sally @ Sally's Baking says:
      June 30, 2025

      Hi S.R., it depends on the size of the cream puffs. At least a dozen if they are on the smaller side.

      Reply
  8. S.R. says:
    June 28, 2025

    Is the vanilla bean absolutely necessary or could I just use a little more extract?

    Reply
    1. Sally @ Sally's Baking says:
      June 30, 2025

      Hi S.R. you can omit and add an extra 1/2 tsp extract.

      Reply
  9. Madison Camara says:
    June 28, 2025

    i just made this recipe and it was so good!

    can i add frozen or fresh raspberries to the custard and use it as a filling for danishes

    Reply
    1. Sally @ Sally's Baking says:
      June 30, 2025

      Absolutely. I recommend fresh.

      Reply
  10. Amy says:
    June 16, 2025

    I have made this several times for eclairs and Boston Cream Pie. It’s sooooo gooood!

    Reply
  11. Julie OKeefe says:
    June 9, 2025

    Hi Sally, I have 2 questions about the pastry cream recipe. Can it be halved? And can you add a liquor?
    Thanks,
    Julie

    Reply
    1. Trina @ Sally's Baking says:
      June 9, 2025

      Hi Julie, you can halve this recipe. You can add a small amount of liquor, yes.

      Reply
  12. Jacqui R says:
    May 17, 2025

    Was terrified but followed the recipe exactly. Turned out perfectly. Consistency is exactly what I wanted for the base of a fruit flan.
    Rich texture, lovely colour, not too sweet. Would add a little more vanilla next time but still delicious.

    Reply
  13. Cyndi says:
    May 12, 2025

    Sally, your recipe is so delicious! I’ve made this numerous times for eclairs and cream puffs. I keep saying I’m going to try a different flavour but love the vanilla so much.

    Reply
  14. Stella says:
    March 30, 2025

    Can I make this recipe and add crushed oreos to it? If so, how much should I be adding?

    Reply
    1. Lexi @ Sally's Baking says:
      March 31, 2025

      Hi Stella, you can absolutely try it! We’d start with about 1/2 cup of chopped/crushed Oreos, then add more to your liking.

      Reply
  15. MM says:
    March 29, 2025

    Hi there! Wondering if this recipe can be halved? I don’t need 2.5 cups (just filling a dozen cupcakes with it). Thank you!

    Reply
    1. Lexi @ Sally's Baking says:
      March 31, 2025

      Hi MM, that should work just fine. Enjoy!

      Reply
  16. Ash says:
    March 8, 2025

    You are brilliant, Sally.
    Thanks alot.

    Reply
  17. Donna says:
    March 3, 2025

    Can I add green food coloring to this pastry cream? I’m thinking of making your Homemade Cruffins for St. Patrick’s Day and filling them with this cream but with a green tint.

    Reply
    1. Lexi @ Sally's Baking says:
      March 3, 2025

      Hi Donna, that should work just fine! We’d recommend using gel food coloring.

      Reply
  18. Mike says:
    February 21, 2025

    Hi, if the cream must be used in 24hrs of being made, how long will it last after it’s been piped into a cake or pastry?
    I love your site, use it all the time! Thank you.
    Mike

    Reply
    1. Sally @ Sally's Baking says:
      February 23, 2025

      Hi Mike, yes, it can last long after it’s used/piped/spread. I suggest up to 24 hours in the bowl in the refrigerator. After that, it’s quite stiff any may be hard to spread/pipe.

      Reply
  19. Rsm says:
    February 12, 2025

    It only lasts 24 hours in the fridge???

    Reply
    1. Lexi @ Sally's Baking says:
      February 13, 2025

      Hi RSM, you can make the cream in advance and chill in the refrigerator for up to 24 hours, and then use in your pastries and baked goods. Hope you enjoy it!

      Reply
  20. Elle says:
    February 12, 2025

    Is it possible to use a basic stainless steel mixing bowl from my stand mixer? It doesn’t have a spout but is that necessary for this recipe?

    Reply
    1. Trina @ Sally's Baking says:
      February 12, 2025

      Hi Elle, a stainless steel mixing bowl works great here! A spout is nice, but definitely not necessary.

      Reply
  21. Carrie says:
    February 8, 2025

    Made this today to use in a Victoria sponge, and it came out beautiful. Thank you!

    Reply
  22. Willow Davis says:
    December 14, 2024

    This recipe is amazing I’ve made it a few times and it has always come out lovely. most recently I had to substitute the white sugar for brown and it gave the cream a butterscotch-esq flavor

    Reply
  23. Jessica says:
    November 29, 2024

    This recipe was actually super easy because the instructions are very thorough and easy to follow! I’m going to have extra egg yolks for another recipe I’m making, so I was wondering if the finished (after 3 hrs of refrigeration) pastry cream be ok in the freezer for a week before use?

    Reply
  24. Maha says:
    November 26, 2024

    Hi there. Going to make this today. How long can it last in the fridge ? Thanks!

    Reply
    1. Erin @ Sally's Baking says:
      November 26, 2024

      Hi Maha, we’d recommend up to 24 hours. Enjoy!

      Reply
  25. Suzanne says:
    November 3, 2024

    Is it possible to fill unbaked cookies or pies with creme patisserie?

    Reply
    1. Lexi @ Sally's Baking says:
      November 4, 2024

      Hi Suzanne, it will really depend on the particular cookie or pie recipe. In general, the cookie or pie will likely already need to be baked before filling.

      Reply
  26. Alicia says:
    September 30, 2024

    Could you make this salted caramel flavored? I’m wanting to use this as filling for a vanilla cupcake with vanilla buttercream with salted caramel drizzle… and I think this as a filling with salted caramel flavor would be amazing! I’m just not sure how to get the flavor right.

    Reply
    1. Beth @ Sally's Baking says:
      October 5, 2024

      Hi Alicia, we haven’t tried this, but I think you could probably stir in some salted caramel sauce to flavor it. I am just not sure whether I’d do it while the custard is still warm, before it sets, or after it has chilled. If you decide to try it, please let us know how it goes!

      Reply
      1. Alicia says:
        October 5, 2024

        I still used the pure vanilla extract but left out the vanilla bean. I stirred in salted caramel sauce 1 tbsp at a time while the creme pat was still warm and tasted until it seemed right. Stopped at 3 tbsp salted caramel sauce. I think it will go great as a filling for vanilla cupcakes!

  27. Amie B says:
    September 20, 2024

    Will this remain stable if you stir in two Tbs of bourbon in step 3?

    Reply
    1. Sally @ Sally's Baking says:
      September 21, 2024

      Yes. As is, it thickens up quite a bit and will still thicken nicely with 2 more Tbsp of liquid. See Flavor Ideas right above the recipe.

      Reply
  28. Michele says:
    September 16, 2024

    Hi Sally – I have a request to make a French vanilla cake with coconut custard filling, and chocolate ganache frosting. I’m wondering if you recommend adding coconut flakes into the custard filling.

    Reply
    1. Lexi @ Sally's Baking says:
      September 16, 2024

      Hi Michele, we haven’t tested this pastry cream with added shredded coconut, but this is what we would suggest for a coconut flavor: Skip the vanilla bean, reduce the vanilla extract to 1 teaspoon, and whisk in 1/2 teaspoon coconut extract. Taste, then whisk in more if desired. You could then try adding some shredded coconut on top if you want the added texture. Be sure to pipe a frosting dam around the edges of the cake later to ensure the pastry cream doesn’t spill out the edges. Hope this helps!

      Reply
  29. Rebeka says:
    August 30, 2024

    This is my go-to recipe!
    It’s so easy and quick to make and tastes amazing!!!
    I do recommend, after chilling for several hours, to beat the cream at medium speed before using it in recipes.
    It’s sooooo delicious!

    Reply
  30. Sara says:
    August 24, 2024

    Can this be used for danishes before baking?

    Reply
    1. Sally @ Sally's Baking says:
      August 24, 2024

      Hi Sara. this is best to use after baking, as a no-bake filling of sorts. You can pipe it onto danish pastries after baking if you’d like.

      Reply