Dinners

Airfryer Cake Tips: Moist, Evenly Baked Every Time

Updated · By Stir & Share

Total timeprep + cook
40 min
Prep
15 min
hands-on
Cook
25 min
oven or stovetop
Serves
4
as written

Jump to recipe Save

An air fryer cake is a small-batch treat that bakes in about half the time of an oven, with a tender crumb and a lightly golden top. It suits a weeknight dessert, a lunchbox sweet, or a last-minute bake for one or two. Serve it warm with a dusting of powdered sugar, a scoop of ice cream, or a spoonful of whipped cream.

Ingredients

  • 1 cup (125 g) all-purpose flour
  • 1/2 cup (100 g) granulated sugar
  • 1 1/2 tsp baking powder
  • 1/4 tsp salt
  • 1/4 cup (60 ml) neutral oil (such as canola or vegetable)
  • 1/2 cup (120 ml) milk (dairy or plant-based)
  • 1 large egg (pasteurized if you prefer, though it will be fully baked)
  • 1 tsp vanilla extract

Pick the Right Pan for Your Air Fryer Basket

The pan must fit inside your basket with at least 1 inch (2.5 cm) of clearance on all sides for air to circulate. A 6-inch (15 cm) round cake pan or a 6-inch (15 cm) springform pan works for most air fryers. If your basket is smaller, use a 4-inch (10 cm) ramekin or a small oven-safe dish. Do not use a pan that blocks the basket’s airflow completely.

Line the bottom of the pan with parchment paper cut to fit, or grease it well with butter or oil. Do not use a paper liner that hangs over the edge—it can touch the heating element and burn.

Mix the Batter in One Bowl

In a medium bowl, whisk the flour, sugar, baking powder, and salt until combined. Add the oil, milk, egg, and vanilla. Stir with a spatula or whisk just until no dry streaks remain. Do not overmix; a few small lumps are fine. Overmixing develops gluten and makes the cake tough.

If you want to add flavor, fold in 1/2 teaspoon of lemon zest, 1/4 teaspoon of cinnamon, or 1/3 cup (40 g) of chocolate chips or chopped nuts. Add-ins change the texture slightly but not the baking time.

Bake at 320°F (160°C) Until a Toothpick Comes Out Clean

  1. Preheat your air fryer to 320°F (160°C) for 3 minutes. If your model does not have a preheat setting, just let it run empty for 3 minutes.
  2. Pour the batter into the prepared pan. Tap the pan gently on the counter to release air bubbles.
  3. Place the pan in the air fryer basket. Bake at 320°F (160°C) for 20–25 minutes, until the top is golden and a toothpick inserted into the center comes out clean or with only a few moist crumbs.
  4. Check at 15 minutes; if the top is browning too fast, loosely cover with a piece of aluminum foil.
  5. When done, carefully remove the pan from the air fryer (it will be hot—use tongs or oven mitts). Let the cake cool in the pan for 10 minutes, then turn it out onto a wire rack to cool completely.

Air fryer times vary by model and basket size. Start checking at the lower end of the time range. If the cake is not done after 25 minutes, add 2–3 more minutes and check again.

Swap Ingredients Without Changing the Bake

  • Oil: Use melted butter or melted coconut oil in place of neutral oil. Butter adds flavor but makes the crumb slightly denser; coconut oil adds a subtle coconut taste.
  • Milk: Use buttermilk, yogurt thinned with water, or plant-based milk. Buttermilk makes the cake more tender and adds a slight tang; plant-based milks may make it slightly less rich.
  • Egg: Use 1/4 cup (60 g) unsweetened applesauce or 1/4 cup (60 g) mashed banana. The cake will be more moist and slightly heavier; banana adds flavor.
  • Flour: Use 1 cup (120 g) whole wheat flour for a denser, nuttier cake. Use a gluten-free all-purpose blend that contains xanthan gum; the texture may be slightly more crumbly.
  • Sugar: Use 1/2 cup (100 g) brown sugar for a deeper flavor and a more moist crumb. Reduce the milk by 1 tablespoon if using brown sugar.

Scale the Recipe for a Smaller or Larger Basket

Batch Flour Sugar Baking powder Oil Milk Egg Pan size Bake time
Half 1/2 cup (60 g) 1/4 cup (50 g) 3/4 tsp 2 tbsp (30 ml) 1/4 cup (60 ml) 1 egg (or 1/2 egg, beaten) 4-inch (10 cm) pan 15–20 min
Full 1 cup (125 g) 1/2 cup (100 g) 1 1/2 tsp 1/4 cup (60 ml) 1/2 cup (120 ml) 1 egg 6-inch (15 cm) pan 20–25 min
Double 2 cups (250 g) 1 cup (200 g) 1 tbsp 1/2 cup (120 ml) 1 cup (240 ml) 2 eggs Two 6-inch (15 cm) pans, bake in batches 20–25 min per batch

For the half batch, beat the egg in a small bowl, then use only half of it; discard the rest or save for another use. Do not bake two pans at once in a single basket—overcrowding blocks airflow and leads to uneven baking.

Store the Cake and Keep It Moist

Once the cake has cooled completely, wrap it tightly in plastic wrap or store in an airtight container at room temperature for up to 2 days. For longer storage, refrigerate for up to 4 days; bring to room temperature before serving. You can also freeze the cake (wrapped in plastic, then foil) for up to 3 months. Thaw overnight in the refrigerator.

If the cake seems dry after refrigeration, microwave a slice for 10–15 seconds to restore moisture. Do not leave the cake out for more than 2 hours total at room temperature.

Fix Common Air Fryer Cake Problems

Why is my cake dense or gummy? Overmixing the batter develops gluten, and underbaking leaves a gummy center. Mix just until combined and always test with a toothpick.

Why is the top too dark? The air fryer’s heating element is close to the pan. If the top browns before the center is done, cover the cake loosely with foil for the last 5–10 minutes.

Why is the cake lopsided? The pan may be too close to one side of the basket, or the air fryer’s fan blows unevenly. Rotate the pan halfway through baking (at about 10 minutes) for even rising.

Why did my cake stick to the pan? Grease the pan thoroughly, including the sides, or use a parchment paper round. If using a springform pan, check that the latch is tight to prevent batter leaking.

What to Serve With Air Fryer Cake

This simple vanilla cake pairs well with fresh berries, a drizzle of lemon glaze, or a dusting of powdered sugar. For a richer dessert, serve with a scoop of vanilla ice cream or a spoonful of whipped cream. It also works as a base for strawberry shortcake—split it in half and layer with macerated strawberries.

For a chocolate version, replace 2 tablespoons (15 g) of flour with unsweetened cocoa powder and add 2 tablespoons (30 ml) of milk. Bake at the same temperature and time.

Related

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).