An easy and delicious recipe for 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.
If you’re looking for basic Vanilla Creme Patissiere, check out my post right here.
Learning how to make pastry cream is a basic skill that any type of baking requires because Pastry Cream is the basis for many desserts. I’ve talked about all of that and covered the basic tips and the recipe for Vanilla Creme Patissiere (Vanilla Pastry Cream) in this post right here. Today I’m sharing the recipe for Chocolate Creme Patissiere (Chocolate Pastry Cream), perfect for chocolate pudding, eclairs, profiteroles, and other types of pastry.
I have used both cocoa powder as well as bittersweet chocolate to make to make this chocolate pastry cream. The cocoa powder adds a deep chocolate flavor, while bittersweet chocolate enhances that flavor. The cocoa butter in bittersweet chocolate makes the chocolate creme patissiere richer. So the combination of the two types of chocolate ensures that your chocolate pastry cream has great depth of chocolate flavor as well as creamy richness.
Because of the bittersweet chocolate in the pastry cream, this recipe yields a slightly thicker chocolate pastry cream than its vanilla counterpart which I previously shared. That’s due to the cocoa butter in it, which is a solid at room temperature. I also add extra milk (compared to the classic, vanilla pastry cream) to keep the custard creamy and smooth.
I also made something quite similar to chocolate creme patissiere in this no bake chocolate and raspberry pie that I shared before. The filling for that pie is a chocolate pudding which is basically a chocolate creme pat, BUT richer (with more egg yolks and butter), and made with more chocolate and no cocoa powder.
You can use either of these two recipes for chocolate pudding. The chocolate creme patissiere that I’m sharing here is thicker and therefore can be piped on or used to fill any type of pastry. It’s perfect for trifles, chocolate cream puffs (profiteroles filled with chocolate pastry cream), eclairs, and even no bake pies.
And with a few additional ingredients, you can transform your chocolate creme pat into other delicious flavors as well. This chocolate pastry cream recipe is the base of mocha pastry cream, bourbon/rum chocolate pastry cream, cinnamon chocolate pastry cream, and jaffa pastry cream (chocolate orange pastry ream). All of these variations are included in the recipe below.
Looking for more recipes?Sign up for my free recipe newsletter to get new recipes in your inbox each week! Find me sharing more inspiration on Pinterest and Instagram.

Chocolate creme patissiere (Chocolate pastry cream)
Ingredients:
- 2 ¼ cups milk (Or a plant based milk like coconut or almond)
- 2 tsp vanilla
- 2 tbsp cocoa powder
- 3 egg yolks
- 1 egg
- ½ cup sugar
- 2 ½ tbsp cornstarch
- ¼ tsp salt
- 6 oz bittersweet chocolate
- 2 tbsp butter, softened (Or vegan butter)
Instructions:
- Add the milk and vanilla into a saucepan. Heat the milk over medium high heat and bring it to a boil.
- While the milk is being heated, place the sugar, egg and yolks, cornstarch, cocoa powder and salt in a bowl. Whisk until you have a thick, smooth mix. Place this egg mix on a towel or napkin (to prevent it from slipping), and then set it aside until the milk comes to a boil.
- As soon as the milk starts to boil, remove it from the heat. Slowly pour about one 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 2 - 5 minutes (depending on the heat level).
- While whisking, let the custard release some bubbles (come to a boil gently). When the first bubbles break the surface, lower the heat to low and immediately add the bittersweet chocolate chips. Whisk until the chocolate is completely melted.
- Remove from the heat and add the butter. Whisk in the butter, until that too is completely mixed into the custard.
- 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.
- Let the custard cool down to room temperature and then let it chill in the fridge for a few hours, until it’s completely chilled.
- Use as needed after the chocolate pastry cream has been chilled. You may need to whisk the pastry cream to make it smooth again before use.
Tips & Tricks
- For a richer creme patissiere, you can substitute the whole egg with 3 egg yolks (6 egg yolks in total).
- For a thicker consistency add only 2 US cups (480 mL) milk. This consitency is even thicker and is good for piping shapes that are stiffer than this recipe.
- Mocha Pastry Cream - Instead of the vanilla (or in addition to the vanilla) - add ½ tsp of instant coffee granules. Allow the instant coffee to dissolve in the milk and then proceed with the recipe.
- Bourbon Chocolate Pastry Cream - Use ¼ cup less of the milk/half and half for the custard. Add 3 tbsp of bourbon along with the butter and whisk it in until well mixed with the custard.
- Jaffa Pastry Cream - Add 1 tsp orange extract along with the vanilla extract and then proceed with the recipe.
- Cinnamon Chocolate Pastry Cream - Add ½ tsp cinnamon along with the vanilla into the milk and then proceed with the recipe.
“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.”
If you liked this chocolate creme patissiere (chocolate pastry cream) recipe, don’t forget to subscribe for new (and free) recipes by entering your email address on the side bar (and get all these recipes delivered straight to your inbox), so you don’t miss out on a thing. You can find me on FACEBOOK, TWITTER,INSTAGRAM, PINTEREST, YOU TUBE and GOOGLE-PLUS too.
Ben says
Hi, your title says vegan but the egg yolks…
Is there a substitute you can recommend for the egg yolks?
Dini says
Hi Ben
I’m not sure where my recipe states that it’s vegan. Could you direct me to where I have mentioned this?
Unfortunately this recipe isn’t vegan due to the eggs.
You can still make vegan pastry cream by using cornstarch as a thickener and using plant based milk, but it would be difficult for me to recommend how much cornstarch to use to get the same consistency. I recommend following a vegan pastry cream recipe for correct amounts.
Vanessa says
Great base for the filling I used in my Swiss roll cake! I added stabilized whipped cream and chocolate flavored rum, it was excellent!
Michele says
Just made this recipe to use inside my grandsons birthday cake and, OMG! I CANT STOP EATING IT. I hope I have enough left for his cake. absolutely delicious!
Rabiya Moin says
Hi Dini! I absolutely lovee making this recipe. It’s easy and turns out perfectly luscious every time. I wanted to ask if it can be stored for longer (in the freezer)? If so, how?
If not, could you tell me how to halve this recipe? As it uses 3 egg yolks and 1 egg, I’m not able to figure out how to make a smaller batch. Thanks!
Andrew Milam says
I dont know why the recipe doesnt call for only egg yolks to begin with. And yes, I do want it thicker… what else would you use a weaker pastry cream for? I could just make pudding. Which is was just happened… thanks
Dini says
Hi Andrew
I’m not sure what happened, but this is a REALLY thick pastry cream. It sets completely while cooling and needs to be whisked to make it pipeable again. I usually add some whipped cream to lighten it up as well.
If it didn’t thicken up for you, it could be because the corn starch wasn’t cooked enough to thicken the pastry cream. This recipe already uses 3 egg yolks as well.
vicky litchford says
I use this recipe all the time! I like to mix in whipped cream to lighten up the texture when I put it in cream puffs. With or without it though, it’s delicious!
Dini says
I’m so glad you enjoy the recipe Vicky, thanks for letting me know! 🙂
Deb says
Easy and delicious!! A keeper.
Bud Carlson says
Great Recipe
Nisa says
Hi Dini, first of all thanks for the recipe!
I want to ask if I want to make a diplomat creme from this recipe, how much ratio between chocolate pastry cream and chantilly cream should I mix? Thank you!
Dini says
Hi Nisa
The amount of chantilly cream really depends on preference. Some add as little as 1/2 cup of heavy cream whipped, while some add more.
I usually add about 1/2 cup of heavy cream, per every cup of milk I use to make pastry cream. So for this recipe, I might add about 3/4 – 1 cup of heavy cream that I will then whip into chantilly.
Also diplomat cream requires gelatin to stabilize as well, so I make stabilized whipped cream (with gelatin). I’ve talked about how I make diplomat cream with my vanilla pastry cream here.
Hope that helps
Nisa says
Thank you for the prompt response.
Yes, the thing is I’m a vegetarian thus can’t consume gelatin. I’m hoping it’s possible to make a diplomat creme using the thick chocolate pastry cream from this recipe, with additional whipped cream. Do you think it’s possible to make diplomat creme without gelatin?
Dini says
Hi Nisa
It depends on what you will be using the diplomat cream for.
Gelatin is added so that the diplomat cream sets with some structure, and the chantilly cream won’t weep when being kept for a few days.
It’s possible that the chocolate in the pastry cream could prevent weeping, but I can’t be 100% sure.
If you are consuming it within 24 hours, it should be fine, but hopefully the richness/thickness of the chocolate will also keep it stable too.
Good luck!
Sarit says
I’m kosher so gelatine in a milk dish is out.
You can use carrageenan or agar agar
Aimee says
This tastes great, but you absolutely can NOT pipe it into eclairs/cream puffs unless you’re using a really wide tip, it’s just too thick. Trying to fill cream puffs with this stuff broke my Wilton Dessert Decorator thing this morning.
Dini says
Hi Aimee
I’m not sure what happened, as this is the same pastry cream that I use to pipe into my eclairs that you can see here.
And the recipe works perfectly as written for that purpose.
But if the pastry cream is overcooked, it can become stiff.
Hope that helps
Danilyn Bacanggoy says
loved this recipe!
Natalie H. says
I came across this recipe, and it looks PERFECT for the chocolate swirled Cruffins I am going to make a test run of.
I wanted to see if by cocoa powder you mean the natural cocoa powder you would find at the store, like Hershey’s brand. I also wanted to ask, can dutch processed cocoa powder be substituted instead of the natural cocoa powder for a deeper, more intense flavor? I know you have to be very very careful on swapping those two.
Thank you so much in advance!
Dini says
Hi Natalie
I use Calleaut cocoa powder (or Cacao Barry cocoa powder). This is dutched cocoa powder.
However you can use any cocoa powder that you prefer as long as it is weighed, and not measured by volume. I find that some natural cocoa powders packs in tighter than dutch cocoa.
Since this is not a baking recipe (and there is no baking soda), the cocoa powder won’t have an effect on final outcome (other than flavor)!
I hope that helps!
Natalie Hutchinson says
This was actually pretty easy. The only mention I would make is to have EVERYTHING ready prior to heating the milk. I made that mistake thinking I could cut my chocolate up while the milk was heating and ended up scorching my first pan. Lol It went great the second time around. It’s beautiful, thick, and rich and oh so decadent!
kathleen stevens says
Can’t wait to make this
Tan SH says
Hi Dini, wonder if this chocolate pastry cream can be used as filling for the layered crepe cake? I am looking for a type of filling tgat doesn’t melt quickly in a hot climate. Thanks!
Dini says
Hi Tan
Sorry for the late reply
I prefer to use a lighter filling for crepe cakes, because custard might be too heavy.
My preferred filling is either whipped cream or diplomat cream. I also stabilize both these fillings with gelatin which makes it more stable too.
I used a salted caramel diplomat cream for my chocolate crepe cake here, where I added gelatin to the filling to make it ore stable.
As for very hot climates, there is still some risk of softening even with the addition of gelatin.
I hope that helps!
Samantha:) says
Can I use this recipe for cream puff filling? thanks!!! 🙂
Dini says
Hi Samantha!
Absolutely they can be!
I used this pastry cream as one of the fillings for my eclairs here.
Debra P says
This recipe was excellent and so delicious! I made it for the filling for a Blitz Torte. Can’t wait to have tomorrow!
Sally says
I love this recipe. It was super easy and came out delicious. I didn’t have any bittersweet chocolate, and where I’m located is getting harder and harder to find in the stores. I had some semi-sweet chocolate chips and some dark chocolate from a chocolate bar that I combined to make 6 oz. It came out so delicious, I’ve never been able to make chocolate custard until now.
Patricia says
Hi Dini, I would love it if you could provide information about the yield of your recipes. I’m making tarts later today (it’s currently 1 am here). I would like to use your pastry cream to fill some but don’t need a whole lot.
Also, do you think this would work with monk fruit sweetener? One of the group I’ll be serving is diabetic and I would like to keep the sugar down so that he can try some of the treats.
Tina B says
This recipe is perfect for cream puff filling, and I love the vanilla version, too. Do you think I could add Nutella during the process to give it that flavor? Maybe cut back in the sugar?
Dini says
Hi Tina
I’m glad that you enjoyed this recipe!
I haven’t tried to make custard with nutella, but you definitely will need to reduce the sugar. You will need to compensate for the texture of nutella in the custard as well. As it will make the custard thicker too.
I hope that helps!
Tina says
It does! I’ll comment again when I try it!
Frances says
Thank you so much for sharing your recipe! Just one thing about the thickness. As I love the mouth feel /texture of your vanilla version. What can I do to make the chocolate version more similar to the thickness level of vanilla version? Thank you.
Dini says
Hi Frances
This recipe is similar to the vanilla one, but is a little thicker because of the addition of both cocoa powder and chocolate. I personally prefer this because I love the richness and chocolatey flavor in the pastry cream. You can reduce cocoa powder and the chocolate slightly, if you want it to be similar to the vanilla, but I still recommend making the recipe as written first and then adjusting the ingredients to you liking the next time!
I hope that helps!
Olea Abrahamsen says
This looks delicious, and I am planning to prepare it soon. If I have any leftovers, can it be frozen?
Dini says
Hi Olea
I personally don’t like to freeze this pastry cream because it’s made with cornstarch. The pastry cream can weep as it thaws out and change the consistency.
It can be kept in the fridge for upto 3 – 4 days.
Hope that helps.
Tiago says
I love your receips!
Thanks for the metric option it helps a lot!
Please keep showing us your awesome cookings!
Thanks from Portugal!
Stacy says
I made the choux buns for the first time, thanks to your recipe, and made both your vanilla and chocolate creme patisserie. I happened to prefer the vanilla in the choux. I have a lot of the chocolate leftover and don’t want it to go to waste. What recommendations do you have to use? All were delicious and my co-workers agreed!
Steph says
Could you use this as a filling for pavlova instead of cream?
Dini says
Hi Steph
Pavlova isn’t traditionally topped with something heavy like pastry cream. Since it is already sweet, whipped cream is the best choice. You can add cocoa powder to whipped cream and make it chocolate whipped cream if you like.
Wendy says
Hi this recipe looks great! I’m planning to use this for my Swiss rolls. Is it possible to make this cream a couple of days in advance and for how long in refrigeratoror freezer? Thank you!
Dini says
Hi Wendy
I personally don’t like to fill my swiss roll with pastry cream as it might be too heavy for the cake. You can make a diplomat cream (A thicker pastry cream, with cream folded in).
Another option is to use stabilized whipped cream, whipped cream cheese, or chocolate whipped cream as I have done in my chocolate yule log cake here. But if you prefer to use chocolate pastry cream, you can make this recipe upto 4 days in advance. I do not recommend freezing this, as it might weep as it thaws.
I hope that helps!
haya says
hi, I wanna ask if I can replace the chocolate powder with a chocolate bar
Dini says
Hi Haya
This recipe uses both cocoa powder and chocolate. The cocoa powder helps to thicken the pastry cream. You can substitute it with chocolate, but the cocoa flavor might be a little less and the pastry cream consistency will also be less thick.
Perl says
Excellent recipe. how would you make a peanut butter version?
Ginny says
Where do I begin to tell you how much I love this recipe. I’m a pastry chef and usually make vanilla pastry cream, but needed a chocolate one for a birthday cake. I tried another recipe earlier and it just wasn’t good and threw it out. I hate wasting ingredients, but it wasn’t worth keeping. Then I found your recipe. Wow, what a difference. I’ve had a lot of pastry creams in my life, but never one that was so silky and chocolatey as this one. I can’t wait to share it with my girlfriend whose birthday it is. She is gonna love it too. Thank you and I look forward to checking out the rest of your website and recipes. ♥
Ginny says
I forgot to rate it. I’d give it 10 stars if that was an option.
Mariann says
Me encantó esta receta, que rica! Tengo una consultan que hacerte Diny, y es que me da vueltas la cabeza, en el reality show Bake off la creme de la creme escuché un termino que no conocía, dijeron algo así como “cremug ” o cremud o algo así, me gustaría saber de que se trata, Saludos y gracias…
christien says
can i use a whipping cream too? if yes, how much the portion of it and milk?
Dini says
Hi Christien
You can use cream if you like. It would make the pastry cream richer and a little thicker. I have made this with half and half which is 10% fat.
You can replace 50% of the milk with cream if you like.
christien says
thanks for the reply Dini! i will try it this weekend
Sanaa says
Could this be used for frosting a chocolate cake?
Dini says
Hi Sanaa
I wouldn’t use as frosting. It is too soft to be used as a frosting.
It can be used as filling, IF you use buttercream as a dam at the edge of the cake layer.
Hope that helps!
Amanda says
Hola Mariann! Creo que estas hablando de un “cremeux”, qual se parece mucho al pastry cream (la receta aqui). Es como un “pudding” en ingles, si lo conoces. Técnicamente, un cremeux es un creme anglaise con chocolate. Saludos!!
Werner Louis Timm says
Did not make it yet but looks excellent.
Iara says
MARAVILHOSO!!!
Liz D says
Thank you so much for this recipe. I love baking and my son has a significant milk allergy, so you can imagine the struggle! Seeing the alternates listed gave me the confidence to try this and it was amazing! No one would know it’s dairy free by taste. It will be my new go to!!
Dini says
I’m so happy to hear your son was able to enjoy the dairy free version Liz, thanks so much for letting me know! 🙂
farah says
i’ve made it. i love it so much. thank you for the recipe though. Do i need to mix with chantilly cream before using it as my cream puff filling?
Dini says
Hi Farah
You can use it just as it is, but also mix it with chantilly cream too! The filling as it is is richer and thicker, but when mixed with chantilly it will be lighter. I use both versions for my eclairs. There’s no recipe for the filling, but you can see the difference in the photos.
I hope that helps!
Billy Gordon says
Forgot to rate on my review.
Billy Gordon says
Great, great recipe. The best chocolate cream I ever ate. Smooth and thick. Worth the effort.
Leah Murphy says
Excited to try this one today, but just realized I’m out of baking chocolate and can’t get to the store today. Can I just use cocoa? I’ve done vanilla pastry cream, but this is my first time doing chocolate.
Dini says
Hi Leah
Unfortunately I haven’t tried this recipe with just cocoa powder. Cocoa powder will thicken the custard a lot, so adjustments need to be made to make sure there’s enough chocolate flavor and that the custard won’t be too thick. Unfortunately, I’m not sure how much cocoa powder can be added instead of the chocolate while still keeping the same consistency.
A cocoa powder custard recipe might be more successful, as then you will know for sure that you will get good results.
Hannah says
Hi! I tried this recipe and I really really love it! Would you know how I could turn it into diplomat cream so that I can turn it into a filling for cream puffs? Thanks so much!
Dini says
Hi Hannah
You can very easily make diplomat cream with stabilized whipped cream. To make stabilized whipped cream, you need to whip the cream mixed with dissolved gelatin.
I use 1/2 – 1 tsp of gelatin per 1 cup of cream (before whipping). I bloom the gelatin in about 2 tbsp of water, and then heat it for a few seconds in the microwave to dissolve the gelatin (without allowing it to boil). Then I pour this gelatin in the whipping cream while I’m whipping the cream.
Then just add as much or as little of the stabilized cream you want to add to the pastry cream to get the consistency and taste you like 🙂 You can read more about how I made salted caramel diplomat cream here.
I hope that helps!
Nico says
Terrific — this is my go-to recipe for pastry cream (aka pudding, in my house).
The original is great, and I’ve tried several additions/alterations for fun — e.g. tequila instead of bourbon (yes! Especially if you’re filling a pastry and have other compatible flavors).
I’ve subbed cocoa powder & butter for 1/6 of the chocolate with no problem.
I’ve subbed 1/16 tsp stevia for 1/2 the sugar, also with great results that don’t taste of stevia.
And I’ve split the cream into halves and thirds and added flavorings while hot, again, with good results.
Thanks!
Joan says
Love your recipes
Barbara Fortein says
I loved this, making it now