These 7-layer Magic Cookie Bars are made with seven delicious layers – crushed graham cracker crumbs, butter, sweetened condensed milk, butterscotch chips, chocolate chips, coconut, and pecans. This 7-layer cookie recipe is a classic that everyone loves any time of year!

7 layer magic cookies squared on a plate

Pin this recipe now to save it for later

You’re going to see why these are my favorite treats to make and share with the kids!

You will love this classic cookie recipe that is sure to take you back to your childhood. It also perfect during the Christmas season since it’s perfect for shipping and gift-giving! I like to pair them with a batch of Copycat Starbucks Cranberry Bliss Bars or Rice Krispie treats.

If you’re ready for a cookie recipe that is certain to hit all the sweet notes in your mouth, give this simple 7 layer Magic Cookie Bar recipe a try.

7 layer cookie step by step pictures

See recipe card below this post for ingredient quantities and full instructions.

  • Layer 1: graham cracker crumbs – you can buy already crumbled or add them to the food processor to pulse them yourself.
  • Layer 2: melted butter
  • Layer 3: Sweetened Condensed Milk
  • Layer 4: butterscotch chips
  • Layer 5: semi-sweet chocolate chips
  • Layer 6: flaked coconut – sweetened or unsweetened coconut could be used.
  • Layer 7: chopped nuts – pecans, walnuts, cashews, etc.
  1. Preheat the oven: Start by heating the oven to 350 degrees. Spray a 13X9-inch baking pan with nonstick cooking spray.
  2. Make the crust: Combine the graham cracker crumbs and butter and mix well. Press the crumb mixture firmly into the bottom of the prepared pan. Pour the sweetened milk evenly over the crumb mixture. Continue to layer evenly with the remaining ingredients (in the order given) and press down firmly with a fork.
  3. Bake: Bake for 20-25 minutes or until lightly browned. Loosen from the sides of the pan while still warm and cool on the wire rack. Cut into bars.

Pro Tip

For perfectly cut cookie bars, line the entire pan with foil and extend the foil over the edge of the pan. Coat lightly with non-stick cooking spray. After bars have baked and cooled, lift up by the edges of the foil to remove from the pan. Cut into individual bars at that point in time.


7 layer magic cookie close up topped with nutsTips + Variations

The great thing about this recipe is that you can alter it a bit to have it be just as you want.

  • If you don’t care for coconut, you can omit that ingredient from this recipe.
  • You can also remove the nuts or change out the nut to one that you want as well.
  • These would go perfectly with a nice dollop of whipped cream or even a scoop of ice cream also.

Seven Layer Bar FAQS

Can you make 7 layer bars without coconut?

If you don’t want to use shredded coconut, don’t. Why miss out on the other flavors of this recipe if you can easily omit that one ingredient? Just rename it six layer bars if you need to take out a layer.

You can easily add crushed peanuts, white chocolate chips, or even peanut butter chips in the place of the coconut. You can also drizzle some caramel on top, too.

Can this 7 layer cookie be made without nuts?

Sure! Just take out the nuts if you don’t want them or switch out the type of nut that you want to use. Walnuts are great with this recipe due to how soft the nut is.

Can you freeze seven layer magic bars?

Yes, you can freeze these treats. Just wrap them in saran wrap and then store them in a freezer-safe bag!

Three 7 layer magic cookie bars on top of each other.

7 Layer Cookies

These 7-layer Magic Cookie Bars are made with seven delicious layers – a classic cookie recipe that everyone loves any time of year!
4.13 from 220 votes
Course: Dessert
Cuisine: American
Servings: 12
Prep Time: 10 minutes
Cook Time: 20 minutes


  • 13×9 Inch Baking Dish
  • Mixing bowl


  • 1 1/2 cup graham cracker crumbs
  • 1/2 cup butter melted
  • 14 oz Sweetened Condensed Milk
  • 1 cup butterscotch chips
  • 1 cup semi-sweet chocolate chips
  • 1 1/3 cup flaked coconut
  • 1 cup chopped nuts I like pecans


  • Preheat oven 350°F. Spray 13 x 9-inch baking pan with no-stick cooking spray.
  • Mix graham cracker crumbs and butter and press crumb mixture firmly into the bottom of prepared pan. Pour sweetened condensed milk evenly over crumb mixture. Layer evenly with remaining ingredients in order given. Press down firmly with a fork
    1 1/2 cup graham cracker crumbs, 1/2 cup butter, 14 oz Sweetened Condensed Milk, 1 cup butterscotch chips, 1 cup semi-sweet chocolate chips, 1 1/3 cup flaked coconut, 1 cup chopped nuts
  • Bake for 20-25 minutes or until lightly browned. Loosen from sides of pan while still warm; cool on wire rack.
  • For perfectly cut cookie bars, line entire pan with foil, extending foil over edge of pan. Coat lightly with no-stick cooking spray. After bars have baked and cooled, remove from the pan and cut with a sharp knife.



Calories: 428kcal | Carbohydrates: 52g | Protein: 7g | Fat: 23g | Saturated Fat: 12g | Polyunsaturated Fat: 5g | Monounsaturated Fat: 4g | Trans Fat: 1g | Cholesterol: 13mg | Sodium: 172mg | Potassium: 361mg | Fiber: 4g | Sugar: 38g | Vitamin A: 112IU | Vitamin C: 1mg | Calcium: 125mg | Iron: 2mg
Did you make this recipe?Mention @kasey_allthingsmamma or tag #allthingsmamma!

Categories: , ,

About Kasey Schwartz

For over 15 years, Kasey Schwartz, the mastermind behind All Things Mamma, has been the ultimate go-to for mouthwatering family recipes. Her work has been featured on, Buzz Feed, Better Homes and Gardens, and more, making her your go-to mom next door for all things delicious and family-friendly.


  1. Wendy Nolen says:

    Yummy, My friend’s mom, Joy Simpkins called these “Girdle Stretchers” !!!

    1. Shyanne - ATM Team says:

      We’ve never heard that name, but it is fitting! 😂

      1. Wendy Nolen says:

        Yummy, My friend’s mom, Joy Simpkins called these “Girdle Stretchers” !!! We may have to call them “Spanx Stretchers”!!

  2. My 3rd time making them. My family loves them 😊

    1. Shyanne - ATM Team says:

      We’re so happy to hear this! Thank you for sharing, Kathy. 😊

      1. Jaclyn M Barry says:

        Great recipe, and great tip about the tin foil making bars easy. I just wish I’d thought of that the first go round, or it wasn’t step 4 in your instructions. Anyway, turned out great!

  3. 1 star
    What a mess. The whole thing crumbled apart. Agree with the comments about not enough graham crackers as well. Don’t recommend.

  4. 2 stars
    This was an expensive disaster. Should have read the comments about the Eagle Brand Milk last. I followed this recipe as directed and they are a mess. It makes logical sense that the Eagle Brand last seals everything together. Lesson learned, read the comments first, not after they come out of the oven.

  5. 4 stars
    The first time I made these, they were super messy and the layers did not stick together at all. It was frustrating. The second time, I switched the sweetened condensed milk to the LAST layer and they were much easier to eat! Other than that little tweak- this recipe is delicious!

    1. Shyanne - ATM Team says:

      Thank you for the feedback, Mallory! We’re so glad you were able to make them work for you. 😊

  6. Chris Theller says:

    5 stars
    Really easy and beyond good. I cut mine into traditional cookie size and it yielded 24 bars.

    1. Shyanne - ATM Team says:

      We’re so glad you enjoyed them, Chris!

  7. Any suggestions using Graham Cracker Crust Pie Shell verses using a 13×9 baking dish?? Just trying to figure out how much Coconut and Chips to use.

    1. Shyanne - ATM Team says:

      Hi Donna! We think 1 shell should be enough!

  8. I followed the directions and put the condensed milk on first and it came out watery. I even put it back in the oven for 5 more minutes (the first time I baked it for 20 minutes.) Should I have put the milk on last?

    1. Shyanne - ATM Team says:

      Sorry this didn’t turn out for you! The milk shouldn’t have been an issue. The most common reason is that the oven wasn’t hot enough. Hope this helps!

    2. Frances Ross says:

      Did you use SWEETENED condensed milk?

      1. Rosina Philpot says:

        Milk should be put on last, not first. If you look up Paula Deens original recipe, that is what she does. I add white chocolate chips as well to balance out flavors.

  9. Saundra Roberts says:

    Mine came out super and delicious. My biggest issue was getting the sweet condensed milk over the cracker layer. It didn’t want to spread and kept picking up the graham crackers.

    1. Shyanne - ATM Team says:

      We’re so glad you enjoyed it, Saundra! Sweetened condensed milk can definitely be a little tricky to work with!

  10. A bit more butter a bit less butterscotch

  11. I’ve had this recipe pinned for a long while and am excited to make these lil treasures today! I did read through all notes and adjusted where I thought it would help.
    Thought I had graham crumbs, but actually had crackers that I smashed. But… I’m wondering if I could have laid down the crackers, poured the melted butter on top and give it a moment to sink in. Thank you, Kasey for sharing your recipe with us!!

    1. Shyanne - ATM Team says:

      Hi Connie! Smashing the crackers was the best way to go! Whole sheets of graham crackers likely wouldn’t hold up well, meaning your bars would fall apart! We hope you enjoyed the recipe. 😊

      1. 4 stars
        Warm the can of condensed milk up first.

  12. Am I the only one that had the issue that this wasn’t anywhere near enough graham mixture to cover a 9×13 pan?


    2. Definitely not the right measurements for this recipe! 🫠🫠🫠🫠

  13. 3 stars
    What can you substitute the coconut for, we’re not coconut eaters in my family?

    1. 5 stars
      We just have 6 layer cookies without coconut

  14. Kait Gorley says:

    When doubling recipe, should this be made in 2 separate 9×13 pans? Or can you place all in the one pan and have thicker bars? Will they cook right?

    1. I doubled the recipe, and used a cookie sheet. Worked PERFECT!

      1. Shyanne - ATM Team says:

        We’re so glad it turned out well for you, Cathy!

  15. 5 stars
    These bars are the best! I haven’t made them myself in YEARS, so I decided to today for a potluck since I have all the ingredients (even butterscotch chips!). I noticed all the people saying you should put the sweetened condensed milk after everything else, so I just went to the Eagle Brand website to find the official recipe, and it instructs you to put it on first. I decided to do it first since I’m pretty sure that’s how my mom and grandma used to do it. The Eagle Brand recipe also only calls for chocolate chips, no butterscotch chips. I personally prefer it with the butterscotch! I’m sure when you put the sweetened condensed milk on doesn’t make that much difference either…it’s going to taste amazing either way. I’ve always thought that they magic/beauty of recipes is that you CAN and SHOULD tweak them to your own liking. P.S. While I was writing this, my bars came out of the oven and they look wonderful. So excited to share them with friends later.

  16. Super and as others who have commented, the instruction for lining the pan should be at the beginning. It also is not represented or does not show as a lined pan in the picture.

    1. I agree, it would be helpful to have the pan instructions at the beginning, but it’s always a good idea to read the entire recipe before beginning, so that you don’t miss anything 🙂

  17. Jennifer B says:

    Thank you, Debi! I keep seeing people putting it in first, but my Grandma ALWAYS put the Eagle Brand on last, so everything got all gooey delicious and stayed together. Even the Eagle Brand page did it this way.

    1. Yes sweetened condensed milk goes on top!

    2. That’s the way we always have made them. I have the recipe form the 70s and that’s what it says too.

  18. The cookie bars look so good the 7 layer bars.

  19. Dear all things mamma . . . Maybe your mamma made these this way but dear the sweetened condensed milk is the LAST layer it goes on the top of everything and holds it together. T
    You drizzle it on the top

    1. Jennifer B says:

      Thank you, Debi! I keep seeing people putting it in first, but my Grandma ALWAYS put the Eagle Brand on last, so everything got all gooey delicious and stayed together.

  20. Susan Gooden says:

    Is the coconut sweetened or unsweetened coconut? Thanks.

Leave a 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.