Bake & Savor Recipes

  • All Recipes
  • Cakes & Cupcakes
  • Cookies
  • Pies & Tarts
  • About Emily
menu icon
go to homepage
  • All Recipes
  • Cakes & Cupcakes
  • Cookies
  • Pies & Tarts
  • About Emily
search icon
Homepage link
  • All Recipes
  • Cakes & Cupcakes
  • Cookies
  • Pies & Tarts
  • About Emily
×

Easy Magic Cookie Bars Recipe

Published: Nov 21, 2025 by Emily Johnson · This post may contain affiliate links · Leave a Comment

The first time I made magic cookie bars, liam was only three years old. He stood on his step stool, eyes wide as I poured layer after layer into the pan without mixing anything. "Mommy, you forgot to stir!" he kept insisting, convinced I was making a mistake. When those bars came out of the oven with their golden, bubbling top and that incredible smell of toasted coconut and melted chocolate filling our kitchen, his little face lit up. One bite of that gooey, crunchy, perfectly layered square, and he understood why they're called "magic." Now at seven, he still watches in amazement as we build these seven layer bars, and I've perfected every detail through countless batches.

Stacked homemade Magic Cookie Bars on a white plate, showing layers of chocolate chips, toasted coconut, and a golden graham crust, with a rustic, real-kitchen look.
These unbelievably Magic Cookie Bars (also known as Seven Layer Bars) layer graham cracker crumbs, sweetened condensed milk, chocolate chips, butterscotch chips, coconut, and pecans into gooey, chewy, crisp-edged dessert squares. No mixer, no complicated steps — just stack, bake, and enjoy.
Jump to Recipe Print Recipe
Stacked homemade Magic Cookie Bars on a white plate, showing layers of chocolate chips, toasted coconut, and a golden graham crust, with a rustic, real-kitchen look.

Why You'll Love These Magic Cookie Bars

These Magic Cookie Bars changed my weeknight dessert game completely. No stand mixer, no creaming butter, no rolling dough - just layer everything in a pan and walk away. The graham cracker crust gets buttery and crisp, while sweetened condensed milk seeps through every layer, binding chocolate chips, butterscotch, coconut, and nuts into pure heaven. They travel perfectly to potlucks without falling apart, and you can make them start to finish in under 45 minutes including baking time.

What makes these seven layer bars truly special is how forgiving they are. liam helps make them all the time because there's literally nothing to mess up. Forgot to press the crust firmly enough? Still delicious. Added extra chocolate chips? Even better. The magic happens in the oven where everything melts together into those iconic gooey, chewy squares with crispy edges. One pan feeds a crowd, they stay fresh for days, and honestly, they taste like you're some kind of baking genius when you really just stacked ingredients and turned on the oven.

Jump to:
  • Why You'll Love These Magic Cookie Bars
  • Magic Cookie Bars Ingredients
  • How To Make Magic Cookie Bars
  • Substitutions
  • Magic Cookie Bars Variations
  • Equipment For Magic Cookie Bars
  • Storage Tips
  • Top Tip
  • FAQ
  • Sweet Success in Every Square!
  • Related
  • Pairing
  • Magic Cookie Bars

Magic Cookie Bars Ingredients

The Foundation:

  • 2 cups graham cracker crumbs
  • ½ cup melted butter
  • 1 can (14 oz) sweetened condensed milk
  • 2 cups semi-sweet chocolate chips
  • 1 cup butterscotch chips
  • 1⅓ cups sweetened coconut flakes
  • 1 cup chopped pecans

Optional Extras:

  • ½ cup white chocolate chips
  • ½ cup toffee bits
  • 1 cup mini marshmallows

How To Make Magic Cookie Bars

Step 1: Prepare Your Base

Preheat your oven to 350°F and line a 9x13-inch baking pan with parchment paper. Mix your graham cracker crumbs with melted butter until everything looks like wet sand. Press this mixture firmly into the bottom of your prepared pan, making sure to reach all the corners and edges. This creates that essential crispy foundation that holds all your layers together.

A homemade graham cracker crust mixture spread evenly in a metal baking pan, showing a loose, sandy texture before being pressed for Magic Cookie Bars.

Step 2: Add the Magic Binding

Pour the entire can of sweetened condensed milk evenly over your graham cracker crust. Don't worry about spreading it perfectly - it'll find its way during baking. This sticky, sweet layer is what binds everything together and creates that signature gooey texture in your magic cookie bars recipe.

Step 3: Layer Your Toppings

Now comes the fun part where liam always helps. Sprinkle the chocolate chips evenly across the surface, followed by the butterscotch chips. Then add your shredded coconut in an even layer, and finish with the chopped pecans on top. Each layer should cover the previous one completely for that perfect seven-layer effect.

A homemade pan of unbaked Magic Cookie Bars topped with shredded coconut, chocolate chips, and chopped nuts, spread unevenly across the surface in a metal baking pan.

Step 4: Bake to Golden Perfection

Slide your pan into the preheated oven and bake for 25-30 minutes. You're looking for golden brown edges and a lightly toasted coconut top. The center might look slightly soft, but that's exactly what you want. The bars will firm up as they cool, creating that perfect chewy-yet-crispy texture everyone loves.

A homemade pan of golden-brown Magic Cookie Bars with toasted coconut, melted chocolate chunks, and crisp edges, baked in a metal pan on a marble countertop.

Step 5: Cool and Cut

This is the hardest part - waiting! Let your magic cookie bars cool completely in the pan, about an hour at room temperature. For the cleanest cuts, refrigerate them for another 2 hours before slicing. Use a sharp knife wiped clean between cuts to get those perfect squares that look bakery-worthy.

Substitutions

Years of recipe testing taught me these substitutions work beautifully:

Quick Changes:

  • Milk chocolate → Semi-sweet chips
  • Walnuts → Pecans
  • Dark chocolate → Regular
  • Vanilla wafers → Graham crackers

Dietary Swaps:

  • Coconut condensed milk → Regular
  • Gluten-free crackers → Graham
  • Nut-free → Extra coconut

Magic Cookie Bars Variations

Peppermint Holiday Version:

  • Replace butterscotch chips with white chocolate chips
  • Add crushed candy canes to the coconut layer
  • Use dark chocolate chips instead of semi-sweet
  • Drizzle melted white chocolate on top after cooling

S'mores Style Bars:

  • Use chocolate graham crackers for the crust
  • Double the chocolate chips and skip butterscotch
  • Add mini marshmallows in the middle layer
  • Top with extra marshmallows last 5 minutes of baking

Tropical Paradise Twist:

  • Swap pecans for chopped macadamia nuts
  • Use only white chocolate chips throughout
  • Add dried pineapple pieces with the coconut
  • Double the coconut for extra island flavor

Peanut Butter Lovers:

  • Replace butterscotch chips with peanut butter chips
  • Use chopped peanuts instead of pecans
  • Drizzle melted peanut butter over warm bars
  • Add mini Reese's pieces to chocolate layer

Equipment For Magic Cookie Bars

  • 9x13 baking pan
  • Measuring cups
  • Mixing bowl
  • Spatula

Storage Tips

Best Fresh

  • Serve at room temperature for optimal gooey texture
  • The chocolate and butterscotch are perfectly melted when fresh
  • Coconut stays toasted and crispy right after cooling
  • Store in single layer with parchment between to prevent sticking

Make Ahead Strategy

  • Prepare and bake bars up to 3 days before serving
  • Store in airtight container at room temperature until needed
  • Freeze cut bars up to 3 months wrapped individually in plastic wrap
  • Thaw at room temperature for 2 hours before serving for best texture

Reheating Instructions

  • Warm in 300°F oven for 5 to 8 minutes to restore gooey center
  • Microwave individual bars for 10 to 15 seconds for melty chocolate
  • Avoid overheating as chocolate can burn and coconut gets too crispy
  • Room temperature is actually best as bars are naturally soft and chewy

Top Tip

  • One Saturday, liam was helping with these bars for his class party. He got distracted by cartoons and forgot to tell me he'd already added the chocolate chips. I didn't notice and added another full layer myself. We ended up with double the chocolate, and honestly? Everyone said they were the best magic cookie bars they'd ever tasted.
  • Now we always do the "double chocolate layer" on purpose. liam still claims it was his master plan all along. The extra chocolate makes them ridiculously indulgent, and they bake perfectly. His distracted moment became our signature version, proving that with these forgiving bars, mistakes often lead to the best results.

FAQ

What are the 5 ingredient magic cookies?

The original eagle brand magic cookie bars use five core ingredients: graham cracker crust, sweetened condensed milk, chocolate chips, coconut, and nuts. This stripped-down version still delivers amazing flavor and gooey texture. Many bakers add butterscotch chips as a sixth ingredient for extra depth, but the five-ingredient version remains a classic for its simplicity and reliably delicious results.

What are the 7 layers in the magic cookie bar?

The traditional seven layer bars include: graham cracker crust, sweetened condensed milk, chocolate chips, butterscotch chips, shredded coconut, chopped nuts, and sometimes a final drizzle on top. Each layer adds distinct flavor and texture. The condensed milk soaks through everything during baking, binding all the layers into those iconic gooey, chewy bars that made this recipe famous.

What kind of pan is best for magic bars?

A 9x13-inch metal baking pan works best for magic cookie bars because it conducts heat evenly and creates perfectly crispy edges. Glass pans work too but may require reducing oven temperature by 25°F to prevent over-browning. Dark pans brown faster, so watch timing closely. Always line your pan with parchment paper for easy removal.

What kind of nuts are best in magic cookie bars?

Pecans and walnuts are traditional favorites because their slightly bitter flavor balances the sweetness perfectly. Pecans stay crunchier during baking, while walnuts offer softer texture. Almonds work for milder taste, and cashews add buttery richness. Toast nuts before adding for deeper flavor. For nut allergies, substitute sunflower seeds or extra coconut flakes.

Sweet Success in Every Square!

You now have all the secrets to making foolproof magic cookie bars that'll become your go-to dessert for every occasion. These seven layer bars prove that sometimes the simplest recipes create the most memorable moments - no fancy techniques, no complicated steps, just pure delicious magic that happens in your oven. From liam's double chocolate discovery to understanding exactly why that sweetened condensed milk is the key to perfection, you're ready to create bars that'll have everyone begging for the recipe.

Looking for more irresistible desserts? Bring holiday cheer with our Easy Christmas Tree Cupcakes Recipe that turns simple cupcakes into festive showstoppers perfect for December gatherings. Chocolate lovers won't be able to resist our Easy Black Forest Cookies Recipe that captures all the flavors of the classic cake in a chewy cookie. And when you're craving something truly decadent, master our The Best Brown Butter Brownies that take ordinary brownies to an extraordinary level with nutty, caramelized butter flavor.

Share your magic Magic Cookie Bars success! Tag @EmilyAndliamKitchen and #MagicCookieBars. We love seeing your layered creations and hearing about your own happy accidents in the kitchen!

⭐⭐⭐⭐⭐ Rate this Magic Cookie Bars and join our baking community!

Related

Looking for other recipes like this? Try these:

  • Freshly baked, golden-brown braided challah bread on a baking tray, with a slice cut to reveal the fluffy, airy interior.
    The Best Challah Bread Recipe
  • A slice of beef pot pie with a golden crust and hearty filling.
    Easy Beef Pot Pie Recipe
  • A stack of fluffy, golden-brown Greek Yogurt Pancakes topped with a square of melting butter, served on a plate. The pancakes are stacked high, with a rich golden-brown color and a soft interior.
    Easy Greek Yogurt Pancakes
  • A close-up of a moist, crumbly slice of Cowboy Coffee Cake with a crumbly topping, sitting on a white plate. The cake is golden in color with a slightly crunchy topping, indicating a delicious, homemade treat.
    Easy Cowboy Coffee Cake Recipe

Pairing

These are my favorite dishes to serve with Magic Cookie Bars

  • A Banana Pudding Cupcakes topped with whipped cream, a vanilla wafer, and a slice of banana, with the cupcake cut open to reveal a creamy banana filling inside.
    Easy Banana Pudding Cupcakes Recipe
  • A close-up of a slice of Mincemeat Pie on a plate, showing the rich, dark filling of dried fruits and spices, with a golden-brown, flaky crust.
    The Best Mincemeat Pie Recipe
  • A slice of lemon layer cake on a white plate showing fluffy layers of cake, lemon curd filling, and cream cheese frosting, garnished with fresh lemon slices on top.
    Lemon Layer Cake with Lemon Curd Filling
  • A close-up of a slice of Lemon Greek Yogurt Cheesecake topped with whipped cream, a lemon slice, and lemon zest, served with a forkful of the creamy dessert.
    3 Ingredient Lemon Greek Yogurt Cheesecake
Stacked homemade Magic Cookie Bars on a white plate, showing layers of chocolate chips, toasted coconut, and a golden graham crust, with a rustic, real-kitchen look.

Magic Cookie Bars

5 from 1 vote
These unbelievably Magic Cookie Bars (also known as Seven Layer Bars) layer graham cracker crumbs, sweetened condensed milk, chocolate chips, butterscotch chips, coconut, and pecans into gooey, chewy, crisp-edged dessert squares. No mixer, no complicated steps - just stack, bake, and enjoy.
Print Recipe Pin Recipe
Prep Time 10 minutes mins
Cook Time 25 minutes mins
Cooling Time 1 hour hr
Total Time 1 hour hr 35 minutes mins
Servings: 24 bars
Course: Dessert
Cuisine: American
Calories: 295
Ingredients Equipment Method Nutrition Notes

Ingredients
  

  • 2 cups graham cracker crumbs
  • ½ cup unsalted butter - melted
  • 1 can (14 oz) sweetened condensed milk
  • 2 cups semi-sweet chocolate chips
  • 1 cup butterscotch chips
  • 1⅓ cups sweetened shredded coconut
  • 1 cup pecans - chopped
Optional Add-Ins
  • ½ cup white chocolate chips
  • ½ cup toffee bits
  • 1 cup mini marshmallows

Equipment

  • 1 9x13-inch baking pan (Metal pan preferred for crisp edges)
  • 1 Large mixing bowl (For crust mixture)
  • 1 Spatula (For spreading layers)
  • 1 Parchment paper (For easy removal)

Method
 

  1. Preheat oven to 350°F. Line a 9×13 pan with parchment paper. Mix graham cracker crumbs and melted butter until consistency resembles wet sand. Press firmly into the pan.
  2. Pour the sweetened condensed milk evenly over the crust. It does not need to be spread perfectly.
  3. Sprinkle chocolate chips, then butterscotch chips. Add coconut evenly, and top with chopped pecans.
  4. Bake 25-30 minutes until edges are golden brown and coconut is lightly toasted. Center may look soft.
  5. Cool 1 hour in pan. For cleaner slices, refrigerate 2 hours before cutting.

Nutrition

Serving: 1bar (~55-60 g)Calories: 295kcalCarbohydrates: 33gProtein: 3.5gFat: 17gSaturated Fat: 10gPolyunsaturated Fat: 2gMonounsaturated Fat: 3gCholesterol: 10mgSodium: 115mgPotassium: 150mgFiber: 2gSugar: 24gVitamin A: 120IUCalcium: 75mgIron: 1.5mg

Notes

Nutrition information is automatically calculated and should be considered an approximation. Actual values may vary based on specific ingredients used and portion sizes

Tried this recipe?

Let us know how it was!

More Cookies

  • A stack of freshly baked golden Chewy Coconut Sugar Cookies arranged on a plate, showcasing a crisp texture with visible coconut flakes.
    Chewy Coconut Sugar Cookies Recipe
  • A close-up of stacked, glazed Lemon Poppy Seed Cookies with a bite taken out of the top cookie, showcasing the soft, crumbly texture.
    Easy Lemon Poppy Seed Cookies Recipe
  • Stack of freshly baked Cranberry Orange Icebox Cookies drizzled with white icing. The cookies have a soft, crumbly texture with visible dried cranberries and a hint of orange zest.
    Cranberry Orange Icebox Cookies Recipe
  • A stack of freshly baked Cake Batter Chocolate Chip Cookies, showing vibrant rainbow sprinkles, with one cookie broken to reveal its soft, chewy interior.
    Cake Batter Chocolate Chip Cookies
5 from 1 vote (1 rating without comment)

Leave a Reply Cancel reply

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

Recipe Rating




emily seo and founder of bake and savor

Hi bakers!

I'm Emily, the baker and creator behind Bake and Savor. I transform classic recipes into foolproof treats that bring joy to every kitchen. From my family's treasured recipes to modern favorites, I'm here to share the sweet science of baking with you! 🧁

More about me

Popular

  • A close-up of a Tiramisu Cupcakes with a bite taken out, revealing the moist interior with a swirl of espresso flavor and topped with creamy mascarpone frosting, dusted with cocoa powder.
    Easy Tiramisu Cupcakes Recipe
  • A close-up shot of a slice of pink Jello pie topped with whipped cream and garnished with fresh raspberries.
    No-Bake Jello Pie Recipe
  • A slice of moist Yellow Cake topped with creamy chocolate frosting, sitting on a plate.
    Easy Yellow Cake Recipe
  • A close-up of a slice of Caramel Apple Cheesecake topped with caramel sauce and cinnamon spiced apples, served on a plate with a fork.
    Easy Caramel Apple Cheesecake Recipe

Seasonal

  • A slice of Sour Cherry Pie served on a plate, with a lattice crust, fresh cherries, and a sprinkle of powdered sugar, garnished with a sprig of thyme.
    Easy Homemade Sour Cherry Pie Recipe
  • Slice of Gingerbread Cake with whipped cream and caramel drizzle.
    The Best Gingerbread Cake Recipe
  • Stack of millionaire shortbread bars with layers of shortbread, caramel, and chocolate, topped with sea salt on a plate.
    Easy Millionaire Shortbread Recipe
  • Two stacked carrot cake bars with cream cheese frosting, showing the moist texture with grated carrots and nuts inside, served on a plate.
    Carrot Cake Bars with Cream Cheese Frosting

Footer

Logo bake and savor recipes
↑ back to top

Explore

  • About
  • Contact
  • Subscribe

Legal

  • Privacy Policy
  • Terms & Conditions
  • Accessibility

Copyright © 2025 Bake and Savor. All recipes developed and tested by Emily. Bake with love, serve with joy.

Rate This Recipe

Your vote:




A rating is required
A name is required
An email is required

Recipe Ratings without Comment

Something went wrong. Please try again.