7-Layer Bars (Magic Cookie Bars) by Jamielyn Nye

Classic 7-layer bars loaded with graham cracker crust, chocolate and butterscotch chips, pecans, sweetened condensed milk, and coconut. Easy, nostalgic, and perfect for potlucks.

This version of 7-layer bars has been a weekend staple in my kitchen since I first made it following a late-night craving for something sweet and nostalgic. I discovered this combination while helping my sister pack for a move and rummaging through a box of old recipes. The aroma of toasted coconut and melting chips pulled everyone into the kitchen. These bars are uncomplicated yet indulgent: a buttery graham cracker base supporting layers of chocolate and butterscotch, crunchy pecans, a blanket of sweetened condensed milk, and toasted coconut on top. They cut into perfect squares or elegant diamonds, and every bite is a contrast of textures.
What makes these bars special is the balance between the crunchy crumb layer and the luxuriously gooey top. The sweetened condensed milk acts like the glue that holds everything together and caramelizes slightly while baking, creating chewiness that plays beautifully against the snap of the chocolate chips and the toasted pecans. I often bring a pan to neighborhood gatherings because they travel well and are universally beloved. Whether you call them magic cookie bars or seven-layer bars, they carry those comforting flavors that feel like home.
Why You'll Love This Recipe
- Ready in about 30 minutes total, these bars are perfect for when you need a quick dessert that still feels homemade and impressive.
- Uses pantry staples like graham crackers, chips, and a can of sweetened condensed milk so you can assemble without a special trip to the store.
- Make-ahead friendly: bake, cool, and store; they keep at room temperature for several days and freeze beautifully for up to 2 months.
- Crowd-pleasing texture contrast: crisp buttery base, gooey condensed milk layer, crunchy pecans, and melty chocolate all in one bite.
- Highly adaptable: omit coconut, swap chips, or add pretzels and mini marshmallows for a salty-sweet twist.
I remember taking a pan to my son’s first school bake sale and watching the tray disappear faster than anything else on the table. Friends comment on the nostalgic flavor and the simple technique. Over the years I’ve learned small tricks such as pressing the crust evenly and using a plastic knife to slice clean diamonds; those tips make presentation and serving feel effortless.
Ingredients
- Graham cracker crumbs: 1 1/2 cups. I use Keebler graham cracker crumbs for consistent sweetness and a fine texture that binds beautifully with butter to form the crust.
- Butter: 1/2 cup (8 tablespoons) melted. Use unsalted butter for control over saltiness; fully melt and cool slightly to make it easy to mix into crumbs.
- Chocolate chips: 1 cup. Semi-sweet chips hold their shape while softening; use a high-quality brand like Ghirardelli or Nestle for the best melt and flavor.
- Butterscotch chips: 1 cup. These add a rich, caramel note. If you prefer, substitute half with white chocolate chips for a milder sweetness.
- Pecans: 1/2 cup chopped. Lightly toasting the pecans for 5 minutes at 350°F brings out their oil and amplifies the crunch and flavor.
- Sweetened condensed milk: 1 (14-ounce) can. This is the key gooey element that binds the layers; pour it evenly so it distributes and caramelizes slightly in the oven.
- Shredded coconut: 1 cup sweetened, shredded. You can toast this for extra flavor or leave it untoasted for soft chewiness; unsweetened may dry out the top.
Instructions
Prep: Preheat the oven to 350°F. Line a 9x13-inch baking dish with parchment paper or foil and lightly grease with nonstick spray. Lining the pan makes it easy to lift the baked slab out for clean cutting. Make the crust: In a medium bowl combine 1 1/2 cups graham cracker crumbs with 1/2 cup (8 tablespoons) melted butter. Use a fork to blend until the crumbs are evenly moistened. Press firmly into the bottom of the prepared pan to form a compact, even layer. A measuring cup bottom works well to press the crust flat. Assemble the layers: Sprinkle 1 cup chocolate chips evenly over the pressed crust. Top with 1 cup butterscotch chips so the flavors distribute across the entire pan. Scatter 1/2 cup chopped pecans on top of the chips, aiming for full coverage. Add the condensed milk: Pour the entire 14-ounce can of sweetened condensed milk in a slow, steady stream over the chips and nuts. Tilt the pan gently if needed to help the liquid reach edges. The condensed milk will seep between chips and into the crust, creating the signature gooey layer as it bakes. Top with coconut: Sprinkle 1 cup sweetened shredded coconut evenly over the condensed milk. If you prefer a toasted finish, you can lightly toast the coconut in a dry skillet for 2 to 3 minutes before sprinkling. Bake and cool: Bake 20 to 25 minutes, or until the top is lightly browned and bubbly. Remove from oven and allow to cool completely on a wire rack before cutting. Cooling ensures cleaner cuts and helps the layers set; for diamonds use a plastic knife for the best edges.
You Must Know
- These bars keep at room temperature in an airtight container for 3 to 4 days and last a few extra days refrigerated.
- Freeze cooled bars up to 2 months. Thaw overnight in the fridge or a few hours at room temperature before serving.
- If avoiding coconut, substitute chopped pretzels for a salty crunch or mini marshmallows for a Rocky Road twist.
- To cut diamonds, make horizontal cuts about 1 1/2 inches apart then diagonal cuts about 1 1/2 inches apart; a plastic knife reduces sticking.
My favorite part is watching a crowd dig in and hearing the first surprise at how gooey and rich these bars are. They are simple to assemble yet feel like you spent time crafting a special dessert. Over time I’ve learned to press the crust firmly and to let the pan cool fully before slicing; those two small steps elevate the final presentation dramatically.
Storage Tips
Store cooled bars at room temperature in an airtight container or resealable bag for up to 3 to 4 days. For longer storage refrigerate to extend freshness by a few days; bring to room temperature before serving for the best chew. To freeze, cut into squares or diamonds once completely cooled, layer between sheets of parchment in a freezer-safe container, and freeze up to 2 months. To thaw, move to the refrigerator overnight or leave at room temperature for a few hours until the center is no longer frozen. Avoid microwaving from frozen as this can make the coconut and chips unevenly heated.
Ingredient Substitutions
If you don’t have graham crackers, substitute digestive biscuits or vanilla wafer crumbs in a one-to-one volume swap. Swap butterscotch chips with white chocolate chips or caramel chips for a different sweetness profile. Use walnuts or almonds instead of pecans; lightly toast nuts first to intensify flavor. For a lower-sugar option omit the butterscotch chips and reduce condensed milk slightly, though texture will be less gooey. To make nut-free bars, replace pecans with extra chips, pretzels, or seeds for crunch.
Serving Suggestions
Serve bars room temperature with coffee or a scoop of vanilla ice cream for a special touch. For holiday platters arrange in diamond shapes and garnish with a light dusting of powdered sugar or a drizzle of melted chocolate. These bars are ideal for potlucks, school bake sales, and casual gatherings. Pair flavors by placing salted caramel sauce on the side for drizzling or serve with brewed espresso to cut the sweetness. They also make a portable treat for picnics when packed in a shallow container with parchment between layers.
Cultural Background
Often referred to as magic cookie bars or seven-layer bars, this treat has roots in mid-20th century American home baking. The combination of layers became popular because it allowed bakers to assemble rich desserts quickly with shelf-stable ingredients. Variations have appeared across regional potlucks and community bake sales, evolving with local tastes—some prefer marshmallow layers, others add fruit preserves. The bars reflect a tradition of family-friendly desserts that prioritize ease and shareability while showcasing comforting, sweet flavors.
Seasonal Adaptations
For winter holidays add a teaspoon of ground cinnamon to the crust and swap half the chips for peppermint bark for a festive twist. In summer, lighten the bars by using unsweetened coconut and white chocolate chips, or fold in dried cherries for fruity brightness. For autumn, toast the coconut and add a pinch of nutmeg and allspice to the crumbs, and use toasted pecans for a deeper, warm flavor profile.
Meal Prep Tips
Make a double batch and freeze half for later so you always have a dessert on hand. Assemble and bake the bars, cool, and cut into portions before freezing to make serving quick. Use parchment to lift the entire slab out of the pan to slice on a cutting board; this makes uniform pieces and simplifies transfer to containers. For grab-and-go breakfasts or snacks, pack squares individually in wax paper or small bags to keep them from sticking.
These 7-layer bars are proof that simple ingredients can produce a memorable dessert. The combination of textures and flavors keeps everyone coming back for another piece, and small technique tweaks make a big difference in presentation. Try them once and they will likely become a regular in your baking rotation.
Pro Tips
Press the graham cracker crust firmly and evenly to prevent crumbly edges.
Let the pan cool completely before cutting; cooling sets the layers for cleaner slices.
Toast pecans and coconut lightly to intensify their flavor before assembling.
This nourishing 7-layer bars (magic cookie bars) by jamielyn nye 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
Can I freeze these bars?
Yes. Once fully cooled cut into squares or diamonds, wrap in parchment, and freeze in an airtight container up to 2 months. Thaw overnight in the fridge before serving.
How do I get clean slices?
Use a plastic knife or lightly warm a metal knife under hot water and dry before slicing for cleaner cuts. Let the pan cool completely first.
Tags
7-Layer Bars (Magic Cookie Bars) by Jamielyn Nye
This 7-Layer Bars (Magic Cookie Bars) by Jamielyn Nye 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
Base
Layers
Instructions
Preheat and prepare pan
Preheat oven to 350°F. Line a 9x13-inch baking dish with parchment paper or foil and lightly grease with nonstick spray so the bars lift easily after baking.
Make the crust
Combine 1 1/2 cups graham cracker crumbs with 1/2 cup melted butter in a medium bowl. Mix with a fork until crumbs are evenly moistened. Press firmly and evenly into the bottom of the prepared pan.
Layer chips and nuts
Evenly sprinkle 1 cup chocolate chips, then 1 cup butterscotch chips, then 1/2 cup chopped pecans over the crust to ensure full coverage across the pan.
Add condensed milk and coconut
Pour the 14-ounce can of sweetened condensed milk evenly over the chips and nuts, then sprinkle 1 cup shredded coconut across the top for the final layer.
Bake
Bake for 20 to 25 minutes until the top is lightly browned and bubbly. Watch the coconut to avoid over-browning. Remove from oven and cool completely on a wire rack.
Cut and store
Once fully cooled, lift from pan using parchment and cut into 24 squares or diamonds. Store in an airtight container at room temperature for several days, or freeze in layers separated by parchment.
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
@flavest on social media!

Categories:
You might also like...

3-Ingredient No-Bake Lemon Cookies
Bright, tangy lemon cookies made with just white chocolate, fresh lemon, and unsweetened shredded coconut. No oven, no fuss — ready in about 10 minutes and perfect for make-ahead treats.

3-Ingredient Strawberry Protein Balls
Simple, portable strawberry protein bites made with strawberry puree, coconut flour, and vanilla protein powder. Ready in 10 minutes and perfect for snack time.

30 Minute Chickpea and Tomato Coconut Curry Soup
A cozy, pantry friendly chickpea and tomato coconut curry soup ready in 30 minutes. Vegan, gluten free, and full of warming curry flavor.

Did You Make This?
Leave a comment & rating below or tag @flavest 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 Maria!
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.

