Canadian Nanaimo Bars

title 1
Canadian Nanaimo Bars
⏱️ cook time 10 minutes
🍽️ servings 16
⚡ Difficulty easy

intro

Iconic no-bake Canadian treat with three distinct layers: chocolate-coconut crumb base, creamy vanilla custard middle, and smooth glossy chocolate top—rich, nostalgic, and perfectly portable.

Ingredients

Unsalted butter (divided for all layers) 198g (¾ cup + 2 tbsp total)
Granulated sugar 50g (¼ cup)
Unsweetened cocoa powder 30g (5 tbsp)
Large egg 1, lightly beaten
Graham cracker crumbs 150g (1 ½ cups)
Sweetened shredded coconut 80g (1 cup)
Finely chopped walnuts 50g (½ cup)
Heavy cream 30ml (2 tbsp)
Vanilla custard powder 20g (2 tbsp)
Powdered sugar 240g (2 cups)
Semi-sweet chocolate 113g (4 oz), chopped
Fine sea salt 1/8 tsp

Steps

1

Line Baking Pan

Line the 8x8 inch square matte silver aluminum baking pan with the cut unbleached parchment paper, leaving 5cm overhang on two opposite sides to act as lift handles for the finished bar slab. Press the paper firmly into the pan corners and up the sides to prevent shifting, then set the lined pan at the center of the work surface.

Step 1
step1:Line Baking Pan
2

Melt Base Mixture

Set the 1L stainless steel saucepan on the flush induction cooktop on the right side of the counter. Add ½ cup (113g) of the butter, granulated sugar, cocoa powder, and fine sea salt to the pan. Heat over low setting, stirring constantly with the charcoal silicone spatula, until butter is fully melted and mixture is smooth, about 3 minutes. Remove pan from heat, slowly drizzle in the beaten egg while whisking rapidly to avoid curdling, then return to low heat for 1 minute, stirring until the mixture thickens to a thin, pudding-like consistency that coats the back of the spatula.

Step 2
step2:Melt Base Mixture
Step 2
step2:Melt Base Mixture
3

Press Crumb Base

Take the saucepan off the heat, stir in graham cracker crumbs, shredded coconut, and chopped walnuts until every crumb is evenly coated in the chocolate mixture. Transfer the entire crumb mixture to the parchment-lined baking pan, use the flat base of the glass measuring cup to press the crumbs firmly into a uniform, compact layer across the entire pan bottom, with no gaps or loose crumbs. Place the pan on the chrome wire cooling rack and transfer to the refrigerator to chill for 20 minutes while you prep the filling.

Step 3
step3:Press Crumb Base
4

Mix Custard Filling

Place the medium stainless steel mixing bowl at center counter. Add the remaining ¼ cup (57g) softened room-temperature butter, heavy cream, and vanilla custard powder to the bowl. Stir vigorously with the silicone spatula until completely smooth, with no visible lumps of custard powder, about 2 minutes. Gradually sift in powdered sugar ½ cup at a time, stirring continuously, until the filling is thick, pale creamy yellow, and spreadable, matching the consistency of firm buttercream.

Step 4
step4:Mix Custard Filling
Step 4
step4:Mix Custard Filling
5

Spread Custard Layer

Retrieve the chilled crumb base from the refrigerator: it should be firm to the touch, with no give when pressed lightly with a fingertip. Dollop all of the custard filling over the top of the base, then use the offset metal spatula to spread the custard into a perfectly even, smooth layer across the entire surface, taking care not to press too hard and dislodge crumbs from the base. Return the pan to the wire rack and chill for 15 minutes, until the custard layer is firm to the touch.

Step 5
step5:Spread Custard Layer
6

Melt Chocolate Topping

Wipe the small stainless steel saucepan clean with a paper towel, then set it back on the low-heat induction cooktop. Add the remaining 2 tbsp (28g) butter and chopped semi-sweet chocolate to the pan, stirring constantly with the clean silicone spatula until completely smooth, about 2 minutes. Do not overheat the chocolate, as high heat will cause it to seize and turn grainy. Remove the pan from heat and let the chocolate cool for 5 minutes, until it is just slightly warm to the touch, not hot.

Step 6
step6:Melt Chocolate Topping
7

Top With Chocolate

Remove the chilled pan with the custard layer from the refrigerator. Pour the cooled melted chocolate evenly over the set custard, then use the offset spatula to spread the chocolate into a thin, uniform layer across the entire surface, working quickly before the chocolate sets from the cold custard. Tap the pan gently on the counter 3-4 times to pop any trapped air bubbles in the chocolate, then return the pan to chill for 1 full hour, until all layers are completely firm.

Step 7
step7:Top With Chocolate
8

Cut Into Portions

Once fully chilled, use the parchment paper overhang to lift the entire solid bar slab out of the baking pan and set it on the counter surface. Dip the walnut-handled chef knife in hot tap water, wipe it dry with a corner of the cream towel, and cut the slab into 16 even 5cm squares, wiping the knife clean between every cut to create sharp, clean edges without smudging the layers. Arrange the cut bars on the matte white ceramic serving platter.

Step 8
step8:Cut Into Portions
Step 8
step8:Cut Into Portions

Tips

1.Chill each layer fully before adding the next: if the crumb base or custard is soft when you pour warm chocolate on top, layers will smudge and blend, ruining the signature clean, distinct three-layer look of classic Nanaimo bars.
2.Use traditional vanilla custard powder, not instant vanilla pudding mix, for the middle layer: pudding mix creates a softer, runnier filling that never sets firm, while custard powder delivers the iconic pale yellow color and rich, buttery, old-fashioned vanilla flavor.
3.Wipe your knife with a hot, damp cloth between every cut when portioning: the warm knife cuts cleanly through the firm chocolate top without cracking it, and wiping away residue prevents dragging smudges of custard or crumbs across cut surfaces.

✨ You May Also Like

Desserts & Baking
🍜 Italy

Creamy, coffee-kissed classic Northern Italian no-bake dessert, with layers of rum-spiked mascarpone cream, soft ladyfingers, and a rich cocoa dusting.

⏱️ 4 hours 3Desserts & Baking ★ 4.7
Desserts & Baking
🍜 France

Flaky, shatteringly crisp, buttery French croissants with golden exteriors and soft, airy layered interiors, perfect for pairing with coffee for a special morning treat.

⏱️ 12 hours Desserts & Baking ★ 4.5
Desserts & Baking
🍜 United States

Warm, spiced baked apples topped with a fluffy golden biscuit crust, this cozy dessert pairs perfectly with vanilla ice cream for cool-weather comfort.

⏱️ 55 minuteDesserts & Baking ★ 4.6
Desserts & Baking
🍜 United States

A star-spangled classic American blueberry pie with buttery flaky crust and bright sweet-tart filling, perfect for summer patriotic gatherings.

⏱️ 1 hour 25Desserts & Baking ★ 4.7
Desserts & Baking
🍜 United States

A beloved no-bake regional Maine candy with a chewy coconut-potato center coated in rich dark chocolate, a New England holiday staple since the 1870s.

⏱️ 2 hours 3Desserts & Baking ★ 4.8
Desserts & Baking
🍜 France

Luxuriously creamy, floral frozen custard made with aromatic Tahitian vanilla beans, boasting a smooth, rich texture that melts slowly on the tongue.

⏱️ 3 hours 3Desserts & Baking ★ 4.5

Canadian Nanaimo Bars:Frequently Asked Questions

1.I’m worried about the egg in the base being undercooked—do I need to take special steps to make it safe to eat? ▾
You don’t have to stress about raw egg here! When you stir the beaten egg into the warm melted butter, sugar, and cocoa mixture over low heat, you’ll cook it gently for 1 to 2 minutes until it thickens slightly, hitting a food-safe 160°F. This step also helps the crumb base bind tightly so it doesn’t fall apart when sliced.
2.What can I substitute if I don’t have vanilla custard powder for the middle layer? ▾
Traditional Nanaimo bars use custard powder for that distinct nostalgic, creamy vanilla middle, but if you don’t have it, swap it for an equal amount of instant vanilla pudding mix (skip the cook-and-serve variety, which won’t set right). Don’t add extra milk or cream to the filling, or it will turn runny and fail to hold its shape under the chocolate top.
3.Why does my chocolate top crack every time I try to slice the bars? ▾
Cracked chocolate tops almost always stem from two easy-to-fix mistakes: pouring hot chocolate over a fully frozen, rock-hard custard layer, or waiting until the chocolate is completely cold to cut. Let the chocolate set for 10 minutes at room temp first, score light guide lines, and use a sharp knife warmed under hot water (wiped dry) for clean, smooth slices.
4.Can I make these bars nut-free to pack for school lunches? ▾
Absolutely! Many classic Nanaimo bar recipes add chopped walnuts or almonds to the crumb base, but you can leave those out entirely without ruining the texture. Just stick to the core base ingredients: graham cracker crumbs, coconut, cocoa, butter, and cooked egg. Double check all packaged ingredients for nut cross-contamination warnings if serving anyone with severe allergies.
5.What’s the best way to store Nanaimo bars, and how long do they stay fresh? ▾
These bars are famously portable and shelf-stable. Keep them in an airtight container at cool room temperature for up to 4 days, or in the fridge for up to 2 weeks. You can also freeze them tightly wrapped in plastic and foil for up to 3 months; just thaw in the fridge for 30 minutes before serving for the best creamy texture.

Comments (16)

2 days ago

OMG these are SO good! I brought them to my office potluck yesterday and every single last bar was gone before I even got a second piece. The custard layer is *chef’s kiss* no weird artificial taste like the store-bought Nanaimo bars I’ve tried before. 10/10 will make again for my kid’s soccer snack next week!

yesterday

Wait did you use regular custard powder or the vanilla instant pudding hack I keep seeing? I’m making these for a block party this weekend!

yesterday

So glad these were a hit at your potluck! For the most authentic classic flavor, we recommend standard custard powder, but instant vanilla pudding works as a quick 1:1 substitute if you’re in a pinch!

1 week ago

I was so nervous to make these gluten free for my sister’s birthday, but swapping the graham crumbs for GF graham cracker crumbs worked perfectly! Nobody at the party could tell they were modified at all. The texture is perfectly chewy on the bottom, creamy in the middle, crisp chocolate on top. Obsessed!

5 days ago

Did you have to adjust any of the butter or condensed milk amounts with the GF crumbs? I’ve had GF no-bake crusts turn out super crumbly before 😅

5 days ago

Love that GF swap! When using GF graham crumbs, we recommend pressing the crust layer extra firmly into the pan and chilling it for 10 extra minutes before adding the custard layer to prevent crumbliness. No measurement adjustments needed!

5 days ago

Okay as a broke college student with barely any kitchen supplies, this recipe was chef’s kiss. No fancy equipment, 10 minutes cook time, and I had all the ingredients except custard powder so I used the vanilla pudding substitute someone mentioned in another comment. My roommates are already begging me to make these again for our game night this weekend.

3 days ago

Wait did you line your pan with parchment paper? I made a different Nanaimo bar recipe last month and the whole thing stuck to the pan so bad I had to scrape it out with a spoon lmao

2 days ago

Oh for sure! I didn’t have parchment so I used a little extra butter to grease the pan and it popped right out no problem. Definitely don’t skip greasing if you don’t have parchment!

2 weeks ago

Made these for our post-football watch party cookout and even my tough-to-impress father-in-law asked for the recipe! I added a handful of chopped pecans to the bottom crust because we love a little crunch down here in Texas. Absolute home run of a no-bake dessert.

1 week ago

Oh the pecan addition sounds insane! Did you toast them first or just toss them in raw?

1 week ago

Toasted pecans in the crust are such a delicious upgrade! We’ve also had readers add shredded coconut or even a pinch of sea salt on top of the chocolate layer for extra depth of flavor.

3 days ago

These hold up so well in the fridge for meal prep! I cut them into small squares and keep them in a sealed container for a quick little sweet treat after work all week. I will say, I cut the sugar in the custard layer by a tablespoon and it was still perfectly sweet for my taste. Great easy recipe!

2 days ago

Great tip on adjusting the sugar to taste! So glad these work for your weekly meal prep rotation. They’ll stay fresh in an airtight container in the fridge for up to a week, perfect for quick treats.

yesterday

Thanks for the sugar cut tip! I’ve been looking for lower-sugar dessert options that don’t taste like cardboard, I’ll definitely give that a try when I make these this weekend.

2 hours ago

I’m literally the worst at baking, like I burn pre-made cookie dough bad. But these? I nailed them on the first try! They look exactly like the photo and taste even better. My little cousin said they’re the best thing I’ve ever made, which is a huge win lmao

30 minutes ago

That’s what we love to hear! This recipe is perfect for new bakers because there’s no fancy baking required, just a quick melt on the stovetop and chill time in the fridge. So proud you nailed it!

1 week ago

I’ve tried at least 4 different Nanaimo bar recipes over the years and this one is by far the most authentic to the ones I had on my trip to Vancouver years ago. The ratio of coconut to crumbs in the base is perfect, not too dry, not too sticky. 10/10.

5 days ago

Oh I’m so glad you said that! I’m from BC originally and have been searching for a good recipe that doesn’t skimp on the coconut or make the custard layer too thin. Can’t wait to test this out!

yesterday

Made these with my 7 year old last night for his class bake sale. He had a blast stirring the chocolate and sprinkling extra coconut on top. We already got three texts from other parents asking for the recipe this morning! Will be a regular in our dessert rotation for Sunday family dinners for sure.

2 hours ago

Love that you made these with your kid! This is such a great recipe for little helpers because most of the steps are safe for kids to help with (with adult supervision for the stovetop melting part, of course). So happy they were a bake sale hit!

30 minutes ago

Wait a second, why did I sleep on Nanaimo bars for so long??? I had my first one at a coffee shop last month and immediately needed to make them at home. This recipe is exactly what I was craving—rich, chocolatey, not too sweet, perfect texture all around.

5 minutes ago

Right??? I thought they were just weird Canadian energy bars or something until I tried one last year, now I make them at least once a month. This recipe is way better than the first one I found online!

5 days ago

Super easy, minimal cleanup, and tastes incredible. I will say, I let mine chill for almost 4 hours instead of the 1 hour the recipe says and the layers cut way cleaner without smushing the custard everywhere. Worth the extra wait if you have time!

3 days ago

That’s such a great pro tip! Longer chill time does make for cleaner cuts, especially if your kitchen is on the warmer side. We usually recommend 1-4 hours of chill time depending on how firm you want the layers to be.

2 weeks ago

Made these for my girls’ brunch last weekend and they were the star of the spread! I cut them into tiny bite-sized pieces so they were easy to grab alongside mimosas. 10/10, will be adding these to every future brunch menu.

1 week ago

Bite-sized is such a smart call! I’m hosting brunch next month and was looking for easy make-ahead desserts, this just jumped to the top of my list.

1 week ago

Total game changer! I keep a batch of these in my freezer around the holidays for last-minute guests! They thaw in like 10 minutes and taste just as good as fresh. So much easier than baking cookies when you have people dropping by unannounced.

2 weeks ago

Added a tiny 1/4 tsp of peppermint extract to the chocolate top layer around Christmas time and it was *chef’s kiss*—tasted like a fancy peppermint patty but with that classic Nanaimo bar chew. Will be doing that every year from now on.

2 days ago

10 minute cook time is no joke! I threw these together after work while my pasta was boiling for dinner, stuck them in the fridge, and by the time we were done with dinner they were almost ready to eat. My kids loved it so much they asked for seconds before they even finished their broccoli! Perfect for busy weeknights when you want a little something sweet without the hassle.

3 days ago

Swapped the butter for vegan butter, used condensed coconut milk instead of regular condensed milk, and these came out perfectly! Even my non-vegan roommate said he liked them better than the regular Nanaimo bars he’s had before. Great base recipe to modify for dietary needs.

just now

These are really good, but for my taste the chocolate top layer is a little thick. Next time I make them I’ll use a little less chocolate so the custard and coconut base shine more. Still a solid easy recipe, just a personal preference thing!