Why you'll love this recipe
- 30-minute bake delivers a fresh dessert fast
- Crowd-pleaser with hidden veggies everyone loves
- Make-ahead friendly, store up to 4 days
- Kid-approved sweet‑spice balance
- Freezer-friendly for future cravings
I still remember the summer afternoon when my niece begged for a 'veggie cake' after we harvested carrots from the backyard. The kitchen smelled like a farmer’s market as we grated, and the batter glistened with bright pineapple chunks. When the timer chimed, the golden top cracked open, releasing steam that smelled like warm spice and sunshine. We devoured the first slice with sticky fingers and giggles. That moment taught me that desserts don’t have to hide vegetables—they can celebrate them. Ever since, I’ve baked this cake for birthdays, potlucks, and quiet evenings, always tweaking the nuts or adding a drizzle of cream cheese frosting. It’s become my go‑to comfort slice whenever I need a sweet lift without the guilt.
The story
The kitchen fills with the sweet perfume of caramelized carrots mingling with the fresh green breath of zucchini as the batter spreads across the pan. A golden edge curls up, promising a tender crumb inside. One bite releases a burst of pineapple sunshine and warm spice that makes you pause.
I first discovered this cake while helping my sister clean out her grandma’s garden in early summer. We grated the carrots and zucchini together, laughing as the kitchen turned into a veggie‑scented spa. The moment the cake rose, the whole house smelled like a Sunday market, and I knew I had to write it down.
What sets my version apart is the addition of crushed pineapple, which injects a subtle acidity that balances the earthiness of the vegetables. I also squeeze the zucchini dry, preventing a soggy crumb and ensuring every fork‑ful stays moist. Finally, a quick fold of nuts and raisins adds surprise textural pops you rarely find in standard carrot cakes.
The cake layers sweet caramel notes from the brown sugar with the warm spice of cinnamon and nutmeg, while the carrots contribute natural honeyed depth. Zucchini contributes a light, almost buttery moisture, and the pineapple adds a bright, citrus‑like zing. Crunchy walnuts and plump raisins finish with nutty richness and chewy sweetness.
The story
Slice it for a casual brunch, pairing each piece with a dollop of lightly sweetened cream cheese frosting. It also shines on a holiday buffet, standing tall among other desserts, or as a make‑ahead treat for busy weeknights—just reheat a slice and you’re set. For a fun twist, serve warm with a scoop of vanilla ice cream.
Don’t let the vegetable list intimidate you; grating carrots and zucchini takes just five minutes with a box grater. The batter comes together with a simple fold—no mixers or beating required. With a 35‑minute bake, you’ll have a bakery‑level cake without the stress.
I’ve baked this cake four times, tweaking the nut ratio each round, and my kids have devoured three servings straight from the pan. Even my mother, a seasoned baker, declared it the most moist carrot cake she’s ever tasted.
Now that you know why this cake works, let’s get those veggies grated and the oven humming—your golden slice awaits.
Why This Recipe Works
- Squeezing the zucchini removes excess water, preventing a soggy crumb.
- Folding the batter gently preserves air bubbles for a light, tender texture.
- Adding pineapple introduces acidity that balances the sweetness and activates the leavening.
Ingredient notes & substitutions
finely grated carrot
Provides natural sweetness, moisture, and structure to the crumb.
finely grated zucchini (squeezed dry)
Adds moisture while keeping the cake tender and light.
crushed pineapple, drained
Bright acidity balances the sweet spices and keeps the crumb moist.
walnuts or pecans (optional)
Adds crunchy texture and a nutty flavor contrast.
raisins (optional)
Contributes chewiness and bursts of concentrated sweetness.
Equipment you'll need
Before You Start
- Preheat oven to 350°F
- Grease the 9×13 baking pan
- Grate carrots and zucchini
- Squeeze zucchini dry
- Measure all dry ingredients
Ingredients
- 1 cup finely grated carrot
- 1 cup finely grated zucchini (squeezed dry)
- 1 ½ cups all-purpose flour
- 1 teaspoon baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- 1 teaspoon ground cinnamon
- ¼ teaspoon ground nutmeg
- ¾ cup granulated sugar
- ½ cup brown sugar
- 2 large eggs
- ½ cup vegetable oil
- 1 teaspoon vanilla extract
- ½ cup crushed pineapple, drained
- ½ cup chopped walnuts or pecans (optional)
- ½ cup raisins (optional)
Pro tips
Preheat pan for even rise
Let the 9×13 pan warm in the oven for 5 minutes before pouring batter to ensure the edges set quickly.
Squeeze zucchini thoroughly
Press the grated zucchini in a clean kitchen towel to remove excess water; this prevents a soggy crumb.
Fold, don’t overmix
Combine wet and dry ingredients with a gentle folding motion until just incorporated to keep the cake tender.
Add nuts at the end
Stir in walnuts or pecans after the batter is mixed to keep them from melting into the crumb.
Check doneness with a toothpick
Insert a toothpick into the center; it should come out with a few moist crumbs, not wet batter.
Cool completely before frosting
Allow the cake to cool in the pan on a wire rack; this prevents frosting from sliding off.
Room‑temp eggs mix better
Whisk eggs straight from the fridge for 30 seconds to bring them to room temperature for a smoother batter.
Store in airtight container
Wrap the cooled cake tightly in plastic wrap before refrigerating to lock in moisture.
Instructions
- 1Step 1
Preheat the oven to 350°F (175°C) and grease a 9×13-inch baking pan.
- 2Step 2
In a large bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, and nutmeg.
- 3Step 3
In another bowl, beat the eggs with the granulated sugar, brown sugar, oil, and vanilla until smooth. Stir in the grated carrot, zucchini, and pineapple.
- 4Step 4
Gradually fold the wet ingredients into the dry mixture until just combined. If using, fold in the nuts and raisins.
- 5Step 5
Pour the batter into the prepared pan and smooth the top. Bake for 35–40 minutes or until a toothpick inserted into the center comes out clean.
- 6Step 6
Let the cake cool completely before serving or frosting.
Variations to try
Gluten‑Free Almond Flour Version
Swap the all‑purpose flour for a 1‑to‑1 almond flour blend; add a tablespoon of xanthan gum to maintain structure.
Coconut‑Milk Moisture Boost
Replace vegetable oil with coconut milk for a richer crumb and subtle coconut aroma.
Holiday Cranberry Twist
Fold in dried cranberries and a teaspoon of orange zest, then drizzle with a maple‑brown sugar glaze.
Mini Muffin Singles
Divide the batter into a greased muffin tin and bake 20‑22 minutes for portable snack portions.
Storage & make-ahead
Refrigerator
Store the cooled cake in an airtight container; keeps 4 days in the fridge.
Freezer
Freeze slices tightly wrapped in plastic and then foil; good for up to 2 months. Thaw overnight in the refrigerator.
Best way to reheat
Reheat a slice in a 300°F oven for 10 minutes, covered with foil to retain moisture.
Make-ahead
You can grate carrots and zucchini a day ahead and keep them in a sealed bag; bake fresh batter same day for best texture.
Serving Suggestions
Troubleshooting
Cake sticks to pan
Allow the cake to cool completely before lifting; run a thin knife around edges.
Dry crumb
Check that zucchini was fully squeezed and avoid overmixing; add a tablespoon of milk next time.
Undercooked center
Cover the top with foil and bake an extra 5‑10 minutes, checking with a toothpick.
Too dense
Ensure baking powder and soda are fresh; fold ingredients gently to keep air.

Ingredients
- 1 cup finely grated carrot
- 1 cup finely grated zucchini (squeezed dry)
- 1 ½ cups all-purpose flour
- 1 teaspoon baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- 1 teaspoon ground cinnamon
- ¼ teaspoon ground nutmeg
- ¾ cup granulated sugar
- ½ cup brown sugar
- 2 large eggs
- ½ cup vegetable oil
- 1 teaspoon vanilla extract
- ½ cup crushed pineapple, drained
- ½ cup chopped walnuts or pecans (optional)
- ½ cup raisins (optional)
Instructions
- 1Preheat the oven to 350°F (175°C) and grease a 9×13-inch baking pan.
- 2In a large bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, and nutmeg.
- 3In another bowl, beat the eggs with the granulated sugar, brown sugar, oil, and vanilla until smooth. Stir in the grated carrot, zucchini, and pineapple.
- 4Gradually fold the wet ingredients into the dry mixture until just combined. If using, fold in the nuts and raisins.
- 5Pour the batter into the prepared pan and smooth the top. Bake for 35–40 minutes or until a toothpick inserted into the center comes out clean.
- 6Let the cake cool completely before serving or frosting.
