How To Bake A Cake In An Air Fryer: Easy Guide
You can bake a cake in an air fryer by using a small oven-safe pan, lowering the temperature slightly, and checking the center before removing it. Most small cakes bake well at 320°F to 330°F for 25 to 35 minutes, but the exact time depends on your air fryer, pan size, and batter depth.
This guide uses US measurements and Fahrenheit temperatures. It works for basket-style air fryers and air-fryer toaster ovens found in American kitchens.

What You Need to Bake a Cake in an Air Fryer
You need four basic things: cake batter, a suitable pan, an air fryer with enough space, and a way to check whether the cake is done.
Equipment
- Air fryer
- Small oven-safe cake pan
- Mixing bowls
- Measuring cups and spoons
- Whisk or hand mixer
- Silicone spatula
- Cooking spray or softened butter
- Toothpick or thin skewer
- Cooling rack, if available
A 6-inch round pan is a useful size for many basket air fryers. Some larger air-fryer ovens can hold an 8-inch pan or a small loaf pan. Measure the inside of the basket before you begin.
The pan should sit flat and leave room for air to move around it. Do not force a pan into the basket. A tight fit can block airflow and make the cake bake unevenly.
Suitable pans
Use pans labeled as safe for oven use. These may include:
- Aluminum cake pans
- Steel cake pans
- Small springform pans
- Glass baking dishes marked oven-safe
- Silicone cake pans designed for baking
Metal pans often bake cakes more evenly because they transfer heat well. Silicone pans can work, but they may need extra support because they are flexible. Place a silicone pan on a firm tray or inside a rigid pan if the design allows it.
Avoid plastic containers, takeout bowls, and dishes with parts that are not rated for oven heat. Check your air fryer manual before using glass or silicone.
How much batter to use
Fill the pan about one-half to two-thirds full. Cake batter rises as it cooks, and an overfilled pan can cause a raw center, a burned top, or batter spilling into the basket.
If you have extra batter, bake it in a second batch or use it for cupcakes. Do not pile the batter higher just to use it all at once.

A Simple Air Fryer Cake Recipe
This small vanilla cake makes about 6 to 8 servings. It is sized for a 6-inch round pan, although the batter can also fit a similar small pan.
ingredients
- 1 cup all-purpose flour
- 1 teaspoon baking powder
- ¼ teaspoon salt
- ½ cup granulated sugar
- ¼ cup unsalted butter, softened
- 1 large egg
- ½ teaspoon vanilla extract
- ⅓ cup milk
Let the egg, butter, and milk sit at room temperature for a short time if possible. Ingredients that are closer in temperature usually combine more evenly.
Method
- Grease a 6-inch cake pan. Add a round of parchment to the bottom if you have it.
- Whisk the flour, baking powder, and salt in a bowl.
- In a separate bowl, beat the butter and sugar until the mixture looks light and smooth.
- Beat in the egg and vanilla.
- Add the dry ingredients in two or three additions, alternating with the milk. Mix only until the batter comes together.
- Pour the batter into the prepared pan and smooth the top.
- Tap the pan gently on the counter once or twice to remove large air pockets.
Do not overmix after adding the flour. Too much mixing can make the cake dense or chewy.
Why this recipe fits an air fryer
A small cake pan gives the batter a shorter distance to the center. That matters because the hot air cooks the outside and top quickly, while the middle needs more time to set.
A smaller cake also gives you more control. A deep, full-size cake may brown on top before the center finishes.

Step-by-Step: How to Bake a Cake in an Air Fryer
Follow these steps for the most even result.
1. Check the pan and air fryer size
Place the empty pan in the basket before mixing the batter. Make sure you can remove it without touching the heating element.
The basket or rack should close normally. Leave space around the pan where possible. The exact amount of space varies by model, but air must be able to circulate around the pan.
2. Preheat the air fryer
Preheat the air fryer to 320°F for about 3 to 5 minutes if your model has a preheat setting.
Some manufacturers do not require preheating. If your manual says to start with a cold air fryer, follow that instruction. If you are unsure, preheating gives the batter a more stable start and may help it rise evenly.
3. Add the batter
Pour the batter into the prepared pan. Keep the surface level and avoid filling the pan beyond two-thirds full.
Place the pan in the center of the basket or on the middle rack of an air-fryer oven. Keep the pan away from the heating coil.
4. Bake at 320°F
Bake for about 25 to 35 minutes. Begin checking at 25 minutes, especially if your pan is shallow or your air fryer runs hot.
Do not open the basket repeatedly during the first 20 minutes. Each opening releases heat and can slow the cake’s rise.
5. Protect the top if it browns too soon
If the top becomes dark while the center is still wet, loosely cover the pan with aluminum foil. Secure the foil around the pan so it cannot lift into the heating element.
Do not place loose foil in an empty air fryer. It can move into the heating element or block airflow.
6. Test the center
The cake is ready when:
- The top springs back lightly when pressed
- The edges pull away slightly from the pan
- A toothpick inserted in the center comes out clean or with a few moist crumbs
- The center no longer wobbles when the pan is moved gently
A thermometer can provide another check. Many plain cakes are done when the center is roughly 200°F to 210°F, but texture and recipe type also matter. A thermometer reading is less useful for cakes with a wet filling or a custard-like center.
7. Cool before removing
Let the cake cool in the pan for 10 to 15 minutes. Then loosen the edges with a thin knife and turn the cake onto a rack or plate.
Cooling helps the crumb finish setting. Cutting the cake while it is very hot can make it seem gummy, even when it is fully baked.

How to Adjust Time and Temperature
The correct air fryer cake time depends more on pan depth and batter amount than on the recipe name alone.
Use this table as a starting point, not a guarantee:
| Cake setup | Starting temperature | Approximate time |
|---|---|---|
| 6-inch round cake | 320°F | 25–35 minutes |
| Shallow 6-inch cake | 320°F | 20–28 minutes |
| Small loaf cake | 320°F | 30–40 minutes |
| Cupcakes in silicone or metal cups | 320°F | 12–18 minutes |
| 8-inch cake in a large air-fryer oven | 320°F | 30–40 minutes |
The times assume a standard cake batter and can change with the model, pan material, starting temperature, and amount of batter.
Should you lower the oven temperature?
Often, yes. Many conventional cake recipes use 350°F, while an air fryer may brown the surface faster because it moves hot air close to the food.
A practical starting point is to reduce the recipe temperature by 25°F to 30°F. For a recipe written at 350°F, try 320°F to 325°F in the air fryer.
This is a starting adjustment, not a fixed rule. If your cake stays pale and takes much longer than expected, your model may need a slightly higher temperature. Make one change at a time so you can learn how your appliance behaves.
How pan material changes baking
- Dark metal pans: May brown the cake faster.
- Light aluminum pans: Often give a gentler, more even bake.
- Glass pans: May need more time because glass heats differently from metal.
- Silicone pans: May need extra support and sometimes a longer bake.
A dark top does not always mean the cake is finished. Check the center before judging doneness.
How batter depth changes baking
A shallow layer cooks faster than a deep layer. If you use a smaller pan and make the batter deeper, the center may remain wet even while the top looks done.
For a new pan size, start checking early. You can also use a simple comparison:
- A pan with a wider surface and less depth usually bakes faster.
- A narrow, deep pan usually needs more time at a lower temperature.
- A full pan needs more time than a half-full pan.

Common Air Fryer Cake Problems and Fixes
Most air fryer cake problems come from excess heat on top, too much batter, or an undercooked center.
The top is brown but the center is raw
Likely causes:
- The temperature is too high.
- The pan is too deep.
- The cake needs more time.
- The heating element is very close to the pan.
What to do:
- Lower the temperature to 300°F to 310°F.
- Cover the top loosely with foil.
- Continue baking in 5-minute increments.
- Test the center after each interval.
Do not raise the temperature to cook the center faster. That usually darkens the outside before the middle sets.
The cake is dry
Likely causes:
- It baked too long.
- The pan was too small or too deep.
- The flour was packed into the measuring cup.
- Too much flour was added.
Measure flour by spooning it into a dry measuring cup and leveling the top. If you have a kitchen scale, weighing flour gives more consistent results.
Begin checking several minutes earlier the next time. Air fryers vary widely in heat strength and airflow.
The cake sank in the middle
A cake can sink when the center is not fully set, when the batter is overmixed, or when the basket is opened too early.
Avoid opening the air fryer during the first part of baking. Also check that your baking powder is active and that the pan was not overfilled.
A slight dip may be harmless. A deep, wet crater usually means the center needed more time.
The cake is uneven or lopsided
Uneven baking may result from:
- An air fryer that heats more strongly on one side
- A pan that is not level
- Batter that was not spread evenly
- The pan touching the basket wall
Smooth the batter before baking. If your air fryer manual allows it, rotate the pan once the cake has partly set. Do not rotate it early, because moving unset batter can cause it to collapse.
The cake will not release from the pan
Let it cool for 10 to 15 minutes, then run a thin knife around the edge. Grease the pan well before baking and line the base with parchment.
Do not pull the cake out while it is very hot. The crumb is fragile at that stage.
The cake tastes like the previous food
Air fryers can hold strong odors from foods such as fish, garlic, or spices. Clean the basket, tray, and interior according to the manufacturer’s instructions before baking.
Avoid using harsh cleaners that are not approved for the appliance. Let all parts dry fully before use.

Safety Tips for Air Fryer Baking
Use only cookware and accessories rated for the heat of your air fryer. A pan that is oven-safe may still be too large for the appliance if it blocks the basket or touches the heating element.
Keep parchment paper under the batter. Loose parchment can lift into the heating coil before the batter weighs it down. Pre-cut parchment to fit the pan rather than placing a large sheet beneath the basket.
Use oven mitts when removing the pan. The basket, pan, and handle may stay hot after the cooking cycle ends.
Do not overcrowd the air fryer. Extra objects can block airflow and increase the chance of uneven cooking.
Cake batter contains raw egg and flour. Do not taste uncooked batter. Bake the cake until the center is fully set, then store leftovers covered in the refrigerator if the recipe contains perishable fillings, cream, or frosting.
Let the cake cool before frosting it. Warm cake can melt buttercream, cream cheese frosting, or whipped toppings.

Frequently Asked Questions
Can you put a cake pan in an air fryer?
Yes, if the pan is oven-safe and fits without touching the heating element. Metal, oven-safe glass, and suitable silicone pans can work. Always check the air fryer manual for size and material limits.
Can you use a boxed cake mix in an air fryer?
Yes. Prepare the mix according to the package directions, then pour it into a greased small pan. Fill the pan no more than two-thirds full. Start at 320°F and check the cake before the oven time listed on the box.
Do you need to preheat an air fryer before baking a cake?
Preheating can help the cake start baking at a steady temperature, but some air fryers do not require it. Follow your model’s manual. If you preheat, 3 to 5 minutes is usually a practical starting point.
Can you bake a cake in an air fryer without a cake pan?
You need some type of heat-safe container to hold the batter. A small oven-safe baking dish, loaf pan, silicone mold, or metal pan can work if it fits the basket and allows airflow.
Why does my air fryer cake burn on top?
The heating element may be too close, or the temperature may be too high. Lower the heat by 10°F to 20°F and loosely cover the pan with foil after the top has set. Continue baking until the center passes the toothpick test.
Final Takeaway
To bake a cake in an air fryer, use a small oven-safe pan, fill it no more than two-thirds full, and begin at 320°F. Check the cake early, protect the top with foil if needed, and let it cool before slicing.
The most reliable sign of success is a set center with a clean toothpick or a few moist crumbs. Once you learn how quickly your air fryer browns food, you can adjust the time and temperature for nearly any small cake recipe.

Appliance Review Expert
Lucas Ramirez is a trusted voice at HomeFixGrid.com, known for his clear, practical, and creatively written guides that simplify appliance care for everyday homeowners. With a strong focus on hands-on testing and real-world problem-solving, Lucas brings expert insight into appliance reviews and troubleshooting techniques. Her work empowers readers to confidently maintain, repair, and choose the right appliances for their homes.
