Yes, you can cook a cake in an air fryer, and it comes out tender and moist with a lightly crisp edge. The air fryer works like a small convection oven, circulating hot air to bake evenly. You’ll need a pan that fits inside your basket, and you may need to adjust time and temperature from a standard oven recipe.
Why an Air Fryer Works for Cake
An air fryer is essentially a countertop convection oven. The fan moves hot air around the food, which cooks faster and creates a nice crust. Cakes bake well because the rapid air circulation sets the batter quickly, giving a light crumb.
The main difference from a regular oven is size and heat distribution. Because the basket is small, you’ll bake in a smaller pan, and the cake may cook faster. Start with a lower temperature than your oven recipe suggests—usually 325°F (163°C) works well.
What You Need to Bake a Cake in an Air Fryer
You need a pan that fits inside your air fryer basket with at least 1 inch (2.5 cm) of space around it for air to circulate. A 6-inch (15 cm) round cake pan, a 7-inch (18 cm) springform pan, or a small loaf pan all work. If your pan is too large, the batter will be too thick and may not cook through.
Use a pan that is oven-safe and can withstand up to 400°F (204°C). Aluminum, stainless steel, and silicone pans are fine. Avoid glass unless it’s marked oven-safe; sudden temperature changes can crack it.
You’ll also need a piece of parchment paper to line the bottom, and a toothpick or skewer to test doneness.
How to Adapt a Regular Cake Recipe for the Air Fryer
You can use your favorite cake recipe, but you’ll need to adjust it. Here’s the general rule: reduce the baking temperature by 25°F (about 14°C) and start checking for doneness about 25% earlier than the original time.
For example, if a recipe says bake at 350°F (177°C) for 30 minutes, set the air fryer to 325°F (163°C) and check at 20 minutes. Because air fryers vary, always test with a toothpick inserted into the center—it should come out clean or with a few dry crumbs.
If your recipe makes more batter than fits in your pan, only fill the pan two-thirds full. Bake the extra batter as cupcakes in silicone muffin cups, or make a second small cake. Don’t overfill, or the cake will overflow.
Pan Sizes and Batter Amounts
A 6-inch (15 cm) round pan holds about 2 cups (480 ml) of batter. A 7-inch (18 cm) round pan holds about 3 cups (720 ml). If you have a standard 8-inch (20 cm) cake recipe that makes 4 cups (960 ml) of batter, you’ll need to split it into two batches or use a larger air fryer that fits an 8-inch pan.
When using a loaf pan, keep the batter no more than 2 inches (5 cm) deep. Thicker batter takes too long to cook and may burn on the outside before the center is done.
Step-by-Step: Baking a Simple Vanilla Cake in the Air Fryer
Here’s a basic recipe that works in most air fryers. It’s a small, moist vanilla cake that serves 4-6.
Ingredients
- 1/2 cup (115 g) unsalted butter, softened
- 1/2 cup (100 g) granulated sugar
- 2 large eggs
- 1 tsp vanilla extract
- 1 cup (125 g) all-purpose flour
- 1/2 tsp baking powder
- 1/4 tsp salt
- 1/4 cup (60 ml) milk
Instructions
- Grease a 6-inch (15 cm) round cake pan and line the bottom with parchment paper.
- In a bowl, cream the butter and sugar until light and fluffy. Beat in the eggs one at a time, then the vanilla.
- In a separate bowl, whisk the flour, baking powder, and salt. Add half the dry ingredients to the butter mixture, then the milk, then the rest of the dry ingredients. Mix until just combined.
- Pour the batter into the prepared pan and smooth the top.
- Preheat the air fryer to 325°F (163°C) for 3 minutes.
- Place the pan in the basket. Cook for 20 minutes, then check with a toothpick. If it needs more time, continue cooking in 2-minute increments, until the toothpick comes out clean and the top is golden.
- Let the cake cool in the pan for 10 minutes, then turn out onto a wire rack to cool completely.
Because air fryers vary, start checking at 15 minutes. The cake is done when a toothpick inserted in the center comes out clean or with a few dry crumbs.
Adjusting for Different Cake Types
Chocolate cake, lemon pound cake, and spice cakes all work with the same method. The key is to reduce the temperature and check early. Dense batters, like pound cake, may need a slightly lower temperature (300°F/149°C) and longer time, because they are thicker.
For boxed cake mixes, follow the same rule: reduce the oven temperature by 25°F (14°C) and check at the earliest time suggested on the box. A 6-inch (15 cm) pan will need about 20-25 minutes for a standard mix that would bake in 30 minutes in a regular oven.
Gluten-free cakes tend to bake faster and can dry out, so check them 5 minutes earlier than you would a regular cake.
Tips for Even Baking and Easy Removal
Always preheat the air fryer for at least 3 minutes. This ensures the cake starts baking immediately, which helps it rise evenly.
Don’t open the basket too often. Each time you open it, heat escapes and the cake may sink. Check only after the minimum time has passed.
If the top is browning too quickly but the center is still raw, cover the cake loosely with a piece of aluminum foil. This blocks the direct heat while the inside finishes baking.
Let the cake cool completely before frosting. A warm cake will melt frosting and make a mess. If you’re in a hurry, place it in the fridge for 15 minutes.
Storage and Food Safety
Once the cake has cooled, store it in an airtight container at room temperature for up to 3 days. If you add a frosting that contains dairy or eggs, refrigerate it after 2 hours. The cake will keep in the fridge for up to 4 days.
You can freeze the unfrosted cake for up to 3 months. Wrap it tightly in plastic wrap and then foil. Thaw overnight in the fridge before serving.
If you’re baking with raw eggs, remember that the cake is fully cooked, so it’s safe. But if you taste the batter (which contains raw flour and raw eggs), heat-treat the flour to 160°F (71°C) and use pasteurized eggs. Pregnant people, young children, older adults, and anyone with a weakened immune system should avoid raw batter.
Can You Bake a Cake in an Air Fryer If You Don’t Have a Cake Pan?
Yes. You can use a small oven-safe bowl, a ramekin, or even a silicone muffin cup. For a single serving, use a 4-inch (10 cm) ramekin and reduce the baking time to 15-18 minutes. Just make sure the container is oven-safe and fits in the basket with space around it.
What About Air Fryer Cake Recipes That Use a Whole Cake Mix?
If you want to use a full boxed cake mix, you’ll need to bake it in batches. A standard 15.25 oz (432 g) mix makes about 4 cups (960 ml) of batter. That’s enough for two 6-inch (15 cm) cakes, or one 8-inch (20 cm) cake if your air fryer is large enough. Check your air fryer’s capacity—most baskets fit only up to 7 inches (18 cm).
Bake each batch separately, or pour the batter into a large loaf pan that fits. If you use a loaf pan, keep the batter no more than 2 inches (5 cm) deep. Increase the cooking time to 35-40 minutes, checking at 30 minutes.
Common Problems and How to Fix Them
Burnt outside, raw inside: The temperature is too high or the pan is too deep. Lower the temperature to 300°F (149°C) and use a wider, shallower pan.
Cake sinks in the middle: You opened the basket too early, or the batter was overmixed. Keep the basket closed until the minimum time, and mix just until combined.
Dry cake: You overcooked it. Check earlier next time, and consider adding an extra tablespoon of milk or oil to the batter to keep it moist.
Uneven browning: The pan may be too close to the heating element. Place a small trivet or a ring of aluminum foil under the pan to lift it slightly.
Baking a cake in an air fryer is a quick way to make a small dessert without heating up the whole oven. With a little adjustment, you can enjoy a fresh cake in about half the time.
Related
- Can You Cook Italian Sausage in an Air Fryer? Yes—Here’s How
- How Long to Cook Onion Soup
- Air Fryer Steak: How Long to Cook It
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).