These thick, gooey Magic Cookie Bars pack in chocolate chips, butterscotch, toasted coconut and crunchy pecans over a buttery graham cracker crust, with sweetened condensed milk holding it all together. They're so easy that I keep coming back to them, and a pan never lasts long.

If simple bars that taste like you worked on them for hours are your thing, make a batch next to my Sugar Cookie Truffles or Easy Bee Sting Cake Recipe. They go together in minutes and come out golden and chewy each time.
Why You'll Keep Making These Magic Cookie Bars
These Magic Cookie Bars are made for lazy bakers. No mixer, no chilling, no fussy technique. You press, sprinkle, drizzle and bake. They're rich and sweet, so even a small square feels like a treat. They also travel well, which makes them handy for potlucks and bake sales, when you want something that looks impressive without the stress.
Jump to:
Ingredients for Magic Cookie Bars
The list is short and every item is a pantry staple, so any grocery store will have what you need.
Check the recipe card below this post for exact ingredient quantities
- Graham cracker crumbs: They make the buttery base that holds the bars together. Buy them pre-crushed or crush whole crackers yourself.
- Unsalted butter: It binds the crumbs and adds richness. Melt it fully so it mixes in evenly.
- Semi-sweet chocolate chips: They give deep, melty chocolate flavor in every bite.
- Butterscotch chips: Their warm, caramel-like sweetness balances the chocolate.
- Chopped pecans: They bring crunch and a nutty, slightly earthy flavor. Toast them first if you want more depth.
- Shredded coconut: It adds chew and a gentle tropical sweetness. Sweetened or unsweetened both work.
- Sweetened condensed milk: This is the magic. It seeps into every layer and turns gooey and sticky in the oven.
How to Make Magic Cookie Bars
Just a few steps, and these Magic Cookie Bars will be in the oven before you know it.
Preheat oven: Heat your oven to 350°F (180°C). Line a 9×13-inch baking pan with parchment paper and leave a bit hanging over the sides so you can lift the bars out later.
Make the crust: Stir the graham cracker crumbs and melted butter together in a medium bowl until it looks like wet sand and every crumb is coated. Press it firmly and evenly into the bottom of the prepared pan.

Layer the toppings: Scatter the chocolate chips, butterscotch chips, chopped pecans and shredded coconut over the crust. Spread them as evenly as you can so each bite gets a bit of everything.

Drizzle the milk: Slowly pour the sweetened condensed milk evenly over all the layers. It may look like too little, but it spreads as it bakes.

Bake: Bake for 25 to 30 minutes, until the top is lightly golden and the edges are bubbly. The center can look a little soft. It firms up as it cools.

Cool completely: Leave the bars in the pan for at least an hour before slicing. Cut too early and they'll fall apart.
Substitutions and Variations
Change these Magic Cookie Bars to fit your pantry or whatever your family likes.
Swap the chips: Use white chocolate, peanut butter or dark chocolate chips in place of the butterscotch.
Change the nuts: Walnuts, almonds or cashews work instead of pecans. If there's an allergy, leave the nuts out entirely.
Skip the coconut: Not a fan? Omit it, or use more chocolate chips or crushed pretzels for a salty-sweet twist.
Add extra flavor: Before baking, toss in mini marshmallows, toffee bits or dried cranberries.
Use a different crust: Crushed vanilla wafers, Oreos or pretzels can replace the graham crackers for a different base.
Equipment for Magic Cookie Bars
A few basic tools are all these Magic Cookie Bars need.
- 9×13-inch baking pan
- Parchment paper
- Medium bowl
- Spoon for drizzling
Storing Magic Cookie Bars
Keep the bars in an airtight container at room temperature for up to 4 days. For longer storage, the fridge holds them for up to a week. They freeze well too, for up to 3 months. Wrap each bar in plastic wrap and put them in a freezer-safe bag. Thaw on the counter or microwave for a few seconds.
Serving Suggestions
These bars are rich, so a small square is plenty. A few ideas for serving:
- With a cold glass of milk or a hot cup of coffee
- Slightly warmed, topped with a scoop of vanilla ice cream
- Next to fresh berries to cut the sweetness
- Cut small and set on a dessert platter with Lemon Cheesecake or Mini Margarita Cheesecakes
Expert Tips
Press the crust firmly: A loose crust means crumbly bars. Pack it down well.
Cool completely: I know it's tempting to dive in, but the bars need time to set. Give them at least an hour.
Use parchment paper: It lets you lift the bars out of the pan and slice them cleanly.
Don't overbake: The top should look just set, not dry or deeply browned. They keep firming up as they cool.
Cut with a sharp knife: Wipe the blade clean between cuts for neat, bakery-style squares.
FAQ
What are the 5 ingredient magic cookies?
The most basic version is graham cracker crust, chocolate chips, coconut, sweetened condensed milk and sometimes nuts. I add butterscotch chips for more flavor, but you can keep it plain if you like.
Why are my magic cookie bars gooey?
If your bars turn out too gooey, they likely needed more oven time or a longer cool-down. Bake until the edges are golden and bubbly, then let them cool completely before slicing. Cut them warm and they'll turn into a melty mess.
What makes magic cookie bars so special?
It comes down to the sweetened condensed milk. It soaks into every layer and makes a chewy, sticky, almost candy-like texture. The mix of chocolate, butterscotch, coconut and pecans is hard to beat, too.
What are the 7 layers in a 7 layer bar?
The classic 7 layers are graham cracker crust, butter, chocolate chips, butterscotch chips, coconut, nuts and sweetened condensed milk. Some recipes use more or fewer, but that's the traditional lineup.
Related
Want more recipes like this one? Try these:
Pairing
These are the dishes I like to serve with Magic Cookie Bars

Chewy Magic Cookie Bars
Ingredients
Method
- Preheat your oven to 350°F (180°C). Line a 9x13-inch baking pan with parchment paper, letting it hang over the sides so the bars lift out easily.
- In a medium bowl, stir the graham cracker crumbs and melted butter together until the crumbs are evenly moistened. Press the mixture into the bottom of the pan in an even layer.
- Sprinkle the semi-sweet chocolate chips and butterscotch chips evenly over the crust. Then scatter the chopped pecans and shredded coconut on top of the chips.
- Drizzle the sweetened condensed milk over the whole surface so it covers all the toppings.
- Bake for 25-30 minutes, until the top is lightly golden brown. Let cool completely before cutting into squares.













Sarah says