• Skip to main content
  • Skip to primary sidebar

The Kitchen Girl logo

menu icon
go to homepage
  • Home
  • Recipes
  • Dinner
  • About
  • Shop
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • subscribe
    search icon
    Homepage link
    • Home
    • Recipes
    • Dinner
    • About
    • Shop
    • Facebook
    • Instagram
    • Pinterest
    • YouTube
  • ×
    Home » Recipes » Dessert

    by Traci · Post Updated: Dec 11, 2025

    Easy Magic Bars Recipe

    5 from 1 vote
    Total 1 hour hour 15 minutes minutes
    Jump To Recipe

    This post may contain affiliate links. Please read our disclosure policy.

    Magic bars, also called 7-layer bars, are made with seven layers of gooey decadence, including melty chocolate chips and coconut on a crisp graham crust. Not overly sweet with a hint of salt makes these a modern take on classic magic cookie bars.

    Try my Pumpkin Bars Recipe for your next holiday treat!

    A stack of four magic bars with visible chocolate chips and coconut flakes sits on a white surface, with crumbs scattered around.

    Want to Save This Recipe?

    Enter your email & I'll send it to your inbox. Plus, get great new recipes from me every week!

    Please enable JavaScript in your browser to complete this form.
    Loading

    By submitting this form, you consent to receive emails from The Kitchen Girl.

    Table of Contents hide
    1) Why You’ll Love This Recipe
    2) What Are Magic Bars?
    3) Ingredients You’ll Need
    4) How to Make Magic Bars
    5) Modern Twists That Make This Version Better
    6) Prefer the Old-Fashioned Cookie Bar? Do This Instead:
    7) Tips for the Best Magic Bars
    8) Storage Tips
    9) More Handheld Holiday Desserts You'll Love
    10) 📖 Recipe
    11) Easy Magic Bars Recipe

    Why You’ll Love This Recipe

    • Magic cookie bars come together in just a few minutes and bake in one pan.
    • They feel as indulgent as the classic 7-layer bars but with a more balanced sweetness.
    • Unsweetened coconut and flaky sea salt add a gourmet flavor touch.
    • They cool into firm, clean-cut bars that hold their shape beautifully.
    • Great for holidays, potlucks, lunchbox treats, or last-minute desserts.

    What Are Magic Bars?

    Magic bars, sometimes called magic cookie bars, Hello Dolly bars, or 7-layer bars, are a classic layered dessert made with a graham cracker crust, chocolate, nuts, coconut, and sweetened condensed milk. Everything melts together as it bakes, creating soft, gooey layers with chewy edges and a rich, buttery base.

    If you grew up with seven layer bars, you'll love this modern twist on an old-school classic.

    Ingredients You’ll Need

    • Graham Cracker Crumbs: These help create the first layer, which slices neatly once cooled and tastes like the familiar decadence of graham cracker crust.
    • Unsalted Butter: Binds the crust and adds a golden, toasty flavor.
    • Chocolate Chips: Use semi-sweet, dark, milk, or a combination.
    • White Chocolate Chips or Butterscotch Chips: White chocolate chips bake to a butterscotch-like color, mimicking the classic look while offering a milder, less-sweet flavor.
    • Chopped Walnuts: Add crunch and balance the richness—optional if you prefer a nut-free option.
    • Shredded Coconut: Use sweetened or unsweetened. I prefer unsweetened since the graham crackers, chocolate chips, and condensed milk already add plenty of sweetness.
    • Sweetened Condensed Milk: The signature ingredient that binds every layer as it bakes.
    • Flaky Sea Salt: Optional, but it balances the sweetness beautifully.
    Seven labeled baking ingredients on a textured surface: white chocolate chips, chocolate chips, butter, graham crackers, sweetened condensed milk, walnuts, and shredded coconut.

    How to Make Magic Bars

    Heat the oven to 350°F and prep a 9x13 pan with cooking spray and a parchment sling. Mix the melted butter and graham cracker crumbs until sandy, then press evenly into the pan.

    A hand uses a spoon to spread crushed graham crackers in a parchment-lined baking pan, preparing the perfect base for delicious magic bars.
    A person uses a metal spatula to press a crumb crust evenly into a rectangular baking pan lined with parchment paper, preparing the base for delicious magic bars.

    Add the layers by sprinkling the chocolate chips, chopped walnuts, and shredded coconut evenly over the crust. Hold back a small handful of each to garnish the top.

    A baking pan lined with parchment paper contains a crust for magic bars, topped with scattered dark and white chocolate chips, while a hand adds more white chocolate chips.
    A hand sprinkles shredded coconut over a rectangular baking pan filled with layered ingredients, including chocolate chips and chopped nuts, creating delicious magic bars.

    Drizzle the sweetened condensed milk over the surface (warm it if needed to pour). Add the reserved toppings and sprinkle flaky sea salt if you're using it.

    A hand pours sweetened condensed milk over a layered mixture of nuts, chocolate chips, and coconut in a parchment-lined baking pan, creating delicious magic bars.
    A hand sprinkles chopped nuts over a rectangular baking pan lined with parchment paper, filled with layers of chocolate chips, shredded coconut, and condensed milk—classic magic bars in the making.

    Bake for 25–30 minutes or until the edges are golden and the top looks set. Let the bars cool completely in the pan so they firm up.

    A rectangular baking pan lined with parchment paper holds baked magic bars, topped with shredded coconut and chocolate chips.

    Lift and slice by pulling the parchment sling up. Cut into squares and store the bars at room temperature for up to 7 days.

    Baked magic bars resting on parchment paper to cool.
    Twenty-four baked chocolate chip magic bars are arranged in a rectangular grid on parchment paper, with two end pieces slightly separated from the rest.

    Modern Twists That Make This Version Better

    • I use unsweetened coconut in place of sweetened coconut because there is plenty of sugar in this recipe without it ... and nobody ever misses it.
    • I replace the traditional butterscotch chips with white chocolate chips, which knocks down the sweetness and gives the bars a milder flavor.
    • A tiny sprinkle of flaky sea salt balances the richness and makes the flavors pop.
    • The crust is firm and structured, so the bars slice cleanly without crumbling.
    • Clear visual cues (like “damp sand” crust texture) help beginner cooks succeed.

    These small changes keep the nostalgic flavor but make the bars feel more balanced, modern, and less heavy or sugary than the classic ones.

    Prefer the Old-Fashioned Cookie Bar? Do This Instead:

    If you want your bars closer to the classic 7-layer bars from the 1960s, here are a few quick swaps:

    • Use sweetened shredded coconut.
    • Add butterscotch chips in place of white chocolate chips.
    • Skip the flaky sea salt. On second thought, keep it because everyone loves sweet and salty layer bars!

    Tips for the Best Magic Bars

    • Pan type: Use any 9 x 13 baking dish or baking pan. Nonstick is NOT required for this magic cookie bar recipe.
    • Graham crackers: Different brands vary in size and weight, so the 2-cup crumb measurement is the most reliable. You’ll usually need 16–18 full sheets.
    • Coconut: I prefer unsweetened because sweetened coconut makes these bars a bit too sweet for me, since the other ingredients already have sugar. Use what you like.
    • Chocolate choices: Any chocolate chips work—milk, semi-sweet, dark, or a mix. Butterscotch chips are the old-school option, but they’re optional if you don’t love them.
    • Variations: Crushed pretzels can replace the coconut for a salty twist.
    Close-up of a magic bar cookie with a crumbly base, chocolate chips, shredded coconut, nuts, and a golden baked topping.

    Storage Tips

    • Cool the bars completely before storing to prevent moisture in the container.
    • Separate layers with wax paper when stacking them to prevent sticking.
    • Store sliced bars at room temperature for up to 7 days.

    More Handheld Holiday Desserts You'll Love

    • Brown Butter Rice Krispie Treats
    • Peppermint Rice Krispie Treats
    • Chocolate Covered Nuts Recipe
    • Peppermint White Chocolate Pretzels

    📖 Recipe

    Close-up of a magic bar cookie with a crumbly base, chocolate chips, shredded coconut, nuts, and a golden baked topping.

    Easy Magic Bars Recipe

    Magic bars, also called 7-layer bars, are made with seven layers of gooey decadence, including melty chocolate chips and coconut on a crisp graham crust. Not overly sweet with a hint of salt makes these a modern take on classic magic cookie bars.
    Prep TimePrep Time: 15 minutes mins
    Cook TimeCook Time: 30 minutes mins
    Cool down: 30 minutes mins
    Total timeTotal Time: 1 hour hr 15 minutes mins
    Yield 24 bars
    Author Traci
    5 from 1 vote
    Print Pin it for later 📌

    Want to Save This Recipe?

    Enter your email & I'll send it to your inbox. Plus, get great new recipes from me every week!

    Please enable JavaScript in your browser to complete this form.
    Loading

    By submitting this form, you consent to receive emails from The Kitchen Girl.

    Video

    Note about scaling

    When scaling, the light gray ingredient notes after the comma don’t change. Adjust as needed.

    Ingredients 

    • 2 cups Graham Cracker Crumbs, about 16-18 full sheets
    • 1 stick Salted Butter, melted
    • 1 cup Semisweet Chocolate Chips, or other variety
    • ½ cup White Chocolate Chips, or Butterscotch Chips
    • 1 cup Chopped Walnuts or Pecans
    • 1 cup Shredded Coconut, Unsweetened or sweetened
    • 1 (14-oz can) Sweetened Condensed Milk

    Optional finish

    • Flaky Sea Salt, to taste

    Instructions

    • Prep the pan: Heat the oven to 350°F. Coat a 9x13 baking dish with cooking spray and line it with PARCHMENT that hangs over two opposite sides to form a sling.
    • Make the crust: In a mixing bowl, combine the MELTED BUTTER and GRAHAM CRACKER CRUMBS until the mixture resembles damp sand and holds together when pressed. Press it evenly into the pan.
    • Start layering: Sprinkle the CHOCOLATE CHIPS, CHOPPED WALNUTS, and SHREDDED COCONUT evenly over the crust, holding back a small scoop of each for topping.
    • Add condensed milk: Warm the SWEETENED CONDENSED MILK until pourable, then drizzle it evenly over the layers. Sprinkle the reserved toppings and add FLAKY SEA SALT if using.
    • Bake + cool: Bake for 25–30 minutes, or until the edges are golden and the top is set. Cool completely in the pan.
    • Lift + store: Use the parchment sling to lift the bars out in one piece, slice into squares, and store at room temperature for up to seven days.
    Did you make this? We'd love your feedback!!Please rate and review it here or below ⤵️

    Recipe Notes

    Pan type: Use any 9 x 13 baking dish or baking pan. Nonstick is not required for this magic cookie bar recipe.
    Graham crackers: Different brands vary in size and weight, so the 2-cup crumb measurement is the most reliable. You’ll usually need 16–18 full sheets.
    Coconut: I prefer unsweetened because sweetened coconut makes these bars a bit too sweet for me, since the other ingredients already have sugar. Use what you like.
    Chocolate choices: Any chocolate chips work—milk, semi-sweet, dark, or a mix. Butterscotch chips are the old-school option, but they’re optional if you don’t love them.
    Variations: Crushed pretzels can replace the coconut for a salty twist.

    Equipment

    • measuring cups
    • mixing bowl
    • 9x13 baking pan
    • parchment paper
    • spatula

    Nutrition

    Serving: 1bar | Calories: 185kcal | Carbohydrates: 13g | Protein: 2g | Fat: 14g | Saturated Fat: 7g | Polyunsaturated Fat: 3g | Monounsaturated Fat: 3g | Trans Fat: 0.2g | Cholesterol: 11mg | Sodium: 52mg | Potassium: 109mg | Fiber: 2g | Sugar: 7g | Vitamin A: 124IU | Vitamin C: 0.1mg | Calcium: 25mg | Iron: 1mg

    Nutrition facts are estimates and may vary based on brands, ingredients, and portions.

    Course Dessert
    Cuisine American
    Easy FREE recipes to your inbox weeklyJoin The Kitchen Girl community!

    More Easy Dessert Recipes

    • thick banana bread slices stacked up on cooling rack
      Easy Moist Banana Bread (One-Bowl Recipe)
    • baked banana bread muffins on black cooling rack
      Easy Banana Bread Muffins Recipe
    • Three scoops of pink strawberry frozen yogurt in a metal container with a scooper, with a bowl of strawberries in the background—perfect inspiration if you’re learning how to make frozen yogurt at home.
      Strawberry Frozen Yogurt
    • slice of blueberry zucchini bread
      Blueberry Zucchini Bread Recipe
    12 shares
    • Facebook
    Traci

    About Traci

    I’m the recipe author, photographer, and videographer behind The Kitchen Girl food blog established in 2013. I test and share all of my original recipes here so you can make great food with simple ingredients for everyday meals and special occasions.

    Reader Interactions

    Comments

      5 from 1 vote

      We love recipe feedback... Cancel reply

      Your email address will not be published. Required fields are marked *

      Tap stars to rate recipe




    1. Heather Smith says

      December 11, 2025 at 7:54 am

      Question, have you made this with sweetened condensed coconut milk? I have a good fake butter so that would make them dairy free for me and vegan for friends.

      Reply
      • Traci says

        December 11, 2025 at 8:36 am

        I haven’t tried that myself, so I'm not able to make any recommendations from the test kitchen. But your idea sounds totally reasonable in theory. If you do make them that way, I’d love to hear how they turn out!

    2. JB says

      December 10, 2025 at 10:08 pm

      5 stars
      I love how seven simple ingredients make one pan of pure magic. The sweetness doesn’t overwhelm, and that little salty moment is chef’s kiss. Nailed it, KG!

      Reply
      • Traci says

        December 11, 2025 at 8:38 am

        They really are magic bars for how delicious and decadent and easy they are. I'm glad you're loving this version. Thank you for letting me know! 🙂

    Primary Sidebar

    The Kitchen Girl standing in a white kitchen with brown accents

    Welcome to The Kitchen Girl

    I'm Traci and I'm sharing my tested and trusted recipes made with everyday ingredients, simple methods, and ALL the flavor. Read more about me.

    Easy Holiday Recipes

    • roasted turkey breast slices displayed on wood cutting board garnished with fresh parsley and fresh cranberries
      Roast Turkey Breast Recipe
    • creamy green bean casserole with crispy French onion topping in white baking dish with serving spoon
      Fresh Green Bean Casserole
    • cranberry orange sauce in bowl with serving spoon
      Cranberry Sauce with Orange Juice
    • gravy is ladled from gray bowl
      How To Make Gravy Without Drippings
    • A white baking dish filled with golden brown, freshly baked dinner rolls closely arranged together.
      Easy Yeast Dinner Rolls
    • mashed potatoes in Instant Pot with wood spoon
      Best Instant Pot Mashed Potatoes
    • cooked spiral ham on serving platter garnished with parsley and orange slices
      How to Cook A Spiral Ham
    • plump loaf of sliced cranberry walnut bread on cutting board next to holiday decorations
      Cranberry Walnut Bread

    Trending Recipes

    • turkey chili in white soup pot with serving ladle next to fresh toppings
      The BEST Turkey Chili Recipe
    • lasagna soup in white bowl with spoon
      Lasagna Soup
    • A pot of lemon chicken orzo soup with carrots, chicken breast, and fresh dill.
      Easy Lemon Chicken Orzo Soup
    • Italian sausage soup in white bowl garnished with croutons and parsley
      Italian Sausage Soup Recipe
    • black refried beans garnished with fresh cilantro in white serving bowl next to lime wedges
      Refried Black Beans Recipe
    • tortilla chip is dunked into blender salsa in a black bowl
      5 Minute Blender Salsa (Restaurant Style Salsa)
    • Ham and beans in white bowl with spoon
      Ham and Bean Soup
    • chicken tortilla soup in white bowl with spoon
      Easy Chicken Tortilla Soup

    Footer

    About TKG

    • Meet Traci
    • Subscribe
    • Shop
    • Privacy Policy
    • Back to home page

    Classic Recipes

    • Baked Chicken Legs
    • Turkey Chili
    • Charcuterie Board
    • Ham and Bean Soup
    • Homemade Cornbread
    • Baked Chicken Thighs
    • Reuben Sandwich
    • Lasagna Soup
    • French Bread
    • Best Banana Bread
    • Minestrone Soup
    • Beef Stroganoff
    • Pico De Gallo

    Cooking Methods

    • Air Fryer Recipes
    • Instant Pot Recipes
    • One Pot Meals
    • Slow Cooker

    Categories

    • Appetizers
    • Beef Recipes
    • Bread
    • Breakfast
    • Dessert
    • Dips and Spreads
    • Dinner Recipes
    • Holiday Recipes
    • Pasta and Noodles
    • Salads
    • Sides
    • Soup, Stew, and Chili
    • Sauces
    • Sandwiches
    • Pinterest
    • Facebook
    • Instagram
    • YouTube
    • Twitter
    • TikTok
    The Kitchen Girl as seen on image banner

    ©2025 The Kitchen Girl LLC. All Rights Reserved.

    • Facebook
    • Pinterest
    • Flipboard
    12 shares

    Rate This Recipe

    Your vote:




    A rating is required
    A name is required
    An email is required

    Recipe Ratings without Comment

    Something went wrong. Please try again.