This post may contain affiliate links. Please read our disclosure policy.
This creamy homemade custard is a classic dessert you can make from scratch in minutes. Smooth, thick, and perfectly sweet, it’s wonderful on its own or as a filling for cakes, pies, and pastries.
Think of it as your all-purpose vanilla pastry cream – a simple base that turns into endless variations, from homemade lemon custard to banana or even ice cream custard.
There’s something so comforting about whisking milk, egg yolks, and vanilla together over gentle heat until the mixture turns silky and golden.
This quick homemade custard is exactly that kind of magic – easy, cozy, and foolproof.
Table of Contents
What Is Homemade Custard
- Homemade custard, sometimes called boiled custard or pastry cream, is a mixture of milk, sugar, egg yolks, and cornstarch cooked slowly until thick. It’s the base for many desserts like trifles, éclairs, tarts, and puddings.
- This version doesn’t need a double boiler; it’s cooked right in a saucepan. The result is a smooth, rich homemade vanilla custard that thickens beautifully and holds up for cakes or spoon desserts.
Ingredients for Homemade Custard Recipe
- large egg yolks
- whole milk (you can also use ½ milk, ½ cream for a richer version)
- sugar, divided
- cornstarch (or cornflour)
- vanilla extract or 1 vanilla bean
- unsalted butter, softened
Optional: pinch of salt, lemon zest for lemon custard, or mashed banana for homemade banana custard.
Variations For Egg Yolk Custard Recipe
- Homemade vanilla custard: Use a vanilla bean or pure extract.
- Homemade lemon custard: Add a teaspoon of lemon zest and replace some vanilla with lemon juice.
- Homemade baked custard: Pour into ramekins and bake in a water bath at 325°F until set.
Tips And `troubleshooting
Tips for Success
- Don’t walk away once the custard is cooking. It thickens fast and scorches faster. Keep whisking the entire time.
- Use whole milk. Lower-fat milk makes a thinner custard. For extra richness, replace half the milk with heavy cream.
- Strain through a fine mesh sieve even when it looks smooth — makes the texture noticeably silkier.
- Press plastic wrap directly onto the surface — touching it, not just covering the bowl — to prevent a skin.
- Add butter off the heat while still very hot. Gives a glossy, smooth finish.
Troubleshooting
Custard too thin: Didn’t reach 185°F. Return to medium-low heat and whisk 1–2 more minutes. Don’t rush with high heat.
Custard lumpy or grainy: Heat too high or left without stirring. Strain while warm or blend with an immersion blender.
Skin on top: Plastic wrap wasn’t touching the surface. Press it directly onto the custard, no air gap.
Dairy-free: Oat milk is the closest substitute. Full-fat coconut milk also works.
Why You’ll Love This Homemade Custard
• Thick, creamy texture that’s never watery
• Simple ingredients and ready in under 20 minutes
• Great as a filling for pastries or cakes
• Easy to adapt for lemon, banana, or vanilla flavor
• Naturally gluten-free
How to Serve Custard
Serve this quick homemade custard with fresh fruit, inside cream puffs, between cake layers, or chilled in small cups with berries. It’s also the perfect base for banana pudding, trifles, and other classic desserts.
More Recipes You’ll Love
- Medovik Cake
- Cake in a Jar
- Lemon Posset
- Pum kin Magic Custard Cake
- Vanilla Bean Ice Cream
FAQ About Homemade Custard
They refer to the same thing. Pastry cream is the professional French term (crème pâtissière), while custard is the familiar home-cooking name. A thin pouring custard like crème anglaise is different — much less starch, stays pourable rather than thick and pipeable.
You can, but the result will be lighter in color, less rich, and slightly less silky. Egg yolks give custard its golden color and creamy body. If substituting, use 2 whole eggs in place of 4 yolks.
Whole milk gives the best texture. 2% works but makes a slightly thinner custard. For extra richness, replace up to half the milk with heavy cream. For dairy-free, oat milk is the closest substitute.
Mira’s Note
This is one of those foundational recipes that makes everything else easier. Once you’re comfortable making it, eclairs, fruit tarts, Boston cream pie, and layered cakes all become straightforward — the filling is the same every time. Take your time on the stovetop, keep whisking, and trust the process.
If you make it, I’d love to hear how it turned out — leave a comment below!

I’m planning on using this as a cake filling. Can this be made ahead of time? I’m not exactly sure when I’ll need it, but would like to have it made and ready for when I do need it. I just wasn’t sure how long it’s good for in the fridge or if it can be frozen? Thank you!
Hi,
No more than 1 day in advance. I wouldn’t freeze it as the texture may change when defrosted.
I figured as much, but thought I’d ask in case! Thank you!
I’m wondering if this works with coconut milk, coconut cream or other milk substitutes. I have a lactose issue. I would like to give this a try. I have lots of egg yolks in my freezer and would love to use them up instead of throwing them.
I have not tried it with coconut milk, but I’m going to. I believe it is going to work.
Made this as I had 4 leftover egg yolks. Really quick, easy and delicious. I found instructions easy to follow. Not too sweet for me!
Thanks for your comment! Have a great day!
I wanted to make a fruit tart with a pastry base and tried this for the first time, using 2 percent milk and only 1/3 of a cup of sugar after reading the reviews. It worked perfectly and tastes delicious. I am waiting for it to cool in the pan before putting it in the pastry case and then into the fridge to get really cold and set. I will cover it with whipped cream, then strawberries and blackberries. Thanks so much for this great and easy recipe!
Hi, I want to make Nanaimo Bars, however the recipe calls for custard powder and I would prefer to avoid that. Can I use this custard recipe? Would it be think enough? Can it be made thicker? Thanks!
Yes, the recipe will work i don’t know what amount of custard does the other recipe call for?
The recipe calls for 2 tbsp custard powder, but it’s ok if I have too much as I could use any leftovers for something else. Thanks for your help 🙂
Would be nice if you gave the ratio instead of just telling us to try again with a better ratio
I gave you the recipe. If it doesn’t work for you, you can try any other recipe on the internet. Have a great day!
I read reviews and seen where many felt there is too much sugar. The amount didn’t sound like too much and I believe following the recipe as written is important the first time making any item, therefore, I followed your recipe to the letter and wouldn’t change anything. It is really fabulous.
What I don’t agree with is where the recipe says it makes 8 servings. The recipe only uses 1 2/3 cup of milk, therefore you make less than 2 cups of custard. It was perfect to go between two eight inch layers of cake, but none leftover to eat!!!
The step by step instructions are written very well. I would suggest that under ingredients, either change 1 ounce butter to 2 tablespoons or add it in parentheses. I did make a notation on my recipe because I will be making this again and again. It’s a keeper for sure.
Hi Sherri,
Thank you for your thoughtful comment! I’ve corrected the ingredients, so it is easier to understand. And the servings, too.
Smooth, creamy, easy to halve (for those of us who don’t need much but wish to satisfy a craving!), and definitely sweet, especially if eating as a plain custard. Nice thing about sweet, is it’s personal and adjustable. Adding this to my saved recipes. Thank you!!
Thank you so much and I’m happy you left a comment! I agree about the sugar and I’m going to make sure I let everyone know is slightly on the sweet side, but the amount could be altered to everyone’s taste.
There’s so much sugar it overwhelms what should be a beautiful subtle egg based custard. If I made any other recipes from this cook I would start by halving any sugar so you get flavour.
Thanks! Don’t be so quick judging the cook by a single recipe in the web!
This was DELICIOUS! I made this as a filling for some homemade Paczki I made this past weekend.
My only concern was that I didn’t want to to leave the pastries out too long since this is an egg based filling. I’m going to make some donuts next weekend, and would like to use this again.
Do you think it’s okay to fill the donuts and leave out a room temp for a few hours? Or should I keep them refrigerated as.much as possible. Thanks!
Thanks! Yes, for the donuts, for a few hours is fine, you may have to refrigerate them for longer.
perfect… pay close attention to instruction.