
Mom’s Nanaimo Bars (a Canadian recipe from my BC kitchen)
This post may contain affiliate links. Please read our disclosure policy.
I grew up eating Nanaimo bars at every family gathering, school potluck, and holiday party you can imagine. Growing up in BC and living just a short ferry ride from Nanaimo itself, these bars have been part of my life for as long as I can remember. This recipe comes from my mom, and after years of eating versions from bakeries, coffee shops, and other people’s kitchens, I genuinely think hers is the best. The layers are properly balanced, the custard is silky and rich, and the whole thing is a little less sweet than most versions, which is what makes it so good.

Why this recipe is less sweet than most
Most Nanaimo bar recipes have a thin custard layer that leans heavily on powdered sugar for its flavor. My mom’s version uses more butter and more Bird’s Custard Powder, which makes the filling noticeably thicker and richer, and the extra custard powder is what keeps it from tasting cloyingly sweet. The result is a middle layer that actually tastes like custard rather than just icing, and that difference is what makes the whole bar feel balanced rather than one-note. It’s the kind of thing you notice immediately if you’ve eaten a lot of Nanaimo bars, which, living where I do, I absolutely have.
The case for Bird’s Custard Powder
If you’ve never baked with Bird’s Custard Powder, this is a good reason to start. It’s a staple in Canadian and British kitchens, and it’s what gives the middle layer of a Nanaimo bar its distinctive flavor: vanilla-forward, slightly eggy, and unmistakably different from what you’d get with just powdered sugar and butter. You can find it at most Canadian grocery stores, at specialty food shops, or online. There isn’t a perfect substitute, though some people use instant vanilla pudding mix in a pinch. It works, but the flavor is milder and the texture slightly different. For the real thing, Bird’s is worth tracking down.
The origin story (and why it’s still debated)
Nanaimo bars are named after the city of Nanaimo on Vancouver Island. The story I grew up hearing is that recipe came from a 1952 community cookbook under the name “chocolate square,” but the exact origin is contested. The city took the naming seriously enough that in 1986, Nanaimo’s mayor ran an official contest to find the definitive recipe. The winner is now the city’s “official” version, posted on the Nanaimo city website.
I’ve eaten Nanaimo bars from shops in the city itself, and from experience, the bakery versions vary enormously. Some have too-thick chocolate tops that crack when you bite in. Some have custard layers that taste more like frosting than anything else. My mom’s version, which I grew up eating, has always felt the most balanced to me.

Tips for making the best Nanaimo bars
Nanaimo bars are surprisingly easy to make, but a few simple tips will help ensure perfect layers every time:
-
Line the pan with parchment. Let it hang over the sides so you can lift the whole thing out cleanly before slicing.
-
Softened butter matters for the custard. Cold butter won’t cream properly and you’ll end up with a lumpy middle layer. Set it out an hour before you start.
-
Chill each layer before adding the next. This is what keeps the layers distinct rather than bleeding into each other.
-
Cut before the chocolate is fully set. This is the most important tip for clean bars. When the chocolate is still slightly soft, use a sharp knife dipped in hot water and slice with a dragging motion rather than pressing straight down. Then return the bars to the fridge to finish setting completely.
Store and freeze
How do I store Nanaimo bars? Store in a covered container on your counter for several days, or in your fridge for up to a week.
Can you freeze Nanaimo bars? You sure can! Store in the freezer in a freeer-proof container for up to three months. If you need to stack them, put pieces of parchment paper between the layers. To thaw, put them in the fridge overnight. Or let one sit on your counter for about 10 minutes – they don’t take long to thaw!

Mom’s Nanaimo Bars (a Canadian recipe from my BC kitchen)
Ingredients
Bottom Layer
- ½ cup butter
- 5 tablespoons cocoa powder
- ¼ cup granulated sugar
- 1 large egg
- 1 ¾ cup Graham cracker crumbs
- ¾ cup fine coconut
- ¼ cup chopped walnuts
Middle Layer
- 3 cups powdered sugar
- ¾ cup butter (softened)
- ¼ cup milk
- ¼ cup Bird's vanilla custard powder
Top Layer
- 8 ounces shaved dark chocolate or chocolate chips
- 4 tablespoons butter
Instructions
Bottom layer
- Lay a piece of parchment paper in a 9×11-inch pan, letting some hang over the sides. (This makes it easier to remove the Nanaimo bars.) Melt the butter in a medium-sized pot over medium heat. Whisk in the cocoa powder and sugar. Remove the pot from the heat then add the egg and whisk until it has thickened, about 30 seconds.

- Stir in the Graham cracker crumbs, coconut, and walnuts. Press the crust firmly into the prepared pan.½ cup butter, 5 tablespoons cocoa powder, ¼ cup granulated sugar, 1 large egg, 1 ¾ cup Graham cracker crumbs, ¾ cup fine coconut, ¼ cup chopped walnuts

Middle layer
- Add all the middle layer ingredients to a large bowl and cream them together using electric beaters. Pour the custard over the first layer and smooth the top.3 cups powdered sugar, ¾ cup butter, ¼ cup milk, ¼ cup Bird's vanilla custard powder

- Place the pan into your fridge for at least 20 minutes, or until the custard is firm.

Top layer
- Add the chocolate and butter to a medium-sized pan over low heat and let both melt. Whisk to combine and then pour the chocolate over the custard. Smooth the top first with a spatula then by gently tapping the pan on your counter.8 ounces shaved dark chocolate or chocolate chips, 4 tablespoons butter

- Chill in your fridge for about 20 minutes, or until the chocolate is soft-set. Cut the Nanaimo bars into bars then place them back in your fridge until they are completely set. (Cutting the bars first prevents the chocolate from cracking.)

- Store the bars in a covered container in your fridge for a week or up to three months in your freezer. The bars can be eaten cold or at room temperature – they take about 10 minutes to warm once out of the fridge.

Video
Nutrition
We have thoroughly tested this recipe for accuracy. However, individual results may vary. See our full recipe disclosure here.

Perfect recipe! And easy to make.
Thanks you!
You are so welcome!!
These taste just like the ones I ate growing up. I’m not sure why they loomed so large in my mind…. maybe the three layers were intimidating, but it was super easy and yummy.
Thanks,
I’m so happy they were a hit!!!
Just like my Mom’s. Couldn’t find her recipe , THANKS
You are so welcome!!
I just made your recipe for the first time, as Nanaimo bars were something I grew up with in Vancouver BC, but now that I live in Halifax NS, I haven’t seen them.
My question is, I made the middle layer per your instructions, and double checked my measurements, but I found it quite a bit thicker than pictured. (there was no “pouring” it out of my kitchenaid’s bowl, I’d compare the consistency I had to what I would expect it to be once it’s “set” in the fridge.
What can I do to get the proper consistency?
Thanks!
I haven’t encountered that before but it sounds like you could simply add a little more milk. You definitely want the custard to be on the firmer side so it will set properly in the fridge!
I wanted to ask about the final step, the directions say 8 oz of chocolate or 2 1/2 cups chocolate chips (which is a lot more than 8 oz, I think) … how much do you typically use?
Good question! The last time I made the recipe I used 8 ounces of chocolate that I shaved from a brick, which ended up measuring just over 2 cups. I just weighed and measured some chocolate chips that were in my pantry and 8 ounces was just over a cup. 8 ounces is the correct measurement. 🙂
Hi!
I’m making this for a coffee morning on Oct 15th & some of the people have a nut allergy. I’ve managed to find nut-free chocolate but I can’t find nut-free cocoa powder. Could I use some melted chocolate in the base instead? If not, what do you suggest?
I’ve honestly never seen cocoa powder with nuts in it so it should be pretty easy to find. Hershey’s Cocoa Powder is a pretty widely available one and does not have any nuts. Be aware though that there are nuts in the base of this recipe. You could try substituting them with sunflower seeds. 🙂
I am hosting a quilt bee tomorrow and thought I would make them a Canadian treat. I can already tell just by licking the spoons that they are going to be awesome! Thanks for the great recipe!!
You are so welcome! I hope everyone loved them as much as I do!
My son has a nut allergy so I replaced the walnuts with chopped pumpkin seeds. Delicious!
That’s such a great idea! Thank you for letting us know how they turned out with pumpkin seeds. If I ever need to replace the nuts I’ll know what to use instead!
Kristen, these photos are sooooo beautiful! I have to admit, I’ve never had nanaimo, but they look delicious!
Thank you so much! They’re my fav treat this time of year. Totally worth indulging in!
I love to make these every Christmas. My daughter, however, cannot eat chocolate so I was wondering if substituting butterscotch morsals for the top layer would work. What do you think?
I’m so sorry I didn’t see your comment until now. I hope it is not too late! It would change it for sure, but I bet it would still be delicious!
This recipe is similar to my grandmothers (90 yrs old), but her secret ingredient was adding chopped dates to the first three ingredients in the sauce pan. This simple addition kept the base moist and the taste of graham wafers was balanced. Thanks for sharing.
Kristen hi I’m niall from Ireland living in Asia I used your recipe and I love it. But I wanna make the nanaimo bars for my friends who are asian and they think the middle layer is a tad too sweet. Any way to make it less sweet without reducing the volume or texture of the custard centre??? Thx for everything 🙂
Ni Niall!
I haven’t tried tinkering with the recipe, but I would think that if you reduced the icing sugar in the middle layer it should still work out great.
Let me know how it goes!
I have added cornstarch for some icing sugar to make it less sweet. 1/2 c – 3/4 c.
That is such a great idea to add chopped dates. I think I’ll try that next Christmas season for sure!
This is my mother’s recipe! Hers were called Flanagans Fancies. I will only eat these as I find that the storebought Nanaimo’s are way too sweet for me. They are a Christmas tradition, however, I have to hide them from my sons as they will eat them all if they can find them!
Wow, my mother and grandmother used to call these FLANAGAN’S FANCIES too!
Any idea where this name came from?
~~Brant
That’s awesome! The name comes from Nanaimo, a small town in BC where the first recipe was printed back in 1953. I love hearing all the different names that these bars have. Apparently they have quite a few different names. 🙂
I always thought that the name of ours came from the lady who gave us the recipe. Her name was,of course, Mrs. Flanagan. My father taught the Flanagan children in Toronto.
It probably did! There seems to be a number of different names for the recipe. Nanaimo Bars is the one I grew up calling it. 🙂
I love the name Flanagans Fancies! They’re still my favourite Christmas treat. Can’t imagine the holidays without them ?
Hahaha….I so remember coming home to finding your first attempt at these…still makes me laugh that you ate all of them!! Lv you, xo
Are these the same as M&M Meat’s naniamo bars? I used to be able to get them when I lived in Buffalo, NY but now I live in Las Vegas with my husband and we clearly can’t just drive over the boarder to grab a box!
Hey Erin,
I’ve never had naniamo bars from M&M Meats before. My hunch is that these would be similar, but better since homemade treats always taste better than store bought 🙂 Let me know if they taste the same as you remember!
It is “Nanaimo”
Love your site!
d
Thanks, dd!
What is custard powder?
Hi Dianne,
Custard powder is basically corn starch with a little flavouring added. You can buy it in the baking section of almost all grocery stores. The brand I use is Birds, but I’m sure all brands would work well.