In this article
Walk into any bakery in Australia, in a city or in a town with one street, and there is a tray of vanilla slice in the glass case. It is a simple thing: a block of yellow custard as thick as three fingers, held between two sheets of flaky pastry, with a layer of icing on top. Australians buy it in a paper bag and eat it standing up, and they will tell you without being asked which bakery in their state makes the best one.
The custard in a vanilla slice is not the kind you pour. It is cooked with a great deal of cornflour, which Americans call cornstarch, until it is so thick the whisk leaves a deep trail, and after a night in the cold it stands up on its own and cuts like a firm cheesecake. That is the first thing that goes wrong at home: a custard that is too soft and runs when the knife goes in. The second is the cutting itself, when the knife presses on the pastry lid and squeezes the custard out of the sides. Both have a plain answer. Here is how to get the custard firm, and how to slice it cleanly.
Why this vanilla slice works
- A full cup of cornstarch. That is what makes a custard firm enough to cut. It must come to a real boil and be cooked for a full minute, or it will not set properly.
- Egg yolks and butter stirred in off the heat. They give the custard its yellow color and rich taste without scrambling.
- Pastry baked flat under a second tray. A weighted sheet stays thin, crisp and level, which gives a neat lid that does not shatter.
- A whole night in the refrigerator. The custard keeps firming for hours. Cut too soon, even a well-made one will slump.
Ingredients
Makes 9 large squares in a 9 inch (23cm) square pan. The slice needs a night in the refrigerator before it is cut. The measurements are in US cups with grams in brackets.
For the pastry
- 2 sheets frozen puff pastry (about 1 pound, 450g, in all), thawed but still cold
For the custard
- 1 cup granulated sugar (200g)
- 1 cup cornstarch (125g)
- 4 cups whole milk (960ml)
- 1 cup heavy cream (240ml)
- 4 large egg yolks
- 4 tablespoons butter (56g), cut in pieces
- 1 tablespoon vanilla extract
For the passionfruit icing
- 1 1/2 cups powdered sugar (180g), sifted
- 2 tablespoons passionfruit pulp with seeds, from 1 to 2 fresh passionfruit
- 1 teaspoon soft butter
- 1 to 2 teaspoons hot water, if needed
Use whole milk; low-fat milk gives a custard that weeps. If your puff pastry comes in one large block, roll it into two 10 inch squares. No passionfruit where you live? For the plain icing, mix the powdered sugar and soft butter with 2 tablespoons of milk and 1/2 teaspoon of vanilla, or use lemon juice in place of the milk for a sharper top. A drop of red food coloring makes the pink icing many country bakeries use.
How to make vanilla slice
Bake the pastry
- Heat the oven to 400 degrees (200°C). Line two baking trays with parchment. Lay one sheet of pastry on each tray and prick it all over with a fork.
- Cover each sheet with another piece of parchment and set a second baking tray, or a wire rack, on top to weigh it down. Bake for 15 minutes, then take off the top tray and paper and bake 8 to 10 minutes more, until the pastry is deep golden and crisp right through. Bake the sheets one at a time if you do not have enough trays.
- Cool the pastry. Line a 9 inch square pan with foil or parchment, leaving a wide overhang on two sides to lift the slice out later. With a serrated knife, trim both sheets to fit the pan exactly. Lay one in the bottom of the pan, flat side up.
- Cut the second sheet, which will be the lid, into 9 equal squares, 3 across and 3 down, and keep them in order. This is the secret to a clean cut later.

Make the custard
- In a large heavy saucepan, off the heat, whisk the sugar and cornstarch together. Whisk in about 1 cup of the milk to make a smooth paste with no lumps, then whisk in the rest of the milk and the cream.
- Set the pan over medium heat and whisk without stopping, reaching into the corners, for 8 to 10 minutes. The custard will suddenly thicken. Keep whisking hard as it comes to a boil, and let it bubble for 1 full minute. It should be very thick and glossy.
- Take the pan off the heat. Whisk in the egg yolks one at a time, quickly, then the butter and the vanilla, until smooth and shiny.
- Pour the hot custard over the pastry in the pan at once and level the top. Lay the 9 pastry squares on top in their original order, flat side up, pressing them down gently so they sit on the custard with no gaps.
Ice, chill and cut
- Stir the powdered sugar, soft butter and passionfruit pulp together until smooth and just pourable, adding hot water a teaspoon at a time if it is too stiff. Spread the icing over the pastry lid.
- Refrigerate, uncovered, for at least 8 hours or overnight, until the custard is completely firm.
- Lift the slice out of the pan by the overhang and peel down the sides. Dip a long sharp knife in hot water and wipe it dry. Cut straight down along the lines between the pastry squares, through the icing, the custard and the base, wiping and reheating the knife between cuts.

Tips that make the difference
- Boil the custard for the full minute. Cornstarch that has not boiled looks thick in the pan and then turns runny in the refrigerator.
- Cutting the lid into squares before it goes on means the knife never has to break through a whole sheet of crisp pastry, so nothing is pushed down and the custard stays where it is.
- If you forgot to cut the lid first, saw through the top pastry with a serrated knife using no downward pressure at all, then finish each cut with a hot straight knife.
Variations
- Plain white or pink icing. Mix 1 1/2 cups powdered sugar with 1 teaspoon soft butter, 2 tablespoons milk and 1/2 teaspoon vanilla. Add one drop of red coloring for pink.
Storage and make-ahead
Keep vanilla slice in the refrigerator, loosely covered, for up to 3 days. The pastry is crispest on the first day and softens a little after that.
Do not leave it out for more than an hour or two. It is a milk and egg custard and should be kept cold.
Frequently asked questions
How do I get the custard firm enough to cut?
Use the full cup of cornstarch to 5 cups of milk and cream, bring the custard to a true boil and cook it, whisking, for one full minute, then chill the slice for at least 8 hours. Skipping any one of those gives a soft custard.
How do I cut vanilla slice without the custard squeezing out?
Cut the pastry lid into squares before you lay it on the hot custard. After chilling, cut along those lines with a long knife dipped in hot water and wiped dry, pressing straight down and cleaning the blade between cuts.
Why did my custard go lumpy?
The cornstarch was added to warm milk, or the whisking stopped as it thickened. Always mix the cornstarch with cold milk first, and whisk hard into the corners of the pan. A lumpy custard can be saved by pushing it through a sieve while hot.
Passionfruit or plain is your own business, but with the lid cut first, every square comes out as tall and neat as the bakery’s.
Australian Vanilla Slice (Firm Custard That Cuts Clean, Passionfruit Icing)
The Australian bakery vanilla slice made at home: a tall block of firm vanilla custard set with cornstarch between two sheets of flat crisp puff pastry, topped with passionfruit icing, with the way to cut it into clean squares.
Ingredients
- 2 sheets frozen puff pastry (about 1 pound, 450g, in all), thawed but still cold
- 1 cup granulated sugar
- 1 cup cornstarch
- 4 cups whole milk
- 1 cup heavy cream
- 4 large egg yolks
- 4 tablespoons butter (56g), cut in pieces
- 1 tablespoon vanilla extract
- 1 1/2 cups powdered sugar (180g), sifted
- 2 tablespoons passionfruit pulp with seeds, from 1 to 2 fresh passionfruit
- 1 teaspoon soft butter
- 1 to 2 teaspoons hot water, if needed
Instructions
- Heat the oven to 400 degrees (200°C). Line two baking trays with parchment. Lay one sheet of pastry on each tray and prick it all over with a fork.
- Cover each sheet with another piece of parchment and set a second baking tray, or a wire rack, on top to weigh it down. Bake for 15 minutes, then take off the top tray and paper and bake 8 to 10 minutes more, until the pastry is deep golden and crisp right through. Bake the sheets one at a time if you do not have enough trays.
- Cool the pastry. Line a 9 inch square pan with foil or parchment, leaving a wide overhang on two sides to lift the slice out later. With a serrated knife, trim both sheets to fit the pan exactly. Lay one in the bottom of the pan, flat side up.
- Cut the second sheet, which will be the lid, into 9 equal squares, 3 across and 3 down, and keep them in order. This is the secret to a clean cut later.
- In a large heavy saucepan, off the heat, whisk the sugar and cornstarch together. Whisk in about 1 cup of the milk to make a smooth paste with no lumps, then whisk in the rest of the milk and the cream.
- Set the pan over medium heat and whisk without stopping, reaching into the corners, for 8 to 10 minutes. The custard will suddenly thicken. Keep whisking hard as it comes to a boil, and let it bubble for 1 full minute. It should be very thick and glossy.
- Take the pan off the heat. Whisk in the egg yolks one at a time, quickly, then the butter and the vanilla, until smooth and shiny.
- Pour the hot custard over the pastry in the pan at once and level the top. Lay the 9 pastry squares on top in their original order, flat side up, pressing them down gently so they sit on the custard with no gaps.
- Stir the powdered sugar, soft butter and passionfruit pulp together until smooth and just pourable, adding hot water a teaspoon at a time if it is too stiff. Spread the icing over the pastry lid.
- Refrigerate, uncovered, for at least 8 hours or overnight, until the custard is completely firm.
- Lift the slice out of the pan by the overhang and peel down the sides. Dip a long sharp knife in hot water and wipe it dry. Cut straight down along the lines between the pastry squares, through the icing, the custard and the base, wiping and reheating the knife between cuts.






