My magic cookies are soft, chewy, and inspired by the classic dessert bars many of us grew up with. They require just a few simple ingredients, come together quickly, and are endlessly customizable. I make these for holidays, cookie swaps, and as a small gift—people always ask what they are and want the recipe because the texture and flavor feel familiar but pleasantly different from a standard cookie.

what makes this recipe great ⤵️
- Nostalgic, layered flavor: These cookies capture the same flavors you expect from classic magic bars—chocolate, coconut, and nuts—while delivering a softer, chewier cookie texture.
- Freezer-friendly: These cookies freeze well. Bake a double batch, freeze extras, and pull them out for last-minute gatherings or gift tins.
- Holiday-ready: They travel well for cookie exchanges, make attractive additions to tins, and are a welcome change from more traditional holiday cookies.
Key Ingredients
- Chocolate chunks: Semi-sweet chunks give great contrast and a rustic look. You can swap for whatever chocolate you prefer—dark, milk, or even white chocolate for a different profile.
- Unsweetened coconut: Use unsweetened shredded coconut to avoid excess sweetness. It balances the condensed milk and chocolate.
- Chopped nuts: Any chopped nuts work well. I like a mix of pecans, walnuts, and almonds for variety in flavor and texture, but single-nut variations like cashews or peanuts are also delicious.
- Sweetened condensed milk: This binds the ingredients and gives the cookies their chewy, sticky texture. You can use regular sweetened condensed milk or sweetened condensed coconut milk for a dairy-free option.


How to Make Magic Cookies
- Preheat and prepare: Preheat the oven to 350°F (175°C). Line a baking sheet with parchment paper or a silicone mat and set it aside.
- Combine the ingredients: In a large mixing bowl, add the chocolate chunks, shredded unsweetened coconut, and chopped mixed nuts. Pour in the sweetened condensed milk and stir until the dry ingredients are evenly coated.
- Portion the dough: Use a 2-tablespoon scoop to form 12 even portions. Place each mound on the prepared baking sheet and gently press down with your fingers to flatten slightly; these cookies are rustic and should hold together in clusters.
- Bake: Bake at 350°F for about 10 minutes, or until the tops are lightly golden brown and the edges begin to set.
- Cool completely: Let the cookies cool on the baking sheet for about 30 minutes. They will firm up as they cool, so resist the urge to move them too early or they may fall apart. Transfer to a wire rack once set.
- Serve and enjoy: Serve plain, with coffee or hot cocoa, or package them in tins for gifting.
How to Make Sweetened Condensed Coconut Milk
If you choose a coconut-based option or can’t find sweetened condensed coconut milk, you can make a simple version at home. In a saucepan, whisk together one 13.5 oz can of full-fat coconut milk and 3 tablespoons of maple syrup. Bring to a boil over medium-high heat, then reduce to a simmer and cook for about 30 minutes, stirring occasionally, until the mixture has reduced by roughly half and thickened slightly. Cool before using in the recipe. This homemade version approximates the sweetness and viscosity of canned condensed milk and works well for a dairy-free variation.
When to Serve These Cookies
- As a cozy accompaniment to coffee, tea, or hot cocoa.
- At holiday gatherings, cookie swaps, or potlucks.
- Left out for Santa or packaged as small hostess gifts and party favors.
Storage Notes
Store the cooled cookies in an airtight container at room temperature for up to five days. For longer storage, place cookies in an airtight container or freezer bag and freeze for up to three months. Thaw at room temperature before serving. Because these cookies contain coconut and condensed milk, they maintain a pleasant chew after thawing.
More of My Favorite Holiday Cookie Recipes
- My Favorite Hot Cocoa Cookies
- Flourless Raspberry Thumbprint Cookies
- Snickerdoodles
- White Chocolate Cranberry Oatmeal Cookies
- Wreath Sugar Cookies
- Snowball Cookies
- Eggnog Cookies
- All cookie recipes (collection)

FAQs
Are magic cookies gluten-free?
Yes. The standard version of these cookies uses just condensed milk, chocolate, coconut, and nuts—ingredients that are naturally gluten-free. If you choose seasoned or flavored nuts, double-check labels to ensure they are gluten-free.
What should I do if the cookie dough is sticky?
Cookie dough for this recipe will be sticky because of the sweetened condensed milk. Use a cookie scoop to portion the dough and rinse or lightly oil your hands between scoops if needed. A small amount of refrigeration (10–15 minutes) can help firm the mixture slightly if it’s too loose to shape.
Is there a nut-free substitution for pecans or cashews, or can I omit them?
If you need a nut-free option, substitute seeds like pumpkin or sunflower seeds, or swap in pretzel chunks for crunch and a salty contrast. Dried fruit such as chopped dates or raisins can also work, though they will change the texture and sweetness profile.
Recipe — Magic Cookies
Ingredients (makes about 12 cookies)
- 4 oz sweetened condensed milk or sweetened condensed coconut milk
- 1 cup semi-sweet chocolate chunks
- 1 1/2 cups shredded unsweetened coconut
- 2 cups chopped mixed nuts (pecans, walnuts, almonds, or your preferred mix)
Instructions
- Preheat oven to 350°F (175°C). Line a baking sheet with parchment paper.
- Combine the chocolate chunks, shredded coconut, and chopped nuts in a large bowl. Pour in the condensed milk and stir until everything is evenly coated.
- Using a 2-tablespoon scoop, portion 12 mounds onto the baking sheet. Press each mound lightly to compact.
- Bake for about 10 minutes or until the tops are lightly golden.
- Cool on the baking sheet for about 30 minutes to allow the cookies to set, then transfer to a wire rack to cool completely.
- Store in an airtight container once completely cool.
Tips & Notes
- Condensed milk choice: Both regular sweetened condensed milk and sweetened condensed coconut milk work. If you can’t find the coconut version, the homemade reduction of coconut milk and maple syrup is a reliable dairy-free substitute.
- Make ahead: These cookies freeze well; bake ahead and pack them in airtight containers for holiday gifting.
- Variations: Try swapping chocolate types, adding dried cranberries, or using different nut combinations to create unique flavor variations.
Photography by: The Wooden Skillet