TechniquePastry & Dessert
How to Make Cream Pie Fillings
You will be able to cook a smooth cornstarch and egg yolk cream filling, temper the yolks without curdling, and set it in a baked shell so it slices cleanly.
- Intermediate
- 8 min read
- About 30 minutes, plus chilling hands-on

Quick answer
Mix the sugar and cornstarch first, whisk in the milk and cook over medium heat, stirring constantly, until the mixture boils. Boil for 2 minutes, then stir at least half of the hot mixture into the beaten yolks before returning them to the pan and cooking briefly. Add butter and flavoring, pour into a baked shell, cool, then cover and refrigerate.
What it is and when to use it
Cream pies are filled after baking. Kansas State Research and Extension's pie guide explains that a cream pie filling is cooked before it goes into a baked pastry shell, and Kansas State University's judging guide describes it as a custard base thickened with both egg yolk and starch or flour, with milk, water or fruit juice as the liquid. Banana, coconut, chocolate and lemon pies all start this way.
The pie guide lists the steps to a smooth filling: mix the sugar and cornstarch thoroughly before adding liquid, stir constantly in a heavy saucepan so it does not scorch, but not so fast that the thickened mixture breaks down, and boil for 2 minutes so the starch cooks and the filling does not taste starchy. Stir at least half of the hot mixture into the egg yolks before they go into the pan; yolks added straight to the hot mixture turn into bits of cooked egg.
A finished filling is smooth and holds a soft shape when sliced. Kansas State's judging guide traces a filling that flows when cut to a mixture not heated long enough before the yolk is added, a grainy one to a burner set too high, and lumps to poor stirring, untempered yolks or cornstarch not mixed with the sugar first.
Use it when
- Banana, coconut and chocolate cream pies.
- Lemon pies thickened on the stove.
- Pies topped with whipped cream or meringue.
- Filling a crumb crust or a fully baked pastry shell.
Do not use it when
- Raw fillings baked in the crust, such as pumpkin, which set in the oven.
- Pies that need to travel or sit out unrefrigerated.
Other ways to do it
- Custard pie fillings: Egg-set fillings baked in the crust.
- Cooking pastry cream: A thicker cousin for tarts and pastries.
What you need
Equipment
- Heavy saucepan: Spreads the heat so the filling does not scorch.
- Wire whisk: The best tool for stirring the filling as it cooks.
- Heatproof spatula: Reaches the corners of the pan.
- Small bowl: Holds the yolks for tempering.
- Fine strainer: Catches any lumps or bits of egg.
- Wire rack: Cools the filled pie before chilling.
Ingredients and preparation
- Cornstarch or flour: Thickens the filling; mix it with the sugar first.
- Sugar: Sweetens and separates the starch granules.
- Milk: The usual liquid; water and fruit juice for lemon pies.
- Egg yolks: Add richness and help set the filling.
- Butter and vanilla: Stirred in at the end for flavor.
- Baked pie shell: Fully baked and cooled before filling.
Keep cream pies cold
- Cream fillings contain eggs and dairy, so cover and refrigerate the pie once it has cooled to room temperature.
Source: K-State Research and Extension (Walnut Creek Extension District): Picture Perfect Pies
Step by step
7 steps, about 30 minutes, plus chilling hands-on
-
Bake and cool the shell
Bake the pie shell fully and let it cool before you cook the filling.
- Why
- The filling goes into a baked shell and is not baked again.
- It is right when
- The shell is golden and crisp all over.
- If it is not
- If the bottom looks pale, bake it a few minutes longer.
-
Mix sugar and cornstarch
Whisk the sugar, cornstarch and salt together in a heavy saucepan before adding any liquid.
- Why
- The sugar separates the starch granules so they do not lump.
- It is right when
- No white streaks of starch remain.
- If it is not
- If lumps appear later, whisk hard or strain the filling.
-
Cook to a boil
Whisk in the milk and cook over medium heat, stirring constantly, until the mixture boils.
- Why
- Constant stirring keeps the bottom from scorching as the starch thickens.
- It is right when
- Large bubbles break the surface of a thick mixture.
- If it is not
- If it scorches, pour it into a clean pan without scraping the bottom.
-
Boil for the full time
Keep the mixture at a gentle boil for 2 minutes, stirring steadily but not fast.
- Why
- Full cooking removes the starchy taste, and fast stirring can break the thickened mixture down.
- It is right when
- The filling is glossy and coats the spoon thickly.
- If it is not
- If it still tastes starchy, cook it a little longer.
-
Temper the yolks
Beat the yolks in a bowl, stir in at least half of the hot mixture, then return everything to the pan and cook, stirring, for about a minute.
- Why
- Warming the yolks gradually keeps them from scrambling and stops the filling thinning as it cools.
- It is right when
- The filling is smooth, with no specks of cooked egg.
- If it is not
- If specks form, press the filling through a strainer.
-
Finish and fill
Off the heat, stir in the butter and flavoring, then pour the filling into the baked shell and smooth the top.
- Why
- Butter and vanilla keep their flavor best when added at the end.
- It is right when
- The filling sits level and glossy in the shell.
- If it is not
- For a meringue top, spread the meringue on while the filling is still hot.
-
Cool, then chill
Cool the pie to room temperature, then cover and refrigerate it until the filling sets.
- Why
- Cream fillings are perishable and finish setting as they chill.
- It is right when
- The filling holds a soft shape when sliced.
- If it is not
- If it flows when cut, boil the starch mixture longer before adding the yolks next time.
What good looks like
Check these before you move on
- The filling is smooth, with no lumps or specks of egg.
- It holds a soft shape when sliced.
- The flavor is pleasing and well blended, with no raw starch taste.
- The crust stays crisp under the filling.
Fix mistakes
What you see, why it happened, what to do
| What you see | Likely cause | How to check | Fix it now | Next time |
|---|---|---|---|---|
| Lumpy filling. | Cornstarch not mixed with the sugar first, too little stirring, or yolks not tempered. | Look for lumps of starch or bits of egg. | Whisk hard, then strain. | Blend the starch into the sugar and temper the yolks. |
| The filling flows when cut. | The mixture was not heated long enough before the yolks went in. | Recall whether it boiled for the full time. | Boil the starch mixture fully next time. | Time the boil before tempering. |
| The filling thins after cooling. | Too little hot mixture went into the yolks, or a lemon filling was heated too long after the juice went in. | Think back to how the yolks were tempered. | Stir at least half of the hot mixture into the yolks. | Add lemon juice at the end and stop heating. |
| Grainy texture. | The burner was too high. | Recall how hard the filling boiled. | Cook over medium heat. | Keep the boil gentle. |
| Too thick, gummy or sticky. | Too much starch or egg yolk, or not enough liquid. | Compare your amounts with the recipe. | Measure the starch and liquid exactly. | Keep to the recipe's proportions. |
| Scorched taste. | The filling was not stirred constantly, or the pan was thin. | Look for dark bits stuck to the bottom of the pan. | Start again in a heavy saucepan. | Stir the bottom of the pan constantly. |
The science, in plain English
A cream filling uses two thickeners. Starch granules swell and thicken as the milk heats, but they only lose their raw taste and reach full strength at a boil, which is why Kansas State Research and Extension's guide calls for 2 minutes of boiling. Egg yolks add richness and set further as they cook, but they scramble if they hit very hot liquid all at once, so a portion of the hot starch mixture warms them first. Steady stirring prevents scorching, but beating a thickened filling hard breaks the swollen starch apart and thins it.
Go deeper
Yolks also carry an enzyme, amylase, that breaks starch down. If the yolks are not heated enough, the enzyme survives and slowly digests the starch, so a filling that looked thick in the pan turns soupy in the refrigerator. Stirring at least half of the hot mixture into the yolks and returning them to the heat brings them hot enough to stop this. Acid weakens starch too, which is why heating a lemon filling after the juice goes in can thin it, according to Kansas State University's judging guide.
Variations
What changes with the ingredient, the tool, the weather and the bake
- Banana cream
- Layer sliced bananas in the baked shell before pouring in a vanilla filling.
- Chocolate cream
- Stir chopped chocolate into the hot filling until it melts.
- Coconut cream
- Fold toasted coconut into the filling and sprinkle more over the top.
- Lemon filling
- Use water and lemon juice as the liquid, adding the juice after the filling thickens.
- Softer cream pudding
- Use a little less starch for a softer cream pudding, which suits custard-style pies.
Practice
One drill, then a real bake
Tempering practice
Make a half batch of filling and boil the starch mixture for the full 2 minutes. Temper the yolks by stirring half the hot mixture into them, then return them to the pan. Chill a spoonful overnight and check whether it stays thick.
Your ticks stay on this device.
Bake along: recipes that use this skill
Check yourself
Answer in your head, then open the answer
1. Why mix sugar and cornstarch before adding liquid?
It separates the starch granules and prevents lumps.
2. Why boil the starch mixture for 2 minutes?
So the starch cooks fully and the filling does not taste starchy.
3. What happens if egg yolks go straight into the hot mixture?
Bits of cooked egg form in the filling.
4. Why might a cream filling thin out after it cools?
Too little hot mixture went into the yolks, so they were not heated enough.
Sources
Updated November 26, 2026
Written from the sources listed. VanillaGoods wrote this lesson in its own words from the references below. If something here does not match what happens in your kitchen, tell us and we will correct it.
- Kansas State University Research and Extension: Judge's Guide for Food and Nutrition Exhibits (4H488)
- LibreTexts (Rink and Thibodeaux, Chef John Folse Culinary Institute, Nicholls State University): 1.6: Custards (Introduction to Baking and Pastries)
- Ohio State University Extension, Sandusky County 4-H: Making Pastries, Its Easy as Pie (#1002)
- K-State Research and Extension (Walnut Creek Extension District): Picture Perfect Pies
- NDSU Extension: Food Storage Guide (FN579)
This lesson is free to read and print. Videos are embedded from YouTube with the official player and belong to their creators. All baking techniques · Video courses · Dessert Encyclopedia




