Skip to Content

Pecan Magic Bars

Pecan Magic Bars. A classic, super easy, chewy, nutty, chocolatey cookie bar that’s practically foolproof for even the most novice baker and they freeze exceptionally well too.

Pecan Magic Bars

Pecan Magic Bars

Originally published April 18, 2013.

Seasoned bakers will almost immediately recognize these simple cookie bars but many will disagree on the name, magic bars.

The truth is, this recipe has been around for many, many years. I remember making them well over 30 years ago when the recipe was given to my Mom under the moniker “Christmas Squares”.

Not a particularly descriptive name but I have since seen them as Layer Bars, Seven Layer Bars, Magic Bars, Walnut Coconut Bars and I’m sure many more. No matter the name, these delectable cookie bars might be the easiest ever to make.

My reason for posting this recipe is simply that I like to bake them in a smaller pan than most recipes indicate. I found that because of the high sugar content these bars were too thin in a 9×13 inch pan and could very easily over-bake and be somewhat brittle.

Cranberry White Chocolate Magic Cookie Bars featured image

Cranberry White Chocolate Magic Cookie Bars

Click here to try our recipe for Cranberry White Chocolate Magic Cookie Bars too! Very festive for the holidays

Pecan Magic Bars. One simple tip.

I prefer to mix all of the ingredients together rather than putting them down in layers and I bake them in a 9×9 pan so that they are thicker and always bake to a chewy texture. It is a matter of preference, I suppose but I’ve always had better success using this method.

If you like you can still bake them in the larger pan, just decrease the baking time and watch them closely. Don’t let the top get as browned as shown in the photo or they will likely be over-baked.

We also like a thicker graham crumb base on our cookie bars and have modified the recipe to increase the base a little. Most traditional recipes also call for walnuts but over the years our family’s preference has changed and we now think pecans are better in this recipe but you can substitute any nut you like.

Love Christmas Recipes?

You might also like to try some of our very popular recipes in our Best Newfoundland Christmas Cookies Collection

Newfoundland Christmas Cookie Recipes photo collage for Pinterest

Newfoundland Christmas Cookie Recipes

Like this Pecan Magic Bars recipe?

Be sure to browse the photo index of over 200 cookies and cookie bar recipe is in our expansive Cookies Category.

It’s easy to keep up with the latest home style cooking & baking ideas from Rock Recipes. Be sure to follow Rock Recipes Facebook Page and follow us on Instagram

Plus you’ll see daily recipe suggestions from decadent desserts to quick delicious weekday meals too. 

Pecan Magic Bars image with title text

Pecan Magic Bars

You can also sign up for our FREE newsletter to know immediately when we add new recipes. You’ll also get weekly suggestions for great family friendly  meals and desserts too!

Rock Recipes a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to and affiliated sites. Our product recommendations are almost exclusively for those we currently use or have used in the past.
Visit my Amazon Store for my favourite kitchen gadgets and appliances, plus recommendations from my personal cookbook collection.


Pecan Magic Bars
Yield: 24 cookie bars

Pecan Magic Bars

Prep Time: 15 minutes
Cook Time: 40 minutes
Total Time: 55 minutes

Pecan Magic Bars - a classic, super easy, chewy, nutty, chocolatey cookie bar that's practically foolproof for even the most novice baker and they freeze exceptionally well too.


For the bottom layer

  • 2 cups graham cracker crumbs, digestive biscuit crumbs are also delicious
  • 1/2 cup melted butter, I use salted butter here
  • 4 tbsp white sugar

For the top layer

  • 1 1/4 cups sweetened condensed milk, (one 300 ml can Canada) (14 oz US)
  • 2 cups chocolate chips (milk chocolate,, semi-sweet or dark, your preference)
  • 1 1/4 cups dried unsweetened coconut
  • 1 1/4 cups roughly chopped pecans
  • 1 1/2 tsp vanilla extract


  1. Preheat oven to 350 degrees F. Lightly grease a 9x9 inch baking pan and line with parchment paper.
  2. Mix together the graham crumbs butter and sugar. Press evenly into the bottom of the pan.
  3. Mix together all of the ingredients for the top layer well.
  4. Pour evenly over the prepared base and bake for 30-40 minutes or until light golden brown on top. Cool completely before cutting into squares or bars. These freeze particularly well.

Nutrition Information



Serving Size

1 cookie bar

Amount Per Serving Calories 274Total Fat 18gSaturated Fat 9gUnsaturated Fat 0gCholesterol 16mgSodium 103mgCarbohydrates 25gFiber 2gSugar 18gProtein 3g

Did you like this recipe?

Do you love our "Real food recipes for real people'? Share the recipe on Facebook to let your friends know about us. They'll thank you for it.


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

Anstrom Novak

Sunday 31st of October 2021

This recipe is soooo very good!! It can easily be made gluten free and even grain free, by substituting gluten free or grain free cookies, for the crust! The recipe is very forgiving, because I could only find sweetened coconut, instead of the unsweetened and my family and I still loved them. I made these, last night, for my son and daughter, who have gluten sensitivities. Definitely adding this recipe to the holiday baking tradition! Thanks for the recipe!

Wendy Hampton

Thursday 28th of October 2021

Well for Heavens sake! I loved the idea of combining the ingredients instead of layering. The bars taste much better that way! I'm so glad I saw this clever tip and will incorporate it into my Christmas baking. Wonderful suggestion.


Tuesday 4th of September 2018

I've always wanted to make magic bars, or something similar, I love chewy gooey bar cookies! I was wondering if I was too omitt the coconut, should I add extra nuts, or do you think leaving it out will effect the texture, maybe making them too dry? Love your recipes! Thanks, Erika

Barry C. Parsons

Wednesday 12th of September 2018

I'd suspect they may be too wet without coconut. Try adding half of the coconut amount as extra nuts and half as graham crumbs

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

Skip to Recipe

Sharing is Caring

Help spread the word. You're awesome for doing it!