Magic Cookie Bars

Featured in: Easy Sweet Comforts

These classic layered bars start with a buttery graham cracker crust, topped with sweetened condensed milk and loaded with chocolate chips, butterscotch chips, shredded coconut, and crunchy pecans. Bake until golden for the perfect chewy texture.

The beauty lies in the layers—each bite delivers buttery crust, rich chocolate, sweet coconut, and nutty crunch all held together by creamy condensed milk. They're incredibly simple to assemble and bake in just 30 minutes.

Let them cool completely before cutting to get clean, neat bars. The edges should be golden brown while the center remains slightly soft for that perfect chewy consistency.

Updated on Tue, 13 Jan 2026 11:16:00 GMT
Warmly baked Magic Cookie Bars showing golden edges and a layered texture of chocolate chips, coconut, and chopped pecans. Pin it
Warmly baked Magic Cookie Bars showing golden edges and a layered texture of chocolate chips, coconut, and chopped pecans. | cozyighrem.com

My college roommate used to keep a tin of these bars on top of our mini fridge, and I swear they somehow multiplied overnight. One bite of that gooey chocolate coconut mess and I understood why she guarded them so fiercely. Years later I still cannot walk past a graham cracker box without remembering those late night study sessions fueled by nothing but sugar and determination.

My daughter and I made these for her school bake sale last year, and I caught her sneaking coconut flakes straight from the bag three separate times. The entire house smelled like buttery toasted sugar for hours afterward. We sold out in fifteen minutes and had to promise the PTA president we would bring three pans next time.

What's for Dinner Tonight? 🤔

Stop stressing. Get 10 fast recipes that actually work on busy nights.

Free. No spam. Just easy meals.

Ingredients

  • Graham cracker crumbs: The buttery foundation that needs to be pressed down firmly or the whole thing falls apart when you cut it
  • Unsalted butter melted: Do not even think about using margarine here, the real butter flavor is what makes people ask for the recipe
  • Sweetened condensed milk: This magical can is basically liquid caramel waiting to happen
  • Semi sweet chocolate chips: Milk chocolate makes these too sweet for most adults while dark chocolate loses that classic cookie bar taste
  • Butterscotch chips: These add a rich caramel note but white chocolate works if you cannot find them
  • Sweetened shredded coconut: Unsweetened coconut will give you a weird dry texture so do not swap this out
  • Chopped pecans or walnuts: Toast them in a dry pan for three minutes first and thank me later

Tired of Takeout? 🥡

Get 10 meals you can make faster than delivery arrives. Seriously.

One email. No spam. Unsubscribe anytime.

Instructions

Get your oven ready:
Preheat that oven to 350°F and line your pan with parchment paper hanging over the edges like sling handles
Make the crust:
Mix those graham cracker crumbs with melted butter until they look like wet sand then press them into your pan using the bottom of a measuring cup
Pour the milk:
Open that can of sweetened condensed milk and drizzle it slowly over the crust so it covers everything evenly
Layer everything:
Scatter chocolate chips butterscotch chips coconut and nuts all over the milk like you are making a confetti pattern
Press it down:
Use your spatula to gently press all those toppings into the milk so nothing shifts when you bake it
Bake until golden:
Slide the pan into the oven for about 25 minutes until the edges turn golden brown and the center looks set
Patience is key:
Let these cool completely before you even think about cutting them or you will end up with a delicious messy puddle
Freshly cut Magic Cookie Bars on a white plate, with sweetened condensed milk binding graham cracker crust and nuts. Pin it
Freshly cut Magic Cookie Bars on a white plate, with sweetened condensed milk binding graham cracker crust and nuts. | cozyighrem.com

My grandma insisted on calling these seven layer bars even though she only used five ingredients. She would line them up on her best crystal platter for bridge club like they were some fancy French confection. The ladies never knew these were the same bars I made in my easy bake oven as a kid.

Still Scrolling? You'll Love This 👇

Our best 20-minute dinners in one free pack — tried and tested by thousands.

Trusted by 10,000+ home cooks.

Making Them Your Own

I have swapped pretzels for half the graham crackers when I wanted something salty sweet. The crushed pretzels add this incredible crunch that cuts through all that sugar. Once I used peanut butter chips instead of butterscotch and my husband declared them the best thing I have ever made.

Storage Secrets

These bars actually taste better on day two once all the flavors have had time to mingle together. I keep them between layers of wax paper in an airtight container so they do not stick together. They never last longer than five days in my house anyway.

Serving Ideas

Warm these in the microwave for fifteen seconds before serving and that melted chocolate will make you weak in the knees. A scoop of vanilla bean ice cream on the side turns this into proper dessert territory. A drizzle of salted caramel over the top is completely unnecessary but absolutely life changing.

  • Sprinkle flaky sea salt over them while they are still warm
  • Cut them tiny for parties because they are incredibly rich
  • Package them in little boxes for teachers and neighbors
Overhead view of Magic Cookie Bars with melted chocolate chips and shredded coconut glistening, ready to serve with milk. Pin it
Overhead view of Magic Cookie Bars with melted chocolate chips and shredded coconut glistening, ready to serve with milk. | cozyighrem.com

Some recipes get passed down through generations but this one spreads like wildfire at every potluck. Once someone tastes these bars they will never let you show up empty handed again.

Recipe FAQs

Why are my bars too hard?

Overbaking causes hard bars. Remove when edges are golden and center is set, about 25-30 minutes. They continue firming while cooling.

Can I use different nuts?

Absolutely. Pecans and walnuts work best, but almonds, cashews or even chopped peanuts make delicious variations based on your preference.

Do I need to refrigerate these?

No refrigeration needed. Store in an airtight container at room temperature for up to 5 days. The condensed milk keeps them moist and fresh.

Can I make these without butterscotch chips?

Yes. Replace with more chocolate chips, white chocolate chips, or even peanut butter chips. Customize the layers with whatever you enjoy most.

Why must I let them cool completely?

Warm bars crumble when cut. Cooling allows the condensed milk to set completely, ensuring clean cuts and perfect layer definition in every square.

Can I use homemade graham cracker crumbs?

Certainly. Crush about 12-15 full sheets of graham crackers to get 1 1/2 cups crumbs. Freshly crushed add excellent texture and flavor.

20-Minute Dinner Pack — Free Download 📥

10 recipes, 1 shopping list. Everything you need for a week of easy dinners.

Instant access. No signup hassle.

Magic Cookie Bars

Chewy layered bars with graham crust, chocolate, coconut and nuts

Prep Time
10 min
Time to Cook
25 min
Overall Time
35 min
Created by Melissa Caldwell


Skill Level Easy

Cuisine American

Makes 16 Portions

Dietary Details Vegetarian

What You’ll Need

Crust

01 1 1/2 cups graham cracker crumbs
02 1/2 cup unsalted butter, melted

Layers

01 1 cup semi-sweet chocolate chips
02 1 cup butterscotch chips or white chocolate chips
03 1 cup sweetened shredded coconut
04 1 cup chopped pecans or walnuts
05 1 (14 oz) can sweetened condensed milk

Step-by-Step

Step 01

Prepare the Oven and Pan: Preheat oven to 350°F. Line a 9x13-inch baking pan with parchment paper or grease lightly.

Step 02

Make the Crust: Combine graham cracker crumbs and melted butter in a bowl. Press mixture evenly into the bottom of the prepared pan.

Step 03

Add Condensed Milk: Pour sweetened condensed milk evenly over the crust layer.

Step 04

Layer the Toppings: Distribute chocolate chips, butterscotch chips, coconut, and chopped nuts evenly over the condensed milk.

Step 05

Compact the Layers: Gently press down with the back of a spatula to compact all layers together.

Step 06

Bake to Perfection: Bake for 25-30 minutes until edges are golden brown and center is set.

Step 07

Cool and Cut: Remove from oven and let cool completely before cutting into bars.

You Just Made Something Great 👏

Want more like this? Get my best easy recipes — free, straight to your inbox.

Join 10,000+ home cooks. No spam.

Gear Needed

  • 9x13-inch baking pan
  • Mixing bowl
  • Spatula
  • Measuring cups and spoons
  • Parchment paper

Allergy Details

Review every ingredient for possible allergens. Always consult a health expert if you have concerns.
  • Contains milk, tree nuts (pecans, walnuts), wheat (graham crackers), and soy (in some chips). May contain gluten depending on graham cracker ingredients.

Nutrition Details (per portion)

Nutrition guidance intended only for reference—please ask your doctor for health advice.
  • Energy: 260
  • Fats: 15 g
  • Carbohydrates: 30 g
  • Proteins: 3 g

Cooking Shouldn't Be Hard ❤️

Get a free recipe pack that makes weeknight dinners effortless. Real food, real fast.

Free forever. Unsubscribe anytime.