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.11 from 232 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. Mine were so soft- didn’t set up at all! Cooked for 22min- toasted golden browned coconut and they were just a failure- too much con.milk I think

  2. 2 stars
    Not a great recipe. As a baker I knew the directions were weird but since this was a lesson for my kids to make together, I just went with it. They followed the directions precisely. Do not cut or remove from pan once out of the oven. This recipe produces loose bars, they need to set in the fridge for an hour to cool and harden, otherwise they are a mess.

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.