• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Confessions of a Baking Queen logo
  • About
    • Contact
  • All Recipes
    • St. Patrick's Day
    • British Recipes
    • Breakfast
    • Desserts
      • Bars
      • Breads
      • Brownies
      • Caramel
      • Cakes
      • Chocolate
      • Confections
      • Cheesecakes
      • Cookies
      • Cupcakes
      • Custards & Puddings
      • Creme Brûlée
      • Lemon
      • Peanut Butter
      • Pies & Tarts
      • Frostings
      • Scones
    • Appetizers
    • Drinks
    • Egg Free
    • Gluten Free
    • Spring
    • Fall
    • Summer
  • Desserts
    • Cookies
    • Cakes
    • Bars
    • Cheesecakes
  • Shop
menu icon
go to homepage
  • About
  • All Recipes
    • Recipe Search
    • Recipe Index
  • Chocolate
  • Cakes
  • Cookies
  • Shop
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • subscribe
    search icon
    Homepage link
    • About
    • All Recipes
      • Recipe Search
      • Recipe Index
    • Chocolate
    • Cakes
    • Cookies
    • Shop
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • ×
    Home » Custards & Puddings

    Classic Chocolate Pastry Cream

    By Elizabeth Waterson // Jan 18, 2021 (Updated Oct 18, 2025) // 27 Comments

    Jump to Recipe·5 from 8 reviews
    This post may contain affiliate links, which may pay me a small commission for my referral at no extra cost to you! Thank you for supporting Confessions of a Baking Queen!

    2.3K shares

    This chocolate pastry cream is rich, smooth, and deeply chocolatey, with just the right thickness to hold its shape in pastries or between cake layers. Made with simple ingredients like half & half, egg yolks, sugar, and cocoa, it comes together on the stovetop in about 15 minutes, then chills until perfectly set. The result is a silky custard that's creamy enough to spoon straight from the bowl yet sturdy enough to tuck inside cream puffs, tarts, or layer cakes.

    chocolate pastry cream in a glass bowl on a marble surface next to a blue linen

    Custard has got to be one of the best things in the world, that and fresh bread. Okay, you can't forget about chocolate and red wine. I have a lot of favorite things, what can I say.

    But my all-time favorite is when those two things get combined, here chocolate + custard to make a delicious chocolate pastry cream. It's just like my love affair with chocolate creme brulee.

    This chocolate creme patisserie is perfect served with profiteroles, napoleons, inside a pie crust, as a cake filling. The options are endless!

    I've fallen in love with pastry cream make sure to check out my coffee pastry cream and dulce de leche pastry cream! If you want something to use this pastry cream for then check out my recipe for choux pastry!

    Egg Yolks and Starch Build Silky Texture

    • Dairy Base
      • Whole Milk - Creates a creamy, rich custard. I found whole milk gave the pastry cream a smooth texture without feeling too heavy.
      • Butter - Stirred in at the end, it adds shine and rounds out the chocolate flavor.
    • Chocolate Flavor
      • Dutch-Process Cocoa Powder - After testing, I found Dutch-process gave the pastry cream a stronger, smoother chocolate taste compared to natural cocoa.
      • Semi-Sweet Chocolate - Melts into the custard for depth and richness; it balances sweetness while reinforcing the cocoa notes.
    • Custard Foundation
      • Egg Yolks - Thicken the pastry cream and add a velvety mouthfeel. Using only yolks (no whites) keeps it rich and smooth.
      • Granulated Sugar - Sweetens while also helping stabilize the eggs during cooking.
      • Cornstarch - Helps the cream thicken and set firmly, ensuring it's stable enough for tarts or filling pastries.
    • Flavor Enhancer
      • Salt - A pinch balances the sweetness and sharpens the chocolate flavor.

    Whisk, Cook, Chill-and Done

    small pot with half and half and espresso powder in
    Cook half and half and espresso powder in a medium saucepan.
    egg yolks, sugar, cornstarch and cocoa powder in a large glass bowl for a chocolate pastry cream recipe
    Whisk together the egg yolks, corn starch, salt, cocoa powder, and sugar.

    If you want a thinner pastry cream reduce the cornstarch to 3.5 Tablespoons

    egg mixture for a chocolate pastry cream recipe
    Whisk this together for at least two minutes, the mixture should be much lighter in color.
    warmed half and half slowly added to chocolate egg mixture
    Slowly add a little bit of the warmed half and half to the egg mixture and whisk to combine.
    chocolate pastry cream before cooking
    Then add all of the milk slowly and whisk to combine. 
    chocolate pastry cream very thin in a small pot
    Add mixture back to the pot and cook over low-medium heat for another couple of minutes, whisking constantly.
    chocolate pastry cream in a small pot
    Cook until the mixture has thickened up.
    chopped chocolate added to chocolate pastry cream in a small pot
    Take off the heat and whisk in the chocolate.
    unsalted butter added to a pot of chocolate pastry cream
    Add the cold cubed butter and vanilla extract whisk to combine.
    chocolate pastry cream cooked in a small pot
    Should be very smooth and silky.
    plastic container holding chocolate pastry cream with plastic wrap on top
    Pour into an air-tight container, place plastic wrap on top and push directly on top to chill.
    chocolate pastry cream in a glass bowl on a marble surface

    Recipes to use this chocolate pastry cream in

    • You could use this to fill chocolate cream puffs!
    • Make chocolate mini fruit tarts!
    • In a chocolate layer cake for a chocolate lover!

    Make sure to join our Newsletter and follow us on Pinterest, Instagram, Facebook, & Twitter.

    ★★★★★ Please let me know if you make this recipe by leaving a star rating and comment below!

    Print

    Recipe Card

    clockclock iconcutlerycutlery iconflagflag iconfolderfolder iconinstagraminstagram iconpinterestpinterest iconfacebookfacebook iconprintprint iconsquaressquares iconheartheart iconheart solidheart solid icon
    chocolate pastry cream in a glass bowl on a marble surface

    Classic Chocolate Pastry Cream

    5 Stars 4 Stars 3 Stars 2 Stars 1 Star

    5 from 8 reviews

    Print Recipe
    Pin Recipe

    This chocolate pastry cream is rich, smooth, and deeply chocolatey, with just the right thickness to hold its shape in pastries or between cake layers. Made with simple ingredients like half & half, egg yolks, sugar, and cocoa, it comes together on the stovetop in about 15 minutes, then chills until perfectly set. The result is a silky custard that's creamy enough to spoon straight from the bowl yet sturdy enough to tuck inside cream puffs, tarts, or layer cakes.

    • Total Time: 3 Hours 20 Minutes
    • Yield: Roughly 4 Cups 1x

    Ingredients

    Units Scale
    • 24oz (3 Cups) Half and Half
    • ½ Teaspoon Espresso Powder, optional
    • 150 grams (¾ Cup) Granulated Sugar
    • Pinch of Salt
    • 7 Large Egg Yolks
    • 2 Tablespoons Dutch Process Cocoa Powder
    • 4.5 Tablespoons Cornstarch/ Cornflour
    • 4oz (¾ Cup) Dark or Semi-Sweet Chocolate, finely chopped
    • 4 Tablespoons Unsalted Butter, cold and cubed
    • 2 Teaspoons Pure Vanilla Extract

    Instructions

    1. In a medium saucepan over low-medium heat add the half and half and espresso powder. Let cook for a couple of minutes to warm it up - do not boil the cream. 
    2. While half and half is warming, in a medium bowl whisk together the egg yolks, corn starch, salt, cocoa powder, and sugar. Whisk for two minutes, the mixture should be much lighter in color.
    3. Once the liquid mixture is warmed slowly add a little bit to the egg mixture and whisk to combine. Then add all of the cream very slowly and whisk to combine. If you do this too quickly you will scramble the eggs, ruining the custard. 
    4. Add mixture back to the pot and cook over low-medium heat for another couple of minutes, whisking constantly. The mixture will thicken up. You want it quite thick, the mixture will "burp" bubbles will pop on the surface- this shows it is done. Don't turn up the heat and rush this process.
    5. Take off the heat and immediately add the chopped chocolate, whisk until all of the chocolate has melted and combined with the pastry cream. Add the cold butter whisking vigorously to combine the mix in vanilla. Then pour into an air-tight container, place plastic wrap on top and push directly on top this helps prevent a thick skin from forming. Let chill in the fridge for at least three hours or up to three days. Rewhisk the pastry cream before serving.

    Equipment

    oxo food scale

    OXO Kitchen Scale

    Buy Now →

    Notes

    • You can half the recipe (use 4 yolks)
    • If you want a thinner pastry cream reduce the cornstarch to 3.5 tablespoons
    • Author: Elizabeth Waterson
    • Prep Time: 10
    • Cook Time: 10
    • Category: Dessert
    • Method: Cook
    • Cuisine: French

    Did you make this recipe?

    Tag @confessionsofabakingqueen on Instagram and hashtag it #cbqbakes

    Recipe Card powered byTasty Recipes

    Explore Recipes

    Custards & PuddingsGluten FreeChocolate

    More Custard & Pudding Recipes

    • Mocha Crème Brûlée
    • slice of pumpkin bread pudding with ice cream and caramel on a white dish.
      Pumpkin Bread Pudding with Maple Pecans
    • apple bread pudding on a white plate
      Apple Bread Pudding
    • lemon creme brulee wtih berries and a lemon twirl on a white surface with a blue linen
      Lemon Creme Brûlée

    Reader Interactions

    Comments

      Leave a comment & rate this recipe Cancel reply

      If you love this recipe, please consider leaving a ⭐ star rating ⭐ when you post a comment. Star ratings help people discover my recipes online. I am incredibly grateful for your support! —xx Liz

      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.

    1. Wendy McCall says

      June 08, 2020 at 10:58 am

      Loving the texture, until I reached the part to add the chocolate and realized it wasn’t included in the ingredient list. Husband just ran out while I’m stirring. How much do I add? Looks to be about a cup?

      Reply
      • Elizabeth Waterson says

        June 08, 2020 at 11:08 am

        Oh my gosh I am so sorry Wendy, it must have been accidentally deleted. You'll need 4oz Dark Chocolate, finely chopped, which is about 3/4 cup. Please let me know if I can help with anything else and if you like the recipe. Thank you!! XX Liz

        Reply
        • Wendy McCall says

          June 11, 2020 at 4:14 pm

          Thank you for the clarification, Liz. I’ll have to try this recipe again, as the stovetop mixture had separated by the time the chocolate arrived. It would absolutely be worth a second try, as the stable pudding texture seemed promising as a cake filling.

          Reply
    2. Aysha Shad says

      August 07, 2020 at 8:26 pm

      Is it safe to re heat after taking from refrigeratior.. to loosen the custard?

      Reply
      • Elizabeth Waterson says

        August 08, 2020 at 11:00 am

        I would not reheat, I would let it sit at room temperature for a little but normally just whisking it loosens the custard perfectly for me. Let me know how you get on. XX Liz

        Reply
    3. Leah says

      October 24, 2020 at 8:08 am

      I just realized I am out of baking chocolate, and can’t get to the store today. What would happen if I just used cocoa? I have plenty of that

      Reply
      • Elizabeth Waterson says

        October 24, 2020 at 10:41 am

        Hi Leah, adding the actual chocolate helps really give it a great flavor and texture. I would not recommend just using more cocoa powder, do you have any milk or dark chocolate bars for eating? I would use those first. Hope this helps, let me know if I can help with anything else or if you try the recipe. XX Liz

        Reply
    4. doris stuart says

      December 30, 2020 at 5:30 am

      can you put it in a graham cracker then put in the refrigerator then cover it with plastic

      Reply
      • Elizabeth Waterson says

        December 30, 2020 at 2:00 pm

        Hi Doris, yes you could do that no problem. I do the same in my Chocolate Pie Recipe. Please let me know if you have any further questions or if you try it!! XX Liz

        Reply
    5. Rosie says

      January 19, 2021 at 4:40 pm

      Ohhhh my aunty makes me this and I love to have spoonfuls!!! Best recipe ever!

      Reply
      • Elizabeth Waterson says

        January 25, 2021 at 6:10 pm

        Hi Rosie, thank you so much for coming back to review and star rate the recipe, I truly appreciate it. So glad you enjoy the pastry cream! XX Liz

        Reply
    6. Cathy Basil says

      September 26, 2021 at 2:14 pm

      I plan to make this recipe to fill cupcakes. After filled, can the cupcakes sit out or must I refrigerate them? Will leftovers get soggy?

      Reply
      • Elizabeth Waterson says

        September 27, 2021 at 3:34 pm

        Since this is a cream-based filling I would recommend keeping them in the fridge and not letting them sit out for too long. Please let me know if you have any other questions or if you try the recipe, I would love to know what you think! XX Liz

        Reply
    7. Monica Lazar says

      November 12, 2021 at 12:41 pm

      I love this recipe! I made it to fill the eclairs and it was perfect!
      I also liked the glaze that you've suggested(the ratio1:1 is perfect).
      Thank you so much!

      Reply
    8. Monica Lazar says

      November 12, 2021 at 12:43 pm

      Excellent recipe! I made it to fill the eclairs and it was perfect!
      I also liked the glaze that you've suggested(the ratio1:1 is perfect).
      Thank you so much!

      Reply
    9. Morgan says

      February 04, 2023 at 2:49 pm

      So easy and delicious! I made mine into a Mexican chocolate pastry cream by adding a dash of cinnamon and a tiny bit of cayenne. Truly perfect!

      Reply
      • Elizabeth Waterson says

        February 05, 2023 at 7:33 am

        Thank you so much for the lovely review, Morgan. I can't wait to try this version of the pastry cream.Take care. XX Liz

        Reply
    10. Sandra Stanley says

      March 02, 2023 at 4:50 pm

      Hi Elizabeth, I'm getting ready to make the chocolate Pastry Cream and was wondering if I can do half whole milk and half heavy whipping cream instead of all milk, will it still turn out?

      Reply
      • Elizabeth Waterson says

        March 03, 2023 at 6:49 am

        Hi Sandra, that should be fine! Please report back how you like the recipe! TAke care. XX Liz

        Reply
    11. Donna J. Sharp says

      May 24, 2023 at 9:48 am

      My birthday is in a few days and I usually make a cheesecake for the occasion until one of my favorite recipe bloggers posted a Mint Chocolate layer cake which is my favorite flavor combination. So I like the recipe for the cake itself, but I am making a mint-cream cheese italian meringue buttercream for the frosting (it's a American Buttercream with the recipe) and, since it's my birthday, I want it to be a little more indulgent and I needed to find a use for the egg yolks, so I am going to use your pastry cream recipe for in between the layers (3 layers - 8"sq) since there is just enough for a nice layer of it in between each. Thank you for helping me complete my perfect birthday cake!

      Reply
      • Elizabeth Waterson says

        May 24, 2023 at 10:31 am

        Aww Donna that cakes sounds so delicious!! I wish I could have a slice! Your frosting sounds like it will be scrumptious too!!! Happy early Birthday! XX Liz

        Reply
        • Donna J. Sharp says

          May 25, 2023 at 11:55 am

          Thank you! ❤️

          Reply
    12. Donna J. Sharp says

      May 25, 2023 at 11:33 am

      So, I assume that you add the vanilla extract after the butter? It's not in the steps and I am in the process of making it right now.

      Reply
      • Donna J. Sharp says

        May 25, 2023 at 12:14 pm

        I added it after the butter and it tastes fantastic! Thank you again! I will be using this recipe for my husband's birthday next month for a pie filling since he wants chocolate cream pie. This is a really great recipe and it makes a lot. I don't mind leftovers.

        Reply
        • Elizabeth Waterson says

          May 25, 2023 at 12:18 pm

          Hi Donna, yes I added it after the butter thanks for pointing that out- I have updated the recipe card!! So happy to hear you liked the recipe and are using it for such a special occasion! It makes my day!! Happy Baking! Take care XX Liz

          Reply
    13. Dawn Grant says

      April 13, 2025 at 10:01 am

      OMG! My first time ever making a pastry cream and this recipe was amazing! Tempering the eggs is key! This was so easy and perfect!

      Thank you so much!

      Reply
      • Elizabeth Waterson says

        April 13, 2025 at 2:09 pm

        Hi Dawn, thank you so much for the 5-star review! I truly appreciate it! So glad you liked the pastry cream! XX Liz

        Reply

    Primary Sidebar

    elizabeth mixing frosting

    Hiya! I am Elizabeth Waterson, welcome to my treat-filled site. After spending 15 years in the restaurant industry and growing up baking, I wanted to share my love of baking with you all. My step-by-step tutorials will help you learn how to bake at home. Confessions of a Baking Queen (CBQ) has been featured in CBS LA, HuffPost Taste, BuzzFeed, Taste of Home, and more! Here you will find loads of sweet recipes with a few savory ones for good measure. Feel free to message me with any questions! Happy Baking! 

    More about me →

    Winter Favorites

    • bowl of chicken mulligatawny soup on a light surface with a white and orange linen
      British-Style Chicken Mulligatawny Soup (Comforting & Flavorful)
    • A close-up of a slice of lemon cream cheese bundt cake with a light glaze on top, served on a white plate. The texture of the cake looks moist and dense, and part of the whole cake is visible in the background.
      Lemon Cream Cheese Pound Cake
    • A slice of creamy cheesecake with a graham cracker crust, topped with bright yellow lemon curd and whipped cream, sits on a white plate. A fork holds a bite of cheesecake in the foreground, with lemons in the background.
      Fresh & Tangy No Bake Lemon Cheesecake
    • slice of lemon ricotta cake on a white plate with lemons and the whole cake on a light grey surface.
      Lemon Ricotta Cake
    • salted caramel apple crisp served in a white dish with ice cream on top
      Crisp Crumbles & Gooey Apples: This Caramel Apple Crisp Is Everything
    • Individual slices of lemon cheesecake bars on a marble counter with fresh lemons. One slice has a bight taken out of it.
      Lemon Cheesecake Bars
    • lemon curd cookies dusted in powdered sugar on a white plate on top of a stripped linen on a light surface with more lemons
      Lemon Curd Cookies
    • cut open orange olive oil cake on a white plate on a marble surface with a floral linen
      Orange Olive Oil Cake
    • spatula taking a slice of lemon olive oil cake on a brown marble surface with a blue linen
      Lemon Olive Oil Cake
    • slice of pear bundt cake cut against the full cake on a wire rack on a light brown surface with a blue and white linen, pear and coffee cup
      Moist Pear and Spice Bundt Cake
    • marshmallow topped hot chocolate in a large glass mug on a white marble surface next to chocolate chips, marshmallows and more hot chocolate
      Crock Pot Hot Chocolate
    • close up of a rib eye roast dinner on a white plate with a stripped blue linen on a light cream surface
      Juicy Ribeye Roast Made Easy

    Featured

    featured in confessions of a baking queen

    Footer

    Join the CBQ Community

    • Sign Up! for emails and updates
    • Join our Community on Social Media
    • Instagram, Facebook & Pinterest

    Check Out Google Web Stories

    About

    • Privacy Policy
    • About Elizabeth
    • Contact

    Resources

    • The Best Baking Tools
    • Cheesecake Recipes
    • Brownie Recipes
    • Cake Recipes
    • Shop My Favorite Products & Tools

    ↑ back to top

    As an Amazon Associate, I earn from qualifying purchases. Thank you for supporting Confessions of a Baking Queen.

    Copyright © 2026 Confessions of a Baking Queen

    2.3K shares