These gluten free magic cookie bars are everything you want in a dessert—rich, gooey, and completely irresistible. With layers of peanut butter, chocolate, coconut, and crunchy nuts, they deliver a symphony of textures and flavours in every bite. What’s more, they’re naturally gluten free, making them a perfect option for anyone with gluten sensitivities or as a crowd-pleasing Passover dessert.

We first tried this recipe on a quiet weekend, and the bars didn’t last 24 hours in our house. The combination of sweetened condensed milk and peanut butter creates a decadent base that elevates these cookie bars into a next-level treat. Who knew gluten free baking could be this indulgent and simple?
Nutrition Benefits of Gluten Free Magic Cookie Bars
Let’s explore why these cookie bars are more than just a sweet indulgence. The ingredients offer some surprising perks:
- Peanut butter: A great source of plant-based protein and healthy fats, peanut butter gives these bars a creamy base while helping you stay satiated.
- Dark chocolate chips: Dark chocolate is packed with antioxidants that help combat free radicals and contribute to heart health.
- Pecans and almonds: These nuts add crunchy texture and are high in fiber, vitamin E, and magnesium to support brain and bone health.
- Flaked coconut: Not only does coconut add a chewy sweetness, but it’s also a source of fiber and medium-chain triglycerides (MCTs), which may support metabolism.
Recipe Info
- Cuisine: American
- Servings: 20 servings
- Prep Time: 15 minutes
- Cook Time: 40 minutes
- Total Time: 1 hour 55 minutes (includes cooling)
Ingredients for Your Gluten Free Magic Cookie Bars
Gather these simple pantry staples to whip up your cookie bars:
- 2 cups white sugar
- 2 large eggs
- 2 cups peanut butter
- ¾ cup semisweet chocolate chips
- ¾ cup dark chocolate chips
- ½ cup chopped raw pecans
- ½ cup chopped raw almonds
- 1 cup flaked coconut
- 1 (14-ounce) can sweetened condensed milk
How to Make Gluten Free Magic Cookie Bars
This recipe is as simple as layering the ingredients and letting your oven do the work. Let’s get started!
- Preheat your oven: Set your oven to 350°F (175°C) and line a 9×13-inch glass baking dish with parchment paper for easy removal and cleanup.
- Prepare the base: In a bowl, mix sugar and eggs together until smooth, then stir in peanut butter until well blended. Pour this mixture into the prepared baking dish.
- Partially bake the base: Bake the base in the preheated oven for about 8 minutes or until partially cooked.
- Add the layers: Layer the semisweet chocolate chips, dark chocolate chips, pecans, almonds, and flaked coconut over the cookie base.
- Pour the sweetened condensed milk: Slowly pour sweetened condensed milk evenly over all the toppings for the perfect gooey finish.
- Finish baking: Return the dish to the oven and bake for an additional 30 minutes, or until the coconut is lightly golden and fragrant.
- Cool completely: Let the cookie bars cool completely in the pan (this is important for clean slicing!). Then, peel away the parchment paper and cut into squares with a sharp knife.
Simply Nourished Life’s Tips for Success
Want to master these magic cookie bars every time? Here are our top tips:
- Line your pan well: Parchment paper is your best friend here! It ensures that the bars don’t stick and makes lifting them out a breeze.
- Adjust the sweetness: Prefer your desserts a little less sweet? Swap out the semisweet chocolate chips for more dark chocolate chips to balance the flavor.
- Toast your nuts: For even more flavor, toast the almonds and pecans before layering them. It brings out a nuttier, deeper taste.
Storage and Leftover Ideas
This recipe makes a generous batch, and leftovers (if you have any!) are easy to store:
- Storage: Keep the bars in an airtight container at room temperature for up to 5 days, or refrigerate them for up to a week.
- Freeze: These magic bars freeze beautifully! Lay them flat in a single layer inside a freezer-safe container, then freeze for up to 3 months. Thaw at room temperature before serving.
- Transform leftovers: Crumble leftover bars over a scoop of vanilla ice cream for a decadent dessert or use as a topping for yogurt parfaits.
Nutrition Information
Here’s an estimated nutrition breakdown per serving:
- Calories: 260
- Protein: 5g
- Total Fat: 15g
- Saturated Fat: 6g
- Carbohydrates: 28g
- Fiber: 2g
- Sugar: 20g
Frequently Asked Questions
Can I make these bars dairy-free?
Yes! Substitute the sweetened condensed milk with a coconut-based condensed milk alternative for a dairy-free version that’s just as delicious.
What’s the best way to cut the bars cleanly?
Make sure the bars have cooled completely before cutting. Use a sharp knife and wipe it clean between cuts for the neatest squares.
Can I use different nuts?
Absolutely! Swap the pecans and almonds for walnuts, macadamia nuts, or even hazelnuts to suit your preference.
Is there a way to reduce the sugar content?
You can try reducing the white sugar in the base by ¼ cup or opting for a natural peanut butter with no added sugar.
Final Words and Call to Action
These gluten free magic cookie bars are proof that dessert can be both easy to make and deeply satisfying. Whether you’re making them for a holiday gathering, sharing with friends, or sneaking a bite yourself, they’re sure to bring a smile to your face. We’d love to hear about your results—leave a comment below, share your photos, or tag us on social media!
Looking for more irresistible gluten free recipes? Be sure to check out our other desserts like Gluten Free Brownies or Flourless Chocolate Cake. Happy baking!

Gluten Free Magic Cookie Bars
Equipment
- 9×13-inch glass baking dish
- Parchment paper
- Bowl
- Oven
- Sharp knife
Ingredients
- 2 cups white sugar
- 2 large eggs
- 2 cups peanut butter
- ¾ cup semisweet chocolate chips
- ¾ cup dark chocolate chips
- ½ cup chopped raw pecans
- ½ cup chopped raw almonds
- 1 cup flaked coconut
- 1 (14-ounce) can sweetened condensed milk
Instructions
- Preheat your oven: Set your oven to 350°F (175°C) and line a 9×13-inch glass baking dish with parchment paper for easy removal and cleanup.
- Prepare the base: In a bowl, mix sugar and eggs together until smooth, then stir in peanut butter until well blended. Pour this mixture into the prepared baking dish.
- Partially bake the base: Bake the base in the preheated oven for about 8 minutes or until partially cooked.
- Add the layers: Layer the semisweet chocolate chips, dark chocolate chips, pecans, almonds, and flaked coconut over the cookie base.
- Pour the sweetened condensed milk: Slowly pour sweetened condensed milk evenly over all the toppings for the perfect gooey finish.
- Finish baking: Return the dish to the oven and bake for an additional 30 minutes, or until the coconut is lightly golden and fragrant.
- Cool completely: Let the cookie bars cool completely in the pan (this is important for clean slicing!). Then, peel away the parchment paper and cut into squares with a sharp knife.
