Banana Cupcakes With Chocolate Frosting
In this article
Banana cupcakes with chocolate frosting are soft, moist little cakes that taste like banana bread in cupcake form, capped with a rich chocolate swirl. They suit a weekend bake, a birthday party, or a bake sale, and they travel well because the frosting sits firm once chilled. Serve them with a glass of milk or coffee, or pack them plain (no frosting) in a lunchbox.
What Makes Them Work
The trick to a good banana cupcake is very ripe bananas: the peels should be heavily speckled or mostly brown, which means the fruit is sweet enough to flavor the cake without making it gummy. Mashing them finely and mixing the batter only until combined keeps the crumb tender. A touch of sour cream adds moisture so the cupcakes stay soft for days, and a simple chocolate buttercream on top balances the banana's sweetness.
Equipment That Matters
A 12-cup muffin tin (standard size, each cup about 2 inches / 5 cm across the base) plus paper liners is all you need for the baking itself. If you don't have a muffin tin, bake the batter as a single 8-inch (20 cm) square layer at the same temperature for 28-32 minutes, until a toothpick in the center comes out clean. An electric hand mixer makes the frosting smoother, but a sturdy whisk and a few minutes of effort work too. A scoop of about 3 tablespoons (45 ml) divides the batter evenly into 12 cups.
Serves 12 · Prep 25 min · Cook 20 min · Total 1 hr 15 min
Ingredients
For the cupcakes
- 1 1/2 cups (190 g) all-purpose flour
- 1 tsp baking soda
- 1/2 tsp salt
- 1/2 tsp ground cinnamon (optional)
- 1/2 cup (115 g) unsalted butter, softened
- 3/4 cup (150 g) granulated sugar
- 2 large eggs, at room temperature
- 1 cup (about 240 g) mashed very ripe banana (about 3 medium bananas)
- 1/3 cup (80 g) sour cream
- 1 tsp vanilla extract
For the chocolate frosting
- 1/2 cup (115 g) unsalted butter, softened
- 1 1/2 cups (170 g) powdered sugar
- 1/3 cup (30 g) unsweetened cocoa powder
- 3 tbsp (45 ml) whole milk, plus more as needed
- 1 tsp vanilla extract
- Pinch of salt
Instructions
- Preheat the oven to 350°F (175°C) and line a 12-cup muffin tin with paper liners.
- Whisk the flour, baking soda, salt, and cinnamon (if using) together in a bowl and set aside.
- Beat the 1/2 cup (115 g) softened butter and the sugar on medium speed for about 2 minutes, until light and fluffy. Beat in the eggs one at a time, then mix in the mashed banana, sour cream, and vanilla until combined; the batter may look slightly curdled, which is normal.
- Add the flour mixture and fold or mix on low just until no dry streaks remain, about 20-30 seconds. Overmixing makes dense cupcakes. Don't taste the raw batter: raw flour and raw eggs can carry bacteria, and this batter is not safe to eat uncooked.
- Divide the batter evenly among the 12 liners, filling each about two-thirds full. Bake at 350°F (175°C) for 18-22 minutes, until the tops spring back when lightly pressed and a toothpick in the center comes out clean. The cupcakes bake through fully, so the eggs reach a safe temperature as part of baking.
- Cool the cupcakes in the tin for 5 minutes, then move them to a wire rack to cool completely, about 30 minutes. Frosting a warm cupcake melts the butter, so wait until they are fully cool.
- For the frosting, beat the 1/2 cup (115 g) softened butter for 1 minute until creamy. Add the powdered sugar, cocoa powder, milk, vanilla, and salt, then beat on medium for 2-3 minutes until smooth and spreadable. Add milk 1 teaspoon at a time if it's too thick, or a little more powdered sugar if too soft.
- Spread or pipe about 2 tablespoons of frosting onto each cooled cupcake. Serve at room temperature.
Substitutions and Swaps
- Sour cream: swap 1:1 for plain Greek yogurt or buttermilk. Yogurt gives a slight tang; buttermilk thins the batter slightly, so add it gradually.
- Butter (cupcakes): replace with an equal amount of neutral oil for a moister, slightly denser crumb. The frosting needs real butter to set; a tub spread makes it soft and greasy.
- Granulated sugar: light brown sugar works 1:1 and adds a mild caramel note that pairs well with banana.
- Unsweetened cocoa: use Dutch-process cocoa 1:1 for a darker color and smoother flavor. Don't substitute hot cocoa mix; it contains sugar and milk powder.
- Eggs: for an egg-free version, use 1/4 cup (60 ml) applesauce in place of each egg; expect a slightly denser crumb.
- Milk in frosting: any dairy or unsweetened plant milk works; add it gradually because plant milks vary in thickness. For a nut-free or dairy-free table, check every label, since ingredients vary by brand.
Keeping Cupcakes Fresh
Unfrosted cupcakes keep in an airtight container at room temperature for up to 2 days or in the refrigerator for up to 5 days. Once frosted with buttercream, refrigerate them in a covered container for up to 4 days and bring to room temperature for about 30 minutes before serving so the frosting softens. Get them into the fridge within 2 hours of baking or frosting (1 hour if the room is above 90°F/32°C). To freeze, wrap unfrosted cupcakes individually in plastic and freeze for up to 3 months; thaw overnight in the refrigerator, then frost. Frozen frosted cupcakes can weep as they thaw, so freezing them plain gives a better result.
Making Them Ahead
Bake the cupcakes up to 2 days ahead and hold them unfrosted at room temperature in a sealed container, or freeze them and frost the morning you serve. The frosting can be made up to 3 days ahead and refrigerated in a covered bowl; re-beat it for a minute to restore the texture before spreading. If you're serving a crowd, one recipe fills one 12-cup tin, so double everything into two tins for 24 cupcakes; bake both on the middle rack, rotating the tins halfway through.