• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Beyond the Butter logo

  • home
  • recipe box
  • about
  • work with me
  • subscribe
menu icon
go to homepage
  • home
  • recipe box
  • about
  • work with me
  • subscribe
    • Amazon
    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • YouTube
  • subscribe
    search icon
    Homepage link
    • home
    • recipe box
    • about
    • work with me
    • subscribe
    • Amazon
    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • YouTube
  • ×

    Published: Nov 3, 2021 • Modified: Mar 3, 2023 • This site generates income via ads and may contain affiliate links. See my privacy policy linked in the footer.

    Magic Cookie Bars

    Jump to Recipe Print Recipe
    Image of magic cookie bars recipe from Beyond the Butter®.

    With only seven ingredients needed, this Magic Cookie Bars recipe is one of the easiest desserts you'll ever make! They're absolutely delicious with a caramelized layer of coconut, chocolate chips, and chopped pecans baked on a buttery graham cracker crust! It only takes 20 minutes to prep and less than 25 minutes to bake!

    Magic cookie bars on brown parchment paper | © Beyond the Butter®
    7 layer magic cookie bars on brown parchment paper | © Beyond the Butter®
    Jump to:
    • Why These Are the Best Magic Cookie Bars!
    • Ingredient Checklist
    • Substitutions
    • What Baking Equipment Do I Need?
    • 7 Layer Magic Cookie Bars—Let's Make Them!
    • Recipe FAQs
    • More Bars and Brownies to Enjoy!
    • 📖 Recipe

    Why These Are the Best Magic Cookie Bars!

    The taste. With the combination of sea salt flakes, coconut, chocolate chips, and pecans that are brought together with sweetened condensed milk, and layered on top of a buttery graham cracker crust, this is such a delicious treat!

    The perfect chewy texture. The top is a creamy, chewy layer of caramelized coconut flakes, chocolate chips, and chopped pecans, with a little bit of crumble from the graham cracker crust bottom layer. It is absolutely wonderful!

    A super easy-to-make recipe. This recipe comes together in 20 minutes or less and bakes in less than 25 minutes. You can even speed up the prep a bit more by using ready-made graham cracker crumbs!

    The slight downside to the recipe is it does need to cool to room temperature before serving. But I promise you—the wait is most certainly worth it. You can even chill the bars in an airtight container to enjoy for later too!

    Just baked 7 layer magic cookie bars in 8 inch baking pan | © Beyond the Butter®
    7 layer magic cookie bars on brown parchment paper | © Beyond the Butter®

    Ingredient Checklist

    Below is everything you'll need to make these easy seven-layer magic cookie bars!

    • Graham Cracker Crumbs. If you are processing the graham cracker sheets into crumbs, you will need about 18 full sheets or 2 cups of crumbs. You can also buy the ready-made graham cracker crumbs to speed up the prep work.
    • Unsalted Butter. ½ cup gets melted and mixed in with the graham cracker crumbs.
    • Semi-Sweet Chocolate Chips. Use 1 cup of your favorite brand of chips—mine is Guittard or Ghirardelli.
    • Coconut Flakes. I used 1 cup of organic unsweetened coconut flakes to help cut down the sweetness just a smidge!
    • Chopped Pecans. You will need 1 cup of the chopped pecans. For added flavor, you can toast them slightly before adding them on top of the chocolate chips.
    • Sweetened Condensed Milk. You will need 1, 14 ounce can of the this sweet stuff. This is not the same thing as evaporated milk.
    • Sea Salt Flakes. This is an optional garnish to add after you've poured the sweetened condensed milk over the top. Malden is my favorite brand of sea salt flakes to use as a topping. Please do not use table salt or kosher salt as a substitute.

    Substitutions

    Graham Crackers. I used the honey-flavored graham crackers, but you can experiment with using the chocolate-flavored version if you would prefer more chocolate!

    Chocolate Chips. You can mix up the chocolate chips here and use a combination of semi-sweet and milk chocolate. Or you can use chunks of dark chocolate!

    Nuts. You can use chopped walnuts or slivered almonds in place of the chopped pecans.

    Magic cookie bars on brown parchment paper | © Beyond the Butter®

    What Baking Equipment Do I Need?

    The great news with this magic bars recipe is you do not need any mixers whatsoever! To make them, here's what I used:

    8-inch Square Baking Pan. My favorite brand of baking pans to use is USA Pans. They're well made and hold up brilliantly with all the baking I do! You can use a 9-inch baking pan, but the bars will come out thinner.

    Food Chopper / Food Processor. Used only to process the graham crackers into fine crumbs. If you're buying the ready-made graham cracker crumbs, you won't need this.

    Mixing Bowl. I blended my graham cracker crumbs and unsalted butter together in a glass mixing bowl. You can also mix it directly in the food processor (if using).

    Spatulas. The perfect tool to mix up the graham cracker base and spread out the sweetened condensed milk.

    Apron. While wearing an apron isn't required, it does help to keep your clothes from getting dirty! My preference is Hedley & Bennett aprons! They're well made, have a ton of different styles and colors, and hold up so nicely to hours of baking and cooking!

    And as an ambassador, I can offer you 15% off your order using the code BUTTER! Treat yourself to one and someone that loves a good apron too!

    Cuisinart Elemental 8-Cup Food Processor
    Rubbermaid Oven Monitoring Thermometer
    Ninja Food Chopper Express
    OXO Good Grips 11 Pound Stainless Steel Food Scale with Pull-Out Display
    USA Pan Bakeware Square Cake Pan, 8 inch, Nonstick & Quick Release Coating, Made in the USA from Aluminized Steel
    GIR: Get It Right All Silicone Mini, Skinny & Ultimate Spatula 3 Pc Set
    Anchor Hocking 10pc Glass Mixing Bowl Set
    Cooling Rack Stainless Steel Half size - Commercial Grade Steel 11.5" x 16.5" | 1 Piece | Cooking Rack Designed To Fit Perfectly Into Baking Half Sheet Pan | Only From Indigo True Company
    Zassenhaus Magnetic Retro Kitchen Timer
    Baker's Joy Cake Pan Spray
    Cuisinart Elemental 8-Cup Food Processor
    Rubbermaid Oven Monitoring Thermometer
    Ninja Food Chopper Express
    OXO Good Grips 11 Pound Stainless Steel Food Scale with Pull-Out Display
    USA Pan Bakeware Square Cake Pan, 8 inch, Nonstick & Quick Release Coating, Made in the USA from Aluminized Steel
    GIR: Get It Right All Silicone Mini, Skinny & Ultimate Spatula 3 Pc Set
    Anchor Hocking 10pc Glass Mixing Bowl Set
    Cooling Rack Stainless Steel Half size - Commercial Grade Steel 11.5" x 16.5" | 1 Piece | Cooking Rack Designed To Fit Perfectly Into Baking Half Sheet Pan | Only From Indigo True Company
    Zassenhaus Magnetic Retro Kitchen Timer
    Baker's Joy Cake Pan Spray
    7 layer magic cookie bars on brown parchment paper | © Beyond the Butter®

    7 Layer Magic Cookie Bars—Let's Make Them!

    Below is a brief overview of how to make these easy magic cookie bars recipe. for the full recipe scroll to the recipe card below.

    Make the graham cracker crust. Mix the crumbs and melted butter together in either a mixing bowl or food processor (if using one to process the graham crackers into crumbs).

    Press and level out the mixture into the prepared 8-inch baking pan. I like using the bottom of a measuring cup to smooth it all out and a spatula to clean up and press down the edges.

    Add on the layers. On top of the graham cracker crust layer add the semi-sweet chocolate chips layer, followed by the chopped pecans, then the coconut flakes.

    Cover with sweetened condensed milk. Pour the sweetened condensed milk over top of the coconut flakes, then spread it out using a spatula. Top with a sprinkling of sea salt flakes.

    Bake then cool. Bake the magic bars for 20-25 minutes in a 350ºF preheated oven just until the top is a light golden brown. Mine bake well right at the 23-minute mark with just the edges having a light golden brown color.

    Let the bars cool completely on a wire cooling rack, then serve. You can also make the magic bars, let them cool, cut them into squares, then store them in an airtight container separated by layers of wax or parchment paper. Serve them chilled or at room temperature.

    Sliced 7 layer magic cookie bars with center bar on its side | © Beyond the Butter®
    Sliced magic cookie bars on brown parchment paper | © Beyond the Butter®

    Recipe FAQs

    What size baking pan did you use?

    I used this 8-inch USA pan to make the magic bars. It's basically my favorite pan to use for the majority of my dessert bar recipes!

    Do I need to spray the 8-inch baking pan with a baking spray?

    Yes, you should use a flour-based baking spray, like Baker's Joy, to prevent the bars from sticking to the pan.

    Is a parchment paper sleeve needed to make these bars?

    No. Adding a parchment paper sleeve isn't required but is recommended if you find cutting them outside of the pan to be easier. To prevent the sides of the sleeve from dropping into your magic bars, crease them at the edge so the sides fold over, then secure the paper with metal binder clips.

    Do I have to let 7 layer magic bars cool completely?

    Yes. In order for them to properly set, they need to cool completely. To let them set further, you can chill them in the refrigerator covered for 1-2 hours—or overnight.

    Can I use table salt or kosher salt as a substitute for the sea salt flakes?

    No, I do not recommend using either as a substitute. Please note the the sea salt flakes are an optional garnish, so if you are not a sweet and salty dessert lover, you can leave them off.

    More Bars and Brownies to Enjoy!

    • Salted pecan pie brownies placed on brown parchment paper with the center brownie placed on its side.
      The Best Salted Pecan Pie Brownies
    • Sliced blueberry swirl cheesecake bars in a vintage baking pan.
      Blueberry Swirl Cheesecake Bars
    • Classic fudge nut bars on natural parchment paper.
      Classic Fudge Nut Bars
    • Close up image of easy holiday chocolate chip cookie bars cut into squares with center square on its side.
      Easy Holiday Chocolate Chip Cookie Bars

    📖 Recipe

    Magic cookie bar on brown parchment paper.

    Magic Cookie Bars

    Author: Jennifer
    With only seven ingredients needed, this Magic Cookie Bars recipe is one of the easiest desserts you'll ever make! They're absolutely delicious with each bite giving you a taste of caramelized coconut, chocolate, pecans, and a buttery, graham cracker crust! And it only takes 20 minutes to prep and less than 25 minutes to bake!
    4 from 4 votes
    (prevent your screen from going dark while making this recipe)
    Print Recipe Pin Recipe
    Prep Time 20 minutes
    Cook Time 25 minutes
    Total Time 45 minutes
    Course Dessert
    Cuisine American
    Servings 16 servings
    Calories 306 kcal

    Ingredients
     

    • 2 cups Graham Cracker Crumbs (about 18 full Graham cracker sheets)
    • ½ cup Unsalted Butter (melted)
    • 1 cup Semi-Sweet Chocolate Chips
    • 1 cup Chopped Pecans
    • 1 cup Shredded Coconut Flakes
    • 14 oz Sweetened Condensed Milk
    • 1 tablespoon Sea Salt Flakes (optional topping (do not use table/kosher salt as a replacement))

    Instructions

    • Adjust the oven rack to the 2nd or 3rd level (above middle) and preheat the oven 350ºF. Lightly spray an 8-inch square baking pan with a flour based baking spray. Optionally, you can fit the pan with a parchment paper sleeve. Set to the side.
    • Mix your graham cracker crumbs together with the melted unsalted butter until well blended, then spread the mixture into the bottom of the prepared 8-inch baking pan, patting it down to create an even layer.
      2 cups Graham Cracker Crumbs, ½ cup Unsalted Butter
    • Add the layer of semi-sweet chocolate chips, followed by the chopped pecans, then the coconut flakes.
      1 cup Semi-Sweet Chocolate Chips, 1 cup Chopped Pecans, 1 cup Shredded Coconut Flakes
    • Pour the sweetened condensed milk over the top, spreading it out evenly (as best you can—don't worry if the coconut starts to mix in as you do this). Sprinkle with some sea salt flakes over the top (optional).
      14 oz Sweetened Condensed Milk, 1 tablespoon Sea Salt Flakes
    • Bake for 20-25 minutes at 350ºF until the top is a light golden brown.
    • Cool completely on a wire cooling rack, then cut into squares.
    • Keep the bars stored in the refrigerator in an airtight container.

    Nutrition

    Calories: 306kcal | Carbohydrates: 32g | Protein: 4g | Fat: 18g | Saturated Fat: 9g | Polyunsaturated Fat: 2g | Monounsaturated Fat: 6g | Trans Fat: 0.2g | Cholesterol: 19mg | Sodium: 547mg | Potassium: 131mg | Fiber: 2g | Sugar: 23g | Vitamin A: 249IU | Vitamin C: 0.1mg | Calcium: 85mg | Iron: 1mg

    Nutritonal information provided above is an estimate only and will vary based on specific ingredients used.

    Tried this recipe and loved it?Snap a pic and share it with me over on Instagram tagging @beyond.the.butter and #beyondthebutter in your caption or stories!
    Sliced magic cookie bars on brown parchment paper | © Beyond the Butter®
    « Seasoned Pretzels
    Homemade Baked Chocolate Donuts »

    © All images & content on BeyondtheButter.com are copyright protected. You may not republish, redistribute, or otherwise use any images, recipes, or content, in part or in whole, without express written permission from the author. Beyond the Butter® is a registered trademark of Jennifer Switzer. All rights reserved. For more information, please read my Policies page.

    Reader Interactions

    Comments

      Leave a Review and Star Rating Cancel reply

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






    1. Lisa says

      November 18, 2021 at 4:05 pm

      3 stars
      Easy recipe, but I didn't have sea salt flakes so I used kosher salt.... BIG mistake! Made it taste too salty. I don't know what I can do to make it taste less salty. I thought the salt would bring out the sweetness, but maybe using 1 tablespoon was too much. Would not recommend using salt at all.

      Reply
      • Jennifer says

        November 18, 2021 at 8:52 pm

        Oh no! Yes, in the future—unless it's specified in the recipe and/or blog post as a substitute—please do not use kosher salt in place of sea salt flakes. I typically only use sea salt flakes (the Malden brand) as a garnish to bring out a deeper flavor of the chocolate (and in this recipe also the chopped pecans), but I always note it is optional because I know not everyone likes the salty/sweet combination. Just to make the recipe a little clearer though, I did just add not to use either table or kosher as a substitute.

        Reply
    2. karen says

      May 14, 2022 at 8:15 am

      3 stars
      The condensed milk didn’t melt into the bars. A layer stayed on top and that was after cooking for an extra 12 minutes. Not sure what i did wrong.

      Reply
      • Jennifer says

        May 14, 2022 at 3:10 pm

        Oh, that's strange! I'm so sorry it happened and they didn't come out right.

        Reply
    3. Rosanne Gittens says

      July 17, 2022 at 4:02 pm

      5 stars
      This is very easy to make, freezes well and is absolutely delicious. A real keeper!

      Reply
      • Carol schnell says

        September 30, 2022 at 10:55 pm

        5 stars
        I was looking to see if these could be frozen. Thank you!

        Reply
        • Jennifer says

          October 01, 2022 at 9:33 am

          Great question, yes! Once they've cooled, cut them into the size bars you would like, then freeze them on a wax or parchment paper-lined baking sheet until their frozen solid. Then transfer them to a well-sealed container, layering the bars with parchment paper, so they don't stick together. They'll stay good for about 3-4 months.

    Primary Sidebar

    hello! image

    Welcome to my blog! I'm Jennifer, and I love creating and sharing dessert recipes that are sweet, simple, and fun to make and bring me—and hopefully you and your loved ones—wonderful memories! Learn more about me and my inspiration for starting Beyond the Butter!

    Beyond the Butter® Favorites

    • Baking tray filled with bakery style lemon blueberry muffins garnished with slices of lemons and blueberries.
      Bakery Style Lemon Blueberry Streusel Muffins
    • Slice of 2 layer chocolate chip cake on it's side on a brown paper background.
      Chocolate Chip Cake
    • Overhead image of small batch chocolate cupcakes in vintage metal baking tin.
      Small Batch Chocolate Cupcakes
    • Stack of three lemon bars on white background.
      Super Easy Lemon Bars
    • Overhead image of classic peanut butter blossoms on a parchment lined blue dessert platter.
      Classic Peanut Butter Blossoms
    • Angled image of sliced single layer chocolate cake on parchment paper with slices of cake on small dessert plates around it and a knife on parchment paper.
      Single Layer Chocolate Cake

    Cake Recipes

    • Slices of moist banana cake on ceramic dessert plates on a dark wood background.
      Moist Banana Cake
    • Slices of chocolate chip ricotta cake on a marble cake round with small bowl of mini chocolate chips nearby.
      Chocolate Chip Ricotta Cake
    • Stack of three pumpkin pie cake bars on a parchment paper lined bottom.
      Pumpkin Pie Cake Bars
    • Slices of mini strawberry sheet cake topped with strawberry buttercream frosting and fresh strawberries with one slice on its side.
      Mini Strawberry Sheet Cake
    • Individual no-bake strawberry cheesecakes topped with strawberry glaze and a fresh strawberry on a parchment paper-lined baking sheet.
      Individual No-Bake Strawberry Cheesecakes
    • Small lemon cream cheese pound cake slice on a small dessert plate on white background.
      Small Lemon Cream Cheese Pound Cake

    Featured On

    Beyond the Butter features

    Follow Me On Pinterest

    Follow Beyond the Butter® on Pinterest | © Beyond the Butter®

    Footer

    ↑ back to top

    Resources

    • Privacy Policy
    • Recipes
    • Shop

    Newsletter

    • Subscribe
    • Instagram
    • Facebook
    • Pinterest

    Contact

    • Work with Me
    • About

    © 2023 Beyond the Butter®, All Rights Reserved.