Magic Bars (only 6 ingredients!)


Magic Cookie Bars are one of the easiest desserts you can make! Layered with butter graham cracker layer, chocolate chips, coconut and sweetened condensed milk. A dangerously addictive treat you’ll want to make again and again!

Stack of Magic Cookie Bars with 7 layers.

Magic Cookie Bars with so Many Layers of Decadence!

These 6 layer bars (or as some refer to as 7 Layer Bars) are a dream come true! There’s just so much decadence in this one simple dessert and people of all ages always love them.

You’ll love there’s nothing complicated here and they don’t take too long to make.

If you are new to baking this is a great place to start. All you really have to do is spread the ingredients into layers in a baking dish and bake to melted gooey perfection.

Just be warned these things are dangerously addictive! As in you may have this great plan to eat a tiny square and gift the rest, not gonna happen. It will be more like the other way around!

Photography credit: Jenn Davis of Two Cups Flour

Ingredients needed to make magic cookie bars shown here.

Different Ways to Make Magic Cookie Bars

Some magic bar recipes use just chocolate chips, others include white chocolate and butterscotch chips. For me personally I’m all about chocolate so that’s what I went with here but feel free to use what you like, I bet even those peanut butter chips would be delicious here.

When I first made these I didn’t like how the graham cracker layer was so incredibly thin that it almost didn’t even cover the bottom of the pan so now I use an additional 1/3 the mixture (as is listed per this recipe).

I also prefer the sweetened condensed milk poured over the top as it seems to bind it all together better (rather than pouring it over the graham layer then adding the remaining toppings after).

Showing how to make magic 7 layer bars. Sprinkling chocolate chips over graham cracker layer in baking dish.

What Ingredients go Into Magic Cookie Bars?

For this recipe you only need 6 pantry staples (as in hello perfect go-to treat recipe!):

  • Unsalted butter – salted butter will work here too it will just add a bit of saltiness to the crust.
  • Crushed graham crackers – to crush place in a bag and crush with a rolling pin or blitz in a food processor.
  • Chocolate chips – you can use semi-sweet or milk chocolate chips here. I like a blend of both.
  • Sweetened condensed milk – this helps bind the layers. And isn’t it just one of the best ingredients?
  • Sweetened shredded coconut – unsweetened coconut would work here too if that’s what you have. Stick with medium shredded (not fine or large flakes).
  • Walnuts or pecans – I like to use pecans but walnuts are another great option. You can even buy the pre-chopped ones.

Showing how to make magic bars pouring sweetened condensed milk over chocolate chip layer in baking dish.

How to Make Magic Cookie Bars

  • Preheat oven to 350 degrees.
  • Melt butter in a 13 by 9-inch baking dish in oven. Tilt melted butter around pan.
  • Add graham crackers and toss to evenly coat with melted butter. Press into even layer.
  • Sprinkle chocolate chips evenly over graham cracker layer followed by coconut and pecans.
  • Drizzle sweetened condensed milk evenly over top.
  • Bake until lightly golden, about 25 minutes.
  • EASY as that!

Finished seven layer magic cookie bars after baking cut into squares in baking dish.

Do I Have to Own a Mixer?

Not with this recipe, I love that these don’t even require a mixer! Everything is literally just added to a baking dish and the only thing that even requires a little mixing is the graham cracker and butter – other than that everything else is just sprinkled or poured one layer after another.

Can I Use Pre-Crushed Graham Crackers?

Yes! If you buy the boxed graham cracker crumbs you won’t even need to crush up the sheets of it first.

Stack of seven layer magic bars on a dessert plate.

More Easy Dessert Recipes to Try!


Remember to subscribe to the Cooking Classy newsletter to receive new recipe notifications delivered to your inbox!

Follow Cooking Classy on Facebook | Instagram | Pinterest | Twitter for all of the latest updates, recipes and content.


Magic Bars (only 6 ingredients!)

4.5 from 6 votes

One of the easiest desserts you can make! Layered with butter graham cracker layer, chocolate chips, coconut and sweetened condensed milk. A dangerously addictive treat you'll want to make again and again!

Servings: 20
Prep Time 15 minutes
Cook Time 25 minutes
Total Time 40 minutes


  • 3/4 cup (170g) unsalted butter, diced into 1 Tbsp pieces
  • 2 cups (228g) crushed graham crackers (about 15 full sheets)
  • 2 cups (340g) chocolate chips*
  • 1 cup (86g) shredded sweetened coconut
  • 1 cup (100g) chopped walnuts or pecans
  • 1 (14 oz) can sweetened condensed milk**


  1. Preheat oven to 350 degrees. Place butter in a 13 by 9-inch baking dish, add to oven and allow to heat until melted (mine took a little over 2 minutes). 
  2. Remove from oven, tilt pan side to side to allow butter to run about 1-inch up the sides of the pan. 

  3. Add graham crackers and toss to evenly coat with melted butter. Firmly press mixture into an even layer in pan. 

  4. Sprinkle chocolate chips evenly over graham cracker layer followed by coconut and pecans. 
  5. Drizzle sweetened condensed milk evenly over top. Bake in preheated oven until lightly golden, about 25 minutes. 
  6. Cool completely on a wire rack then cut into bars. Store in an airtight container.

Recipe Notes

  • I like to use 1 cup semi-sweet chocolate chips and 1 cup milk chocolate chips.
  • For best results don't use low fat or fat free sweetened condensed milk.
  • Recipe source: adapted from Nestle
Nutrition Facts
Magic Bars (only 6 ingredients!)
Amount Per Serving
Calories 312 Calories from Fat 171
% Daily Value*
Fat 19g29%
Saturated Fat 10g63%
Cholesterol 27mg9%
Sodium 114mg5%
Potassium 141mg4%
Carbohydrates 32g11%
Fiber 1g4%
Sugar 24g27%
Protein 3g6%
Vitamin A 305IU6%
Vitamin C 0.7mg1%
Calcium 93mg9%
Iron 1mg6%
* Percent Daily Values are based on a 2000 calorie diet.
Course: Dessert
Cuisine: American
Keyword: Magic Bars
Calories: 312 kcal
Author: Jaclyn


  • Alex: I have been making these for years and decided to try a different recipe. The only issue that I had was that when cut into, i had butter seeping out. I think the ratio of graham cracker crumbs to butter is off. I switch out the pecans for almonds and use crushed pretzel instead of coconut. Other than my butter issue, it’s a good recipe. June 13, 2019 at 6:56pm Reply

  • Katerina: Dear Jaclyn, thank you for this superb recipe, I made it today for my friends and all the bars disappeared in 20 minutes:-).
    Thank you, Katerina from Praha May 4, 2019 at 2:57pm Reply

  • Luisa Bellissimo: What can the graham crackers be replaced with? Thanks April 26, 2019 at 9:27pm Reply

    • Jaclyn: Digestive biscuits or nilla wafers should be good. April 27, 2019 at 11:23am Reply

  • Esther: Awesome cookie recipe, just stuck in the pan. That was the only problem though. March 24, 2019 at 5:01pm Reply

  • Laura: I made this tonight with all semisweet chocolate chips and unsweetened coconut, and OMG this was DELICIOUS!! My husband and I loved it and agreed–this recipe is a keeper. Super simple, quick, and inexpensive dessert. March 15, 2019 at 7:41pm Reply

  • Jillian: Can you recommend a swap for the coconut? Thanks! March 12, 2019 at 12:28pm Reply

    • Jaclyn: You should be fine to omit it. If you wanted to fill in with something I’d try quick oats or pretzel pieces as a filler. March 18, 2019 at 8:45pm Reply

      • Jillian: Love the idea of pretzel pieces. Thanks!! March 19, 2019 at 1:22pm Reply

        • Jaclyn: No problem! March 19, 2019 at 2:16pm Reply

  • Adri: I’m vegan the butter can easily be switched for vegan but what about the sweetened condensed milk? Any idea for a similar taste March 9, 2019 at 8:19pm Reply

  • Carol C: My MiL used to make these for us when we visited. I’ve tried to make them like hers ever since and they just aren’t the same. Still one of my families favorite treats. March 9, 2019 at 2:12pm Reply

Add your comment:

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

Copyright 2011-2019 Cooking Classy | Privacy Policy
Design by cre8d