Traditional and regional dessertsCanada
Nanaimo bar
A three-layer no-bake Canadian bar with a chocolate, graham crumb and coconut base, a custard-flavored buttercream middle and a chocolate top.

At a glance
- Type
- Three-layer no-bake chocolate bar
- Where it's from
- Nanaimo, British Columbia, Canada
- Key ingredients
- Graham crumbs, coconut, cocoa, butter, custard powder, chocolate
- Served
- Chilled, in small squares; bake sales and holiday trays
- Texture & flavor
- Crunchy, creamy and snappy; very rich and sweet
Overview
A Nanaimo bar is assembled in a square pan rather than baked. The bottom layer combines graham cracker crumbs, coconut, cocoa, butter and often nuts, pressed firmly into the pan. A smooth, sweet buttercream flavored with custard powder is spread over it, and a thin layer of melted chocolate is poured on top. The pan is chilled until firm, then cut into small squares.
The bar is named for the city of Nanaimo on Vancouver Island, British Columbia, and recipes have circulated since at least the 1950s. The city later ran a contest to choose an official version. Its sharp, even layers and very rich, sweet bite make it a staple of Canadian bake sales and holiday cookie trays.
Where it comes from
The Nanaimo bar takes its name from the city of Nanaimo on Vancouver Island in British Columbia. The City of Nanaimo traces the triple-layered, no-bake bar back to at least the 1950s, when recipes for it were already being passed around and printed in community collections.
In 1986 Mayor Graeme Roberts launched a contest to settle on an official recipe, and the city still treats the bar as a point of local pride. Today it is eaten across Canada, especially at bake sales, potlucks and on holiday cookie trays.
What goes into it
- Graham cracker crumbs, the sturdy, lightly sweet backbone of the bottom layer
- Shredded or flaked coconut, which adds chew and helps the base hold together
- Cocoa powder and butter, which bind the crumbs and give the base its chocolate flavor
- Chopped nuts, often walnuts or almonds, for crunch in many versions
- Custard powder, which gives the buttercream middle its pale yellow color and vanilla-custard taste
- Chocolate melted with a little butter for the thin top layer that snaps when bitten
How it's made
- Melt the butter with sugar and cocoa, then stir in the graham crumbs, coconut and nuts until evenly moistened.
- Press the mixture firmly and evenly into a lined square pan, then chill until set.
- Beat softened butter with custard powder, powdered sugar and a splash of milk until smooth and spreadable.
- Spread the custard buttercream over the chilled base in an even layer and chill again until firm.
- Melt chocolate with a little butter, let it cool slightly, and pour it over the middle layer, tilting to cover.
- Chill until the top is just set, then cut into small squares with a sharp knife.
Sources: 1
How it's served
Nanaimo bars are served cold or just off the chill, cut into small squares because each bite is so rich and sweet. They are a fixture on holiday cookie trays and bake sale tables, and they travel well in a covered tin as long as they stay cool.
Most people eat them on their own with coffee or tea. Clean, straight cuts that show off the three distinct layers are part of the appeal, so wipe the knife between slices.
Variations and cousins
- Flavored middles such as mint, peanut butter or mocha in place of the classic custard buttercream
- Bases made without nuts, or with different nuts, depending on family habit and allergies
- Related bar desserts on our pages include the chocolate brownie, another pan-baked square cut into small pieces
- Rocky road ice cream shares the chocolate, nut and sweet-filling combination in frozen form
- See also graham crackers, coconut and buttercream, the building blocks of each layer
Good to know
- Press the base very firmly; a loose crumb layer is the usual reason bars crumble when cut
- Chill each layer fully before adding the next so the edges stay sharp and the layers do not blend
- Let the chocolate top soften for a few minutes at room temperature before cutting so it does not crack
- Keep the bars covered in the refrigerator for several days, or freeze them for longer storage
Bake it at VanillaGoods
Common questions
Can you freeze Nanaimo bars?
Yes, they freeze well. Cut them first, wrap or pack them in an airtight container, and thaw in the refrigerator so the buttercream stays smooth and the chocolate does not sweat.
What can I use instead of custard powder in Nanaimo bars?
Vanilla pudding mix is the most common stand-in and gives a similar flavor and color. Without either, a buttercream with vanilla still works, but it will taste less like the classic bar.
Why does the chocolate top crack when I cut Nanaimo bars?
Straight from the refrigerator the chocolate is brittle. Let the pan sit for a few minutes, use a sharp knife warmed in hot water and dried, and a little butter melted into the chocolate also keeps it from shattering.
Sources
Written by VanillaGoods in our own words from these sources. Last reviewed November 9, 2026.
- Sweet! Nanaimo bar stamp officially presented to the City and Mayor, City of Nanaimo
- The Legendary Nanaimo Bar, City of Nanaimo
