7-Layer Bars (Magic Cookie Bars)

Classic 7-layer bars — gooey layers of graham cracker crust, chocolate and butterscotch chips, pecans, coconut, and sweetened condensed milk. A simple, nostalgic tray bake that always disappears first.

Why You'll Love This Recipe
- Every component is pantry-friendly: graham crumbs, chips, a can of sweetened condensed milk, coconut and nuts — most kitchens already have these on hand.
- Ready in about 30 minutes total (5 minutes prep, 25 minutes baking), making it perfect for last-minute gatherings or an easy bake with kids.
- The bars transport well and are crowd-pleasing: they slice into 24 pieces and keep at room temperature for 3–4 days in an airtight container.
- Make-ahead friendly: cut and freeze extras for up to 2 months; thaw overnight in the refrigerator for simple party prep.
- Flexible and forgiving: omit the coconut for non-likers, swap pecans for pretzels for a salty crunch, or use half white chocolate chips for variety.
- Minimal equipment required — a 9x13-inch pan and a medium bowl — making cleanup quick and the method accessible for cooks of any level.
I first served these at a church picnic and watched them disappear within an hour; friends called the next day asking for the recipe. Each batch reminds me of those summer potlucks, the sticky fingers of children, and the laughter that follows the opening of the dessert tray. It never fails to spark a conversation about favorite childhood sweets, and I love hearing other people's spins on the layers.
Ingredients
- Graham cracker crumbs: 1 1/2 cups (I prefer Keebler for consistent texture). Look for fine crumbs so the crust presses together evenly; you can pulse whole crackers in a food processor or use store-bought crumbs.
- Butter: 1/2 cup (8 tablespoons), melted. Use unsalted butter for better flavor control; melting and then cooling slightly makes it easier to combine with the crumbs without soaking them.
- Chocolate chips: 1 cup. Semi-sweet or milk chips work well — Ghirardelli or Nestlé Toll House yield good melting textures. Scatter evenly for predictable chocolate in every bite.
- Butterscotch chips: 1 cup. If you prefer a lighter sweetness, replace half with white chocolate chips to balance the caramel notes.
- Pecans: 1/2 cup, chopped. Toast them briefly in a dry skillet or in the oven at 350°F for 5 minutes to deepen flavor; reserve a few extra for sprinkling on top if you like.
- Sweetened condensed milk: 1 (14-ounce) can. This provides the gooey binder; pour evenly so the layers soak but don't become soggy.
- Sweetened shredded coconut: 1 cup. Adds chew and a toasted edge when baked. Omit for allergies or swap for mini marshmallows or chopped pretzels for texture contrast.
Instructions
Prep: Preheat the oven to 350°F. Line a 9x13-inch baking dish with parchment paper or foil, leaving an overhang for easy removal; lightly grease with nonstick spray or a thin layer of butter so the parchment stays put while you press the crust. Make the crust: Combine 1 1/2 cups graham cracker crumbs with 1/2 cup (8 tablespoons) melted butter in a medium bowl. Stir with a fork until evenly moistened. Press the mixture firmly and evenly into the bottom of the prepared pan, applying pressure with the back of a measuring cup for a compact base that will hold the layers without crumbling when sliced. Assemble the layers: Scatter 1 cup chocolate chips in an even layer over the crust, followed by 1 cup butterscotch chips and 1/2 cup chopped pecans. Pour the entire 14-ounce can of sweetened condensed milk in a slow, steady stream over the chips so it covers most areas; the milk will seep between the chips and bind the layers. Finish with an even sprinkle of 1 cup sweetened shredded coconut across the top. Bake: Bake at 350°F for 20 to 25 minutes, or until the top is lightly golden and the coconut shows a touch of color. Rotate the pan halfway through baking for even browning. Avoid overbaking; you want a set, not dry, top. Allow the pan to cool completely on a wire rack before slicing — chilling briefly speeds up the slicing process. Cut and serve: Use the parchment overhang to lift the bars from the pan. For squares, cut into 24 pieces; to make diamonds, make horizontal cuts about 1 1/2 inches apart and then diagonal cuts the same distance. A plastic knife often yields the cleanest cuts because it won’t drag melted chips.
You Must Know
- These bars are not gluten-free because the crust uses graham crackers; you can substitute gluten-free graham-style crumbs if needed.
- Store at room temperature for 3–4 days in an airtight container, or refrigerate for up to a week; freeze for up to 2 months when individually wrapped.
- To prevent a soggy top, avoid pouring the condensed milk in one spot — spread it evenly and use slightly chilled chips if your kitchen is warm.
- High in sugar and fat — approximate nutrition per serving: ~221 kcal, 30 g carbs, 13 g fat, 3 g protein (estimates vary by brand).
What I love most is how these bars fold nostalgia into every bite. When I make them for holidays, people bring stories about the first time they tried a magic cookie bar — they’re the kind of dessert that evokes warm memories. I always keep a can of condensed milk in the pantry now, because you never know when a craving for a gooey, crunchy square will strike.
Storage Tips
Store the cooled bars at room temperature in an airtight container or resealable bag for 3–4 days. For longer storage, place the cooled and cut bars in a single layer in a freezer-safe container with parchment between layers; freeze up to 2 months. To thaw, move the container to the refrigerator overnight or set bars on the counter for a few hours until soft. When reheating a single piece, a quick 10–15 second zap in the microwave (on low) restores the gooey texture without melting the chips overly much.
Ingredient Substitutions
If coconut isn’t for you, omit it entirely or replace the 1 cup with 1 cup mini marshmallows (add near the end of baking or briefly toast under the broiler), chopped pretzels for a salty contrast, or additional nuts for crunch. Swap pecans for walnuts or almonds at a 1:1 ratio. For a dairy-free version, use vegan butter, dairy-free chocolate and butterscotch-style chips, and a vegan condensed milk alternative — note texture and sweetness may vary slightly.
Serving Suggestions
Serve bars on a platter with a dusting of powdered sugar or a drizzle of melted chocolate for a party. They pair beautifully with strong coffee or a glass of cold milk and are great alongside fruit salad for balance. For a holiday table, place them in mini paper liners and garnish with a single toasted pecan half for a polished look.
Cultural Background
Often called 'magic cookie bars' in American home baking, this layered tray bake dates to mid-20th-century convenience cooking when canned milk and pre-made chips became common. The idea of layering sweet, shelf-stable ingredients over a crumb base reflects an era of quick, crowd-pleasing desserts that required minimal technique but maximum flavor impact.
Seasonal Adaptations
In winter, swap butterscotch chips for gingerbread-flavored morsels or add a teaspoon of cinnamon to the crust. For summer, fold in 1/2 cup dried cherries in place of half the coconut for a bright contrast, or top with a sprinkle of flaky sea salt after baking for a salted-sweet bite. These small seasonal changes refresh the profile while keeping the easy method intact.
Meal Prep Tips
Make a double batch and freeze half for quick dessert solutions. Cut and flash-freeze on a tray before transferring to a bag to prevent sticking. Keep a small jar of extra chopped nuts and chips on hand to replace any that get stale; you can toast extras in a low oven right before assembling to maximize aroma and crunch.
These bars are a testament to how a few humble pantry staples can become a beloved treat. Share a pan with friends, bring one to your next gathering, or keep a stack of individually wrapped squares in the freezer — they’re always a welcome surprise. Enjoy experimenting with the layers and making this classic your own.
Pro Tips
Press the graham crumb crust firmly with the bottom of a measuring cup for a compact base that slices cleanly.
Toast the pecans for 3–5 minutes at 350°F to amplify their flavor before adding to the layers.
Use parchment with an overhang to easily lift the entire slab from the pan for quick slicing and cleanup.
Rotate the pan halfway through baking to ensure even browning across the coconut topping.
A plastic knife or chilled metal knife gives neater slices than a warm, thin blade.
This nourishing 7-layer bars (magic cookie bars) recipe is sure to be a staple in your kitchen. Enjoy every moist, high protein slice — it is perfect for breakfast or as a wholesome snack any time.
FAQs about Recipes
How long do these bars keep?
Yes. Once cooled, cut into squares and store in an airtight container at room temperature for 3–4 days; refrigerate to extend an additional few days or freeze up to 2 months.
What's the best way to cut the bars?
Lift the bars from the pan using the parchment overhang and use a plastic knife for the cleanest cuts. Chill briefly if the filling is very soft.
Tags
7-Layer Bars (Magic Cookie Bars)
This 7-Layer Bars (Magic Cookie Bars) recipe makes perfectly juicy, tender, and flavorful steak every time! Serve with potatoes and a side salad for an unforgettable dinner in under 30 minutes.

Ingredients
Crust
Layers
Instructions
Prep
Preheat oven to 350°F. Line a 9x13-inch pan with parchment paper or foil with an overhang and lightly grease the surface to keep parchment in place.
Make crust
Combine 1 1/2 cups graham cracker crumbs with 1/2 cup melted butter and press firmly into the bottom of the prepared pan using the back of a measuring cup to create an even, compact base.
Assemble layers
Layer 1 cup chocolate chips, 1 cup butterscotch chips, and 1/2 cup chopped pecans evenly over the crust. Pour the 14-ounce can of sweetened condensed milk in a slow stream to cover the surface, then sprinkle 1 cup shredded coconut on top.
Bake
Bake at 350°F for 20–25 minutes, until the top is lightly golden and coconut shows slight browning. Rotate the pan halfway through for even color and avoid overbaking to keep the filling gooey.
Cool and cut
Cool the pan completely on a wire rack. Lift the slab using the parchment overhang and cut into 24 squares or into diamonds by making horizontal and diagonal cuts about 1 1/2 inches apart.
Store or freeze
Store at room temperature in an airtight container for 3–4 days, refrigerate to extend a few more days, or freeze cut bars up to 2 months. Thaw overnight in the refrigerator before serving.
Last Step: Please leave a rating and comment letting us know how you liked this recipe! This helps our business to thrive and continue providing free, high-quality recipes for you.
Nutrition
Did You Make This?
Leave a comment & rating below or tag
@feastara on social media!

Categories:
You might also like...

3-Ingredient Banana Oat Cookies
Soft, chewy no-bake banana oat cookies sweetened only with fruit for a quick, wholesome snack you can mix in minutes.

30-Minute Garlic Ginger Glazed Salmon (Gluten Free!)
A quick, pantry-friendly glazed salmon ready in 30 minutes—gluten free, soy free option, and naturally sweetened with honey. Perfect for weeknight dinners.

7-Layer Bars (Magic Cookie Bars)
Classic 7-layer bars — gooey layers of graham cracker crust, chocolate and butterscotch chips, pecans, coconut, and sweetened condensed milk. A simple, nostalgic tray bake that always disappears first.

Did You Make This?
Leave a comment & rating below or tag @feastara on social media!
Rate This Recipe
Share This Recipe
Enjoyed this recipe? Share it with friends and family, and don't forget to leave a review!
Comments (1)
This recipe looks amazing! Can't wait to try it.
Comments are stored locally in your browser. Server comments are displayed alongside your local comments.
Hi, I'm Ina!
What's Popular
30-Minute Meals!
Join to receive our email series which contains a round-up of some of our quick and easy family favorite recipes.

