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.

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

Glass bowls with ingredients for egg 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.
Homemade custard served chilled with fresh fruit on top.

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

Spoonful of thick vanilla pastry cream showing creamy consistency.

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.

Custard served chilled with fresh fruit on top.

More Recipes You’ll Love

  • Medovik Cake
  • Cake in a Jar
  • Lemon Posset
  • Pum kin Magic Custard Cake
  • Vanilla Bean Ice Cream
A ramekin with homemade vanilla custard and a spoon full of it.

FAQ About Homemade Custard

What’s the difference between homemade custard and pastry cream?

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.

Can I use whole eggs instead of just yolks?

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.

What milk works best for custard?

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!

Spoonful of thick vanilla pastry cream showing creamy consistency.
5 from 62 votes

Homemade Custard Recipe (Pastry Cream)

By Lyubomira L
Homemade Custard Recipe
Prep: 10 minutes
Cook: 15 minutes
Total: 25 minutes
Servings: 4 servings

Ingredients 

  • 4 large egg yolks
  • 1 2/3 cups whole milk
  • 1/2 cup sugar, divided
  • 3 tbsp cornstarch, (or cornflour)
  • 2 tsp vanilla extract
  • 2 tbsp unsalted butter, softened

Video

Instructions 

  • Warm the milk with half the sugar over medium heat until small bubbles form at the edges — just below a boil. Reduce heat to low.
    A saucepan with milk and sugar added to it.
  • Whisk remaining sugar and cornstarch together, then add egg yolks and whisk until pale and smooth. Do this only when the milk is hot and ready.
    A glass bowl with egg yolks, sugar and cornstarch
  • Slowly pour about 1 cup of hot milk into the yolk mixture in a thin stream, whisking constantly.
    A glass bowl with mixed egg yolks, sugar and cornstarch.
  • Pour the tempered mixture back into the saucepan.
    A saucepan with warm milk and sugar on a stove top and a mixture of egg yolks, sugar and cornstarch poured inside
  • Cook over medium heat, whisking continuously, until thick and coating the back of a spoon — about 3–5 minutes. Should reach 185°F (85°C).
    Homemade custard in a saucepan
  • Remove from heat. Stir in softened butter until melted.
    Adding butter to cooked homemade custard
  • Add the vanilla extract and mix well.
    Adding vanilla to cooked vanilla custard
  • Strain through a fine mesh sieve into a clean bowl.
    A fine mesh strainer over a glass bowl to strain egg custard
  • Press plastic wrap directly onto the surface — no air gap.
  • Cool to room temperature, then refrigerate at least 2 hours. Keeps 3 days in the fridge.

Notes

  • don’t mix yolks too early 
  • remove from heat as soon as thick
  • immersion blender for lumps
  • store 3 days plastic wrap on surface

Nutrition

Calories: 415kcal, Carbohydrates: 33g, Protein: 5g, Fat: 29g, Saturated Fat: 17g, Cholesterol: 170mg, Sodium: 259mg, Potassium: 177mg, Sugar: 31g, Vitamin A: 1035IU, Calcium: 156mg, Iron: 0.4mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Additional Info

Course: Dessert
Cuisine: American
Tried this recipe?Mention @cookinglsl or tag #cookinglsl!

You May Also Like:

Hi! I'm Mira.

I share simple, mostly low-carb and Keto recipes, that don't take a lot of time to make and use mostly seasonal, easy to find ingredients. I'm a supporter of healthy eating, but you'll also find some indulgent treats too.

Leave a comment

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

Recipe Rating




178 Comments

  1. 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!

  2. 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.

      1. 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!

  3. 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!

  4. 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!

    1. Yes, the recipe will work i don’t know what amount of custard does the other recipe call for?

      1. 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 🙂

    1. 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!

  5. 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.

    1. Hi Sherri,
      Thank you for your thoughtful comment! I’ve corrected the ingredients, so it is easier to understand. And the servings, too.

  6. 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!!

    1. 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.

  7. 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.

  8. 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!

    1. Thanks! Yes, for the donuts, for a few hours is fine, you may have to refrigerate them for longer.