Vanilla custard squares layer soft, buttery vanilla cake with thick homemade custard and a delicate honey glaze. The golden cake has a tender crumb, while the pale yellow filling adds a smooth, creamy center. Slice the chilled dessert into generous squares for an afternoon treat, a family gathering, or a make-ahead dessert table.
This version uses two homemade cake layers baked in separate square pans. The filling cooks on the stovetop, and the assembled cake chills until the custard is firm enough to slice. Simple ingredients do most of the work; careful mixing, complete cooling, and a patient chill make the difference.
What Are Vanilla Custard Squares?
These vanilla custard squares are a chilled cake dessert made with two layers of homemade vanilla butter cake, a thick vanilla custard filling, and a thin honey glaze. Bake the cake layers separately, cook the custard until thick, assemble, and refrigerate for at least four hours before slicing.
The filling is pastry cream: an egg-and-milk custard thickened with cornstarch. It holds a layer between the cakes while remaining creamy when served.
Some custard squares use pastry. This recipe specifically uses soft cake layers, giving the finished dessert a tender texture throughout.
Why You’ll Love This Recipe
- Homemade cake layers: A straightforward batter made with melted butter and pantry ingredients.
- Generous vanilla filling: Egg yolks, milk, and cornstarch create a thick, smooth custard.
- No cake splitting: Baking two separate layers avoids cutting one cake horizontally.
- Make-ahead convenience: Prepare the dessert the evening before and let it chill overnight.
- Simple finishing: A thin honey glaze adds shine without a separate batch of frosting.
- Flexible portions: Cut nine generous squares or 16 smaller pieces for a dessert tray.
Recipe at a Glance
| Detail | Amount |
|---|---|
| Yield | 9 generous squares |
| Baking pans | Two 8-inch square metal pans, at least 2 inches deep |
| Preparation | About 35 minutes |
| Cooking | About 35 minutes, including cake and custard |
| Cooling allowance | About 1 hour |
| Chilling | At least 4 hours |
| Total time | About 6 hours 10 minutes |
| Oven temperature | 350°F / 175°C, conventional |
| Texture | Tender vanilla cake with thick, creamy filling |
Times are approximate, and some cooling and preparation can overlap. Allow additional cooling if the cake layers are still warm.

Ingredients for Vanilla Custard Squares
For the Cake Layers
- 2 cups all-purpose flour (240 g), spooned and leveled
- 1 cup granulated sugar (200 g)
- 1 tablespoon baking powder, approximately 12 g
- ½ teaspoon salt
- ¾ cup whole milk (180 ml), at room temperature
- ½ cup unsalted butter (113 g), melted and cooled until lukewarm
- 2 large eggs, at room temperature
- 1 teaspoon vanilla extract
All-purpose flour: Weigh it if possible. Scooping flour directly from the container can pack too much into the cup and make the cake layers dry.
Baking powder: Use baking powder rather than baking soda. Measure a level tablespoon and distribute it thoroughly through the dry ingredients.
Melted butter: Let the butter cool until lukewarm before mixing. It should remain liquid without feeling hot.
Milk and eggs: Room-temperature ingredients combine more smoothly with the melted butter. Very cold milk can cause the butter to form small clumps.
Vanilla: Use the teaspoon listed for the cake and a separate two teaspoons for the filling. Alcohol-free vanilla is an option.
For the Vanilla Custard Filling
- 2 cups whole milk (480 ml)
- 4 large egg yolks
- ½ cup granulated sugar (100 g)
- ¼ cup cornstarch (32 g)
- ⅛ teaspoon salt
- 2 tablespoons unsalted butter (28 g)
- 2 teaspoons vanilla extract
Whole milk supplies body, egg yolks add richness, and cornstarch helps the custard hold its shape after chilling. Butter adds flavor and a smooth finish.
Use fine white cornstarch, also called cornflour in some countries. Yellow cornmeal is a different ingredient.
For consistent thickening, weigh the 32 g cornstarch rather than estimating a heaped scoop.
For the Honey Glaze
- 2 tablespoons honey (42 g)
- 1 teaspoon hot water
The glaze is a thin finishing coat that gives the cake a light sheen and a little extra sweetness. Brush it on sparingly so it does not soak through the upper layer.
Equipment You’ll Need
Gather two 8-inch square metal cake pans, parchment paper, mixing bowls, a whisk, a flexible spatula, a cooling rack, a medium saucepan, and a pastry brush.
Use one cleaned baking pan for assembly. A fine-mesh sieve is useful for smoothing small custard lumps, and a sharp knife helps produce clean portions after chilling.
How to Make Vanilla Custard Squares
1. Prepare the Oven and Pans
Preheat the oven to 350°F (175°C) using a conventional setting.
Lightly grease two 8-inch square pans. Line the bottoms with parchment paper so the thin cake layers release easily.
Position the pans on the center rack with space around them for airflow.
2. Mix the Dry Ingredients
In a large bowl, whisk together the flour, sugar, baking powder, and salt until evenly distributed.
Break up any visible pockets of baking powder before adding the liquids.
3. Combine the Wet Ingredients
In a separate bowl, whisk the room-temperature milk, lukewarm melted butter, eggs, and vanilla until combined.
Pour the wet mixture into the dry ingredients. Gently whisk or fold until the batter is evenly combined and no dry flour remains.
Scrape the bottom and sides of the bowl, then stop mixing. Prolonged beating is unnecessary for this batter.
4. Divide and Bake the Cake Layers
Divide the batter evenly between the prepared pans and smooth it into the corners. Weighing the filled pans helps keep the layers similar in thickness.
Bake for approximately 20–25 minutes, beginning to check at 18 minutes.
The cakes are ready when:
- The tops are lightly golden.
- The centers spring back gently when touched.
- A toothpick inserted into the middle comes out without wet batter.
Ovens and pans vary. Use these doneness cues rather than removing the cakes solely because the timer has ended.
5. Cool Completely
Let the cakes rest in their pans for about 10 minutes.
Carefully turn them onto cooling racks, remove the parchment, and cool completely. Allow about one hour overall, or longer if needed.
Handle the thin layers gently and do not stack them while warm. If either layer has a pronounced dome, carefully level it once completely cool.
6. Prepare the Custard Mixture
Heat the milk in a saucepan over medium heat until steaming, with small bubbles forming around the edges.
Meanwhile, whisk the sugar, cornstarch, and salt in a heatproof bowl. Add the egg yolks and whisk until combined.
Gradually whisk in about half the hot milk. Pour this mixture back into the saucepan with the remaining milk, whisking as you combine them.
7. Cook the Vanilla Custard
Cook over medium heat, whisking continuously and reaching into the corners of the saucepan.
When the custard thickens and bubbles begin breaking through the center, continue cooking and whisking for one full minute.
Remove from the heat and whisk in the butter and vanilla.
The filling should be thick and glossy. If small lumps remain, press it through a fine-mesh sieve while warm.
Transfer to a wide heatproof bowl and press food wrap directly against the surface. Cool for approximately 20–30 minutes, until lukewarm and thick enough to mound softly.
Avoid assembling with steaming-hot or loose, flowing custard.
8. Assemble the Cake and Custard Layers
Line one clean 8-inch square pan with crossing strips of parchment, leaving enough overhang to lift out the chilled dessert.
Place one completely cooled cake layer in the pan.
Spread the custard evenly over the cake, taking the filling to the edges.
Carefully place the second cake layer on top, golden side facing upward. Lower it into position without pressing hard.
A flat spatula or cake lifter can help support the layer as you move it.
9. Refrigerate Until Set
Refrigerate promptly for at least four hours, preferably overnight.
Cover loosely while any residual warmth escapes, then cover fully once cold.
The filling should be cold and hold its shape before you lift or slice the dessert. Chilling also helps the layers settle together.
10. Glaze, Slice, and Serve
Mix the honey with one teaspoon hot water. Brush a thin layer over the cake top shortly before serving.
Lift the dessert from the pan using the parchment overhang, supporting the base with a spatula if needed.
Cut into nine squares with a sharp knife, wiping the blade between cuts.
Serve chilled for the neatest layers. Let individual portions stand for 10–15 minutes if you prefer a softer cake and filling.
Tips for Soft Cake and Smooth Custard
Weigh the Flour and Cornstarch
Excess flour can make the cake dry, while an inaccurate starch measurement changes how firmly the filling sets.
A digital scale helps keep both parts consistent.
Keep the Cake Layers Even
Divide the batter equally so both pans bake at a similar rate and the finished squares look balanced.
Smooth the batter into the corners without leaving a thicker mound in the center.
Avoid Overbaking
These are relatively thin layers. Begin checking early and remove each pan when its center is baked through.
If one pan finishes before the other, take it out rather than waiting for both.
Cool Before Filling
Warm cake is fragile and can soften the custard.
Both cake layers should be completely cool before assembly. The custard should be lukewarm and thick rather than hot and flowing.
Cook the Custard Beyond Its First Thickening
Wait for bubbles to break through the center, then whisk over the heat for the additional minute.
The filling needs enough cooking to develop its intended consistency.
Allow a Full Chill
Vanilla custard bars need a full chill before portioning. Cutting early can make the filling squeeze out even when the ingredient proportions are correct.
Troubleshooting Vanilla Custard Squares
| Problem | Likely cause | What to do |
|---|---|---|
| Cake is dry | Excess flour or overbaking | Weigh the flour and begin checking the layers at 18 minutes |
| Cake feels dense or tough | Too much flour or prolonged mixing | Measure carefully and stop mixing once evenly combined |
| Cake sinks in the center | Underbaking, inaccurate leavener measurement, or opening the oven early | Use level measures and confirm the center is baked through |
| Filling spreads when cut | Insufficient cooking, inaccurate starch measurement, or too little chilling | Use 32 g cornstarch, cook one minute after bubbling, and chill at least four hours |
| Custard has small lumps | Uneven heating | Whisk constantly and strain the warm filling if needed |
| Layers slide | Components were too warm or the filling was too loose | Cool appropriately and chill thoroughly before moving the dessert |
| Top layer cracks during assembly | Moving a thin cake without enough support | Cool fully and support it with a flat spatula or cake lifter |
More refrigeration can help correctly cooked custard finish setting. It cannot reliably repair missing starch or incorrect ingredient proportions.
Variations and Substitutions
Lemon-Vanilla Custard Squares
Stir one teaspoon finely grated lemon zest into the cooked filling with the butter and vanilla.
Keep the milk quantity unchanged. Lemon juice adds liquid and acidity and is not a direct replacement for zest here.
Vanilla Bean Filling
Use vanilla bean paste in place of the filling’s vanilla extract, following the substitution amount on its label.
The seeds add a speckled appearance to the cream.
Powdered-Sugar Finish
Skip the honey glaze and lightly dust the chilled cake with powdered sugar just before serving.
Use one finish or the other to keep the sweetness balanced.
Smaller Party Portions
Cut the chilled dessert into 16 small squares rather than nine.
Keep the ingredients, pan size, and chilling time unchanged.
Dietary Substitutions
This formula contains wheat, milk, and eggs.
Gluten-free flour, plant-based milk, and egg replacements have not been validated for this version and may change its structure or setting.
Make-Ahead Instructions
The simplest approach is to assemble the vanilla custard cream squares the evening before serving. Refrigerate overnight, then glaze and slice shortly before dessert.
You can also prepare the components separately:
- Cake layers: Bake one day ahead. Cool completely, wrap each layer separately, and keep at cool room temperature overnight.
- Custard: Prepare up to two days ahead and refrigerate with wrap touching its surface. Gently whisk until spreadable before assembling; do not beat until loose.
- Assembled cake: Allow at least four hours of refrigeration before slicing, even if the components were made earlier.
If using custard made two days ahead, serve the assembled dessert within one additional day.
Storage and Freezing
Keep vanilla custard squares covered in the refrigerator at 40°F (4°C) or below.
When assembled with fresh custard, use within three days. If using custard made two days ahead, serve within one day of assembly instead.
Do not leave the filled cake unrefrigerated for more than two hours total, or one hour when temperatures exceed 90°F (32°C). ask.fsis.usda.gov

Can You Freeze Vanilla Custard Squares?
For the best texture, avoid freezing the assembled dessert because the custard may separate after thawing.
The plain cake layers can be wrapped tightly and frozen separately for up to two months. Thaw them while wrapped before assembling with fresh custard.
How to Serve Vanilla Custard Squares
Serve a chilled square on a white dessert plate with coffee or tea.
Fresh strawberries, raspberries, or blueberries on the side add a bright contrast to the vanilla filling.
For a dessert table, cut smaller portions and keep extras refrigerated. Replenish the serving platter as needed rather than leaving the entire cake at room temperature.
If you want softer cake, let individual pieces stand for 10–15 minutes before serving. Avoid heating the assembled dessert in the oven because it can loosen the custard and disturb the layers.
Nutrition Information
One of nine generous squares contains approximately 450 calories, including the honey glaze.
This is an estimate based on generic ingredient values. Actual nutrition varies with ingredients, trimming, and portion size.
The dessert contains wheat, milk, and eggs. Cutting it into 16 portions reduces the calories per piece without changing the whole recipe.
Frequently Asked Questions
Can I Make Vanilla Custard Squares With Cake Instead of Pastry?
Yes. This recipe uses two homemade vanilla cake layers with thick custard between them.
Bake the layers separately, cool completely, assemble with the filling, and refrigerate for at least four hours before slicing.
Can I Bake the Batter in One Pan and Split the Cake?
Baking two separate 8-inch square layers is the recommended method here.
A single deeper cake needs a different baking time and must be thick and sturdy enough to split. That variation has not been validated for this formula.
Why Is My Custard Filling Runny?
Common causes include undercooking, too little cornstarch, extra liquid, or insufficient chilling.
Use 32 g cornstarch, cook for one minute after bubbles break through the center, and chill the assembled dessert for at least four hours.
Can I Use Ready-Made Custard?
Pouring custard is generally too soft to support a layered cake neatly.
Use the homemade filling here or a prepared pastry filling specifically designed to hold its shape after chilling.
Can I Make Vanilla Custard Bars the Day Before?
Yes. Assemble the dessert the evening before, refrigerate overnight, and glaze just before serving.
Keep it covered once fully cold and slice while chilled.
Do Vanilla Custard Cream Squares Need Refrigeration?
Yes. The milk-and-egg filling needs refrigeration.
Keep the dessert at 40°F (4°C) or below and return unused portions to the refrigerator promptly.
More Tasty Recipes to Try
If you enjoy these vanilla custard squares, try more creamy desserts from Optimal Recipes:
- Boston Cream Donuts — Soft homemade donuts filled with vanilla custard and finished with chocolate glaze.
- Old-Fashioned Egg Custard Pie — A comforting vanilla custard dessert with a touch of nutmeg.
- Lemon Marbled Cheesecake Bars — Creamy cheesecake with a buttery crust and lemon-curd swirls.
- No-Bake Lemon Cream Dessert Bars — Chilled layers of cream cheese filling, lemon pudding, and whipped topping over a crumb crust.
Final Thoughts
Vanilla custard squares bring together soft homemade cake, a creamy vanilla center, and a delicate honey glaze in a dessert that is easy to share. Measure carefully, cool the layers completely, and give the filling enough time to set for the cleanest slices.
Save this recipe for your next gathering! Would you finish yours with glossy honey or a light dusting of powdered sugar?







