Classic, no-bake Nanaimo bars with a chocolate coconut base, custard buttercream filling, and a layer of chocolate on top. Learn how to make this iconic Canadian dessert – with or without custard powder.
If you’ve never tried Nanaimo bars, you’re missing out. These no-bake bars have three distinct layers of texture and flavor:
- The base combines graham crumbs, shredded coconut and finely chopped walnuts for a chewy, slightly crunchy foundation.
- The middle is a rich, thick vanilla buttercream flavored with custard powder for a creamy, pale-yellow filling.
- The top is a glossy layer of semi-sweet (or dark) chocolate that finishes the bars perfectly.
Nanaimo bars are a staple on Canadian holiday dessert trays, but they’re also easy to find in bakeries and grocery stores across the country. Sweet, nostalgic, and incredibly satisfying, they’re a retro classic many people remember from family gatherings.
Nanaimo Bars – A Brief History
Nanaimo bars (pronounced NA-NYE-MOE) are named after Nanaimo, a city on the west coast of British Columbia. Their exact origin is unclear, but the recipe first appeared in a cookbook in 1953. A 1985 Nanaimo mayoral contest produced a popular version of the recipe by Joyce Hardcastle, and many modern recipes are based on that winning entry.
There are many variations: the custard layer can be flavored with mint, coffee, cherry, or other extracts to create different twists on the classic bar.
How to Make Nanaimo Bars
Although Nanaimo bars have three layers, they’re straightforward to make. Follow these steps for a reliable result.
Chocolate Base
The base is chocolatey, chewy, and textured.
- Melt butter, sugar, and cocoa powder together in a double boiler (a heatproof bowl over simmering water).
- Once melted, whisk in 1 egg continuously until the mixture thickens and becomes glossy and smooth. Constant whisking prevents the egg from scrambling and ensures the base sets properly.
- Remove from heat and stir in graham crumbs (or digestive biscuits), shredded coconut, and very finely chopped walnuts. Press the mixture into the prepared pan and freeze for about 20 minutes to firm up.
If graham crumbs are unavailable, use finely crushed digestive biscuits. Choose finely shredded coconut for easier slicing. Pecans or almonds work as nut substitutes, but walnuts slice particularly well.
Custard Buttercream Middle
The middle layer is a thick buttercream flavored with custard powder, which gives the filling its distinctive creamy flavor and pale yellow color. If you can’t find custard powder, use vanilla pudding mix as a 1:1 substitute (use the dry powder only).
Beat softened butter until fluffy, add custard powder (or pudding mix) and cream, then gradually beat in powdered sugar until the filling is very thick — thicker than standard frosting. Spread evenly over the chilled base and refrigerate until firm.

Chocolate Topping
Traditionally semi-sweet chocolate is used for the topping. Adding a small amount of neutral oil (or butter, if you prefer) to the melted chocolate makes it glossier and easier to cut, preventing the top from becoming rock-hard. Melt the chocolate gently (microwave on medium in short bursts or use a double boiler), stir in 2 teaspoons of oil, spread over the chilled filling, and refrigerate to set.

Cutting Nanaimo Bars
To get clean slices without cracked chocolate:
- Add oil to the chocolate topping to keep it slightly soft.
- When the chocolate is about 75% set, lightly score the surface where you’ll cut to make clean lines.
- Use a thin, sharp knife and avoid cutting straight from the fridge; allow bars to warm for 10–15 minutes to make slicing easier.

Variations
- Without coconut: use 2 1/4 cups graham crumbs and 3/4 cup chopped walnuts for the base.
- Without nuts: use 2 cups graham crumbs and 1 cup shredded coconut in the base.
- Less sweet: use unsweetened coconut, reduce powdered sugar in the middle by 1/4 cup, and choose dark chocolate for the topping.
Store leftovers in an airtight container at room temperature for up to 4 days in a cool home, or refrigerate for up to 1 week. Freeze in an airtight container for up to 3 months and thaw in the fridge. This recipe can be doubled and baked in a 9×13-inch pan.
Nanaimo Bars
Fiona Dowling
Ingredients
Base
- 1/2 cup unsalted butter
- 1/3 cup cocoa powder
- 1/4 cup sugar
- 1 large egg
- 1 3/4 cups graham crumbs (or digestive cookie crumbs)
- 3/4 cup shredded coconut
- 1/2 cup finely chopped walnuts
Middle Layer
- 6 tablespoons unsalted butter, softened
- 2 tablespoons custard powder (or vanilla pudding mix)
- 3 tablespoons heavy cream
- 1 1/2–2 cups powdered sugar
Chocolate Topping
- 4 oz semi-sweet chocolate (or 50–60% dark chocolate)
- 2 teaspoons oil
Instructions
- Line an 8×8 or 9×9 inch pan with parchment paper, leaving an overhang for easy removal.
Base Layer
- Set a heatproof bowl over a pan with 1/2–1 inch of simmering water. Add butter, sugar and cocoa and melt, stirring occasionally.
- Whisk in the egg continuously until the mixture is thick, glossy and smooth.
- Remove from heat and stir in graham crumbs, coconut and chopped walnuts.
- Press into the prepared pan and freeze for 20 minutes to firm while you make the filling.
Middle Layer
- Beat softened butter until fluffy. Add custard powder and cream, then gradually beat in powdered sugar until very thick.
- Spread the custard buttercream over the chilled base and refrigerate for at least 15 minutes to firm.
Chocolate Layer
- Melt chocolate gently (microwave on medium in 30–45 second bursts, stirring between each, or use a double boiler).
- Stir in oil, pour over the chilled filling, and smooth the top. Refrigerate until set.
Cutting the Bars
- When the chocolate is about 75% set, lightly score the surface where you’ll cut. Return to the fridge until completely firm.
- Remove from the fridge for 10–15 minutes to warm slightly, then slice along the scored lines with a thin, sharp knife.
- Serve chilled or at room temperature.
Notes
Walnuts can be substituted with finely chopped almonds or pecans; walnuts tend to help the bars slice more cleanly.
Store in an airtight container: up to 4 days at cool room temperature, up to 1 week refrigerated, or freeze up to 3 months. Thaw in the fridge.
Recipe can be doubled and made in a 9×13-inch pan.