This air fryer chocolate cake is the one I make when I want a real, frosted layer cake without heating up the whole kitchen. It starts with a box of Devil’s Food cake mix, but a few bakery tricks (extra flour, Dutch-processed cocoa and a full cup of sour cream) turn it into a tall, moist chocolate cake that nobody will guess came from a box.

The layers bake at a gentle 320°F in about 12 to 15 minutes each, then get stacked with an easy whipped-up chocolate frosting. If you have ever wondered whether you can bake a cake in an air fryer, this is the recipe to start with.
Why This Air Fryer Chocolate Cake Stays So Moist
- Sour cream adds fat and a little tang, which keeps the crumb soft for days.
- Extra flour gives the batter more structure, so the layers rise tall and do not sink in the middle.
- Dutch-processed cocoa deepens the chocolate flavor and color. It is less acidic than natural cocoa, so it tastes smoother.
- 320°F, not 350°F. Air fryers circulate heat fast. A lower temperature lets the center bake through before the outside gets dark and dry.
If you would rather skip the frosting and layers, my basic air fryer cake made with any boxed mix walks you through a single-pan version.
Ingredients You’ll Need

For the cake
- Devil’s Food Cake Mix: The rich, dark chocolate base for this moist cake.
- All-Purpose Flour: Adds structure so the tall layers bake evenly.
- Dutch-Processed Cocoa Powder: Deepens chocolate flavor with a smoother, less bitter taste.
- Eggs: Room-temperature large eggs bind the batter and add lift.
- Canola Oil: A small amount keeps the crumb soft and tender.
- Water: Thins the batter to the right pourable consistency.
- Pure Vanilla Extract: Rounds out and boosts the deep chocolate flavor.
- Sour Cream: The secret to a super moist, tender chocolate cake.
For the frosting
- Chocolate Frosting: One store-bought can makes a quick, reliable base.
- Powdered Sugar: Thickens the frosting so it holds between layers.
- Unsalted Butter: Softened butter makes the frosting richer and fluffier.
- Pure Vanilla Extract: A splash gives canned frosting a homemade taste.
The exact amounts are in the printable recipe card below.
What Size Pan Fits in an Air Fryer?
Pan size is the biggest reason air fryer cakes fail. Measure the inside of your basket before you start; the pan needs about half an inch of space on every side so hot air can circulate.
- Basket air fryers (5 to 6 quart): Most fit a 6-inch or 7-inch round pan. I bake this cake in two 7-inch pans, one layer at a time.
- Large baskets and air fryer ovens: These usually fit 8-inch pans, and some fit both at once.
- Use thin metal pans. Heavy or dark, thick pans keep the middle raw while the edges overbake.
A reader asked if a bundt pan works instead of two round pans, and it does. A bundt pan is actually forgiving in the air fryer because the hole in the center helps the middle bake evenly. My air fryer chocolate bundt cake shows how.
How to Make Chocolate Cake in the Air Fryer

Step 1: Prep the pans. Grease and flour two 7-inch round cake pans, or coat them with baking spray with flour.
Step 2: Mix the batter. In a large bowl, add the cake mix, flour, cocoa powder, eggs, oil, water and vanilla. Beat on low for 1 minute, then on medium for 2 minutes. Scrape down the bowl and mix briefly again.

Step 3: Fold in the sour cream. Use a spatula and stop as soon as no white streaks remain.
Step 4: Fill the pans. Divide the batter evenly, filling each pan about two-thirds full.
Step 5: Air fry. Set the air fryer to 320°F and bake each layer for 12 to 15 minutes. If both pans do not fit, bake one at a time; the second pan of batter can wait on the counter.

Step 6: Test for doneness. A toothpick in the center should come out with a few moist crumbs. If it is wet, keep baking and check every 3 to 5 minutes.
Step 7: Cool completely. Let the layers cool in the pans for 10 minutes, then turn them out onto a rack. Warm cake melts frosting.

How to Make the Chocolate Frosting
This frosting starts with a can of store-bought frosting and makes it thicker and richer, so it holds up between layers.
- Add the canned frosting, softened butter, powdered sugar and vanilla to a bowl.
- Beat on low until combined, then on medium until fluffy, about 2 minutes.
- Too soft? Beat in more powdered sugar a few tablespoons at a time.
If you prefer homemade, my small-batch chocolate buttercream frosting is a great swap.
How to Frost a Layer Cake
- Set the bottom layer on a cake stand and spread about 1/4 cup of frosting over the top.
- Add the second layer and spread another 1/4 cup over it.
- For the cleanest finish, spread a thin “crumb coat” over the sides and top, then chill for 30 to 60 minutes.
- Finish frosting the top and sides with the rest.

Tips for the Best Air Fryer Chocolate Cake
- Center is raw but the top is done: Your pan is too thick or too full. Lay a piece of foil loosely over the top and keep baking.
- Top domed or cracked: The temperature ran hot. Drop to 300°F next time; air fryers vary.
- Cake is dry: It baked too long. Start checking at the earliest time, every air fryer runs differently.
- Sift the dry ingredients: Cake mix, flour and cocoa clump. Sifting gives a lighter, more even crumb.
- Do not open the basket constantly: Each peek lets heat escape and can make the center sink.
Want a Chocolate Cake for One?
You do not need a whole layer cake to get a chocolate fix. My air fryer chocolate cake mix mug cake uses just a few spoonfuls of cake mix and bakes in one mug. If you are out of eggs, try the eggless chocolate mug cake, and for something fudgier, the air fryer brownie recipe for one is ready in minutes.
Prefer a From-Scratch Chocolate Cake?
This recipe is all about the doctored mix shortcut. If you want to bake without a box, my air fryer one bowl chocolate cake comes together in a single bowl, and the air fryer devil’s food cake uses hot coffee for an even deeper chocolate flavor. Baking for a crowd? Try my air fryer chocolate cupcakes.

How to Store Air Fryer Chocolate Cake
- Room temperature: Cover the frosted cake and keep it up to 2 days.
- Fridge: Up to 5 days in an airtight container. Let slices sit out 20 minutes before serving for the softest texture.
- Freezer: Wrap unfrosted layers tightly in plastic wrap, then foil, and freeze up to 1 month. Thaw overnight in the fridge, then frost.
Air Fryer Chocolate Cake FAQs
Can you bake a cake in an air fryer? Yes. An air fryer works like a small convection oven, so cakes bake evenly and quickly. The keys are a pan that fits with room around it and a lower temperature, around 320°F.
What temperature do you bake a cake in an air fryer? I bake cakes at 320°F. Higher temperatures brown the outside before the center sets.
How long does it take to bake chocolate cake in an air fryer? About 12 to 15 minutes per layer, depending on your pan size and air fryer model. Thicker or deeper layers can take longer, so always use the toothpick test.
Can I make this gluten-free? Use a gluten-free chocolate cake mix and a 1-to-1 gluten-free baking flour. Swapping only the flour will not work, because regular cake mix contains wheat.
Can I bake this in the oven instead? Yes. Bake the layers at 350°F, following the time on your cake mix box, until a toothpick comes out with a few moist crumbs.
Can I make it ahead of time? Bake the layers up to 2 days ahead, cool them completely, and wrap them tightly. Frost the day you serve it.

Air Fryer Chocolate Cake
Description
Ingredients
Cake ingredients
- 15.25 ounces Devil's Food cake mix, sifted
- 3/4 cup all-purpose flour, spooned and leveled
- 1/4 cup Dutch-processed cocoa powder, sifted
- 3 large eggs, room temperature
- 1 tablespoon canola oil
- 1 3/4 cups water
- 1 teaspoon pure vanilla extract
- 1 cup full-fat sour cream
Frosting ingredients
- 16 ounces frosting
- 1 cup powdered sugar, plus more as needed
- 2 tablespoons unsalted butter, softened
- 1 teaspoon pure vanilla extract
Instructions
- Grease and flour two round cake pans, or coat them with baking spray with flour.
- In a large bowl, combine the cake mix, flour, cocoa powder, eggs, oil, water and vanilla. Beat on low for 1 minute, then on medium for 2 minutes. Scrape the bowl and mix briefly.
- Fold in the sour cream with a spatula until no streaks remain.
- Divide the batter evenly between the pans, filling each about two-thirds full.
- Place a pan in the air fryer basket (both, if they fit with space around them). Air fry at 320°F for 12 to 15 minutes.
- Insert a toothpick in the center. If it comes out with a few moist crumbs, the layer is done. If the batter is wet, bake 3 to 5 minutes more and test again. Repeat with the second layer if baking in batches.
- Cool the layers in their pans for 10 minutes, then turn them out onto a wire rack to cool completely.
- For the frosting, beat the canned frosting, powdered sugar, butter and vanilla on low until combined, then on medium for about 2 minutes until fluffy. Add more powdered sugar for a thicker frosting.
- Place one layer on a cake stand and spread about 1/4 cup frosting on top. Add the second layer and spread another 1/4 cup on top.
- Optional: spread a thin crumb coat over the whole cake and chill 30 to 60 minutes.
- Frost the top and sides with the remaining frosting. Slice and serve.
Equipment
- two round cake pans that fit your basket, (7-inch used in this recipe)
- stand or hand mixer
- Toothpick or cake tester
- cake stand
Notes
- Every air fryer runs a little differently. Start checking at 12 minutes, and lower the temperature to 300°F if the top browns before the center is set.
- Thin metal pans bake more evenly than thick or glass pans.
- Gluten-free: use a gluten-free chocolate cake mix and a 1-to-1 gluten-free flour.
- Oven method: bake at 350°F using the time on your cake mix box.
- Store covered at room temperature up to 2 days, refrigerated up to 5 days, or freeze unfrosted layers up to 1 month.
Nutrition
Share this recipe
We can’t wait to see what you’ve made! Mention @forktospoon or tag #forktospoon!

Trudy E Perry
I have a question. Can I use a bundt pan instead of 2 8 inch pans?
Laurie
yes, sounds good!
Barb Barker
This makes for a very moist and delicious cake, thank you for the recipe.