Posted on — Leave a comment

Chocolate Banana Cake Recipe: Moist, Easy & From Scratch

Square chocolate banana cake topped with a thin layer of glossy chocolate ganache, with one piece removed to reveal the moist dark crumb.

Those ripe bananas on the counter could become another banana loaf. But if what you’re craving is chocolate cake, use them for this instead.

This is a soft, moist chocolate banana cake with a tender cake crumb and plenty of cocoa. The banana brings sweetness, moisture and a gentle banana flavour, but chocolate still leads. In other words, it eats like chocolate cake with banana in it—not banana bread dressed up with cocoa.

No mixer required. Two bowls, a whisk, a spatula and one 9-inch square pan will do it. The one measurement worth being particular about is the banana: weigh 250g after peeling rather than relying on a banana count.

If banana rather than chocolate is what you want to taste first, our moist banana cake with cream cheese frosting takes that route instead.

Ready to bake? Jump straight to the recipe and method.

Table of Contents

Quick Answer

For a moist chocolate banana cake that stays soft and cake-like, use 250g mashed ripe banana with 190g all-purpose flour and 50g natural cocoa. Bake it in a 9-inch (23cm) square pan at 175°C/350°F for about 35–40 minutes, beginning your first check around 35 minutes. It’s ready when the middle is set and a skewer brings up a few moist crumbs rather than wet batter.

Chocolate Banana Cake Recipe

Prep time: 20 minutes
Bake time: about 35–40 minutes; begin checking at 35 minutes
Cooling time: about 1 hour total
Pan: 9-inch (23cm) square cake pan
Oven: 175°C/350°F conventional or 160°C fan
Yield: 12–16 pieces

Overhead square chocolate cake marked with cutting guides for 12 larger portions and 16 smaller square portions.
For 12 generous portions, cut the cake in a 3-by-4 grid; a 4-by-4 grid gives 16 smaller squares. Wipe the knife between cuts for neat edges.

Ingredients

  • 250g (about 1 cup plus 2 tablespoons) very ripe mashed banana, weighed after peeling
  • 190g (about 1½ cups plus 1 tablespoon) all-purpose flour
  • 50g (about ½ cup plus 1½ tablespoons) unsweetened natural cocoa powder
  • 1 teaspoon baking powder
  • ½ teaspoon baking soda
  • ½ teaspoon fine salt
  • 100g (½ cup packed) light or dark brown sugar
  • 80g (about ⅓ cup plus 1 tablespoon) granulated sugar
  • 100ml neutral oil, such as sunflower, canola or vegetable oil
  • 2 large eggs
  • 120g (½ cup) plain unsweetened yogurt
  • 2 teaspoons vanilla extract

Optional: 85–100g (about ½ cup) dark or semisweet chocolate chips or chopped chocolate.

Weights are the reference measurements; cup amounts are approximate, especially for banana, flour and cocoa.

Method

  1. Heat the oven. Set it to 175°C/350°F conventional or 160°C fan. Lightly grease a 9-inch (23cm) square pan and line the base and two sides with baking paper, leaving enough overhang to lift the cake out later.
  1. Mash the bananas. Mash the peeled fruit until mostly smooth, then weigh out 250g. A few small, soft pieces are perfectly fine; there is no need to turn the banana into a completely smooth purée.
  1. Mix the dry ingredients. Whisk the flour, cocoa, baking powder, baking soda and salt together thoroughly. Break up any stubborn cocoa lumps while you’re there.
  1. Mix the wet ingredients. In a larger bowl, whisk the brown sugar, granulated sugar and oil until combined. Whisk in the eggs, then add the yogurt, vanilla and mashed banana. It may look a little uneven once the banana goes in. That’s normal.
Two mixing bowls containing wet and dry chocolate cake ingredients beside a whisk, spatula and lined square baking pan.
The larger bowl holds the wet ingredients because the dry mixture is folded into it later—less transferring, less mess.

Fold the Batter and Fill the Pan

  1. Make the batter. Add the dry ingredients to the wet mixture and fold with a spatula, scraping around the sides and across the bottom of the bowl. Stop as soon as the flour and cocoa disappear into the batter. It should be fairly thick and spreadable. Fold in the optional chocolate chips or chunks with the final few strokes.
Hand folding thick chocolate cake batter from the bottom of a mixing bowl with a silicone spatula.
Check the bottom of the bowl for hidden streaks of flour or cocoa before you stop folding.

Before moving the batter into the pan, look at how a spoonful falls back into the bowl. This is a useful final texture checkpoint, particularly when the ripeness of your bananas varies.

Thick chocolate batter falling from a spatula and leaving a broad groove that slowly settles in the bowl.
What should chocolate cake batter look like? The trail left by the spatula should hold briefly and then settle slowly. If it disappears instantly, the batter is looser than intended.
  1. Fill the pan. Scrape the batter into the prepared pan, ease it into the corners and level the top. Once it’s even, leave it alone.
Chocolate cake batter being spread into the corners of a parchment-lined square pan with a spatula.
Thick batter can mound in the centre. Check that the corners are filled to a similar depth before baking.

Bake, Test and Cool

  1. Bake. Put the pan on the centre rack and bake for about 35–40 minutes, beginning your first check around 35 minutes. Don’t judge this dark cake by colour alone. The glossy look across the middle should disappear and the surface should look set rather than wet.
  1. Check for doneness. Insert a thin skewer into the middle. A few moist crumbs are enough; liquid batter means it needs a few more minutes. If the skewer is smeared with melted chocolate, test another spot before returning the cake to the oven. You may simply have tested a chocolate chip rather than the cake.
Thin cake skewer held above the centre of baked chocolate cake with a few moist crumbs attached.
Probe the centre rather than the edges. If you added chocolate chips, test two spots to avoid mistaking a melted pocket for raw batter.

A dark streak on the skewer can be misleading when the batter contains chocolate pieces. Compare the examples below before deciding that the whole cake needs more oven time.

Two cake skewers comparing thick wet chocolate batter with a smaller glossy smear of melted chocolate.
A smear from a chocolate chip can resemble wet batter. Test another spot and check that the centre surface is set before baking longer.
  1. Cool. Leave the cake in its pan for about 15 minutes, then lift it onto a rack. Let it cool before slicing, and cool it completely before adding ganache. The crumb settles as the cake cools and slices much more cleanly than it does straight from the oven.

What the Cooled Crumb Should Look Like

Once the cake has cooled, cut a square from near the centre. The exposed crumb tells you more about the result than the dark surface does: it should hold its shape without smearing, crumbling apart or looking unset.

Cut square of plain chocolate banana cake showing a moist, cohesive brown crumb with small and medium air pockets.
A good chocolate banana cake crumb holds together with small, irregular air pockets—softer than a brownie and finer than a banana loaf.

If your finished cake looks wet, gummy or unusually heavy, the troubleshooting guide separates those problems and their likely causes.

A Few Ingredients That Matter

Don’t Count Bananas; Weigh Them

Use bananas that are soft, fragrant and generously speckled with brown. Very dark skins are fine as long as the fruit itself smells fresh and shows no mould or spoilage.

Bananas shown at different ripeness stages, from yellow fruit through heavily brown-spotted bananas to visibly spoiled fruit.
Brown-speckled bananas are usually sweet and soft. Visible mould, rotten flesh or an unpleasant fermented smell means discard.

The recipe uses 250g banana after peeling. That’s more useful than telling you to use “three bananas,” because three small bananas and three enormous bananas are not remotely the same amount of fruit.

Glass bowl of mashed ripe banana sitting on a digital kitchen scale displaying 250 grams.
How full the bowl looks is unreliable. Tare the empty bowl first, then weigh the finished mash rather than relying on banana count.

You don’t need to worry about being a few grams either side. The point is to avoid casually adding a great deal more banana than the recipe was built around. More fruit brings more moisture, and enough extra can make the cake heavier and push it closer to banana bread territory.

Frozen ripe bananas work too. Thaw them completely and keep the liquid they release. Mash the fruit and liquid together, then weigh 250g of the mixture.

Use Natural Unsweetened Cocoa

Use natural unsweetened cocoa here. Dutch-process cocoa has different acidity, so it isn’t a straight swap in this formula. Drinking chocolate isn’t a substitute either; it usually contains added sugar and much less cocoa.

Two bowls comparing natural unsweetened cocoa powder with darker Dutch-process cocoa powder.
Darker cocoa is not automatically the better choice. For this recipe, its acidity matters more than the shade of brown.

If you’re curious about the chemistry, King Arthur Baking explains natural and Dutch-process cocoa in detail. For a chocolate cake without banana in the formula, see our classic moist chocolate cake.

Weigh the Flour if You Can

If you’re measuring the 190g flour by volume, spoon it into the cup and level the top instead of scooping straight from the bag. A heavily packed cup can add considerably more flour and leave the crumb heavier and drier. King Arthur Baking’s flour-measuring guide shows the method clearly.

Flour being spooned loosely into a measuring cup and levelled beside flour packed into a cup by scooping.
A level top can still hide packed flour underneath. Spoon flour loosely into the cup and sweep flat without tapping it down.

This is one place where precision matters. Whether your walnuts later weigh 72g or 78g really doesn’t.

Plain or with Ganache?

Leave the cake plain and you get the simpler version: chocolate-banana squares that are easy to pick up and very much at home beside tea or coffee. A light dusting of cocoa or icing sugar is plenty if you want to dress the top without adding another layer.

Ganache changes the mood. It adds another hit of chocolate and a smooth, rich layer against the cake underneath, so the same square suddenly feels much more like dessert.

Two chocolate banana cake squares shown side by side, one plain and one topped with glossy chocolate ganache.
Choose the plain cake for easy hand-held pieces or the ganache version for a richer plated dessert. Neither is unfinished.

For some tang against the chocolate, our smooth cream cheese frosting is another option. Ganache, though, keeps this particular cake firmly in chocolate territory.

Optional Chocolate Ganache

  • 150g dark or semisweet chocolate, finely chopped
  • 120ml (½ cup) heavy or whipping cream
  1. Put the chopped chocolate in a heatproof bowl.
  1. Heat the cream until steaming and just beginning to simmer around the edges.
  1. Pour it over the chocolate and leave it alone for 2 minutes.
  1. Stir slowly from the centre outwards. It may look streaky at first; keep going gently and it will come together.
  1. Let the ganache cool until thick enough to spread without running straight off the cake.
Three bowls showing chocolate ganache at runny, smoothly spreadable and firm consistencies.
When is ganache ready? A slow ribbon should briefly hold its shape. Runny ganache can spill; very firm ganache is harder to spread without disturbing the cake.
  1. Spread it over the completely cooled cake and give it time to settle before slicing.
Offset spatula gently spreading glossy chocolate ganache from the centre toward the edges of a square cake.
Start in the centre and work outward with a light hand. Pressing too firmly can drag crumbs into the topping.

If the ganache is still running off the spoon, give it more time to cool. If it has gone firmer than you wanted, warm it very gently until it loosens again.

Variations and Substitutions

Bake the basic version once before changing half the bowl.

  • Chocolate chips or chunks: Fold in 85–100g for pockets of melted chocolate through the crumb. Dark or semisweet chocolate keeps the sweetness in check.
  • Toasted walnuts: Add about 75g, roughly chopped. They bring crunch to an otherwise tender cake and work naturally with both banana and chocolate.
  • Espresso powder: Add 1 teaspoon with the dry ingredients. At that amount it deepens the cocoa flavour without making the cake taste obviously of coffee.
Square chocolate cake displayed with dark chocolate pieces, toasted walnuts and espresso powder as three optional variations.
Chocolate brings soft pockets, toasted walnuts bring crunch, and espresso powder strengthens the cocoa impression without changing the crumb much.

Some changes go beyond a casual substitution. Replacing all the oil with butter, cutting the sugar dramatically, removing the eggs or swapping the wheat flour for almond or coconut flour changes the structure of the cake. Those need more than a straight one-for-one exchange.

Troubleshooting Your Chocolate Banana Cake

Dense, gummy and raw are three different problems. Before changing the recipe next time, have a look at what actually happened to this cake.

Four chocolate cake cross-sections comparing properly baked, raw, gummy and dense crumb structures.
Compare only after cooling. Raw cake looks unset; gummy cake looks sticky and compressed; dense cake is cooked through but has a tight crumb. The properly baked example stays cohesive without looking pasty.

The Middle Is Still Wet or Raw

Wet batter on the skewer usually means the simplest thing: it needs longer in the oven. Loosely cover the top with foil if it is already dark enough, then continue baking at the same temperature and check again after a few minutes.

When this happens repeatedly, check the oven temperature and pan size. A smaller pan—or any setup that leaves the batter in a deeper layer—will take longer for the middle to bake through.

The Crumb Is Gummy or Pasty

A gummy cake isn’t always an underbaked one. Too much banana is one possibility, particularly when bananas were measured by number instead of weight. With frozen fruit, remember that the thawed banana and its released liquid together should total about 250g.

Also give the cake time to cool before deciding something went wrong. The crumb is softer and more delicate while the cake is hot, so its final texture is easier to judge once it has cooled.

The Cake Is Dense but Fully Baked

A tight, heavy crumb points somewhere else. Too much flour, old or mismeasured leavening, or a lot of mixing after the flour goes in can all make the cake denser than intended. Weigh the flour if possible and stop folding once the batter is combined.

It Rose and Then Sank

A little settling as the cake cools is normal. A deep dip through the middle is different and often means the structure wasn’t quite set when the cake came out. Too much baking powder or soda can also make a cake rise quickly and then fall back.

Chocolate cake with a deep sunken centre beside a cut cake showing set edges and a visibly underbaked middle.
A modest dip can happen during cooling. A deep crater, particularly above a wet middle, suggests the centre did not set properly.

The Edges Are Done but the Middle Isn’t

Loosely cover the top with foil and keep baking. The foil slows further browning while the middle catches up. If it happens repeatedly, check the pan and oven: a dark pan, smaller pan or oven running hot can cook the outside faster.

The Cake Turned Out Dry

Too much flour and too much oven time are the first places to look. Weigh the flour if you can and remember that a few moist crumbs on the skewer are enough—you don’t need to bake until it comes out bone-dry.

And don’t throw away an already-dry cake. Ganache, softly whipped cream or vanilla ice cream can make those slices much nicer to eat.

Piece of chocolate cake served with glossy chocolate sauce and vanilla ice cream to make a dry slice more enjoyable.
Serve small pieces of a dry cake with cream, ganache or ice cream. The contrasting texture makes the slice more enjoyable; rebaking will not help.

There Are Large Holes or Bitter Spots

A bitter or soapy patch is a good reason to suspect a pocket of baking soda. Large tunnels can also come from uneven mixing or too much leavener. Give the dry ingredients a proper whisk at the beginning so the small quantities of baking powder and soda don’t sit in one part of the batter.

Storage and Freezing

Let the cake cool before covering it. Wrap it while it’s still steaming and that moisture has nowhere to go except back onto the surface.

Chocolate cake shown covered for room-temperature storage, inside a refrigerator container and individually wrapped for freezing.
Cover exposed cut sides closely because they dry out first. Freeze slices individually so you can thaw only what you need.
  • Room temperature: Keep the plain cake tightly covered for up to 2 days in a cool room. In a hot or humid kitchen, refrigerate it sooner.
  • Refrigerator: Keep it covered for up to 5 days. Chilled cake will be firmer, particularly under ganache, so give a slice some time at room temperature before eating if you prefer it softer.
  • Freezer: Wrap cooled individual slices well and freeze for up to 3 months. Thaw them while still wrapped so condensation collects on the wrapping rather than directly on the cake.

Frequently Asked Questions

Can I Make Chocolate Banana Cake a Day Ahead?

Yes. Bake it, cool it and keep it well covered. You can leave it plain or add the ganache once the cake is completely cool. That makes it easy to bake the day before you plan to serve it.

Can I Use It as a Birthday Cake?

Yes. It works well as a simple single-layer celebration cake, especially with ganache over the top. Add candles, chocolate curls, sprinkles or chopped toasted nuts and leave the complicated decorating to another birthday.

Can I Double the Recipe?

Yes, but don’t put twice the batter into the same 9-inch pan. Divide a double batch between two pans instead. When both are baking together, leave some space around them for air to circulate and expect the exact baking time to vary with your oven.

One Last Slice

There are days when ripe bananas call for banana bread. And there are days when you look at the same bananas and would much rather have chocolate cake. This is for the second kind of day.

And if what you wanted all along was warm chocolate with a molten middle, save the bananas for breakfast and make our chocolate lava cakes instead.

Bake this one? Tell us what you did—your pan, approximate bake time, any substitutions and, most useful of all, how the crumb turned out. Those details can help the next baker far more than a simple “loved it.”

Need the instructions again? Return to the recipe or back to the top.

Leave a Reply

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