Short Answer
Air fryer chocolate cake is a 7-inch cocoa and oil cake that bakes in 20 to 22 minutes at 320°F.
- The batter needs two bowls and gets stirred only until no dry flour shows.
- A clean toothpick in the center means it is done, even when the top looks dark.
- Plain cake keeps 3 days at room temperature.
A cake behaves differently from most air fryer recipes, because the fan and heating element act on the top of the pan first, and the crust can darken before the middle sets.
King Arthur's air fryer cake guide says the smaller the pan, the better your chance of success, and a 7-inch pan at 320°F gives your cake time to set before the top browns.
1 What Do You Need and Why?
Cocoa powder carries the chocolate, and because most of its cocoa butter has been pressed out, most of the fat in this cake comes from the ⅓ cup of vegetable oil. Oil stays liquid at room temperature, which keeps the crumb soft after the cake cools.
Oil also coats the flour evenly, which King Arthur credits in its oil cake guidance with keeping oil-cake layers tender, and the batter still gets stirred only until no dry flour shows.
Either natural or Dutch-process cocoa works, because this batter rises on baking powder alone, which carries its own acid. King Arthur notes that swapping one cocoa for the other shifts the result, since Dutch-process bakes darker and natural cocoa gives a lighter color with a tangier, slightly bitter taste.
Tip
Baking powder is the only leavener in this cake, which makes its age matter: an opened tin lasts 3 to 6 months in the pantry per USDA FoodKeeper, and an older one can leave a dense center.
The card calls for ½ cup of cocoa, which is 8 tablespoons, and King Arthur says natural cocoa in a recipe written for Dutch-process gives decent results with no change. It adds that a recipe with more than 3 tablespoons can trade its baking powder for half as much baking soda when natural cocoa replaces Dutch-process.
The card keeps its baking powder as written and does not say which cocoa to use. Natural cocoa brings King Arthur's lighter color and possible tang, and the baking soda trade is the step it adds for recipes above 3 tablespoons.
Cocoa clumps easily, and a batter that gets only brief stirring will not break the lumps up, which is why the dry ingredients go through a sieve first, twice if your cocoa is lumpy.
2 Which Pan Fits Your Air Fryer?
The card uses a 7-inch round air fryer cake pan, and it is worth setting the empty pan in your basket before you mix, because the cake needs a gap on every side for the air to move.
Many air fryers fit only an 8-inch round, according to King Arthur. An 8-inch pan spreads this batter thinner, which makes a first check a few minutes before 20 minutes a sensible starting point.
- Grease and line: Splash of Taste greases the pan and lines it with baking paper, which helps the cake release.
- Oil for the pan: cooking sprays can damage the nonstick coating in an air fryer, according to Tasting Table.
- Wiggle room: the pan should sit with a little space around it, and tongs or a sling lift it out without burns, as Tasting Table suggests.
3 How Do You Mix the Batter?
Two bowls spread the cocoa and baking powder evenly through the flour before any liquid arrives, and adding the wet mixture a little at a time lets you see exactly when the last streaks of flour disappear.
The batter is ready the moment no dry flour shows, because flour that meets liquid starts forming gluten, and a batter stirred past that point bakes into a tighter, tougher cake.
Raw batter is not for tasting, since the CDC lists dough or batter for cakes among the foods not to eat raw, because uncooked flour and raw eggs can carry germs.
4 How Do You Know the Cake Is Done?
The card bakes a 7-inch cake at 320°F for 20 to 22 minutes in a preheated air fryer, within 5 degrees of the 325°F King Arthur uses for its air fryer cakes.
At 20 minutes, a toothpick pushed into the center tells you more than the color of the top does, because it comes out clean when the cake is done. Wet crumbs mean a few more minutes, and because air fryers run differently, rechecking every 2 minutes is a sensible interval.
Tip
When the top is nearly as dark as you like before the middle is done, King Arthur says foil over the cake slows the browning. The same guide prefers a heat-safe lid or heat diffuser, because the fan can blow foil around.
Several minutes past a clean pick dry the edges out, while a center that sinks after cooling usually came out too early.
For its own chocolate cake, Super Golden Bakes reads 205 to 210°F in the center as a second check. That blog also rests each cake in its pan for 5 minutes before turning it out onto a rack, while the card moves the cake from the air fryer to a cooling rack.
Once the cake has cooled completely on the rack, it slices cleanly and holds a topping, while a warm one melts whipped cream and ganache on contact.
5 What Goes Wrong With an Air Fryer Cake?
Why Is the Top Dark and the Middle Wet?
If the top darkens while the middle stays wet, the heat is coming from above, and a deep cake can brown before the middle sets, which is how Super Golden Bakes explains a wet center. A smaller pan finishes sooner, because King Arthur says smaller cakes bake more quickly and evenly than larger ones.
Warning
Foil or parchment laid loose on top of the cake can be pulled up into the heating element. The safer way is to crimp the foil tightly around the pan rim or pin it down with air fryer magnets, as Super Golden Bakes does.
Why Does the Cake Dome and Crack?
If your cake domes and cracks, the crust set while it was still rising. Food Republic names a pan that is too small and heat that is too high as the causes, and GE Appliances adds overmixing and too little liquid.
An oven set about 10°F lower, with the bake time adjusted, is Food Republic's fix, and it is only a starting idea for a 320°F air fryer because that source covers ovens.
If a dome has already formed, you can trim it flat with a serrated knife and frost the cake cut side down, as Food Republic does.
Why Is the Cake Dense or Dry?
- Dense and tight: overmixing, or baking powder past its date.
- Dry and crumbly: overbaking, or too much flour.
A cup of flour weighs about 120 grams when you fluff it, spoon it into the cup and level it, and King Arthur says a packed cup can hold up to 160 grams. Too much flour is a common cause of a dry cake, according to Super Golden Bakes.
A tin past its date that you cannot replace today has baking soda and acid swaps to fall back on.
6 How Do You Top and Change It?
This cake works plain, and the card suggests a dusting of powdered sugar or a drizzle of chocolate sauce for a finish.
- For more chocolate, chocolate chips work at about ½ cup as a starting amount.
- Walnuts or pecans, about ⅓ cup chopped, fold into the batter for crunch.
- Fresh berries on each slice add a fruity contrast.
- Chocolate ganache or Swiss buttercream gives a glossy finish.
A toothpick that hits a melted chocolate chip or a nut comes out streaked even when the cake is done, which is why you test a spot between add-ins.
Softly whipped cream goes on slice by slice at serving time, which leaves the rest of the cake plain and able to stay at room temperature.
Whipped coconut cream replaces dairy whipped cream on top, though the batter itself holds ½ cup of milk and 2 eggs and the slice is still not dairy-free. The cream goes on at the table because it softens as it warms.
A sharp knife dipped in hot water and wiped dry between cuts gives clean slices, a trick from Super Golden Bakes.
7 Can You Double It or Bake Two Layers?
A doubled batch in the same pan makes a deeper cake, and a deeper cake is the one that browns before it sets. Two shallower layers solve that, according to Super Golden Bakes.
Two layers baked one after the other fit the basket: Super Golden Bakes bakes two 8-inch layers one at a time at 320°F for 22 to 24 minutes each, and starts checking the second at 20 minutes because it may bake faster.
For a layer cake, you bake a second 7-inch pan of this batter the same way, and a toothpick at 20 minutes decides because the card gives no separate time for a second round. The extra batter waits in its bowl for the 22 or so minutes of the first bake, well inside the one hour that batter can sit before it belongs in the refrigerator.
8 Can You Make It Ahead?
You can bake the cake a day early, as Super Golden Bakes does with its layers, or hold the batter for a few hours, and each one waits in a different place.
- Baked cake: a day ahead, cooled and wrapped in plastic wrap at room temperature.
- Batter for a few hours: it baked as well as fresh batter in King Arthur tests.
- Batter overnight: it still made decent cake in the same tests, though all three cakes came out shorter, two by about 15% and the chiffon cake by about 25%.
Raw eggs in this batter make the refrigerator the place for any wait past one hour. King Arthur adds that batter leavened with double-acting baking powder holds up over time better than batter leavened with baking soda alone, and the card names only baking powder, which makes the tin's label the place to check.
9 How Do You Store Leftover Cake?
The card keeps plain cake in an airtight container at room temperature for up to 3 days. USDA FoodKeeper's nearest category, commercial cakes and muffins, lists 3 to 7 days in the pantry and 6 months in the freezer.
That FoodKeeper entry also lists 7 to 10 days in the refrigerator after opening, a store-bought figure. A home-baked cake keeps to the card's 3 days at room temperature, and no refrigerator time is sourced for it.
- Wrap: a cooled, unfrosted cake goes into plastic wrap and then foil, the method Splash of Taste uses.
- Time: Illinois Extension lists baked cake at 2 to 4 months unfrosted and 1 month frosted at 0°F, a closer guide to home baking than FoodKeeper's 6 months for commercial cake.
- Thaw: wrapped, overnight in the refrigerator, as Super Golden Bakes does, and you frost it after the thaw.
Cake with whipped cream on it goes into the refrigerator after serving, because Oklahoma State Extension says whipped cream frostings cannot sit out on the counter for more than 2 hours, and cream cheese icings belong in the refrigerator too.
A cake finished with ganache or Swiss buttercream is safest in the refrigerator as well, and you get the softest crumb by letting slices sit at room temperature for a short while.
Frequently Asked Questions
Yes, the card preheats to 320°F before the batter goes in. An air fryer reaches temperature in a couple of minutes, against 25 to 30 for an oven, according to King Arthur.
Yes, when the pan fits the basket with a gap on every side. Silicone sides pull away from the cake easily, as Tasting Table notes, and Recipe This peels the pan off once the cake is cool enough to handle. A flexible pan sags when lifted full, which makes the basket the place to pour the batter.
Yes, but the card has air fryer times only, and 320°F for 20 to 22 minutes belongs to the air fryer. The oven settings Super Golden Bakes gives belong to its own two 8-inch layers: 320°F for 22 to 24 minutes each in the air fryer, and 350°F for 23 to 25 minutes in the oven with both layers together.
The card makes 8 servings, one slice each, and estimates 272 calories per slice with 41 g of carbohydrate, 5 g of protein, 12 g of fat and 26 g of sugar. The estimate shifts with the topping you choose.
Easy Air Fryer Chocolate Cake
Equipment
- Air-fryer
- Mixing bowls
- Whisk or Electric Mixer
- 7-inch Round Air Fryer Cake Pan
- Cooling Rack
Ingredients
- 1 cup all-purpose flour
- 1 cup sugar
- ½ cup cocoa powder
- 1 ½ teaspoons baking powder
- ½ teaspoon salt
- 2 large eggs
- ½ cup milk
- ⅓ cup vegetable oil
- 1 teaspoon vanilla extract
Instructions
- Preheat your air fryer to 320°F.
- In a mixing bowl, sift together the flour, sugar, cocoa powder, baking powder, and salt.
- In another bowl, beat the eggs, then add the milk, vegetable oil, and vanilla extract. Mix until smooth.
- Gradually add the wet ingredients to the dry ingredients, mixing until just combined.
- Grease your air fryer cake pan and pour in the batter.
- Air fry for 20-22 minutes, or until a toothpick inserted into the center comes out clean.
- Remove the cake from the air fryer and let it cool on a cooling rack before slicing and serving.
Notes
- Cooking times may vary based on the model of your air fryer.
- Store any leftovers in an airtight container at room temperature for up to 3 days.
- For an extra special touch, dust the top with powdered sugar or drizzle with chocolate sauce before serving.
Nutrition
Sources
- USDA FoodKeeper
- CDC: Raw Flour and Dough
- Oklahoma State Extension: Food Safety Is a Must for Holiday Baking
- University of Illinois Extension: Freezer Storage
- GE Appliances: Common Cake Baking Problems
- King Arthur Baking: How to Bake Cake in Your Air Fryer
- King Arthur Baking: Dutch-Process vs. Natural Cocoa
- King Arthur Baking: Oil for a Moist, Rich Cake
- King Arthur Baking: How to Measure Flour
- King Arthur Baking: Resting Cake Batter
- Super Golden Bakes: Air Fryer Chocolate Cake
- Splash of Taste: Air Fryer Chocolate Cake
- Recipe This: Air Fryer Cake
- Tasting Table: 8 Tips for Baking a Cake in an Air Fryer
- Food Republic: The Baking Mistake That Causes Domed Cakes

Andrew Gray is a seasoned food writer and blogger with a wealth of experience in the restaurant and catering industries. With a passion for all things delicious, Andrew has honed his culinary expertise through his work as a personal chef and caterer.
His love for food led him to venture into food writing, where he has contributed to various online publications, sharing his knowledge and insights on the culinary world. As the proud owner of CooksCrafter.com, Andrew covers a wide range of topics, including recipes, restaurant reviews, product recommendations, and culinary tips.
Through his website, he aims to inspire and educate fellow food enthusiasts, offering a comprehensive resource for all things food-related.









