Tips
Can you bake a cake in an air fryer?
By Fede6 min read
In short
Yes, you can, but an air fryer doesn't fry: it's a small convection oven with the fan and heating element on top. That air browns the top very fast and the center can stay raw. To get it right: a 15 cm (6 in) metal pan, about 14 °C (25 °F) lower than in the oven, check it with 20 to 25 percent less time and, if the top browns early, cover it with foil tucked tightly around the pan.
Yes, you can bake a cake in an air fryer. But first you need to know something the name hides: an air fryer doesn't fry anything. It's a tiny oven, with a heating element on top and a very strong fan that pushes hot air all around.
If you treat it like a mini oven and make a couple of adjustments, the cake turns out fine. If you use it just like your regular oven, at the same temperature and for the same time, it will most likely come out golden on the outside and raw in the middle. Here's why that happens and how I do it.
Does an air fryer really fry?
No. Frying means submerging food in hot oil, and there's no oil in here to submerge anything in. An air fryer is a countertop convection oven (an oven with a fan): it circulates air at up to 200 °C (392 °F) at high speed, and that air is what browns the outside and makes it crispy.
In drawer-style models, the fan sits on top and blows downward, with the heating element right above the food. It sounds like a detail, but for a cake it changes everything.
Why does the cake stay raw inside?
For potatoes, that strong air is great: they're small pieces with lots of surface, and they brown evenly. A cake is the opposite: a block of wet batter that needs the heat to reach the center little by little.
In the air fryer, the top of the cake sits very close to the heating element and takes the full blast of hot air. That's where the crust forms and browns super fast, while the center is still liquid. Bakers who have tried it describe exactly that: with a lot of wet batter, the cake gets a beautiful golden color, looks done, and is raw inside, or heavy and gummy. And if you keep baking until the center is cooked, the top goes from golden to burnt.
How to bake a cake in an air fryer
Lower it by about 14 °C (25 °F) and start checking early
The rule of thumb for baking in an air fryer, the same one used for convection ovens, is to lower the temperature by about 14 °C (25 °F) and bake for 20 to 25 percent less time than the oven recipe says. The reason is always the same: with the air moving, the outside cooks first, and a lower temperature gives the center time to catch up.
| The oven recipe says | In the air fryer |
|---|---|
| 180 °C (356 °F) | About 165 °C (329 °F) |
| 40 minutes | Start checking at 30 |
| Large pan | 15 cm (6 in) pan, metal |
The time is a guide, not a promise: every air fryer heats differently. To know if it's done, poke the center with a toothpick: it can come out moist, but not with batter stuck to it.
Preheat it for a few minutes
Cakes rise with baking powder, and that batter needs a blast of heat when it goes in to rise properly. That's why I turn it on beforehand: since it's small, it's hot in 5 minutes or less.
A small metal pan with room around it
Recipes developed for air fryers usually call for a 15 cm (6 in) pan. Make it metal, not glass: glass is thick at the bottom and conducts heat slowly, and since here the heat comes from the top, the bottom doesn't brown evenly while the top overbakes.
Leave room between the pan and the walls of the basket, so the air can flow and heat it from the sides too. And don't overfill it: a pan that's too small for that much batter, with strong heat, is what makes a cake come out with a dome in the middle. If the recipe is for a large pan, like my sponge cake or the yogurt cake, split the batter into batches instead of putting it all in at once.
When to cover it with aluminum foil (and how)
If the top is already golden and the inside is still raw, cover it. Aluminum foil slows down the browning on top and lets the center finish cooking.
But in an air fryer there's a catch: the fan. If the foil is just resting loosely on top, the air lifts it, makes it flap and can push it against the heating element, where it can keep the cake from cooking through and even spark a flame. The British charity Electrical Safety First warns the same about any kind of paper: if it isn't weighted down, it can touch the heating element and catch fire.
This is how I do it:
- I cut a square of foil a little bigger than the pan.
- I lay it over the cake without pressing it down.
- I fold the edges under the rim of the pan and press them tight, all the way around.
- I check that there are no loose or raised corners.
And don't worry about which side goes up: with regular foil it makes no difference.
What works well and what's harder
An air fryer shines with small bakes and with anything that wants a contrast between a well-baked crust and a soft center: brownies, cheesecake, a single cookie when a craving hits. The hardest thing is precisely the classic oil or butter cake, with a lot of wet batter.
The practical part
- Preheat the air fryer for a few minutes.
- A 15 cm (6 in) metal pan, with room around it.
- About 14 °C (25 °F) lower than in the oven, and start checking with 20 to 25 percent less time.
- Toothpick in the center: moist is fine; batter stuck to it is not.
- If the top is golden and the inside is raw, foil tucked tightly around the rim of the pan.
- Don't leave it alone while it's cooking.
In the end, the air fryer was never a fryer: it's a mini oven. Treat it like one and the cake works.
Frequently asked questions
What temperature do you bake a cake at in an air fryer?
About 14 °C (25 °F) lower than the oven recipe calls for: if it says 180 °C (356 °F), use about 165 °C (329 °F). Then start checking it with 20 to 25 percent less time.
Can you use a glass dish for cake in an air fryer?
A metal pan is better. Glass is thick at the bottom and conducts heat slowly, and since the heat in an air fryer comes from the top, the cake won't bake evenly.
Can you put parchment paper in an air fryer?
Only with weight on top, like food or a pan, and never in the empty basket while it preheats. Loose, the air lifts it, and it can touch the heating element and catch fire; check your air fryer's manual first.
How long does a cake take in an air fryer?
It depends on the recipe and on the air fryer. As a guide, a cake that takes 40 minutes in the oven should be checked at 30, and it's done when a toothpick comes out without batter stuck to it.
Related recipes
Sources
The facts in this post come from these sources (checked when it was written).
- Everything you ever wanted to know about baking in an air fryer — King Arthur Baking (Justine Lee) (2022)
- Convection oven: Air fryer — Wikipedia
- Air fryers usage and safety — Electrical Safety First (2026)
- Can I Put Tin Foil In My Air Fryer? — HuffPost UK (Amy Glover) (2024)
- Cómo hacer torta de zanahoria — Fede Cocina (YouTube)
- Avoid these layer cake mistakes — America's Test Kitchen



