Nanaimo Bars (No-Bake Layers of Coconut Crumb, Custard Buttercream and Chocolate): Three-layer no-bake bars from British Columbia: a cooked chocolate-coconut crumb base, a vanilla custard buttercream and a thin chocolate top.
Total time: 2 h 50 min·Serves: 16 bars·Difficulty: Medium·Cuisine: Canadian
Why it works
- A cooked base. Heating the butter, cocoa, sugar and egg over simmering water thickens the mixture and brings the egg to a safe temperature, so the crumb base binds without baking.
- Custard powder in the middle. It is mostly cornstarch with vanilla flavor and yellow color, giving a smooth, vanilla-custard layer without cooking it.
- Three layers, three textures. A crumbly coconut-graham base, a soft buttercream and a thin, snappy chocolate top keep every bite from feeling one-note.
- Chilling between layers. A cold middle layer lets the warm chocolate spread cleanly without melting the buttercream.
Nanaimo bars are a no-bake treat from British Columbia, named after the city of Nanaimo on Vancouver Island, and one of the most recognized sweets in Canadian cuisine. They are rich, so cut small squares.
The one ingredient that confuses visitors is custard powder, a cornstarch-based mix sold in Canada and the UK. You will find substitutions below. These bars are a good make-ahead choice for a party or holiday cookie tray, and our guide to chocolate and cocoa for baking explains which kind to buy.
Nanaimo Bars (No-Bake Layers of Coconut Crumb, Custard Buttercream and Chocolate)
Ingredients
Equipment
Method
- Line the pan with parchment so it overhangs 2 sides.
- Set a heatproof bowl over a saucepan of barely simmering water. Melt the butter with the sugar and cocoa, stirring until smooth, about 3 min.
- Whisk in the egg and cook, stirring constantly, 4–5 min, until the mixture thickens to a glossy custard and reaches 71 °C (160 °F).
- Off the heat, stir in the crumbs, coconut and nuts. Press firmly and evenly into the pan, then chill for 20 min.
- Beat the softened butter, cream and custard powder until smooth, about 1 min.
- Add the icing sugar a little at a time and beat 2 min until fluffy and pale. Spread over the base and chill for 30 min until firm.
- Melt the chocolate and butter over simmering water or in 20-second microwave bursts, stirring until smooth.
- Cool 5 min until just lukewarm and pourable, then spread over the chilled custard layer in one even coat.
- Chill 1 hr until the chocolate is set, then lift out the slab and cut into 16 squares with a hot, dry knife.
Notes
🔥 DayNightCook Chef’s Secrets
- Technique: cook the base over barely simmering water, stirring until it thickens to a glossy custard, about 5 minutes. The egg must reach about 71 °C (160 °F) to be safe, and gentle indirect heat keeps it from scrambling.
- Avoid this: pouring hot chocolate onto the buttercream. Anything much above body temperature melts the butter and the layers blur. Let the chocolate cool until it is just fluid and no longer feels warm.
- Pro move: cut the bars with a long knife dipped in hot water and wiped dry between cuts. The warm blade slices through the set chocolate without cracking it into shards.
☀ Day version and ☾ Night version
☀ Day version (about 1 hr 30 min): Use store-bought graham crumbs, mix the buttercream with an electric mixer and give each layer 20 minutes in the freezer rather than chilling overnight. Cut once the chocolate sets, and keep the bars cold until serving.
☾ Night version: Toast the coconut and walnuts first, use a good 60% chocolate for the top and chill overnight for clean edges. Serve cold with strong coffee. A non-alcoholic option is hot chocolate or black tea with milk, and the bars also work with a small glass of dessert wine.
Substitutions
- Custard powder: outside Canada and the UK, use 2 tbsp cornstarch plus 1 tsp vanilla extract, or a dry instant vanilla pudding mix. The layer is paler and the flavor is plainer, but it still sets and tastes good.
- Graham crumbs: plain digestive biscuits or any lightly sweet wheat cracker, crushed fine, work as a replacement.
- Coconut: unsweetened desiccated coconut is traditional. Sweetened flake coconut makes the base sweeter, so cut the sugar to 25 g.
- Chocolate: semisweet (50–60%) is best. Milk chocolate makes a soft top that dents when you cut it.
- Nuts: walnuts are common, almonds are an accepted alternative, and a nut-free version simply leaves them out.
Common mistakes
- Crumbly base. The mixture was not pressed hard enough. Use the bottom of a glass to compact it, especially into the corners.
- Greasy buttercream. The butter was too soft or melted. Use butter at about 20 °C (68 °F), still cool to the touch.
- Seized or dull chocolate. A drop of water got in the bowl or it overheated. Our guide to seized chocolate explains the rescue.
- Shattered top. The bars were too cold and the knife too cool. Rest the slab at room temperature for 10 minutes and use a warmed knife.
Variations
- Mint: a few drops of peppermint extract in the middle layer, a common modern twist.
- Peanut butter: replace half the butter in the middle with peanut butter, a North American variation.
- Mocha: add 1 tsp instant coffee to the base. It deepens the chocolate flavor.
- Vegan: possible with plant butter and an egg replacer, but the base will be crumblier and it is not the traditional recipe.
Storage and reheating
Store the bars in an airtight container in the fridge for up to 5 days, because the buttercream softens at room temperature. They freeze well wrapped for up to 2 months; thaw in the fridge overnight. Serve them cold or after 10 minutes at room temperature. See our fridge storage chart for general rules.
What to serve with it
Nanaimo bars suit a holiday dessert board with shortbread and fruit. Browse more desserts and baking recipes.
Origin and authenticity
Nanaimo bars are named for the city of Nanaimo on Vancouver Island, British Columbia, but their exact origin is debated. Similar layered chocolate squares appear in mid-20th-century Canadian community cookbooks under other names, such as chocolate squares, and the Nanaimo name seems to have become common in the following decades. Several local stories credit home bakers in and around the city, but none is firmly documented. The recipe is closely tied to Canadian home baking, with ingredients such as graham crumbs, coconut and custard powder that were pantry staples. Nanaimo later promoted the bar as a local symbol, and today it is eaten across Canada and counted among its national sweets.
Authenticity: Traditional
FAQ
What are Nanaimo bars made of?
They have a base of butter, cocoa, egg, graham crumbs and coconut, a middle layer of custard-flavored buttercream, and a top of melted chocolate.
What is custard powder?
Custard powder is a dry mix of cornstarch, vanilla flavor and yellow color. You stir it into hot milk for custard, and it gives the middle layer its flavor and color without eggs.
Are Nanaimo bars really no-bake?
Yes, the oven is not used. The base is cooked briefly over simmering water to thicken the egg, and the other layers are simply mixed and chilled.
Can I use a different pan size?
A 20 cm (8 in) square pan gives 16 thick bars. A 23 cm (9 in) pan gives thinner bars; you can scale the recipe up 25 percent to fit it.
How long do Nanaimo bars keep?
Kept cold in an airtight container they last 5 days in the fridge, and up to 2 months in the freezer.
Sources
- Harold McGee, On Food and Cooking (Scribner, 2004) — chocolate, egg coagulation and starch thickening
- Alan Davidson (ed.), The Oxford Companion to Food (Oxford University Press) — general food reference
- USDA FSIS — egg safety and safe temperatures
- USDA FoodData Central — nutrition estimate
Ivan Ivanov is the founder of Supreme Commerce OOD and editor-in-chief of DayNightCook. He chooses the dishes and topics and reviews the recipes and guides before they go live. Recipes are researched from published cookbooks, food-history sources and official food-safety guidance (USDA, EFSA, UK FSA), and every recipe lists its sources. Some content is prepared with the help of AI tools and checked under our AI Transparency Policy.
Clear steps, real sources, food that works at home
- Sources under every recipeCookbooks, food history and official food-safety guidance
- Metric and clear timingsGrams, millilitres and real cooking times
- Honest about authenticityEach recipe notes how close it is to the original
