• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Start Here
  • Baking 101
  • Recipes
  • Shop

The Bake School

menu icon
go to homepage
  • Start Here
  • Baking 101
  • Recipes
  • Shop
  • Subscribe
    • Facebook
    • Instagram
    • Pinterest
    • Twitter
  • subscribe
    search icon
    Homepage link
    • Start Here
    • Baking 101
    • Recipes
    • Shop
    • Subscribe
    • Facebook
    • Instagram
    • Pinterest
    • Twitter
  • ×
    Home » Recipes » Bars & Squares

    Published on: November 28, 2024 by Janice Lawandi; Updated on: November 28, 2024 Leave a Comment

    Nanaimo Bars

    41 shares
    • Facebook
    • Reddit
    • Flipboard
    Jump to Recipe

    Learn how to make the best Nanaimo bars, the classic Canadian dessert recipe. This easy bar recipe is made in layers, with a dark chocolate graham cracker and coconut crust, a sweet vanilla custard filling, and a dark chocolate topping.

    Nanaimo bars cut into squares, laid out on a marble surface.

    There was a scandal years ago when the New York Times shared a photo of Nanaimo bars, where the filling-to-crust-to-topping ratio was off, and Canadians let them know! My best Nanaimo bars recipe has roughly equal parts crust and filling with a thin, but not too thin chocolate layer on top. I hope my fellow Canadians will approve!

    There are many variations for classic Nanaimo bars. If you'd like to try my favourite twist on this classic Canadian dessert, try these white chocolate Nanaimo bars which have a dark chocolate custard filling and a sweet graham cracker coconut base.

    Jump to:
    • Ingredients
    • Substitutions and Variations
    • Instructions
    • Perfect Nanaimo Bar FAQs
    • Other Bar Recipes to Try
    • 📖 Recipe

    Ingredients

    There are a few key ingredients that make Nanaimo bars standout. Here's what you need to make this recipe:

    Ingredients to make Nanaimo bars measured out.
    Disclosure: As an Amazon Associate, I earn from qualifying purchases.
    • dark chocolate—use good quality dark chocolate that you like to eat. Dark chocolate chips are fine, but I much prefer to use 70 % dark chocolate with a more complex flavour.
    • butter—unsalted butter is preferable in this recipe because I find the crust can be too salty if you use salted butter
    • graham cracker crumbs—you can either make your own crumbs from graham crackers or buy the crumbs.
    • coconut—sweetened or unsweetened shredded coconut work here, interchangeably
    • nuts—I prefer walnuts in my Nanaimo bar crust recipe
    • egg—I bake with large eggs and if you use a smaller (or bigger) egg, the crust may have a slightly different texture
    • cocoa powder—I used Dutch-processed cocoa powder, specifically Cacao Barry extra brute cocoa powder which is a rich cocoa powder with a reddish tint (around 22 % fat)
    • sugar—use icing sugar for the smoothest filling and granulated sugar for the base
    • cream—you need to use milk or cream to create a smooth, spreadable filling. I prefer to use whipping cream (35 % fat)
    • custard powder—I used Bird's custard powder
    • vanilla—I used pure vanilla extract
    • salt—most Nanaimo bars have no salt added. I like to add a very small amount of salt to the filling to help it pop. I use Diamond Crystal fine Kosher salt. If using regular table salt, add half the amount because it's saltier.

    Please see the recipe card for the exact ingredients and quantities.

    Substitutions and Variations

    The classic Nanaimo bar is very specific but you still have some flexibility when it comes to the ingredients. Here are some suggestions of where you can deviate:

    • Graham cracker crumbs—you can replace the graham cracker crumbs with vanilla wafer crumbs or crumbs made from social tea biscuits. The flavour will be different but still pleasant. You can enhance the crust with a little cinnamon if using vanilla cookies instead to mimic the spices in graham crackers.
    • Custard powder—I always have a box of Bird's custard powder on hand for Nanaimo bars. If you can't find custard powder, your best bet would be to replace the custard powder with vanilla pudding mix. It's not quite the same as custard powder has egg in it, but it's close enough!
    • Nuts—I used walnuts for the crust, but you can use any nuts. Pistachios or almonds would be really lovely. Pecans would also be great! Make sure to chop them finely.
    • Coconut—you can use sweetened or unsweetened coconut, but I find the base is a little more flavourful with sweetened coconut. Use a finer shred of coconut to make cutting the bars easier.
    • For a nut-free version—replace the nuts with extra coconut or incorporate pumpkin seeds or sunflower seeds in their place. Use the same volume.
    • Mint Nanaimo bars—for mint Nanaimo bars, replace the vanilla in the filling with up to 10 mL (2 teaspoons) of mint or peppermint extract. You may also want to skip the custard powder for this variation. Up to you! Some will also add green food colouring the the mint filling, but I do not.
    • Chocolate Nanaimo bars—for an all-chocolate version, use the dark chocolate custard filling from the reversed Nanaimo bars with the chocolate base and dark chocolate topping below.

    Instructions

    There are three components to Nanaimo bars: a crust, a filling (sometimes called icing) and a chocolate topping. Here's what you need to do to make perfect Nanaimo bars

    Melting butter and cocoa, then adding egg and dry ingredients to make the chocolate crust for Nanaimo bars.

    Step 1—Prepare the base for the Nanaimo bars by first melting the butter with cocoa powder (image 1) before stirring in the egg and vanilla off the heat (image 2). Meanwhile, combine the dry ingredients in a separate bowl or a food processor before mixing them into the saucepan (image 3). The crust mixture will form a somewhat greasy crumble (image 4).

    Pressing the Nanaimo bar chocolate crust into a square pan and baking until dry.

    Step 2—Line a metal 9x9 baking pan with parchment paper, leaving an overhang and transfer the crust mixture to the pan (image 5). Press it out using a flat-bottomed glass until smoothed out from edge to edge (image 6). Bake it until the crust is no longer glossy (image 7).

    Note: I like to use metal binder clips to secure the parchment paper in place as the crust bakes. Do not use plastic as it may melt or break down.

    Making the custard filling for Nanaimo bars by first creaming the butter before sifting in the dry ingredients and then stirring in cream and vanilla until smooth and fluffy.

    Step 3—While the crust is cooling down, you can make the Nanaimo bar custard filling by first creaming the butter until smooth and creamy (image 8) then sift in the dry ingredients (image 9) and add the cream and vanilla (image 10), mixing everything together until smooth and thick (image 11).

    Spreading the custard filling over the chocolate base to make Nanaimo bars.

    Step 4—Spread the custard filling over the cooled crust using an offset spatula (image 12). Make the filling as smooth as possible (image 13). Freeze the bars at this stage to set the filling and to create a cold surface for the chocolate.

    Note: Make sure the crust is completely cooled before topping with the custard icing. I like to pop the crust in the freezer before topping with the custard to ensure it is cold so the custard won't melt.

    Making a dark chocolate topping and spreading it over Nanaimo bars.

    Step 5—Melt the butter with the dark chocolate over a double boiler (image 14), stirring until smooth and emulsified (image 15), then pour it over the chilled pan of bars and spread it with a mini offset spatula (image 16). You can use the offset spatula to make a swirly design on top if you'd like (image 17). Chill until almost completely set before scoring and cutting into squares.

    Scoring and cutting Nanaimo bars in a square pan with a chef's knife.

    Step 6—Use a ruler and a pastry cutter or a large chef's knife to score through the chocolate topping before cutting into squares (image 18; then, you can cut through the bars completely and cleanly along the score lines. Clean the bench scraper or knife with every cut to ensure you get clean layers. Run a thin knife along the edges to release the bars from the pan sides with no parchment paper.

    Hint: Sometimes I am too lazy to unmould the bars before scoring, but as you can see, my squares are not as even as they could be. It's much easier to make even, clean cuts if you remove the bars from the pan using the parchment paper overhang, then place them on a cutting board to score and cut them evenly. Trust me!

    Perfect Nanaimo Bar FAQs

    Why is the crust greasy?

    Honestly, the crust will look oily or greasy before it's baked. In the oven, the graham cracker crumbs have time to absorb the butter as it bakes and the crust will appear dry when it's baked through. This is normal. The base will not taste or feel greasy when you eat it. If you are concerned, you can blot the surface of the crust with a square of paper towel before baking, but really trust the process! It will be fine!

    Why is the custard filling of my Nanaimo bars grainy?

    If you find the texture of the Nanaimo bar filling isn't as smooth and creamy, it's likely you didn't beat it for long enough. Beat the filling for about 5 minutes to create a light filling with a very smooth and creamy consistency, otherwise it may be lumpy or gritty.

    How do I store Nanaimo bars?

    You can store Nanaimo bars for up to 1 week in the refrigerator, but I prefer to cut them into smaller squares (64 tiny squares) and then store them in an airtight container in the freezer for later. Defrost overnight in the fridge when ready to serve. Sometimes I snack on a few by letting them defrost on a plate at room temperature for 5–10 minutes. It's a guilty pleasure!

    Other Bar Recipes to Try

    Looking for other bar recipes like this to bake? Try these:

    • A plate of puffed rice and marshmallow treats cut into squares.
      Salted Brown Butter Rice Krispies Treats
    • Mini Egg bars cut into squares and served on small plates with a glass of milk on the side and a bowl of Mini Eggs.
      Mini Eggs Blondies
    • Brownies decorated with Easter eggs cut into squares to serve.
      Easter Brownies With Mini Eggs
    • Brownies with walnuts cut into squares on a marble surface.
      Brownies with Walnuts

    If you tried this recipe for Nanaimo bars (or any other recipe on my website), please leave a ⭐ star rating and let me know how it went in the comments below. I love hearing from you!

    📖 Recipe

    Nanaimo bars cut into squares and served on a marble surface.

    Nanaimo Bars

    AuthorAuthor : Janice Lawandi
    Learn how to make the classic Canadian Nanaimo bars with this easy recipe! These bars have a chocolate graham cracker and coconut crust with a sweet vanilla custard filling and dark chocolate topping.
    No ratings yet
    Prevent your screen from going dark
    Print Recipe Pin Recipe Save Recipe Saved Recipe
    Prep Time 30 minutes mins
    Cook Time 10 minutes mins
    Chill time 1 hour hr
    Total Time 1 hour hr 40 minutes mins
    Course Dessert
    Cuisine Canadian
    Servings 16 squares
    Calories 346 kcal

    Equipment

    • 9x9-inch pan
    • Food processor
    • Mini offset
    Need measurements in CUPSUse the button options below to switch from Metric to US measurements! It's that easy!

    Ingredients
     
     

    For the crust

    • 115 grams unsalted butter melted
    • 50 grams granulated sugar
    • 30 grams Cacao Barry extra brute cocoa powder chopped
    • 1 large egg(s)
    • 5 mL pure vanilla extract
    • 200 grams graham cracker crumbs
    • 75 grams sweetened shredded coconut
    • 60 grams walnuts chopped

    For the vanilla custard Nanaimo bar filling

    • 115 grams unsalted butter softened
    • 250 grams icing sugar
    • 30 tablespoon Bird's custard powder
    • 45 mL whipping cream (35 % fat)
    • 5 mL pure vanilla extract
    • 1.25 mL Diamond Crystal fine kosher salt

    For the dark chocolate topping

    • 175 grams dark chocolate (70 % cocoa content) chopped
    • 15 grams unsalted butter

    Instructions
     

    For the chocolate graham cracker coconut crust

    • Preheat the oven to 350°F (175 °C). Prepare a 9×9-inch (23x23-cm) pan by lining it with parchment paper leaving an overhang. Use all-metal binder clips to secure in place if necessary or alternatively you can butter the pan to help keep the paper in place. Set aside.
    • In a small saucepan, melt the butter. Stir in the cocoa powder, then the egg and vanilla
    • Meanwhile in a medium bowl or in the bowl of the food processor, combine the graham cracker crumbs, coconut, and walnuts. Stir in the melted butter mixture and mix to combine.
    • Press the crumb mixture into the prepared pan and use a flat-bottomed glass to flatten the crust into an even layer.
    • Bake the crust until it looks dry and no longer glosser (about 15 minutes). Place the pan on a wire rack to let the crust cool completely.

    For the vanilla custard filling

    • When the crust is cooled, make the vanilla custard filling by creaming the butter first before sifting in the icing sugar and custard powder. Add the cream and vanilla also.
    • Beat the mixture until smooth and continue whipping for about 5 minutes. This will lead to a less powdery/grainy filling with a smoother texture. You can adjust the consistency of the filling with either more icing sugar (if it's too soft) or more cream (if it's too firm). The filling should be very thick.
    • Spread the custard filling over the cold graham cracker crust. Place it in the refrigerator to set for at least 1 hour or in the freezer for 15 minutes.

    For the dark chocolate layer

    • When the filling is completely cold and firm, make the chocolate topping by melting together the dark chocolate with the butter over a pan of simmering water (double-boiler) or in the microwave. Make sure to stir often so nothing burns.
    • Pour the melted chocolate over the filling and spread it out quickly with an offset spatula.
    • Refrigerate the pan for about 15 minutes to partially set the chocolate, then with a sharp knife, cut through the white chocolate top layer into 16–25 squares to make cutting easier later on.
    • Refrigerate for another hour or so, until the chocolate is completely hardened.
    • Cut the squares along the score lines to serve. Wipe the knife between cuts for the cleanest edges.

    Notes

    • For the dark chocolate, I used Cacao Barry 70 % dark chocolate
    • For the cocoa powder, I used Cacao Barry extra brute, which you can buy on Amazon
    • For the graham cracker crumbs—you can replace the graham cracker crumbs with vanilla wafer crumbs or crumbs made from social tea biscuits. The flavour will be different but still pleasant. You can enhance the crust with a little cinnamon if using vanilla cookies instead to mimic the spices in graham crackers.
    • For the custard powder—I always have a box of Bird's custard powder on hand for Nanaimo bars. If you can't find custard powder, your best bet would be to replace the custard powder with vanilla pudding mix. It's not quite the same as custard powder has egg in it, but it's close enough!
    • For the nuts—I used walnuts for the crust, but you can use any nuts. Pistachios, almonds, or pecans would be really lovely (though more expensive). Make sure to chop them finely.
    • I cut my pan of Nanaimo bars into 16 big squares, but sometimes I cut the squares into 32 bars, or even 64 bite-size squares. It's up to you how big or how small you make them. 
    • Mint Nanaimo bars—for mint Nanaimo bars, replace the vanilla in the filling with up to 10 mL (2 teaspoons) of mint or peppermint extract. You may also want to skip the custard powder for this variation. Up to you! Some will also add green food colouring the the mint filling, but I do not.
    • Chocolate Nanaimo bars—for an all-chocolate version, use the dark chocolate custard filling from the reversed Nanaimo bars with the chocolate base and dark chocolate topping below.
    • For a nut-free version—replace the nuts with extra coconut or incorporate pumpkin seeds or sunflower seeds in their place. Use the same volume.

    Nutrition

    Calories: 346kcalCarbohydrates: 33gProtein: 3gFat: 24gSaturated Fat: 13gPolyunsaturated Fat: 3gMonounsaturated Fat: 6gTrans Fat: 1gCholesterol: 48mgSodium: 100mgPotassium: 162mgFiber: 3gSugar: 25gVitamin A: 457IUVitamin C: 0.1mgCalcium: 27mgIron: 2mg
    Give backIf you enjoy the free content on this website, buy me a pound of butter to say thanks!

    More Bars & Squares Recipes

    • A pink glass plate with lemon bars.
      Easy Lemon Bars
    • Chocolate brownies topped with raspberries and white chocolate chunks, cut into squares and served on a black plate.
      Raspberry White Chocolate Brownies
    • Popcorn brittle brownies are chewy with a good brownie edge
      Chewy popcorn brittle brownies
    • A plate of peanut butter brownies with a napkin.
      Chocolate Peanut Butter Brownies (Gluten-Free)

    Baking resources

  • Baking conversion charts
  • Baking ingredients and pantry staples
  • Baking substitutions
  • Common baking conversions
  • Choosing baking pans
  • How to measure ingredients for baking
  • Mixing methods
  • Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Recipe Rating




    Primary Sidebar

    This is a picture of Janice Lawandi

    Hi, I'm Janice!

    I am a baking-obsessed recipe developer with a PhD in Chemistry who writes about baking and the science of baking.

    More About Me

    Join the Community

    If you enjoy the free content on this website or have questions, consider joining the Bake School Community!

    Easter Treats

    • Strawberry jam with rhubarb smeared on a piece of toast on a plate.
      Strawberry Rhubarb Jam
    • Freshly baked rhubarb crumble ready to be served.
      Rhubarb Crumble
    • Rhubarb upside down cake sliced to serve it.
      Rhubarb raspberry upside-down cake
    • Serving rhubarb muffins on plates with a side of butter.
      Rhubarb muffins with sour cream and streusel
    • Let's bake with rhubarb-best rhubarb recipes roundup
      What to bake with rhubarb
    • Bluebarb or blueberry rhubarb crumble with a marzipan oat crumble topping in a blue baking dish with a fluted edge
      Blueberry rhubarb crisp with marzipan crumble

    Berry Baking

    • Milk crumbs on a Momofuku Milk Bar style cake-layers of blackberry curd, almond cake, and almond frosting
      Blackberry almond cake — Milk Bar style
    • raspberry amaretti semifreddo slice
      Almond raspberry semifreddo
    • Vanilla cardamom tapioca pudding with strawberries
      Homemade tapioca pudding recipe with fresh strawberries
    • A pan of baked honey blueberry muffins with streusel topping.
      Honey blueberry muffins
    • Honey-kissed-strawberry-rhubarb crumbles
      Strawberry Rhubarb Crumble With Honey
    • A plate of raspberry financiers.
      Raspberry Financiers

    Eggless chocolate cake

    Chocolate layer cake with cream cheese frosting and chocolate sprinkles on a cake stand.
    Learn to make an eggless chocolate cake with cream cheese frosting!

    Baking conversions

    Buy the baking conversion charts NOW!

    As seen on

    Logos of online and offline publications that featured the Bake School and Janice Lawandi.

    How to poach pears

    Poached pears on an enamelware plate.
    This easy poached pears recipe is simple and you can use the poached fruit for salads, appetizers, and desserts!

    Footer

    ↑ back to top

    About

    • Meet Janice Lawandi
    • FAQ
    • Privacy Policy
    • Terms and conditions
    • Accessibility
    • Press

    Newsletter

    • Sign Up! for emails and updates

    Contact

    • Contact
    • Services
    • Portfolio

    As seen on

    Logos of online and offline publications that featured the Bake School and Janice Lawandi.

    As an Amazon Associate I earn from qualifying purchases.

    COPYRIGHT © 2025 · THE BAKE SCHOOL

    Rate This Recipe

    Your vote:




    A rating is required
    A name is required
    An email is required