Air Fryer Chocolate Cake

4.86 from 7 votes
Jump to Recipe

This post may contain affiliate links. Please read our disclosure policy.

Make the BEST Air Fryer Chocolate Cake – moist, rich and incredibly delicious. This easy chocolate cake recipe is foolproof and perfect for beginners. Add my rich chocolate ganache frosting and prepare to swoon!

Buttermilk and a splash of oil keep the crumb soft for days, and the ganache is whipped up from cream, chocolate chips and a spoonful of golden syrup, so you can pipe it, spread it or swirl it on with a textured scraper. It makes a proper celebration cake from an appliance most of us already have on the counter.

Air fryer chocolate cake covered in swirled chocolate ganache and chocolate shavings on a dark plate with a vintage cake knife.

I’ve recently retested and updated this recipe following comments from readers. It now bakes as two layers rather than one deep cake, which is easier and stops the cake from drying out while you wait for the middle to cook. Each layer takes about 22 minutes and the cake bakes evenly and stays beautifully moist.

Easy Air Fryer Bakes cookbook by Lucy Parissi

Love baking in your air fryer?

My cookbook, Easy Air Fryer Bakes, will show you how to harness the power of baking in the air fryer and achieve anything from pavlovas and celebration cakes to decadent desserts, savory bakes and even bread. Order now

My cookbook, Easy Air Fryer Bakes, covers everything from pavlovas and celebration cakes to savory bakes and bread. Order now

Here’s What You’ll Need

You will need two 8-inch cake pans that fit inside your air fryer basket. I bake in a Cosori 5.8-quart air fryer, which takes one 8-inch cake pan at a time. If your air fryer model has a narrower basket, you can use 7-inch cake pans – the layers will be a little deeper and the baking time just a smidge longer.

  • All-purpose flour (plain flour): Weigh it if you can – too much flour is the main cause of a dry cake.
  • Baking powder and baking soda (bicarbonate of soda): The soda reacts with the buttermilk for a lighter crumb. Check both are in date.
  • Salt: Just ¼ teaspoon to bring out the chocolate flavor.
  • Unsweetened cocoa powder: Break up any lumps before it goes in – sift it if it looks lumpy.
  • Light brown sugar: Adds moisture and a gentle caramel note that suits the chocolate.
  • Unsalted butter: It should be firm, not softened, so that it rubs into the dry ingredients coating the flour. You can use butter, or baking spread, straight from the fridge.
  • Large eggs: Room temperature eggs work best. UK readers should use medium eggs – a US large egg weighs about 50g out of the shell, the same as a UK medium.
  • Buttermilk and vegetable oil: Keep the cake tender and moist with a soft, tender crumb.
  • Vanilla bean paste: Or vanilla extract.
  • Semi-sweet chocolate chips: Use good-quality chocolate for best results.
  • Heavy cream (double cream): Use cream that’s at least 40% fat.
  • Golden syrup: Sweetens the ganache, enhances its shine and makes for a softer set, so it pipes and spreads easily.
  • Unsalted butter: For a silky texture.
  • Sea salt: Just a pinch to round out the chocolate.

Ingredient Swaps

  • No buttermilk? Stir 1½ teaspoons of lemon juice into ½ cup (120ml) milk and leave it for 5 minutes.
  • Self-rising flour (self-raising flour): Use it in place of the all-purpose flour and leave out the baking powder.
  • Sugar: Superfine (caster) sugar works instead of light brown sugar – the cake will be a little lighter in color.
  • Golden syrup: Light corn syrup or honey both work in the ganache.
  • Dairy-free: For a cake without dairy, try my Vegan Chocolate Cake instead.

Cups or grams?

My conversion calculator switches between cups, grams and ounces for flour, sugar, butter and more.

A slice of two-layer air fryer chocolate cake with a thick ganache filling on a blue and white floral plate.

How to Make Air Fryer Chocolate Cake

Make the Chocolate Ganache

  1. Add the cream, golden syrup, butter and salt to a saucepan and heat until small bubbles appear around the edge of the pan – don’t let it boil.
  2. Take the pan off the heat, add the chocolate chips and leave for 5 minutes. Stir gently from the center outward in small circles until the ganache is smooth and glossy.
  3. Press plastic wrap onto the surface and leave to set at room temperature for 4–5 hours or overnight. Don’t refrigerate it – that makes the ganache hard and dulls the shine.
Adding chocolate chips to warm cream and golden syrup, then stirring into a glossy chocolate ganache.

Make-ahead tip

Start the Ganache the Day Before

The ganache needs 4–5 hours to firm up to a spreadable consistency, so I make it the evening before. The next day you only need to bake the layers, let them cool and frost the cake.

Make the Cake Batter

  1. Preheat the air fryer to 320°F (160°C). Mist two 8-inch cake pans with cake release and line the bottoms with parchment paper or reusable liners.
  2. Add the dry ingredients – flour, light brown sugar, baking powder, baking soda, salt and cocoa powder – to a large mixing bowl (or the bowl of a stand mixer) and stir to combine.
  3. Add cubed butter and beat with an electric mixer on low speed until the mixture looks like damp sand.
  4. Add the buttermilk, oil, vanilla and eggs. Beat on low speed to combine, then increase the speed and beat until smooth and glossy. Stop and scrape down the bottom and sides of the bowl as needed.
Four steps mixing chocolate cake batter: dry ingredients stirred, eggs and buttermilk added, butter beaten in until sandy, then beaten until smooth.

Bake in the Air Fryer

  1. Divide the batter evenly between the two pans and level the tops.
  2. Place one cake pan in the air fryer basket and bake for 22–24 minutes, until the cake feels springy and a toothpick inserted into the center comes out clean.
  3. Bake the second layer the same way. Check it a little earlier – the air fryer is already hot, so the second cake may bake slightly faster.
  4. Leave each cake in its pan for 5 minutes, then turn out onto a wire rack.
Chocolate cake layer going into the air fryer basket, then tested with a toothpick after baking.
  1. While the layers are still warm, brush the tops with a little simple syrup or Baileys. It soaks in as the cakes cool, adding flavor and keeping the crumb extra moist. This step is optional but makes a big difference! Cool the cakes completely before assembling the cake.
Brushing a warm chocolate cake layer with syrup on a wire cooling rack.

Baker’s tip

Why Two Layers Bake Better Than One

In an air fryer the heat comes from the top, so a single deep cake browns on top long before the middle is done. Two shallower layers bake through evenly in a fraction of the time, which means no foil cover and no sunken, underbaked center.

Fill and Frost Your Chocolate Cake

  1. Stir the ganache with a spatula to loosen it. If it is too thick to spread or pipe, beat in a little warm cream, a spoonful at a time. You can use an electric mixer at low-medium speed if you like but don’t overbeat.
  2. Spread a generous layer of ganache over the bottom cake layer and level it. Top with the second layer.
  3. Cover the whole cake with a thin layer of ganache (the crumb coat) and chill briefly if you have time so it sets.
  4. Cover with more ganache and smooth the sides – or use a textured scraper for ridges.
Spreading chocolate ganache over a cake layer, then piping ganache rosettes on top of the frosted cake.
  1. Pipe the rest on top and finish with sprinkles, chocolate truffles or chocolate shavings.
Two-layer air fryer chocolate cake with ridged ganache sides and piped chocolate rosettes on top, on a granite cake board.

Tips for the Best Air Fryer Chocolate Cake

  • Check early: Air fryers run hot or cool depending on the brand, so start checking at 20 minutes.
  • Trust the toothpick, not the top: The top can look done before the middle is. Bake until a toothpick comes out clean, or the center reads 205–210°F (96–98°C) on an instant-read thermometer.
  • Cool completely: Ganache on a warm cake will slide off and turn greasy.
  • Cut thin slices: It is a very rich cake – 10–12 slices is plenty.
  • Use a warm knife: For neat slices, dip a long, sharp knife in hot water, wipe it dry and cut. Wipe and warm the blade again between slices so the ganache doesn’t drag.

Baker’s tip

How to Cut Neat Slices

Cut the cake in half, then cut thin slices across each half, parallel to the cut edge. Halve each long slice to make neat, even pieces that show off every layer – and you’ll get more slices than cutting wedges.

1Cut in half2Slice across3Halve each slice4Serve neat pieces
Air fryer chocolate cake cut open to show two moist chocolate sponge layers sandwiched with ganache, on a granite cake board.

Variations

  • Baileys ganache: For a grown-up version, use 1¼ cups (310ml) heavy cream plus ⅓ cup (80ml) Baileys in place of the 1½ cups (375ml) cream. Add the Baileys in with the cream. You can also use Baileys to loosen the ganache if needed.
  • Chocolate buttercream: Short on time? Swap the ganache for the quick chocolate buttercream in the recipe card – it needs no setting time, so you can frost as soon as the layers are cool.
  • Baileys-soaked layers: Brush the warm cakes with Baileys instead of simple syrup to match.
  • Decorations: Finish with sprinkles, chocolate truffles, chocolate shavings or birthday candles.

Storage, Make-Ahead and Freezing

  • Store: Keep the frosted cake covered at room temperature, away from direct sunlight, for up to 3 days.
  • Make ahead: Bake the layers a day ahead, cool, wrap in plastic wrap and keep at room temperature. Make the ganache the evening before.
  • Freeze: Freeze the unfrosted layers, or the frosted cake whole or in slices, well wrapped in an airtight container for up to 3 months. Thaw overnight in the fridge.
Air fryer chocolate cake with ridged ganache frosting, piped chocolate rosettes and lit white and gold twisted birthday candles.

What readers say

“I just made this, me and my mom loved it. Thanks for the recipe, it was my first time making a cake.”

Gautham

A hand lighting twisted birthday candles on a two-layer air fryer chocolate cake with ridged chocolate ganache frosting.

You’ll Also Love…

  • Air Fryer Vanilla Cake: The vanilla sister to this cake and the one to make if you want a plain sponge. It is a great base for buttercream, jam or fresh berries.
  • Air Fryer Brownies: Fudgy, crackly-topped brownies for when you want chocolate without frosting a layer cake. A small batch is ready in no time.
  • Air Fryer Chocolate Cupcakes: All the flavor of this cake in individual portions. Ideal for kids’ parties and bake sales.
  • Air Fryer Gingerbread Cake: A cozy, spiced cake for the holidays. It keeps beautifully, so you can bake it a few days ahead.

Browse all my Air Fryer Baking Recipes for more cakes, breads and cookies you can make in your air fryer.


Please leave a comment and rating if you try my Air Fryer Chocolate Cake recipe, follow me on Pinterest for more easy recipes and don’t forget to tag me on @Instagram or TikTok so I can see your creations!

4.86 from 7 votes

Air Fryer Chocolate Cake

A moist, rich two-layer chocolate cake baked in the air fryer and covered in a glossy chocolate ganache – no foil and no raw middle.
Prep Time: 15 minutes
Cook Time: 45 minutes
Total Time: 1 hour
Servings: 10 – 12 slices
Save this recipe!
Get this sent to your inbox, plus get new recipes from us every week!

Video

Ingredients

For the Cake

  • 2 cups (260g) flour all-purpose / plain flour
  • 1 tsp baking powder
  • ½ tsp baking soda (bicarbonate of soda)
  • ½ cup (50g) cocoa powder
  • ¼ tsp salt
  • 1 ¼ cups (250g) light brown sugar
  • ½ cup (115g) unsalted butter cubed
  • 2 large eggs room temperature (UK medium, about 50g each without the shell)
  • ½ cup (120ml) buttermilk
  • 3 tbsp vegetable oil
  • 2 tsp vanilla bean paste or extract
  • 4 tbsp sugar syrup or Baileys (optional)

Chocolate Ganache Frosting

  • 1 ½ cups (375ml) heavy cream (= double cream) plus extra, if needed
  • 2 cups (350g) semi-sweet chocolate chips
  • ⅓ cup (100g) golden syrup or light corn syrup or honey
  • ¼ cup (65g) unsalted butter softened
  • 1 pinch sea salt

Chocolate Buttercream (alternative to the ganache)

  • 1 cup (175g) semi-sweet chocolate chips
  • ½ cup (115ml) light cream (single cream)
  • 6 tbsp unsweetened cocoa powder
  • 2 cups (240g) powdered sugar (icing sugar)
  • ⅔ cup (150g) unsalted butter softened
  • 2 tbsp hot coffee optional
  • 1 tsp vanilla extract

To decorate (optional)

  • 3 tbsp chocolate shavings

Instructions 

Make the chocolate ganache

  • Add the cream, golden syrup, butter and salt to a saucepan and heat until small bubbles appear around the edge of the pan – be careful not to bring to a boil.
    1 ½ cups (375ml) heavy cream, ⅓ cup (100g) golden syrup, ¼ cup (65g) unsalted butter, 1 pinch sea salt
  • Take the pan off the heat and add the chocolate chips. Rest for 5 minutes.
    2 cups (350g) semi-sweet chocolate chips
  • Use a long, narrow spatula to stir gently from the center outward, moving in very small circles, until the chocolate has melted and the ganache is glossy and smooth.
  • Cover the surface with plastic wrap and leave to cool at room temperature for 4–5 hours or overnight. Do not refrigerate – this can make the ganache hard and dull its shine.

Or make the chocolate buttercream (instead of the ganache)

  • Put the chocolate chips and cream in a heatproof bowl and microwave for 40–50 seconds. Leave for a couple of minutes, then stir until smooth and let it cool slightly.
    1 cup (175g) semi-sweet chocolate chips, ½ cup (115ml) light cream
  • Sift the powdered sugar and cocoa powder into a mixing bowl (or the bowl of your stand mixer).
    2 cups (240g) powdered sugar, 6 tbsp unsweetened cocoa powder
  • Add the softened butter and some of the melted chocolate and beat on low speed. Gradually add the rest of the chocolate, the coffee (if using) and vanilla, and beat until the frosting holds peaks. Use it in place of the ganache to fill and frost the cake.
    ⅔ cup (150g) unsalted butter, 2 tbsp hot coffee, 1 tsp vanilla extract

Make the cake

  • Preheat the air fryer to 320°F (160°C). Mist two 8-inch cake pans with cake release and line the bottoms with parchment paper or reusable liners.
  • Add the flour, light brown sugar, baking powder, baking soda, salt and cocoa powder to a large mixing bowl (or the bowl of your stand mixer) and stir to combine.
    2 cups (260g) flour, 1 tsp baking powder, 1/2 tsp baking soda, ½ cup (50g) cocoa powder, 1 ¼ cups (250g) light brown sugar, ¼ tsp salt
  • Add the butter and beat on low speed using a hand or stand mixer. You want to achieve a sandy texture.
    ½ cup (115g) unsalted butter
  • Add the eggs, buttermilk, oil and vanilla and beat once more until the batter is glossy and smooth. Scrape the sides and bottom of your mixing bowl with a spatula to make sure the ingredients are well blended.
    2 large eggs, ½ cup (120ml) buttermilk, 3 tbsp vegetable oil, 2 tsp vanilla bean paste
  • Divide the batter between the prepared pans and level.

Bake (in batches)

  • Place the first pan into the air fryer basket. Bake for 22–24 minutes, or until the cake feels springy to the touch and a toothpick inserted in the center comes out clean.
  • Leave the cake in the pan for five minutes then invert onto a wire rack. Brush the warm cake with sugar syrup or Baileys for extra flavor if you like.
    4 tbsp sugar syrup
  • Bake the second cake layer, checking a few minutes early as it may bake faster. Cool the cake layers before assembling the cake.

Fill and frost

  • Mix the ganache with a spatula to loosen it. If it is too thick to pipe or spread, gradually add a little warm cream and mix again or whisk using a hand mixer.
  • Spread a generous layer of ganache over the bottom cake layer and level.
  • Top with the second layer and cover the entire cake with a thin layer of ganache. If you have time, chill the cake so the crumb coating can set.
  • Cover the cake with more ganache and smooth the sides (or use a textured scraper if you like).
  • Pipe the remaining ganache over the top of the cake and decorate with sprinkles or chocolate truffles or chocolate shavings. Cut into thin slices – it is VERY RICH – and enjoy!
    3 tbsp chocolate shavings

Notes

  • Make ahead: You can bake the cake layers up to a day ahead. Leave them to cool then wrap with plastic wrap and store at room temperature. The ganache can also be made up to two days ahead and stored, covered, at room temperature.
  • Storage: The cake will stay lovely and moist for a few days. Store at room temperature away from direct sunlight in a covered cake container. 
  • Can I bake it in the oven? You can use the oven to bake the cake if you prefer. Bake both layers at the same time at 350°F (180°C) for 23–25 minutes, until a toothpick inserted into the center comes out clean or the middle reads 205–210°F (96–98°C) on an instant-read thermometer.
  • Tip: Use a peeler to make chocolate shavings by scraping against the side of a chocolate bar.
  • Short on time? Use the chocolate buttercream instead of the ganache – it needs no setting time, so you can frost the cake as soon as the layers are cool.

Nutrition

Calories: 807kcal | Carbohydrates: 87g | Protein: 9g | Fat: 49g | Saturated Fat: 30g | Polyunsaturated Fat: 2g | Monounsaturated Fat: 13g | Trans Fat: 1g | Cholesterol: 131mg | Sodium: 284mg | Potassium: 483mg | Fiber: 6g | Sugar: 59g | Vitamin A: 1219IU | Vitamin C: 0.3mg | Calcium: 130mg | Iron: 5mg

Nutritional information is always approximate, and will depend on quality of ingredients and serving sizes.

Like this recipe? Leave a comment below!

Frequently Asked Questions

Can you bake a cake in an air fryer?

Yes. An air fryer works like a small convection oven, so it bakes cakes well as long as the pan fits in the basket with a little space around it for the air to circulate. Bake at a lower temperature than you would expect, 320°F (160°C), so the top doesn’t brown before the middle is done.

How long does a chocolate cake take in the air fryer?

Each 8-inch layer takes 22–24 minutes at 320°F (160°C). Air fryers vary, so start checking at 20 minutes and bake until a toothpick inserted into the center comes out clean.

Why is my air fryer cake raw in the middle?

The heat in an air fryer comes from above, so a deep cake browns on top while the center is still wet. Baking two shallower layers solves this. Always test the middle with a toothpick, or check it reaches 205–210°F (96–98°C), and leave the cake in the pan for 5 minutes before turning it out.

Do I need to cover the cake with foil?

Not with this recipe – the shallower layers bake through before the tops get too dark. If your air fryer browns very quickly, cover the pan with foil crimped tightly around the rim, or pin it down with air fryer magnets, so it can’t lift up into the fan. Never lay foil or parchment loosely on top.

What size air fryer do I need?

You need a basket that holds an 8-inch cake pan with a little room around it. I use a 5.8-quart basket air fryer.

Can I make a vanilla cake with this recipe?

For a vanilla version, use my Air Fryer Vanilla Cake – simply leaving out the cocoa changes the balance of the recipe.

Can I bake this cake in the oven?

Yes. Bake both layers at the same time in a preheated oven at 350°F (180°C) for 23–25 minutes, until a toothpick inserted into the center comes out clean or the middle reads 205–210°F (96–98°C) on an instant-read thermometer.

Troubleshooting

ProblemCauseFix
The middle is wet or sunkUnderbaked, or the cake went in too deepBake until a toothpick comes out clean, use two layers rather than one deep cake, and rest it in the pan for 5 minutes before turning out.
The top is too darkAir fryer runs hot or the pan sits close to the elementCheck from 20 minutes. If it still browns fast, cover with foil crimped tightly around the rim or pinned down with air fryer magnets – loose foil can be blown into the heating element.
The cake is dryToo much flour or overbakedWeigh the flour and start checking a few minutes early.
The ganache is too stiffFridge-chilled, or a cool kitchenBeat in a little warm cream, a spoonful at a time.
The ganache is runnyNot set long enoughLeave it at room temperature for longer – it can take up to 5 hours.
The ganache looks grainy or splitThe cream was boiling when the chocolate went inStir in a spoonful of warm cream, gently, from the center outward until smooth.

November 2026: Recipe retested and updated. The cake is now baked as two layers, which is easier and keeps it from drying out, and it has a new chocolate ganache frosting. Added a Baileys variation, tips, FAQs and troubleshooting.

You may also like:

4.86 from 7 votes (7 ratings without comment)

Leave a comment

Your email address will not be published. Required fields are marked *

Recipe Rating




6 Comments

  1. Gautham says:

    I just made this, me and my mom loved it. Thanks for the recipe, it was my first time my making a cake.

    So if I wanted to make vanilla cake, could I just remove the cocoa powder and slightly increase the amount of flour, and then continue with the rest of the same recipe? or would there be more changes to be made?

  2. Coralee says:

    I am just making this cake for the second time, it takes way longer than 45 min, the first time it took 1 hour 20 min, I had also covered the sides of the tin with wet paper towles and then put foil over that as well as the foil on the top, the cake was amazing, moist and nice evenly cooked cake, this time I have only covered the top, and I am at 65 mins and it’s still very runny in the middle, it will be interesting to see if it is still evenly cooked without covering the sides

    1. Lucy Parissi says:

      Hi Coralee – I know air fryers can vary so this is not that unusual.

  3. Martin Pugh says:

    Hello there, I’m new to baking with an air fryer and have tried twice to make this recipe and failed. There outer part of the cake was amazing both in texture and taste however, the centre was only partially baked and collapsed when cooling. On my first bake I didn’t tighten the foil enough and it came away from the tin and rose up to the fan. I thought that this may have been the problem so the second time I used a perforated silicone lid which stayed in place. Unfortunately I had the same result. Do you have any pointers as to what I could be doing wrong please? I’m using a Ninja Foodi 9 in 1

    TIA

    Martin

    1. Lucy Parissi says:

      Hi Martin – this issue is due to the way air circulates in the air fryer. Since it comes from the top only the top of the cake browns quickly and looks done when the interior still has a way to go. My advise would be to only take the cake out when a tester (a skewer or toothpick) comes out completely clean. A better way to make sure the cake is properly baked is to use an instant read thermometer such as a Thermapen to check the middle of the cake reaches 98°C (210°F).
      When the cake has finished baking take the air fryer basket out but leave the cake tin in it for 5 minutes before turning the cake out. Hope this helps.