At the Immigrant's Table

  • Home
  • About me
    • Contact
    • Privacy Policy
  • Shop
  • Travel
  • Jewish Recipes
  • Russian and Ukrainian Recipes
  • Main Course Recipes
  • Healthy Side Dishes
  • Dessert Recipes
  • Travel
  • Gluten-free Recipes
  • Paleo recipes
  • Vegan recipes
menu icon
go to homepage
  • About Me
  • Recipes
  • Cookbook
  • Membership
  • Shop At The Immigrant's Table
  • Collaborate
subscribe
search icon
Homepage link
  • About Me
  • Recipes
  • Cookbook
  • Membership
  • Shop At The Immigrant's Table
  • Collaborate
×
Home » Recipes » Traybakes, bars and squares

The Best Gluten-Free Nanaimo Bars Recipe

By: kseniaprints · Updated: Jun 23, 2026 · This post may contain affiliate links.

  • Facebook
  • Flipboard
  • X
Jump to Recipe Pin Recipe
Four chocolate-topped dessert bars stacked on a pink plate, with coconut sprinkled on top.

Everyone seemed to reach for gluten-free Nanaimo bars before anything else. After years of adapting desserts and making them for family gatherings, this is the version I rely on. They're easy to make ahead and have the creamy filling and chocolate topping I love most. 

A hand holds a chocolate-topped dessert bar over a plate with more bars and a baking pan in the background.
Jump to:
  • Ingredients
  • Top Tips
  • How to Make Gluten-Free Nanaimo Bars
  • Storage
  • FAQs
  • Recipe

Moving to a new country meant learning hundreds of small things that nobody puts in official guides. You learn which grocery stores carry the bread you miss from home. How the children dress for snow. You learn that every community has its own way of welcoming people, often without saying very much.

Before I knew much about Canadian traditions, I spent many afternoons sitting on cold benches during youth sports games, school events, and community fundraisers. There were coffee urns, raffle tickets, paper napkins, and trays of homemade baking passed between strangers who somehow felt familiar. Someone always brought snacks. Long before I knew their name, I noticed Nanaimo bars.

Save This Recipe Form

Want to save this recipe?

Enter your email below & I'll send it straight to your inbox. Plus you’ll get more great recipes and tips from me each week!

Four stacked Nanaimo bars with chocolate topping and coconut, on a pink plate.

Three layers, neatly cut into squares, sitting beside butter tarts and banana bread. I remember wondering what that pale filling was and why everyone seemed to reach for these bars first. Years later, after building a life here, raising children, and finding my place between cultures, I still think about those early gatherings whenever I make gluten free Nanaimo bars.

I spent years making different layered desserts and adjusting recipes so everyone around our table could enjoy them. That same process led to recipes like my gluten-free Queen Elizabeth cake, which reminds me of old-fashioned Canadian baking with dates and coconut. On brighter spring days, I often make lemon cheesecake bars with lemon curd, especially when Lin asks for something she calls sunshine cake. Around Passover, I turn to my chocolate hazelnut bars, whose rich chocolate layer always disappears quickly.

Those recipes taught me something valuable when developing these gluten-free Nanaimo bars. Texture matters as much as flavor. The base should hold together without becoming dense. The middle layer should stay creamy without feeling heavy. The chocolate top should break softly beneath the knife rather than shatter.

A hand holds a layered dessert bar with a chocolate top; more bars are on a plate and in a baking pan.

Last winter, Lin stood on his stool beside me while I prepared a batch for friends. At three years old, patience is still a work in progress. She kept peeking into the refrigerator every fifteen minutes, asking if the bars were ready yet. Leo, who is five, has learned that some desserts reward waiting.

F cut the first square while tea steamed nearby, and for a moment I thought again about those early Canadian community gatherings. About paper plates and hockey arenas. About learning a country through ordinary afternoons. There are recipes tied to holidays and milestones.

And then there are recipes like gluten-free Nanaimo bars, which remind me that belonging often grows quietly, one gathering at a time.

Ingredients

Baking ingredients on a tiled surface: chocolate, custard powder, coconut, butter, egg, milk, nuts, sugar, crumbs.

The base of these gluten free Nanaimo bars begins with gluten free graham cracker crumbs. After trying several combinations over the years, I still come back to graham crumbs because they create that familiar texture I remember seeing at Canadian community gatherings. They hold together well without becoming heavy. If graham crackers are difficult to find, gluten-free digestive biscuits work nicely too.

Unsweetened shredded coconut gives the bottom layer its characteristic chew. It is one of the ingredients that makes a Nanaimo bar It gives the base the chewy texture I associate with this Canadian classic. I have tried reducing the amount before, though the bars lost some of the texture I grew up associating with this Canadian classic. Sweetened coconut can be used, though it makes the bars noticeably sweeter.

The custard powder is what gives the middle layer its pale color and gentle vanilla note. Bird's custard powder is the traditional choice and one I always keep in the pantry around the holidays. It creates the flavor people recognize immediately. Vanilla pudding mix can work in a pinch, though the filling tastes slightly different from the classic Canadian version.

Semi-sweet chocolate forms the top layer and balances the sweetness underneath. I prefer semi-sweet chocolate because it creates a smoother finish and keeps the bars from becoming overly rich. Dark chocolate works well if you prefer a deeper chocolate flavor.

See the recipe card for the full list and exact quantities.

Top Tips

Slice Before the Chocolate Turns Rock Hard - I learned this after cracking more than one batch into uneven pieces. Once the chocolate layer has set slightly but still feels a little soft, lightly score the surface with a knife. When the bars are fully chilled later, they separate into much cleaner squares without the chocolate breaking apart.

Use Finely Chopped Nuts for a Better Texture - the first few times I made these, I used larger walnut pieces and found the bars difficult to cut neatly. Smaller pieces create a base that holds together better and give each bite a more even texture. I usually pulse the nuts briefly rather than leaving large chunks.

Make Them Ahead if You Can - these gluten-free Nanaimo bars actually improve after a night in the refrigerator. The layers settle, the base becomes easier to slice, and the flavors have time to come together. I often prepare them the evening before a family gathering, which also makes dessert one less thing to think about the next day.

How to Make Gluten-Free Nanaimo Bars

Four chocolate-topped dessert bars stacked on a pink plate, with coconut sprinkled on top.

These gluten-free Nanaimo bars come together in layers, and each one has its own texture to watch for. The base should feel sturdy without becoming hard, the center should stay creamy and spread easily, and the chocolate top should set firmly while remaining easy to slice. Here's how I make them:

Combine the Dry Ingredients

A metal bowl with shredded coconut and brown sugar mixture, and a spatula; a plate of butter is nearby.
Start by stirring together the gluten-free graham cracker crumbs, chopped nuts, and shredded coconut in a large bowl.
  • You want the mixture to look evenly distributed, with no pockets of coconut or nuts gathered in one area.
  • Finely chopped nuts work best here. The mixture should look loose and sandy before the wet ingredients are added.

Add the Wet Ingredients

A hand holding a metal bowl of shredded, seasoned mixture being whisked, on a tiled surface.
Pour the melted butter and beaten egg into the dry ingredients and mix thoroughly.
  • At first, the mixture may seem crumbly, but keep stirring until everything is coated.
  • You're looking for a texture similar to damp sand. When squeezed in your hand, it should hold together without feeling greasy. If dry crumbs remain at the bottom of the bowl, continue mixing until they disappear.

Press the Base Into the Pan

A hand uses a spatula to press coconut crust into a square metal baking pan on a tiled surface.
Transfer the mixture to an 8-inch square pan and press it firmly into an even layer.
  • I like using the bottom of a measuring cup or a spatula because it creates smooth corners and a compact base.
  • Take your time with this step. If the base isn't packed tightly enough, the bars can crumble later when sliced. The surface should look level and feel firm when lightly pressed with your fingertips.
  • Place the pan in the refrigerator while preparing the filling. Chilling gives the base time to settle and makes spreading the next layer much easier.

Beat the Butter and Custard Powder

A hand holds a measuring spoon over a mixing bowl with flour, sugar, and melted butter on a tiled surface.
In a medium bowl, beat the softened butter until smooth and creamy.
  • There shouldn't be any lumps left before adding the custard powder.
  • After mixing in the custard powder, the color will become slightly pale and the mixture should look smooth. If your butter is still cold, you may notice small pieces that refuse to blend. Allow it to sit at room temperature for a few more minutes before continuing.

Create the Creamy Middle Layer

A metal bowl with flour mixture and two whisks on a light tiled surface, viewed from above.
Gradually add the powdered sugar, alternating with small amounts of milk.
  • At first, the mixture may seem too thick, though it comes together as you continue beating.
  • The finished filling should resemble thick frosting. It should spread easily but hold its shape without running. If it feels stiff and crumbly, add a small splash of milk. If it becomes too soft, refrigerate it briefly before spreading.
  • One thing I've learned over the years is not to rush this stage. A smooth filling creates those clean layers that make Nanaimo bars so recognizable.

Spread and Chill the Filling

A spatula spreads yellow cake batter evenly in a square metal baking pan on a tiled surface.
Spread the custard layer evenly over the chilled base, working gently all the way to the corners.
  • An offset spatula helps create a smooth surface, though the back of a spoon works too.
  • Try not to press too hard. Too much pressure can pull crumbs from the base into the filling.
  • Return the pan to the refrigerator and let the middle layer firm up. It should feel cool and slightly set before the chocolate goes on top. If it's still soft, the layers may shift when the chocolate is added.

Melt the Chocolate

  • Place the chocolate and butter in a heatproof bowl and melt them slowly. Whether using a double boiler or the microwave, stir frequently between intervals.
  • The chocolate should become glossy and completely smooth. Stop heating as soon as the last pieces melt. Overheated chocolate can become thick and lose its silky texture.

Add the Chocolate Layer

A pan of melted chocolate next to a bowl of chocolate with a spoon on a white surface.
Pour the melted chocolate over the chilled filling and gently tilt the pan so it spreads evenly. Use a spatula to smooth the top if needed.
  • Pour the melted chocolate over the chilled filling and gently tilt the pan so it spreads evenly. Use a spatula to smooth the top if needed.
  • Because the filling underneath is cold, the chocolate will begin setting fairly quickly. Work steadily, though there's no need to rush.
  • A very thick chocolate layer is more likely to crack later, so spreading it evenly helps create cleaner slices.

Refrigerate Until Firm

  • Place the completed bars in the refrigerator and allow them to chill completely. After a couple of hours, the top should feel firm when lightly touched.
  • The layers continue to settle as they chill. I often make these bars the evening before serving because they slice even better the next day.

Slice the Bars

A hand holds a chocolate-topped dessert bar above a pink plate, with more bars in a baking pan nearby.
Before cutting, let the bars rest at room temperature for about ten minutes
  • Straight from the refrigerator, the chocolate layer can be too firm and may crack.
  • Dip a sharp knife into hot water, wipe it dry, and cut slowly. Clean the knife between slices to keep the layers distinct.
  • You should see three clear layers: a sturdy coconut and nut base, a creamy custard center, and a smooth chocolate top. That's when I know the bars are ready for the table.

Storage

A stack of chocolate caramel bars separated by parchment paper on a pink plate, with more bars in a pan behind.

Store gluten-free Nanaimo bars in an airtight container in the refrigerator for up to 1 week, placing parchment paper between layers if stacking. The bars often slice even more cleanly after a day in the fridge.

Stack of chocolate-topped dessert bars with a crumbly base on a pink plate, sprinkled with sea salt flakes.

For longer storage, freeze them for up to 3 months in a freezer-safe container with parchment between the layers. Thaw overnight in the refrigerator or let them sit at room temperature for 20 to 30 minutes before serving. Avoid leaving the bars at room temperature for long periods, as the custard filling softens and the chocolate layer can lose its structure.

FAQs

A hand holds a chocolate-topped dessert bar above a pink plate stacked with more bars.
Why did my Nanaimo bars fall apart when I cut them?

A crumbly base usually means it wasn't pressed firmly enough into the pan or the bars were cut before they had fully chilled. The base should feel compact before refrigerating, and the finished bars need several hours to set before slicing.

Why is the middle layer of my Nanaimo bars too soft?

This usually happens when too much milk is added or the butter is overly soft. The filling should resemble thick frosting and hold its shape when spread. If it becomes too loose, refrigerate the mixture for a few minutes before assembling the bars.

Can I make Nanaimo bars without custard powder?

Yes, though the flavor and color will be slightly different. Vanilla pudding mix is the closest substitute, though traditional Bird's custard powder gives the bars their characteristic creamy filling that many Canadians recognize.

Why is my chocolate topping dull instead of shiny?

Chocolate can lose its shine if it becomes overheated. Melt it slowly, stirring frequently, and stop heating as soon as the last pieces have melted. A small amount of butter helps create the smooth, glossy finish associated with classic Nanaimo bars.

Recipe

Tried and loved this recipe? Please leave a 5-star review below! Your reviews mean a lot to me, so if you've got any questions, please let me know in a comment.

Stack of chocolate, coconut, and cream layered dessert bars on a pink plate.

Gluten-Free Nanaimo Bars

Ksenia Prints
Creamy, chocolatey, and no-bake, these gluten-free Nanaimo bars disappear quickly. 
No ratings yet
Print Recipe Pin Recipe Save Saved Recipe!
Prevent your screen from going to sleep
Prep Time 25 minutes mins
Chill Time 2 hours hrs 15 minutes mins
Total Time 2 hours hrs 40 minutes mins
Course Dessert
Cuisine Canadian
Servings 16 bars
Calories 149 kcal

Equipment

  • 8-inch square baking pan
  • Large mixing bowl
  • Medium mixing bowl
  • Electric mixer
  • Measuring Cups and Spoons
  • Offset spatula or spoon
  • Heatproof bowl
  • Double boiler or microwave
  • Sharp Knife

Ingredients
  

For the Base Layer

  • 1 cup gluten-free graham cracker crumbs
  • ½ cup chopped walnuts or almonds
  • 1 cup unsweetened shredded coconut
  • ¼ cup melted butter
  • 1 large egg beaten

For the Middle Layer

  • ¼ cup softened butter
  • 2 tablespoons custard powder
  • 2 cups powdered sugar sifted
  • 2 tablespoons milk

For the Chocolate Layer

  • 4 ounces semi-sweet chocolate chopped
  • 1 tablespoon butter

Instructions
 

Make the Base

  • In a large bowl, stir together the gluten-free graham cracker crumbs, chopped nuts, and shredded coconut until evenly mixed.

Add the Wet Ingredients

  • Pour in the melted butter and beaten egg. Mix until the crumbs are evenly coated and the mixture holds together when pressed.

Press Into the Pan

  • Transfer the mixture to an 8-inch square pan and press firmly into an even layer. Refrigerate while preparing the filling.

Prepare the Custard Filling

  • Beat the softened butter until smooth. Add the custard powder, then gradually mix in the powdered sugar and milk until the filling becomes thick, creamy, and spreadable.

Add the Middle Layer

  • Spread the filling evenly over the chilled base, reaching all the corners. Refrigerate for 15 minutes to help it firm up.

Melt the Chocolate

  • Combine the chopped chocolate and butter in a heatproof bowl. Melt gently using a double boiler or microwave in short intervals, stirring until smooth.

Finish the Bars

  • Pour the melted chocolate over the filling and spread into an even layer.

Chill Until Set

  • Refrigerate for at least 2 hours, until the chocolate layer feels firm.

Slice and Serve

  • Let the bars stand at room temperature for about 10 minutes before cutting. Slice with a sharp knife for neat squares and serve chilled or slightly softened.

Nutrition

Calories: 149kcalCarbohydrates: 22gProtein: 1gFat: 13gSaturated Fat: 9gPolyunsaturated Fat: 0.4gMonounsaturated Fat: 3gTrans Fat: 0.3gCholesterol: 33mgSodium: 64mgPotassium: 90mgFiber: 2gSugar: 3gVitamin A: 225IUVitamin C: 0.1mgCalcium: 16mgIron: 1mg
8-inch square baking pan
Large mixing bowl
Medium mixing bowl
Electric mixer
Measuring Cups and Spoons
Offset spatula or spoon
Heatproof bowl
Double boiler or microwave
Sharp Knife
Tried this recipe?Comment + Rate Below!
Connect on Instagram!Find us @immigrantstable

More Traybakes, bars and squares

  • Stack of oat crumb bars with a jam filling on parchment paper, on a plate, with a cup in the background.
    Gluten-Free Date Squares Recipe
  • A square piece of German chocolate cake with coconut topping on a decorative plate next to a fork.
    Gluten-free Queen Elizabeth Cake
  • Two lemon cheesecake bars stacked on a plate, showing creamy filling and crumbly crust.
    Lemon Cheesecake Bars with Lemon Curd
  • A slice of gluten-free chocolate cake dusted with powdered sugar rests on a cooling rack. The moist cake, resembling a gingerbread loaf with its cracked top and slightly rough texture, sits among other slices, emphasizing a homemade aesthetic.
    Gluten-free Gingerbread Cake
  • Facebook
  • Flipboard
  • X
selfie

About Ksenia

Welcome to At The Immigrant's Table! I blend my immigrant roots with modern diets, crafting recipes that take you on a global kitchen adventure. As a food blogger and photographer, I'm dedicated to making international cuisine both healthy and accessible. Let's embark on a culinary journey that bridges cultures and introduces a world of flavors right into your home. Read more...

    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • YouTube
  • Follow to see more of our recipes in Google

    Tell Me What You Think! Cancel reply

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

    Recipe Rating




    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    A woman cutting a pumpkin in a kitchen while preparing healthy international recipes.

    Privet, I am Ksenia Prints! I help adventurous home cooks explore the world through healthy international recipes.

    More about me →

    Footer

    SEEN ON

    as seen on promo graphic

    ↑ back to top

    About

    • About me
    • Privacy Policy

    Newsletter

    • Sign Up! for emails and updates

    Contact

    • Contact
    • Services
    • Media Kit
    • FAQ

    As an Amazon Associate I earn from qualifying purchases. This site occasionally uses stock photos from Depositphotos.

    This site is owned and operated by Prints Media. Copyright © 2025 At the Immigrant's Table. All rights reserved.

    Rate This Recipe

    Your vote:




    Let us know what you thought of this recipe:

    This worked exactly as written, thanks!
    My family loved this!
    Thank you for sharing this recipe

    Or write in your own words:

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