Nanaimo Bars are a Canadian classic—a three-layered bar that’s rich, creamy, and decadent. Named after the city of Nanaimo on Vancouver Island, these no-bake treats have become beloved across the world. This recipe gives you the perfect balance of chocolate, coconut, and a smooth custard filling, topped with a chocolate glaze.
I always make two batches of these cookies at Christmas—one with coconut and one without to accommodate family members with coconut allergies. They taste just as good; just add an extra ½ cup of graham crumbs in place of the coconut to make the base firm enough not to crumble.

How to Make Nanaimo Bars
Ingredients
Base:
2 squares (2 ounces) of semi-sweet chocolate
1/2 cup butter
2 tablespoons sugar
1 teaspoon vanilla
1 egg
2 cups graham wafer crumbs
1 cup shredded coconut
Filling:
2 tablespoons custard powder
3 tablespoons milk
¼ cup butter softened
2 cups icing sugar
Glaze:
4 squares (4 ounces) of semi-sweet chocolate
1 tablespoon butter
Instructions for Nanaimo Bars
Base:

Melt the chocolate and butter in a medium saucepan over low heat until smooth. Stir continuously to prevent the chocolate from burning.
Remove from heat, then add sugar, vanilla, and egg, mixing until smooth.
Stir in the graham wafer crumbs and shredded coconut until well combined.

Press the mixture evenly into a 9-inch square pan, making sure it’s packed firmly.
Chill in the refrigerator for 30 minutes to allow the base to set.
Custard Filling
In a mixing bowl, combine the custard powder and milk, stirring until smooth.
Add softened butter and beat until smooth.

Gradually beat in the icing sugar until the mixture becomes creamy and spreadable.
Spread the custard filling evenly over the chilled base layer, then return the pan to the fridge and chill for 15 minutes.

Chocolate Glaze
In a double boiler, melt the chocolate squares with the tablespoon of butter, stirring until smooth and glossy.
Carefully spread the chocolate glaze over the custard layer, ensuring an even layer.

Chill the bars until the chocolate is fully set, about 30 minutes.
Once the bars are fully set, remove them from the refrigerator.
Using a sharp knife, slice into squares. For clean cuts, warm the knife under hot water, wipe it dry, and slice.

Tips for Perfect Nanaimo Bars:
Custard Powder Substitute: If you don’t have custard powder, vanilla pudding powder can work as a substitute, though it may slightly change the flavor.
Coconut Texture: If you’re not a fan of shredded coconut, try using finely ground coconut to maintain the flavor with a smoother texture.
Chocolate Glaze: To avoid cracking when cutting, allow the bars to sit at room temperature for a few minutes before slicing.

Serving and Storing
Nanaimo Bars are rich, so a small piece goes a long way. They can be stored in an airtight container in the refrigerator for up to a week or frozen for longer storage. Enjoy this classic Canadian treat with friends and family or as a special indulgence all to yourself.
Homemade Nanaimo Bars
These Nanaimo Bars are irresistible, with a graham cracker-coconut base, creamy custard filling, and a chocolate top layer.
Ingredients
- Base:
- 2 squares (2 ounces) of semi-sweet chocolate
- ½ cup butter
- 2 tablespoons sugar
- 1 teaspoon vanilla
- 1 egg
- 2 cups graham wafer crumbs
- 1 cup shredded coconut
- Filling:
- 2 tablespoons custard powder
- 3 tablespoons milk
- ¼ cup butter softened
- 2 cups icing sugar
- Glaze:
- 4 squares (4 ounces) of semi-sweet chocolate
- 1 tablespoon butter
Instructions
- Base:
- Melt the chocolate and butter in a medium saucepan over low heat until smooth. Stir continuously to prevent the chocolate from burning.
- Remove from heat, then add sugar, vanilla, and egg, mixing until smooth.
- Stir in the graham wafer crumbs and shredded coconut until well combined.
- Press the mixture evenly into a 9-inch square pan, making sure it’s packed firmly.
- Chill in the refrigerator for 30 minutes to allow the base to set.
- Custard Filling
- In a mixing bowl, combine the custard powder and milk, stirring until smooth.
- Add softened butter and beat until smooth.
- Gradually beat in the icing sugar until the mixture becomes creamy and spreadable.
- Spread the custard filling evenly over the chilled base layer, then return the pan to the fridge and chill for 15 minutes.
- Chocolate Glaze
- In a double boiler, melt the chocolate squares with the tablespoon of butter, stirring until smooth and glossy.
- Carefully spread the chocolate glaze over the custard layer, ensuring an even layer.
- Chill the bars until the chocolate is fully set, about 30 minutes.
- Once the bars are fully set, remove them from the refrigerator.
- Using a sharp knife, slice into squares. For clean cuts, warm the knife under hot water, wipe it dry, and slice.
Notes
- Custard Powder Substitute: If you don’t have custard powder, vanilla pudding powder can work as a substitute, though it may slightly change the flavor.
- Coconut Texture: If you’re not a fan of shredded coconut, try using finely ground coconut to maintain the flavor with a smoother texture.
- Chocolate Glaze: To avoid cracking when cutting, allow the bars to sit at room temperature for a few minutes before slicing.
Nutrition Information
Yield 36 Serving Size 1Amount Per Serving Calories 136Total Fat 8gSaturated Fat 5gTrans Fat 0gUnsaturated Fat 3gCholesterol 17mgSodium 69mgCarbohydrates 17gFiber 1gSugar 13gProtein 1g