7-Layer Bars (Magic Cookie Bars)

Classic 7-layer bars loaded with graham cracker crust, chocolate and butterscotch chips, pecans, coconut, and sweetened condensed milk—sweet, gooey, and utterly irresistible.

This version of 7-layer bars has been a staple in my kitchen for years and is the kind of dessert that instantly signals a celebration. I first baked these after finding Jamielyn Nye’s simple list of pantry-friendly ingredients, and the combination of textures and sweet, nutty flavors quickly became a family favorite. Each bite balances a crisp graham cracker foundation with molten chips, toasted pecans, and chewy coconut finished with a glossy blanket of sweetened condensed milk. They are indulgent without being fussy, and they travel well to potlucks, school events, and lazy Sunday coffee breaks.
The magic of these bars is in their ease and predictability. You press a buttery crumb base into a 9x13 pan, layer chips and nuts, drizzle condensed milk, and bake for around 20 to 25 minutes. The top browns just enough to give a thin toffee note while the interior remains gooey. I love how they slice into diamonds for a retro presentation that feels extra special. This recipe requires minimal equipment and pantry staples, which is why I reach for it whenever I need a quick crowd-pleasing sweet.
Why You'll Love This Recipe
- Quick assembly and minimal hands-on time—ready to bake in about 10 minutes so it’s perfect for last-minute dessert needs.
- Uses pantry staples like graham crackers, chips, shredded coconut, and a single 14-ounce can of sweetened condensed milk for simple shopping.
- Textural contrast is excellent: a crisp, buttery crumb base, gooey melted chips, crunchy pecans, and chewy coconut give every bite complexity.
- Highly adaptable—omit coconut for a nut-forward bar, swap chips or nuts to match dietary preferences, or add pretzels for sweet-salty contrast.
- Good make-ahead dessert: keeps at room temperature for several days or freezes well for up to two months when wrapped airtight.
- Perfect for parties—cut into small diamonds and serve on a platter for easy fingertip desserts.
I remember bringing a pan to a neighborhood block party and watching people come back for seconds. The combination of nostalgia and simplicity is what keeps this recipe in my rotation. My kids love picking out the chocolate chips before they melt, and guests almost always ask for the recipe within minutes of the first bite.
Ingredients
- Graham cracker crumbs (1 1/2 cups): I prefer Keebler graham cracker crumbs for consistent texture. You can pulse about 9 full graham crackers in a food processor or crush them in a sealed bag until fine. Provides a sturdy, buttery base.
- Butter (1/2 cup / 8 tablespoons), melted: Use unsalted butter and melt gently to combine with crumbs. Butter binds crumbs and crisps the base when baked.
- Chocolate chips (1 cup): Semisweet chips are classic; use good-quality brands like Ghirardelli or Nestle for reliable melt and flavor.
- Butterscotch chips (1 cup): Offer a caramel-like sweetness. You can substitute half with white chips for a milder profile.
- Pecans (1/2 cup, chopped): Lightly toasted pecans add crunch and a toasty flavor. Chop to roughly the same size as chips for even layering.
- Sweetened condensed milk (1 can, 14 ounces): This is the gooey binder that caramelizes slightly as it bakes. Pour evenly for consistent coverage.
- Sweetened shredded coconut (1 cup): Adds chew and tropical aroma. If you prefer a subtler note, reduce to 3/4 cup or omit entirely.
Instructions
Preheat and prepare pan: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 the lining with nonstick spray so the bars lift cleanly after cooling.Make the crust:In a medium bowl, combine 1 1/2 cups graham cracker crumbs with 8 tablespoons melted butter. Use a fork to mix until the crumbs are evenly moistened; the texture should hold together when pressed. Press the crumb mixture firmly and evenly into the bottom of the prepared pan using the back of a measuring cup for a compact base.Layer the toppings:Evenly sprinkle 1 cup chocolate chips across the crust, followed by 1 cup butterscotch chips. Scatter 1/2 cup chopped pecans over the chips so the nuts toast into the layers. Work quickly so the butter doesn’t start to bleed out of the crust.Add condensed milk and coconut:Slowly pour the entire 14-ounce can of sweetened condensed milk evenly over the layered chips and nuts—pouring in a thin stream helps cover gaps without displacing the chips. Finish by sprinkling 1 cup shredded sweetened coconut evenly across the top.Bake and cool:Bake in the preheated 350°F oven for 20 to 25 minutes, or until the top is lightly golden and the edges show slight bubbling. Avoid overbaking to keep the center gooey. Cool completely on a rack before cutting into bars or diamonds; this can take up to 2 hours at room temperature.Cut and serve:For diamonds, make horizontal cuts about 1 1/2 inches apart, then diagonal cuts about 1 1/2 inches apart the other way. Gently lift squares or diamonds using the parchment overhang. A plastic knife helps reduce sticking for clean edges.
You Must Know
- These bars keep well at room temperature for 3 to 4 days in an airtight container; refrigeration extends freshness by a few more days but may firm the coconut and chocolate.
- They are rich in calories and sugar; expect each small bar to be indulgent—great for sharing in small portions.
- Freeze cut bars for up to 2 months; thaw overnight in the refrigerator for best texture.
- To prevent soggy bottoms, ensure the crust is well compacted and the oven is fully preheated before baking.
My favorite part about making these bars is the aroma as they bake—the sweet condensed milk and butterscotch combine to give a toffee-like fragrance that fills the kitchen and draws everyone into the house. Guests often ask what’s in the oven before I can even set the timer. I also love how forgiving the recipe is; small swaps rarely disappoint, which makes it my go-to when I’m cleaning out the pantry.
Storage Tips
Store at room temperature in an airtight container for 3 to 4 days. If you prefer firmer bars, refrigerate for up to 7 days; bring to room temperature for 30 to 60 minutes before serving to soften the chocolate slightly. For longer storage, cut into individual bars and layer with parchment in a freezer-safe container. Freeze up to 2 months. Thaw overnight in the refrigerator or for a few hours at room temperature. Avoid storing in direct sunlight or warm locations to keep the chips from melting together into an oily surface.

Ingredient Substitutions
If you need to swap ingredients, there are easy options that keep the spirit of the bars intact. Omit coconut for a nut-forward bar or replace with 1 cup crushed pretzels for a sweet and salty contrast. Use pecans, walnuts, or almonds interchangeably at a 1:1 ratio. For a lower-sugar twist, reduce butterscotch chips to 1/2 cup and increase chocolate chips, or choose dark chocolate chips for a less sweet bite. If you need gluten-free, use gluten-free graham-style crumbs or crushed gluten-free cookies and verify that chips are certified gluten-free.
Serving Suggestions
Serve warm for gooey indulgence or at room temperature for clean slices. Present on a platter cut into small diamonds for parties. Pair with strong coffee or a milky tea to balance the sweetness. For a dessert plate, add a spoonful of whipped cream or a small scoop of vanilla ice cream that melts into the warm edges, creating a delightful contrast of temperatures and textures. Garnish with a few toasted pecan halves for visual appeal.
Cultural Background
Often called magic cookie bars, these layered bars originated as a mid-20th-century pantry dessert where sweetened condensed milk became a popular shortcut to make sweet, custardy textures without lengthy caramelizing. They are part of a broader tradition of one-pan sweet bars surfaced with chips and coconut that became staples at bake sales, community gatherings, and holiday dessert tables in the United States. The simplicity and durability of the bars helped them spread as an easy treat passed down through home cooks.
Seasonal Adaptations
Adjust toppings seasonally—add chopped dried cranberries and orange zest in winter for a holiday twist, or swap in toasted macadamia nuts and a sprinkle of lime zest for a summer tropical take. For fall, increase the pecans to 1 cup and add a teaspoon of ground cinnamon to the crust for a warming spice note. Small changes in chips and nuts adapt the profile without altering the straightforward technique.
Meal Prep Tips
Make a double batch and freeze half for later. To streamline assembly, measure chips and nuts into small bowls before pressing the crust so you can layer quickly. Bake one pan while preparing another if you expect guests. Label frozen batches with the date and intended use so you can easily reheat a few pieces in a low oven or microwave for a quick dessert fix.
These bars are a celebration of simplicity—pantry ingredients, a 30-minute total time commitment, and a result that always draws compliments. Take a tray to a gathering and watch them disappear; then enjoy the satisfied looks when you share how simple they were to make.
Pro Tips
Press the crust firmly into the pan using the bottom of a measuring cup to ensure a compact base that won’t crumble when cut.
Pour the sweetened condensed milk in a thin stream and move slowly so it spreads evenly without displacing chips.
Cool completely before cutting to avoid gooey edges that smear. Use a plastic knife for cleaner cuts.
Toast pecans lightly in a dry skillet for 3 to 4 minutes to boost their flavor before mixing into the layers.
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.
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
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. This helps the bars lift out cleanly once cooled.
Make the crust
Combine 1 1/2 cups graham cracker crumbs with 8 tablespoons melted butter in a medium bowl. Mix until crumbs are evenly moistened, then press firmly into the bottom of the prepared pan using the back of a measuring cup.
Assemble layers
Evenly sprinkle 1 cup chocolate chips, 1 cup butterscotch chips, and 1/2 cup chopped pecans over the pressed crust. Pour the 14-ounce can of sweetened condensed milk evenly across the top, then sprinkle 1 cup shredded coconut.
Bake and cool
Bake for 20 to 25 minutes, until the top is lightly golden and edges bubble slightly. Avoid overbaking to keep the center gooey. Cool completely on a rack before cutting, about 1 to 2 hours at room temperature.
Cut and serve
For diamonds, cut horizontal and diagonal lines about 1 1/2 inches apart. Use the parchment overhang to lift bars from the pan. A plastic knife gives cleaner cuts with less sticking.
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
@feastinarecipe on social media!

Categories:
You might also like...

Lemon Chicken Orzo Soup
Cozy, bright, and ready fast, this Instant Pot lemon chicken orzo soup brings tender chicken, fresh veggies, and a sunny citrus finish.

50 Calorie Strawberry Cheesecakes
Feather-light mini cheesecakes with bright strawberry sauce, a tender biscuit-style base, and creamy filling. Just 47 calories each and irresistibly fresh.

Kahlua Chocolate Cheesecake Bites
Silky mini cheesecakes swirled with melted chocolate and a splash of Kahlua, nestled on Oreo crusts and crowned with fresh whipped cream.

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

