An air fryer makes a small, tender cake with a golden crust in about half the time of an oven, perfect for a weeknight treat or a last-minute dessert. Serve it warm with a scoop of ice cream, a spoonful of whipped cream, or a simple dusting of powdered sugar. This recipe works for vanilla, chocolate, or lemon cake, and the method is the same for all three.
Ingredients
- 1 ½ cups (190 g) all-purpose flour
- 1 ½ tsp baking powder
- ¼ tsp salt
- ½ cup (115 g) unsalted butter, softened
- ¾ cup (150 g) granulated sugar
- 2 large eggs, at room temperature
- 1 tsp vanilla extract
- ½ cup (120 ml) whole milk, at room temperature
For a chocolate version
- Replace ¼ cup (30 g) of the flour with ¼ cup (25 g) unsweetened cocoa powder
For a lemon version
- Add 1 tbsp lemon zest and replace the vanilla with 1 tsp lemon extract
Pick Your Pan Before You Mix the Batter
The pan must fit inside your air fryer basket with at least 1 inch (2.5 cm) of clearance on all sides for air circulation. A 6-inch (15 cm) round cake pan, a 7-inch (18 cm) round pan, or a 7×3-inch (18×7.5 cm) loaf pan all work in most air fryers. If your basket is smaller, use a 4-inch (10 cm) ramekin and adjust the time down to 15–18 minutes. If your basket is larger, you can use an 8-inch (20 cm) pan, but the cake will be thinner and cook faster—check at 18 minutes.
Mix the Batter and Prep the Pan
Preheat the air fryer to 320°F (160°C) for 5 minutes. Meanwhile, grease the pan with butter or nonstick spray and line the bottom with a parchment paper round.
In a medium bowl, whisk the flour, baking powder, and salt. In a large bowl, beat the butter and sugar until light and fluffy, about 2 minutes. Add the eggs one at a time, beating well after each, then stir in the vanilla. Add the dry ingredients in three additions, alternating with the milk, starting and ending with the dry ingredients. Mix just until combined—overmixing makes the cake tough.
Pour the batter into the prepared pan and smooth the top.
Bake the Cake in the Air Fryer
Place the pan in the air fryer basket. Bake at 320°F (160°C) for 20–25 minutes, until a toothpick inserted into the center comes out clean or with a few moist crumbs. The top should be golden and spring back when lightly pressed. Air fryer times vary by model, so start checking at 18 minutes.
If the top is browning too quickly but the center is not done, loosely cover the cake with a piece of aluminum foil and continue baking. When done, remove the pan from the air fryer and let the cake cool in the pan for 10 minutes. Then turn it out onto a wire rack to cool completely.
Swap Ingredients Without Changing the Method
- Butter: Use ½ cup (120 ml) neutral oil like canola or sunflower. The cake will be moister and slightly denser; reduce the milk to ⅓ cup (80 ml).
- Milk: Use buttermilk, plain yogurt, or sour cream thinned with a little water. The cake will be more tender and have a slight tang. Use the same amount.
- Sugar: Use ¾ cup (150 g) brown sugar for a deeper flavor and a moister crumb. The cake will be darker.
- Eggs: For an egg-free version, use 2 flax eggs (2 tbsp ground flaxseed mixed with 6 tbsp water, left to sit for 5 minutes). The cake will be slightly denser and may need 2–3 extra minutes.
- Flour: Use a 1:1 gluten-free baking flour blend. The cake will be a bit more crumbly; add 1 tbsp extra milk if the batter seems stiff.
Scale the Recipe Up or Down
This recipe scales easily. For a half batch, use a 4-inch (10 cm) pan and bake for 15–18 minutes. For a double batch, use two 6-inch (15 cm) pans and bake in batches, or use a single 8-inch (20 cm) pan and bake for 30–35 minutes. The table below shows the ingredient amounts for each batch.
| Ingredient | Half | Full | Double |
|---|---|---|---|
| Flour | ¾ cup (95 g) | 1 ½ cups (190 g) | 3 cups (380 g) |
| Baking powder | ¾ tsp | 1 ½ tsp | 1 tbsp |
| Salt | ⅛ tsp | ¼ tsp | ½ tsp |
| Butter | ¼ cup (60 g) | ½ cup (115 g) | 1 cup (230 g) |
| Sugar | ⅓ cup (75 g) | ¾ cup (150 g) | 1 ½ cups (300 g) |
| Eggs | 1 | 2 | 4 |
| Vanilla | ½ tsp | 1 tsp | 2 tsp |
| Milk | ¼ cup (60 ml) | ½ cup (120 ml) | 1 cup (240 ml) |
Store Leftovers and Reheat Without Drying Out
Cool the cake completely before storing. Wrap it tightly in plastic wrap or place it in an airtight container. Refrigerate for up to 4 days. The cake also freezes well for up to 3 months—wrap in plastic wrap then foil, and thaw overnight in the fridge.
To reheat a slice, place it in the air fryer at 300°F (150°C) for 2–3 minutes, until warm. Or microwave for 15–20 seconds. If the cake is dry, brush it with a little milk or simple syrup before reheating.
Any cake with a custard or cream filling (like a cheesecake) should be refrigerated within 2 hours of baking and eaten within 3–4 days. Cakes with fresh fruit on top are best eaten the same day.
Why the Air Fryer Makes a Different Cake
The air fryer circulates hot air rapidly, which creates a slightly crisper crust and a lighter crumb than a conventional oven. Because the cooking chamber is small, the cake bakes faster and more evenly. The trade-off is that you can only bake a small cake at a time, and the top may brown more quickly. That is why the temperature is lower than a standard 350°F (175°C) oven—320°F (160°C) gives the center time to cook without burning the outside.
If you prefer a taller cake, use a smaller pan (4-inch/10 cm) and increase the time by 5–7 minutes. If you want a flatter, wider cake, use a larger pan and reduce the time. Always check for doneness with a toothpick, not just by color.
For a glaze, whisk 1 cup (120 g) powdered sugar with 2–3 tbsp milk or lemon juice and drizzle over the cooled cake. Add the glaze just before serving so it stays shiny.
Related
- Steak in the Airfryer: How to Cook It
- Airfryer Steak Healthy Options
- Air Fryer Ground Italian Sausage: Quick & Evenly Cooked
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).