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

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

Ingredients Needed:

Here’s all you need to make these simple cookie bars!

  • 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!

More Delicious Desserts

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.21 from 134 votes
Course: Dessert
Cuisine: American
Author: Kasey Schwartz
Servings: 12
Prep Time: 10 minutes
Cook Time: 20 minutes


  • 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
  • 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
Keyword: chocolate, christmas cookies, coconut, cookies
Did you make this recipe?Mention @kasey_allthingsmamma or tag #allthingsmamma!

Categories: , ,

About Kasey Schwartz

Hi, I’m Kasey, Founder of All Things Mamma – where I am dishing up family favorite recipes that are easy to make with simple, everyday ingredients. Plus – tips and tricks for living your best life!


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

  2. 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?

  3. 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.

  4. 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 🙂

  5. 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.

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

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

  8. 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.