Silky smooth and rich vanilla vegan custard, made with only 6 ingredients! No eggs or milk needed. Perfect for eclairs, tarts, donuts and more!

vegan custard in a pot with a whisk, thickened

Custard and pastry cream are traditionally made with lots of eggs, milk and butter. I have tried several recipes, none of which came close to a rich custard/cream. Until now!

Many recipes out there for vegan custard or pastry cream basically taste like weird vanilla pudding… Not at all what I was hoping for.

This vegan custard tastes amazing – it’s rich, SO creamy, vanilla infused and thick, not runny.

Ingredients needed (with substitutions)

  • Full fat coconut milk – You must use canned, full fat coconut milk. Coconut cream works as well, and will result in a thicker cream/custard.
  • Plant milk – I have used soy, cashew and almond milk. Any unsweetened plant milk will work here, if you use sweetened add less sugar so it’s not too sweet.
  • Sugar – Granulated sugar works best, but you could probably substitute a few tablespoons of pure maple syrup for a less sweet custard. Coconut sugar may also work, but the custard will turn brown.
  • Cornstarch – I haven’t had luck with any other thickener, but arrowroot might work. Tapioca starch makes things more stretchy, so I wouldn’t recommend it.
  • Vanilla extract – Use pure extract for best flavor. Or use a freshly scraped vanilla bean.
  • Vegan butter – I have used Melt, Earth Balance and Country Crock with great results.

vegan butter in a pan with custard

How to make it

You will love how easy it is to make! First, whisk the plant milk and cornstarch in a glass measuring cup or small bowl until smooth. This will help the custard be smooth and not have chunks.

In a medium/small pot, add the coconut milk, sugar and plant milk/cornstarch mixture. Turn the heat to medium-high, and whisk until smooth. Bring the mixture to a simmer and continue whisking for about 5 minutes, until thickened.

Remove from heat and stir in the vanilla and vegan butter. It should be smooth and the butter should be completely melted. Place in a bowl and cover with plastic wrap (or parchment paper) to avoid a film developing on the top.

Let it cool for a few hours in the refrigerator. Then use an immersion blender to smooth it out right before using (a hand mixer/stand mixer with whisk or even regular blender works as well).

bowl of pastry cream marble backdrop

Why is my custard a weird texture after cooling?

Don’t worry, the texture will seem a bit rubbery and not as smooth after cooling, this is normal. Simply blend it with an immersion blender, regular blender, hand mixer or stand mixer with a whisk attachment until smooth again. The same thing has to be done with traditional custard.

What is the difference between custard and pastry cream?

Pastry cream is usually thicker than custard, but I have found for this vegan version they can be used interchangeably. If you want a thinner custard, use only 1/4 cup of cornstarch and full fat coconut milk instead of coconut cream. Thicker pastry cream is great for eclairs and donut fillings.

Where can I use vegan custard/pastry cream?

I have several recipes coming up that use it, so be on the lookout for those (subscribe by email so you never miss a recipe!).

  • Vegan Eclairs
  • Vegan Cream Puffs
  • Boston Cream Donuts and other cream filled donuts
  • Fruit tarts
  • Boston Cream Pie
  • Cake fillings

Chocolate pastry cream

For chocolate flavored pastry cream, add 2 tablespoons of cocoa powder when you add everything to the pot at the beginning, then stir in about 6 ounces of vegan chocolate when you add the vegan butter/vanilla.

boston cream donut with custard
Vegan Boston Cream Donuts!
square image of pan of creamy mixture
4.89 stars (18 ratings)

Vegan Custard (Pastry Cream)

Silky smooth and rich vanilla vegan custard, made with only 6 ingredients! No eggs or milk needed. Perfect for eclairs, tarts, donuts and more!
Prep: 5 minutes
Cook: 5 minutes
Total: 10 minutes
Servings: 12 servings


  • 3/4 cup unsweetened plant milk (soy, almond, cashew, etc)
  • 1/2 cup cornstarch
  • 1 can full fat coconut milk (13.5 oz)
  • 1/2 cup granulated sugar
  • 2 teaspoons pure vanilla extract
  • 4 tablespoons vegan butter


  • Whisk the plant milk and cornstarch in a measuring cup or bowl until smooth.
  • To a medium pot, add the coconut milk, sugar and milk/cornstarch mixture.
  • Turn the heat to medium-high, and whisk until smooth. Bring to a simmer and continue whisking for about 5 minutes, until thickened.
  • Remove from heat and stir in the vanilla and vegan butter, until the butter is melted and the mixture is smooth.
  • Place in a bowl with a layer of plastic wrap touching the top of the custard, to avoid a film forming. Place it in the refrigerator for a few hours to cool (you can speed this up by sticking it in the freezer for 30 minutes).
  • Once cool, if it is clumpy at all, use an immersion blender to smooth it out. You could also use a high powered blender, stand mixer with a whisk attachment or a. hand mixer to smooth it out. Use immediately anywhere you'd like, or serve with a spoon and enjoy!


  1. For a thinner custard, you can decrease the cornstarch to 1/4 cup and use full fat coconut milk, not coconut cream.
  2. I have used soy, almond and cashew milk. They all worked well. Make sure to use unsweetened for best results; it may be too sweet if you use a sweetened milk.
  3. I have tried this using full fat coconut milk AND a can of coconut cream, and they both work well. The custard is thicker using coconut cream.
  4. If you need to substitute the sugar, you could likely add a few tablespoons of pure maple syrup instead, for a less sweet custard. Or use coconut sugar, but the custard will be brownish.
  5. You may leave out the vegan butter if needed, but it adds a richness that will be missed. It works without it though.
  6. Chocolate Pastry Cream - Add 2 tablespoons cocoa powder with everything in the pot at the beginning, then stir in 6 ounces of vegan chocolate chips when you stir in the butter.


Serving: 1of 12 servings | Calories: 151kcal | Carbohydrates: 15g | Protein: 1g | Fat: 10g | Saturated Fat: 7g | Sodium: 42mg | Potassium: 91mg | Fiber: 1g | Sugar: 9g | Vitamin A: 236IU | Vitamin C: 1mg | Calcium: 26mg | Iron: 1mg
Course: Dessert
Cuisine: French
Author: Nora Taylor
Did you make this recipe?Mention @nora_cooks_vegan_ or tag #noracooks!

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Read my full disclosure here.

Posted In: , , ,

you may also like:


  1. I always use this recipe every time I make mille feuille for my vegan, French brother in law. He always loves it and so do I!

    1. How wonderful that you and your brother in law are loving this recipe! Thanks for your encouraging review! Wishing you happy cooking!

  2. I’ve made this twice, it’s just too thick and dense. I didn’t cook it the full 5 minutes because it was hard to stir any the 2 minute mark. Not sure if there’s too much cornstarch?

    1. You can use less cornstarch if you want a more runny custard, I prefer it thick. Or turn the heat down if it’s getting too thick that fast, and stop when it’s to your liking.

  3. Hi Nora! I’ve got a question for you– my cake layers are made and in the refrigerator, batter tasted amazing, so I know the cake is going to taste great! But on the custard, what do you think about using the new Country Crock Heavy Whipping Cream in place of the plant milk? Was wondering since it is substantially thicker if I might be able to cut down a little on the cornstarch? This was my ex-husband’s favorite for his birthday, so I’ve made many Boston Cream Pies the traditional way!
    Just discovered this heavy whipping cream at my local Walmart of all places, so am very excited to try it out. My daughter’s birthday is tomorrow, so I would really appreciate your opinion on this substitution! I use a LOT of your recipes btw, so thank you very much for all the legwork and testing you’ve done converting classic recipes and comfort food to a vegan format!

    1. Hi Debbie! Thank you for enjoying my recipes, I love to hear that. 🙂 You might be able to use the Country Crock Heavy Whipping Cream in place of plant milk. It’s hard for to me know without doing some testing. I’m sure it will work, but I don’t know how much you could cut back on the cornstarch, but you might be able to. If you do try it, I’d love to hear how it works out! Thank you again and I hope to hear from you soon.

      1. Thanks for reply, Nora. After I wrote, I realized I asked the wrong question. Instead of subbing for the plant milk, I subbed the Country Crock plant-based heavy cream for the canned full-fat coconut milk, and it turned out great! This was for my daughter who isn’t fond of coconut flavor coming through in so many vegan desserts, so this was perfect. I did not attempt decreasing the cornstarch this time but believe I could go down a smidge. Thanks again for a great recipe!

  4. It tastes great and is as thick as I wanted it to be but it has a gray tint to it. I used coconut cream for a thicker texture as suggested, but that was white, almond milk, and earth balance butter. Any suggestions?

    1. The color will depend on your vanilla extract, kind of milk you used, and even the vegan butter type. If you want it to be whiter, use clear vanilla extract and Miyoko’s butter which is very white.

  5. This was sensational! I made the Boston cream cake for my birthday and thus made the custard the night before, and put it in the refrigerator.
    When it was time to layer the cake I took the custard out to let it get to room temperature and then used an immersion blender just like the instructions say!

    It brought the texture right back and the custard was stiff enough to hold the final layer of cake on top! SO in love with all Nora’s recipes!

    1. Hi Aristomelia. Your cake sounds dreamy! Happy birthday to you! Thanks for your awesome feedback and review! I appreciate you using my recipes! Happy cooking!

  6. Wow! Delicious!
    I just made this today to use for the Boston cream pie I’m making for my wife’s birthday. This recipe came out nice and thick and I’m sure it will hold up to the second layer of cake on top. Thank you so much for this great recipe!

    1. Hi Roy. You are welcome! How wonderful you are making a pie for your wife’s birthday! I’m so glad to hear the custard came out wonderful! Thanks for your terrific feedback! Enjoy the pie, and happy birthday to your wife!

    1. Hi Mari. This custard would be really good layered in a baked pie shell or tart shell with berries, ganache, or whipped cream on top. If you’re asking if it can be mixed into pie dough, then no, it will not work. I hope this helps!

  7. I used this filling for a gluten free vegan Boston cream pie and it was amazing. You could taste the coconut milk as an aftertaste in the custard final product; once it was added between the layers of cake, it was not discernible. Some of the products used included: Westsoy soy milk, Goya Coconut milk and Country Crock olive oil blend. According to my family you couldn’t tell that the final product was “special” for my allergies.

    1. Hi Sarah. I am so happy that you loved the custard! Thank you for sharing your tips and your great feedback! Your Boston cream pie sounds delicious!

  8. Does it taste really coconutty? I have LOVED every single recipe of yours I’ve tried, but I’m worried that the coconut milk and/or cream will make it just taste like coconut

    1. There’s a hint of coconut I would say. If you really don’t like the taste, you could probably sub all soy or another dairy free milk for the coconut milk. It will be a bit thinner, but it will work. Glad you have loved my recipes, thank you!

  9. This sounds fabulous! Wondered about subbing arrowroot starch for cornstarch–think it would work okay? Thanks in advance.

      1. I just made it with arrowroot and it seems to have worked. My only issue is it turned out looking like an off white dark cream colour. Is it supposed to be white white?

        1. The color will depend on your vanilla extract, kind of milk you used and even the vegan butter type. If you want it to be whiter, use clear vanilla extract and Miyoko’s butter which is very white. But it’s fine if it’s off white as well.

  10. I made this with unsweetened oat milk, coconut cream, vanilla, corn starch, flieischmann’s unsalted margarine and the sugar. It was good, but the coconut taste still came through. Then I added a 1/4 teaspoon of Lorann oils flavoring bavarian cream. Hot damn, that really did the trick. I had to keep my hubby from eating it all before I could get the cake made.

    1. Hi Barbara. Thank you for your feedback and ideas! I’m thrilled the custard came out delicious for you!

  11. Hi Nora,

    I can’t wait to try the vegan eclair and cream puff recipe!
    I was wondering if you’ve ever tried to freeze the pastry cream? With or without the chocolate variation.

      1. Hi Nora! I’m wondering if I can freeze this and you said in one comment it gets super weird and in this one that it freezes quite well? Can you clarify?


        1. Sorry for the confusion, Lisa! You CAN freeze the pastry cream, although the texture does thicken and change once thawed. Just blend it a little and it should be good as new!

  12. Made it but it was more like the cornstarch putty the kids make. Way too much corn starch. If I make it again I will definitely use less and double the vanilla.

    1. Mine was very thick when it came out of the fridge so I blended it in my high speed blender and then it was perfect. I would add more vanilla too.

Leave a Reply

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

Recipe Rating

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