Moist Zucchini Carrot Cake with Cream Cheese Frosting
This zucchini carrot cake packs shredded summer squash and carrots into a warmly spiced batter that stays soft for days, no matter how long it sits on the counter.

A smear of tangy cream cheese frosting turns it into an afternoon treat that feels a little bit special, but the whole thing comes together in one bowl and bakes into a tall, golden loaf. It’s the cake I make when the garden is overflowing and I want something simple that still feels like a real dessert.
Why This Cake Stays Moist for Days
The shredded vegetables do all the heavy lifting here. Zucchini melts into the crumb and keeps it tender without any greasy weight, while the carrot adds a gentle chew and tiny orange flecks. A bit of brown sugar deepens the flavor, and cinnamon and nutmeg round out the spice without overpowering.
I love that it works equally well without frosting, sliced thick and handed out to hungry kids, or gussied up with a tangy layer of cream cheese for a last‑minute gathering. It never tastes like a compromise dessert.
Ingredients

- 1 ½ cups all‑purpose flour: spooned and leveled, not scooped
- 1 teaspoon baking powder
- ½ teaspoon baking soda
- ½ teaspoon fine sea salt
- 1 teaspoon ground cinnamon
- ¼ teaspoon ground nutmeg
- 2 large eggs, at room temperature: they blend more smoothly
- ½ cup granulated sugar
- ½ cup packed light brown sugar
- ½ cup vegetable oil: a neutral oil like canola or sunflower works best
- 2 teaspoons vanilla extract
- 1 cup finely shredded zucchini: about 1 medium, lightly squeezed if very wet
- 1 cup finely shredded carrot: about 2 medium carrots
- 4 ounces cream cheese, softened: full‑fat block cream cheese, not spread
- 4 tablespoons unsalted butter, softened
- 1 cup powdered sugar
- 1 teaspoon vanilla extract
- Pinch of fine sea salt
Variations / Substitutions
- Melted butter: you can swap melted unsalted butter for the oil; the loaf will be a bit richer with a tighter crumb.
- Add nuts: fold in ½ cup toasted chopped walnuts or pecans with the vegetables for a little crunch.
- Spice swap: if you are out of nutmeg, use an equal amount of ground cardamom or allspice.
- Skip the frosting: the unfrosted loaf makes a lovely tea cake; dust it with powdered sugar instead.
For another vegetable‑packed loaf, try zucchini banana bread.
How to Make Zucchini Carrot Cake
Step 1: Mix the Dry Ingredients

Preheat your oven to 350°F (175°C) and grease a 9×5‑inch loaf pan. Whisk together the 1 ½ cups flour, baking powder, baking soda, salt, 1 teaspoon cinnamon, and nutmeg in a medium bowl until evenly combined. This keeps the leavening and spice evenly distributed so you do not end up with a bland pocket of batter later.
Step 2: Whisk the Wet Ingredients

In a large bowl, whisk the 2 eggs, granulated sugar, brown sugar, vegetable oil, and 2 teaspoons vanilla until smooth and a little pale, about 1 minute of steady whisking. You are not trying to whip in air, just to dissolve the sugars and get everything cohesive. If your eggs are cold, the oil may not blend as easily, so let them sit out while you measure the other ingredients.
Step 3: Fold in the Vegetables

Grate the zucchini and carrot on the large holes of a box grater. If your zucchini is especially watery, give it a gentle squeeze over the sink to remove some liquid, but do not wring it dry. You want that moisture in the cake. Toss both shredded vegetables into the wet mixture and fold them through with a spatula. Then tip in the dry ingredients and stir just until the flour disappears. A few small lumps are fine; over‑stirring now will make the loaf gummy.
Step 4: Bake the Loaf

Scrape the batter into your prepared pan and smooth the top. Bake on the middle rack for 50 to 55 minutes. After about 45 minutes, the top will split and turn a deep golden brown, and the edges will begin to pull away from the pan. Test the center with a toothpick: it should come out with a few moist crumbs but no wet batter. Let the loaf cool in the pan for 10 minutes, then turn it out onto a rack to cool completely before you frost it.
Step 5: Frost and Slice the Loaf

While the loaf cools, make the frosting. Beat the cream cheese and butter together with a hand mixer until smooth and fluffy, about 2 minutes. Sift in the powdered sugar, then add the vanilla and a tiny pinch of salt. Beat on low until the sugar is absorbed, then on high for 30 seconds until the frosting is light and spreadable. Once the cake is completely cool (give it at least an hour), spoon the frosting on top and spread it thick with an offset spatula, letting it hang over the sides a little. Slice the loaf into thick pieces and serve right away. The cake is so moist that each slice will hold together beautifully under that tangy top layer.
A Few Tips for a Perfect Loaf
- Grate your own vegetables. Pre‑shredded carrots are too dry and coarse to blend into the batter properly, and they will not release the same sweetness during baking.
- Use room‑temperature eggs and cream cheese. Cold ingredients can make the batter seize or turn the frosting lumpy.
- For the cleanest slices, chill the frosted loaf for 15 minutes before cutting. The frosting firms up just enough to slice without smearing.
- Bake times shift a little depending on your pan.
Bake times by pan size:
| Pan Size | Bake Time |
|---|---|
| 9×5‑inch loaf | 50‑55 mins |
| 8×4‑inch loaf | 55‑60 mins |
Keeping It Fresh
Refrigerate: Store leftover frosted cake in an airtight container in the fridge for up to 4 days. The frosting firms up when cold, so let the slices sit at room temperature for about 20 minutes before eating. The unfrosted loaf will keep on the counter, well wrapped, for 2 days.
Frequently Asked Questions
Can I make this cake gluten‑free?
Yes, you can swap a 1‑to‑1 gluten‑free flour blend that contains xanthan gum. The crumb will be a little more delicate, but the vegetables keep it from drying out.
Why did my loaf sink in the middle?
Usually, it is underbaked or the zucchini was too wet. Bake until a toothpick comes out with just a few crumbs, and if your zucchini is especially watery, give it a gentle squeeze before adding.
Can I use pre‑shredded carrots?
No, pre‑shredded carrots are too dry and coarse. Grate your own on the large holes of a box grater so they melt into the cake.
Does this cake need the frosting?
Not at all. The loaf is sweet and moist enough to eat plain, dusted with a little powdered sugar, or spread with a thin layer of honey butter.

Zucchini Carrot Cake Recipe
Ingredients
Method
- Preheat oven to 350°F (175°C) and grease a 9×5‑inch loaf pan. Whisk flour, baking powder, baking soda, salt, cinnamon, and nutmeg in a bowl.
- In a large bowl, whisk eggs, granulated sugar, brown sugar, oil, and 2 teaspoons vanilla until smooth.
- Fold shredded zucchini and carrot into the wet mixture, then stir in the dry ingredients just until no flour streaks remain.
- Scrape batter into the prepared pan and bake 50 to 55 minutes, until a toothpick inserted in the center comes out with only a few moist crumbs. Cool in the pan 10 minutes, then transfer to a rack to cool completely.
- While the cake cools, beat cream cheese, butter, powdered sugar, 1 teaspoon vanilla, and a pinch of salt until fluffy. Spread frosting over the completely cooled loaf and slice to serve.
