Back to Biscuits

Canadian Nanaimo Bars Recipe

Canadian Nanaimo Bars Recipe
Dessert Recipes Kitchen 24 March 2026

Nanaimo bars are a Canadian no-bake slice with three distinct layers: a dense base of biscuit crumbs, coconut and cocoa, a smooth custard buttercream in the middle, and a thin sheet of set chocolate on top. They are named after the city of Nanaimo in British Columbia, and they are rich enough that a small square is plenty. No oven is needed at any stage.

Where do they come from?

The bars are strongly associated with Nanaimo on Vancouver Island, and recipes under that name appear in Canadian community cookbooks from the mid twentieth century. Similar layered no-bake slices existed before then under other names. The city has embraced them thoroughly, and they are now recognised as one of Canada's best-known sweet exports.

What ingredients do you need?

Makes 16 squares.

For the base

  • 125g unsalted butter
  • 50g caster sugar
  • 5 tbsp cocoa powder
  • 1 large egg, beaten
  • 200g digestive biscuits, finely crushed
  • 100g desiccated coconut
  • 50g chopped walnuts, optional

For the middle

  • 125g unsalted butter, softened
  • 3 tbsp custard powder
  • 350g icing sugar
  • 3 tbsp milk

For the topping

  • 200g dark chocolate, chopped
  • 25g unsalted butter

How do you make Nanaimo bars?

  1. Line a 20cm square tin with baking paper.
  2. Melt the butter, sugar and cocoa in a bowl set over barely simmering water, stirring until smooth.
  3. Whisk in the beaten egg and keep stirring over the heat for three to four minutes, until the mixture thickens slightly.
  4. Take off the heat and stir in the crushed biscuits, coconut and walnuts if using.
  5. Press very firmly into the tin and chill for 30 minutes.
  6. Beat the butter, custard powder, icing sugar and milk together until light and smooth, then spread over the base. Chill for one hour.
  7. Melt the chocolate and butter, cool for five minutes, then pour over and tilt to spread.
  8. Chill for 30 minutes, then cut with a hot knife.

Cook the base mixture over water: the egg needs gentle heat to thicken safely without scrambling. Direct heat in a pan will curdle it in seconds.

Why is there an egg in the base?

The egg binds the base into a firm, sliceable layer rather than a loose crumb, and cooking it gently over simmering water thickens the mixture like a custard. It is cooked, so it is not a raw egg product, though as with any lightly cooked egg it is sensible to use British Lion eggs.

What does custard powder do in the middle layer?

Custard powder is mostly cornflour with vanilla flavouring and colouring. In the buttercream it adds the pale yellow colour and the particular vanilla flavour that makes a Nanaimo bar recognisable, and the cornflour thickens the layer so it stays firm between the base and the chocolate. Vanilla buttercream alone tastes noticeably different.

How do you get three clean layers?

Chill each layer until firm before adding the next. Spread the buttercream gently with a palette knife so it does not drag crumbs up from the base, and let the melted chocolate cool for five minutes before pouring, so it does not melt the buttercream. Patience between layers is the whole technique.

Why are they so rich?

Each of the three layers is built on butter, and the middle layer is essentially buttercream. That is why Nanaimo bars are traditionally cut small, into 16 or even 25 squares from a 20cm tin. A larger piece is more than most people want in one sitting, and small squares also make the layers look neater.

How long do they keep?

They keep for a week in an airtight container in the fridge, and they are best served slightly cool. Take them out 10 minutes before serving so the chocolate is not brittle. They freeze for three months; defrost in the fridge overnight.

Can you make them without coconut?

Coconut is characteristic of the base and gives it much of its texture, but if you dislike it, replace it with an extra 75g of biscuit crumbs and 25g of ground almonds. The bars will be denser and smoother. Leave out the walnuts too for a nut-free version, checking your other labels.