Jump to Recipe
There’s something about a bar cookie that never sees the inside of an oven that feels like a small kitchen miracle.
Nanaimo bars are a three-layer no-bake dessert from Nanaimo, British Columbia: a chocolate-coconut-walnut crumb base, a custard-flavored buttercream middle, and a thin chocolate shell on top.
I first had one at a bake sale in Vancouver, wrapped in wax paper, still cold from someone’s fridge. It was rich but not heavy, and the custard layer had that Bird’s custard powder tang I hadn’t tasted since childhood trifle.
This version sticks close to the recipe that put the city on the map back in the 1950s. Three layers, one pan, and a lot of chilling time instead of baking.
Why You’ll Love This Recipe
- No oven needed, just a fridge and some patience
- Chocolate-coconut base with real crunch from walnuts
- Custard-powder filling tastes like nothing else in your recipe box
- Freezes well for make-ahead holiday trays
Ingredient Notes
- graham cracker crumbs: Digestive biscuits work too and are actually closer to the original Canadian recipe. Crush either one fine before measuring.
- egg: Cooked into the base over a double boiler until it thickens, so there’s no raw egg risk here.
- custard powder: Bird’s brand is traditional and gives that pale yellow color. Vanilla pudding mix works in a pinch but tastes slightly sweeter.
- shredded coconut: Use unsweetened for the right balance, since the base already has sugar and cocoa.
- walnuts: Pecans are a fine swap, or leave them out for a smoother, nut-free base.
- semi-sweet chocolate: A bar chopped by hand melts smoother than chips, which sometimes hold their shape when heated.

Classic Nanaimo Bars with Chocolate Custard Layers
Ingredients
Method
- Set a heatproof bowl over a pot of gently simmering water. Add the melted butter, cocoa powder, and sugar, and stir until smooth, about 3 minutes.
- Slowly whisk in the beaten egg, stirring constantly, and cook for 2 to 3 minutes until the mixture thickens and coats the back of a spoon. Stir the whole time here, or the egg scrambles instead of thickening smoothly.
- Remove from heat. Stir in the graham cracker crumbs, shredded coconut, and chopped walnuts until fully combined.
- Press the mixture firmly and evenly into a parchment-lined 23 x 23 cm / 9 x 9-inch baking pan, using a flat-bottomed glass to pack it tight. Chill for 20 minutes.
- Beat the softened butter in a bowl with a hand mixer until pale, about 1 minute.
- Add the custard powder, vanilla, and milk, and beat until combined.
- Gradually add the powdered sugar, about a third at a time, beating until light and spreadable. Add an extra teaspoon of milk if it looks too stiff.
- Spread the custard mixture evenly over the chilled base with an offset spatula. Chill for 30 minutes until firm to the touch.
- Melt the chocolate and butter together in the microwave in 30-second bursts, or over a double boiler, stirring until smooth.
- Pour the melted chocolate over the chilled custard layer and tilt the pan so it spreads evenly to the edges.
- Chill for 10 minutes until the surface turns matte, then score into 20 bars (5x4 grid) with a sharp knife before the chocolate fully hardens.
- Chill for at least 1 hour more, then cut all the way through along the scored lines, wiping the knife clean between cuts. Serve cold.
Notes
- Cook the egg mixture until it coats a spoon, not scrambled.
- Chill each layer fully before adding the next one.
- Use a hot, dry knife for clean cuts through the chocolate top.
- Freeze bars uncut, then slice after thawing for cleaner edges.

Tips for Success
- Press the crumb base down firmly with a flat-bottomed glass so the bars hold together when sliced.
- Cook the egg mixture over gently simmering water, not direct heat, so it thickens without scrambling.
- Let the custard layer firm up in the fridge for a full 30 minutes before pouring on the chocolate.
- Score the chocolate top layer while it’s still slightly soft, about 10 minutes after pouring, to stop it cracking.
- Bring bars to room temperature for 10 minutes before serving so the chocolate top doesn’t shatter under the knife.
Variations
- Swap walnuts for chopped pecans or omit nuts entirely for a nut-free version of the base.
- Use dark chocolate instead of semi-sweet on top for a less sweet, more bittersweet finish.
- Add a teaspoon of instant coffee to the custard layer for a mocha-toned Nanaimo bar.
Storage and Reheating
Nanaimo bars are meant to be eaten cold, so there’s no reheating step here. Store bars tightly covered in the fridge for 5 to 7 days, layered between parchment if you’re stacking them.
For longer storage, freeze individual bars wrapped in plastic wrap and foil for up to 2 months. Thaw overnight in the fridge and serve straight from cold, since the layers hold their shape and texture better chilled than at room temperature.
Serving Suggestions
Classic Nanaimo bars work as a stand-alone dessert with coffee, but they also do well cut small and added to a holiday cookie tray next to shortbread and gingersnaps.
For a dinner party, serve them chilled straight from the fridge with fresh raspberries or a few orange segments on the plate to cut the richness.

FAQ
Why does my Nanaimo bar base crumble when I slice it?
The base crumbles when there’s not enough melted butter binding the crumbs, or when you skip pressing it firmly into the pan. Press the graham-coconut-walnut mixture down hard with a flat-bottomed glass before chilling, and let it firm up in the fridge for a full 20 minutes before adding the custard layer.
Can I use digestive biscuits instead of graham crackers in Nanaimo bars?
Yes, digestive biscuits work well and are actually closer to the original Canadian version. Crush them to fine crumbs just like graham crackers, and use the same 250 g amount so the base holds together the same way and sets up firm.
How long do Nanaimo bars last in the fridge, and can I freeze them?
Nanaimo bars keep for 5 to 7 days tightly covered in the fridge, since the custard and chocolate layers stay firmest cold. They also freeze well for up to 2 months. Wrap individual bars in plastic wrap, then thaw in the fridge overnight before serving.
What pairs well with the sweetness of Nanaimo bars?
A plain black coffee or unsweetened tea cuts through the richness best, since the bars are dense with butter and sugar. Fresh berries or a small scoop of vanilla ice cream on the side also balance the chocolate and custard layers without adding more sweetness.
Are classic Nanaimo bars gluten free?
Not with regular graham cracker crumbs, since graham crackers are made with wheat flour. Swap in gluten-free graham crackers or gluten-free digestive biscuits, crushed to the same fine crumb, and the rest of the recipe, custard powder, chocolate, and butter, is naturally gluten free.
What’s the difference between Nanaimo bars and a custard slice or vanilla slice?
Nanaimo bars are a no-bake dessert built from a cooked chocolate-coconut crumb base, custard-powder buttercream, and a chocolate shell, named after the city of Nanaimo, British Columbia. Custard slice uses baked puff pastry layered with real custard, so the texture and technique are completely different even though both use custard flavor.
Loved this? Try these next
- our Chewy Toasted Coconut Blondies with White Chocolate
- No-Bake Coconut Pudding Cups with Toasted Coconut Flakes
- our Milk Chocolate Semolina Bars with Golden Edges
- the Baked Raspberry White Chocolate Bars with Buttery Crust

