Carrot banana cake lands in that sweet spot between cozy and practical: it stays soft for days, slices cleanly once it cools, and uses two ripe bananas in a way that never tastes like banana bread wearing a carrot cake costume. The crumb stays tender from the bananas and oil, while the shredded carrots melt into the batter and keep every bite moist without turning heavy. With cream cheese frosting on top, it’s the kind of cake people go back for before the first piece has even been finished.
The trick is balance. Bananas bring moisture and sweetness, but too much can make the cake dense, so the batter leans on brown sugar, baking soda, and just enough flour to hold everything together. Spices stay warm instead of loud, which keeps the carrot and banana flavors clear. If you’ve ever had a carrot cake that baked up gummy in the middle or a banana cake that tasted flat, this version fixes both problems with simple, smart ratios.
Below, I’ve included the ingredient notes that matter most, plus the one cooling step that keeps the frosting from slipping right off the cake. There are also a few swaps for pan size and nut-free baking, so you can use what you have without losing the texture that makes this cake work.
The cake stayed incredibly moist for three days, and the cream cheese frosting set up thick enough that the banana and carrot topping didn’t slide around when I sliced it.
Save this carrot banana cake for when you want a soft, spiced cake with thick cream cheese frosting and a crumb that stays moist for days.
The Part That Keeps This Cake from Turning Gummy
Carrot banana cake can go wrong in one place: too much moisture without enough structure. Bananas vary a lot in size and juiciness, and carrots release water as they bake, so the batter needs to be mixed just enough to come together without being beaten into a paste. Once the flour goes in, stop as soon as you no longer see dry streaks. Overmixing builds a tight crumb, and that’s the fastest way to lose the soft texture you’re after.
The other thing worth watching is the bake time. This cake should pull back slightly from the pan and spring back when touched, but the center should not look wet or shiny. If you bake it until it looks dry all the way across, it’ll be overdone by the time it cools. The toothpick test matters here, but it should come out with a few moist crumbs, not clean and dusty.
What Each Ingredient Is Actually Doing Here

- Bananas — Use ripe bananas with plenty of brown speckles. They add moisture, sweetness, and that soft, plush crumb. Under-ripe bananas won’t give you the same flavor or texture.
- Shredded carrots — Freshly shredded carrots bake into the batter and keep the cake tender. Pre-shredded bagged carrots are drier and thicker, so they don’t blend in as well. A fine shred works best.
- Vegetable oil — Oil keeps the cake soft even after chilling. Butter will work in a pinch, but the cake won’t stay as moist for as long.
- Brown sugar — This brings a deeper, caramel-like sweetness that fits both banana and carrot. You can use light or dark brown sugar; dark gives you a little more molasses flavor.
- Powdered spices — Cinnamon, nutmeg, and ginger are enough to make the cake taste warm without burying the fruit. Freshly opened spices make a difference here because the batter is lightly spiced, not heavily flavored.
- Cream cheese frosting — Softened cream cheese and butter beat into a frosting that’s thick but spreadable. If the frosting looks loose, the ingredients were too warm. Chill it for 10 to 15 minutes before frosting the cake.
Mixing the Batter, Baking the Layers, and Frosting Without a Slide
Start with the Wet Ingredients
Whisk the oil, brown sugar, eggs, and vanilla until the mixture looks glossy and fully combined. That step dissolves the sugar enough that the cake bakes up with a finer crumb. Stir in the mashed bananas and shredded carrots next; the mixture will look a little loose, and that’s normal. If your bananas are extra-large, don’t add a third one unless you also want a denser cake.
Fold in the Dry Ingredients Gently
Add the flour, baking soda, baking powder, spices, and salt, then fold just until the batter comes together. A few small streaks of flour are better than a batter that’s been worked hard. If you’re using walnuts, fold them in at the very end so they don’t sink to the bottom. Thick, overmixed batter bakes up heavy in the middle, especially with all the fruit in this recipe.
Bake Until the Center Springs Back
Divide the batter evenly between the prepared pans or spread it into a 9×13 dish. Bake until the top is set, the edges are lightly browned, and a toothpick comes out with moist crumbs. Start checking a few minutes early, because banana-based cakes can go from perfect to dry fast. Let the cakes cool in the pan briefly, then move them to a rack so trapped steam doesn’t soften the sides.
Beat the Frosting Until It Fluffs Up
Beat the cream cheese and butter first until smooth, then add the powdered sugar and vanilla. The frosting should look thick, silky, and hold soft peaks. If it’s runny, one of the dairy ingredients was too warm. Frost only when the cakes are completely cool, or the frosting will melt into the crumb and lose that thick layer on top.
Ways to Tweak It Without Losing the Cake
Make it a 9×13 cake
Bake the batter in a greased 9×13 dish instead of layer pans. The cake will be a little easier to serve and slightly less fussy to frost, but you’ll lose the stacked look. Start checking for doneness near the lower end of the bake time because a single pan can finish unevenly if it’s overbaked.
Skip the nuts without changing the texture
Leave out the walnuts and the cake still stays tender and rich. The nuts add crunch and a little bitterness, but they’re not doing any structural work, so the crumb won’t suffer. If you want some texture without nuts, sprinkle chopped toasted coconut on top of the frosting.
Make it dairy-free
Use a dairy-free cream cheese and butter alternative for the frosting. The cake itself is already dairy-free, so this swap is straightforward. The frosting may be a little softer, so chill it before spreading and keep the finished cake refrigerated until serving.
Storage and Reheating
- Refrigerator: Store covered for up to 5 days. The cake stays moist, and the frosting firms up a bit in the fridge.
- Freezer: Freeze unfrosted layers tightly wrapped for up to 2 months, or freeze frosted slices on a tray before wrapping. Cream cheese frosting can get a little grainy after thawing, so freezing the layers separately gives the best texture.
- Reheating: Let slices come to room temperature instead of microwaving them. Heat can make the frosting greasy and soften the crumb too much.
Answers to the Questions Worth Asking

Carrot Banana Cake
Ingredients
Equipment
Method
- Preheat the oven to 350°F and grease two 8-inch round pans or a 9x13 dish.
- Whisk the vegetable oil, brown sugar, large eggs, and vanilla extract together until smooth.
- Stir in the mashed bananas and shredded carrots until evenly distributed.
- Fold in the all-purpose flour, baking soda, baking powder, cinnamon, nutmeg, ginger, and salt just until combined.
- Fold in the chopped walnuts (optional) until the batter looks evenly speckled.
- Divide the batter between the pans and bake for 30–35 minutes, until a toothpick comes out clean.
- Beat the softened cream cheese, softened butter, powdered sugar, and vanilla extract until smooth and fluffy.
- Cool the cakes completely before frosting generously, then top as desired with shredded carrot and banana slices.