Zimt

Custard Filling in Cake: What It Is and How It Sets

· 6 min read · Cakes

In this article
  1. What Actually Goes Into Custard Filling
  2. How Custard Filling Differs From Pastry Cream and Pudding
  3. How to Cook Custard Filling So It Sets Without Curdling
  4. Using Custard Filling Between Cake Layers
  5. Storing Custard Filling and Keeping It Safe
  6. Flavoring Custard Filling Without Breaking It

Custard filling is a soft, spoonable mixture of milk, sugar, egg yolks and a thickener such as cornstarch or flour, cooked until it thickens and then cooled before it goes between cake layers. It is the creamy yellow layer you find in a Boston cream pie or a slice of custard layer cake, thicker than pudding sauce but looser than buttercream. A plain example: "The sponge was split and filled with vanilla custard filling, then topped with a thin chocolate glaze."

What Actually Goes Into Custard Filling

The core ratio is what makes custard behave like custard rather than like sweetened milk. A standard batch uses about 2 cups (480 ml) of whole milk, 4 large egg yolks, 1/2 cup (100 g) of sugar, and 3 to 4 tablespoons (about 24 to 32 g) of cornstarch or 1/4 cup (30 g) of flour. Vanilla, a pinch of salt and a tablespoon or two of butter stirred in at the end round it out.

The egg yolks do two jobs. They add richness and color, and their proteins help the mixture set as it cools. The starch does the heavy lifting on thickness. More starch gives a firmer filling that holds a tall slice; less starch gives a looser one that suits a shallow cake or a trifle-style layer.

Whole milk matters more than most people expect. The fat carries the vanilla flavor and keeps the filling from tasting thin. Skim milk works but produces a noticeably leaner result, and the filling may look slightly grayer.

How Custard Filling Differs From Pastry Cream and Pudding

These three words get used loosely, so here is the practical split.

Pastry cream

Pastry cream is custard filling made with egg yolks and starch, and it is the version bakers pipe into éclairs and cream puffs. It is usually cooked a little firmer and often has butter whisked in at the end for shine and body. If a recipe calls for crème pâtissière, it means pastry cream.

Pudding

Pudding is the same idea cooked softer and served in a bowl. It is not designed to hold its shape between cake layers, so it spreads and soaks in. Do not swap boxed pudding for custard filling in a layer cake unless the recipe says to.

Custard sauce

Custard sauce, sometimes called pouring custard, is thinner still and is served cold or warm over cake rather than inside it. It relies on eggs alone for body, with little or no starch.

The rule of thumb: starch and yolks together give a filling that slices cleanly. Yolks alone give a sauce. Starch alone gives a pudding with no egg flavor.

How to Cook Custard Filling So It Sets Without Curdling

Heat the milk, sugar and salt in a saucepan over medium heat until steam rises and small bubbles form at the edge, about 4 to 5 minutes. Do not let it boil hard.

Meanwhile, whisk the yolks with the cornstarch in a separate bowl until smooth and pale. While whisking constantly, ladle about 1/2 cup (120 ml) of the hot milk into the yolk mixture. This step, called tempering, raises the egg temperature gradually. Add a second ladle and whisk again.

Pour the warmed yolk mixture back into the saucepan and cook over medium heat, whisking without stopping, for about 3 to 5 minutes. The filling is done when it thickens enough to coat the back of a spoon and a whisk drawn through it leaves a brief trail that fills in slowly. It should look glossy, not grainy.

Pull it off the heat and stir in the butter and vanilla. Then push the filling through a fine-mesh sieve into a shallow container. This catches any small curdled bits and gives a silkier texture.

Press plastic wrap directly onto the surface and refrigerate for at least 2 hours, until it is fully cold and firm. Warm custard filling will slide out of a cake the moment you cut it.

If it curdles

Curdling means the egg proteins have tightened into lumps. Take the pan off the heat immediately and whisk hard for 30 seconds. If lumps remain, blend briefly or push the whole batch through a sieve. A curdled filling still tastes fine but will look speckled.

If it never thickens

Either the heat was too low or the starch was undercooked. Return it to medium heat and whisk for 2 to 3 more minutes. Starch needs to reach a simmer to activate fully.

Using Custard Filling Between Cake Layers

Chill the filling completely, then give it a quick stir to loosen it. Spread it about 1/2 inch (1.3 cm) thick, and leave a 1/2-inch border around the edge of the cake so it does not squeeze out when the next layer goes on.

For a two-layer 8-inch (20 cm) cake, plan on about 1 1/2 to 2 cups (360 to 480 ml) of filling. A three-layer cake of the same size takes about 2 1/2 cups (600 ml).

Custard filling is soft, so it needs support. Pipe a ring of stiff buttercream around the outer edge of the cake before adding the custard. That ring acts as a wall and keeps the filling from bulging. Chill the assembled cake for 30 minutes before frosting the outside.

Do not fill a cake with custard more than about 24 hours before serving. The moisture migrates into the sponge and the layers start to slump.

Storing Custard Filling and Keeping It Safe

Custard filling is an egg and milk mixture, so it belongs in the refrigerator at all times. Keep it covered and use it within 3 to 4 days. Do not leave it at room temperature for more than 2 hours.

A finished cake filled with custard should also be refrigerated and eaten within 2 to 3 days. Bring slices out about 15 minutes before serving so the filling softens slightly.

Custard filling does not freeze well. The starch breaks down and the filling turns watery and grainy after thawing. If you need to work ahead, cook and chill the filling, then assemble the cake the next day.

Signs that a batch has gone bad: a sour smell, visible liquid separating on top, or any fizzing. Throw it out rather than tasting it.

Flavoring Custard Filling Without Breaking It

Vanilla is the default, using about 2 teaspoons of extract or the seeds of one pod steeped in the milk. Other additions work if you keep the base ratio intact.

For chocolate, melt 4 ounces (115 g) of chopped dark chocolate into the hot filling after it comes off the heat. For citrus, add 1 tablespoon of zest to the milk as it heats and 1 tablespoon of juice at the end. For coffee, dissolve 1 tablespoon of instant espresso powder in the warm milk.

Alcohol-based extracts and liqueurs go in after cooking so the flavor stays bright. Add them a teaspoon at a time and taste as you go.

One caution: acidic additions such as lemon juice can thin the starch gel if added in large amounts. Keep juice to about 1 tablespoon per batch and add it after the filling has thickened.