Magic bars are a classic at American coffee gatherings and bake sales, and they are surprisingly easy to bake in an air fryer. You press a base of crushed biscuits and butter down firmly, sprinkle chocolate, nuts and coconut over it and pour sweetened condensed milk over everything. During baking the milk caramelises and binds the layers together into a chewy, sweet bar with a crisp base, almost like magic. In the US, many people also know them as seven layer bars.

Advertisement: The page displays ads and contains advertising links (affiliate links). See our advertisers here.
I bake them in a small square tin directly in the basket. It needs neither a mixer nor an oven, the washing-up is manageable, and the tin makes 16 small squares that are just right with coffee or as a sweet bite after a meal.
Estimated reading time: 4 minutes
Table of Contents
Why I love Magic Bars in the air fryer
The best thing about magic bars is that you do not need to be an experienced baker. There is no dough that needs to rise, and no egg whites to whip. You build the bars up in layers, and the heat does the rest. A tin of about 18 x 18 cm can sit directly in the basket, and the circulating heat makes the biscuit base crisp while the condensed milk bakes together into a golden, caramel-like layer.
I also like how easy the recipe is to vary. The white chocolate can be swapped for butterscotch chips, and the walnuts can be replaced with pecans, almonds or hazelnuts, depending on what you have in the cupboard.
Digestive biscuits instead of graham crackers
Graham crackers are lightly sweetened American crackers made with coarse wholegrain flour, and they are the foundation of the original recipe. Here in Denmark they are hard to find, but digestive biscuits are a good substitute with the same mild, toasted grain flavour. Mixed with melted butter, the crumbs can be pressed into a firm base that holds the bars together when you cut them.
My kitchen test of Magic Bars
I baked the magic bars in my Cosori Dual Blaze, which has heating elements both above and below the single basket. The base was pre-baked for 5 minutes at 160 °C so that it set. Then the topping went on, and the bars finished baking for 18 minutes at 150 °C, so the total time in the air fryer came to 23 minutes. The heat from below gave a crisp, cohesive base, while the top needed attention.
That is because the coconut browns quickly, as the heat comes so close to the surface. At the check after 10 minutes the top was already golden, so I laid aluminium foil over it and folded it tightly down around the edge so that the fan did not lift it. In a smaller air fryer you can use a tin of about 15 x 15 cm, but then the layers get thicker, and the bars need 2-3 extra minutes under the foil.
With 15 minutes of preparation and 90 minutes of chilling time, magic bars take 128 minutes from start to finish, but for most of that time the bars simply sit there cooling.
Let the bars cool completely before you cut into them. While they are still warm, the caramel is soft and the layers slide apart. A knife dipped in hot water and wiped dry between cuts gives the neatest edges.
Tips and tricks from the author: Morten Jensen
Common mistakes and how to avoid them
The first mistake is a base that crumbles because the crumbs are too coarse or have not been pressed together firmly enough. Crush the biscuits finely, mix them thoroughly with the butter, and press the base down firmly with the back of a spoon before pre-baking it. The second mistake is a burnt top. Coconut goes from golden to dark in no time, so check the bars along the way, lay foil over them once the colour is right, and turn the tin half a turn if your air fryer bakes unevenly. The third mistake is dry patches with loose coconut. Pour the condensed milk all the way out to the edges and corners, and press the layers lightly together so that the milk seeps down between them.
How to serve Magic Bars
Take the pieces out of the fridge 10 minutes before serving, so that the chocolate and caramel become a little softer. Here are my favourites:
- With the afternoon coffee or a cup of tea
- As a sweet bite after a meal with fresh raspberries
- On the cake table at birthdays and get-togethers
- With a scoop of vanilla ice cream for dessert
- Packed in a pretty box as a hostess gift
Storage and reheating
Magic bars keep for up to 5 days in an airtight container in the fridge. They are served cold or at room temperature and should not be reheated, because the heat just makes the caramel soft again. The bars can also be frozen for up to 3 months. Thaw them in the fridge overnight.
Magic bars prove that some of the best bakes require the least work. With a small tin, a handful of good ingredients and your air fryer, you get 16 sweet, chewy squares that rarely stay long on the cake plate.
FAQ
Yes. Graham crackers are hard to find in Denmark, but digestive biscuits give almost the same result. Crush them finely and mix them well with the melted butter so that the base holds together.
Check the bars after 10 minutes. If the top is already golden, place aluminium foil over the tin and fold it tightly down around the edge so that the fan does not lift it. Then finish baking the bars under the foil.
Yes, they can be frozen for up to 3 months. Let them thaw in the fridge overnight, and serve them cold or at room temperature.
Recipe

Magic Bars in the Air Fryer
Cooking Guide
Keep the screen on and follow the recipe step by step while you cook.
Step 1:
Avoid the screen turning off while you cook.
Step 2:
Start the guide and follow the recipe one step at a time.
Cost of the dish
Prices may vary depending on where you shop.
Our estimate is based on average food prices for the current year 2026.
Estimated price for the whole dish:
Airfryer size
All our recipes are tested in a Philips Airfryer 2000 Series NA230/00 – 6.2 L
Does the recipe fit my Airfryer?
If you’re unsure, you can always reduce by one serving in the recipe, or click the 0.5x button.
You can also Ask the AI Chef
It’s easy! Just press the Ask the AI Chef button you see at the bottom.
Recommended equipment
- 1 Air fryer
- 1 Square pan - approx. 18 x 18 cm
- 1 Parchment paper
- 1 Plastic bag
- 1 Rolling pin
- 1 Small saucepan
- 1 Bowl
- 1 Cutting board
- 1 Sharp knife
- 1 Spoon
- 1 Aluminum foil
Shopping list
Ingredients
- 125 g digestive biscuits (Or graham crackers)

- 60 g butter

Topping
- 75 g dark chocolate chips
- 75 g white chocolate (Or butterscotch chips)

- 50 g walnuts (Or pecans)

- 50 g desiccated coconut

- 200 g sweetened condensed milk (About half a can)
How to make it
Preparation
- Put 125 g digestive biscuits in a plastic bag and crush them into fine crumbs with a rolling pin. A food processor can also be used.
- Melt 60 g butter in a small saucepan over a low heat.
- Mix the biscuit crumbs with the melted butter in a bowl until all the crumbs are moist and the mixture looks like wet sand.
- Spread the mixture in the tin and press it down firmly into an even layer with the back of a spoon.
- Roughly chop 75 g white chocolate and 50 g walnuts on a chopping board.
Cooking in the air fryer
- Preheat the air fryer to 160 °C fan.
- Place the tin in the basket and bake the base for 5 minutes at 160 °C, so that it sets.
- Pull the basket out and sprinkle 75 g dark chocolate chips evenly over the hot base. Then layer the chopped white chocolate, the walnuts and finally 50 g desiccated coconut on top.
- Pour 200 g sweetened condensed milk in a thin stream evenly over the whole surface, right out to the edges and into the corners.
- Press the layers lightly together with the back of a spoon, so that the condensed milk seeps down between the chocolate and the nuts.
- Lower the temperature to 150 °C, push the basket back in and bake the bars for 18 minutes, until the edges are golden and bubbling and the centre has almost set.
- Check the bars after 10 minutes, because the coconut browns quickly. If the top is already golden, place a piece of aluminium foil over the tin and fold it tightly down around the edge, so that the fan does not lift it. Then finish baking under the foil.
Cooling and slicing
- Let the bars cool in the tin for about 30 minutes, then put them in the fridge for at least 1 hour, until completely firm.
- Lift the bars out of the tin using the baking paper and cut into 16 squares with a sharp knife. Dip the knife in hot water and wipe it dry between cuts, so that the edges stay neat.
Our notes for the recipe
Press the biscuit base down firmly and pre-bake it so that it holds together when the bars are cut. Let the bars cool completely before you cut them. While they are still warm, the condensed milk is soft and the pieces fall apart. Keep an eye on the coconut:
Coconut browns quickly in the air fryer because the heat comes so close to the surface. Place aluminium foil over the tin as soon as the top is golden, and fold the foil tightly down around the edge so that it does not blow up. If your air fryer bakes unevenly, turn the tin a half turn when you check the bars after 10 minutes. Variations:
In the US the base is made with graham crackers, which can be hard to find elsewhere. Digestive biscuits give almost the same result. Butterscotch chips can replace the white chocolate, and pecans, almonds or hazelnuts can be used instead of walnuts. Serving:
Serve the pieces with coffee or as a sweet bite after a meal. Take them out of the fridge 10 minutes before serving so that the chocolate and caramel become a little softer. Portion size:
The tin makes 16 small squares, and one serving is 4 pieces. If you have a smaller air fryer, you can use a tin of about 15 x 15 cm. The layers will then be thicker, so give the bars 2-3 extra minutes under aluminium foil.
Your notes for the recipe
Nutrition per serving (Guideline)
Important about shelf life and nutrition
Nutrition per serving (guideline): Calculations are based on data from the United States Department of Agriculture (USDA). Shelf life (guideline): Shelf life data is provided, as far as possible, by public institutions, including national food authorities. Our information is therefore only indicative, and it is your responsibility to obtain and calculate accurate information about shelf life and nutrition for all recipes on airfryerkogebogen.dk
Easily share the recipe with others:
Via email or on Facebook
Open the recipe on your phone
Scan the QR code with your phone and get the recipe directly on your mobile while you cook.