
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.

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.

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.
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.
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 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 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 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.
Leave a comment & rating below or tag
@feastara on social media!


Buttery oatmeal cookie cups filled with warm, cinnamon-spiced apple pie filling and a sweet glaze for cozy, handheld comfort.

Tender mushroom caps filled with garlicky Provençal herbs, bright lemon, and olive oil. A cozy, elegant AIP-friendly appetizer ready in under an hour.

Creamy spinach, peppers, and tangy feta tucked in warm tortillas, baked golden for an easy make-ahead lunch or freezer-friendly snack.

Leave a comment & rating below or tag @feastara on social media!
Enjoyed this recipe? Share it with friends and family, and don't forget to leave a review!
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.

Join to receive our email series which contains a round-up of some of our quick and easy family favorite recipes.