This moist, spiced cake works equally well with shredded zucchini or carrots, and the tangy lemon frosting cuts through the sweetness perfectly. It bakes in a standard 9×13-inch pan, so no layering or fiddly assembly is required. The batter is forgiving, the crumb is tender, and the lemon glaze soaks into the top for a bright finish that makes it taste like spring.
Ingredients
- 2 cups (240 g) all-purpose flour
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 1 teaspoon ground cinnamon
- 1/2 teaspoon ground nutmeg
- 1/2 teaspoon salt
- 3 large eggs, at room temperature
- 1 cup (200 g) granulated sugar
- 1/2 cup (100 g) packed light brown sugar
- 1 cup (240 ml) neutral oil (canola or vegetable)
- 2 teaspoons vanilla extract
- 2 cups (about 250 g) grated zucchini or carrots (about 2 medium zucchini or 3 medium carrots), squeezed dry
- 1/2 cup (60 g) chopped walnuts or pecans (optional)
For the lemon frosting:
- 1 1/2 cups (180 g) powdered sugar
- 2 tablespoons freshly squeezed lemon juice (about 1 lemon)
- 1 teaspoon lemon zest
- 1–2 tablespoons milk or cream, as needed
Instructions
- Preheat your oven to 350°F (175°C). Grease a 9x13x2-inch baking pan (or line it with parchment paper for easy removal).
- In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, and salt. Set aside.
- In a large bowl, beat the eggs, granulated sugar, and brown sugar together until light and slightly thickened, about 2 minutes. Add the oil and vanilla extract, and mix until combined.
- Gradually add the dry ingredients to the wet mixture, stirring just until no streaks of flour remain. Do not overmix.
- Fold in the grated zucchini or carrots and the nuts, if using. The batter will be thick and slightly shiny.
- Pour the batter into the prepared pan and spread it evenly. Bake for 35–40 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs (not wet batter) and the top springs back when lightly touched. If using a glass or dark metal pan, start checking at 30 minutes.
- Let the cake cool completely in the pan on a wire rack. This is important – warm cake will melt the frosting.
- While the cake cools, make the frosting: whisk the powdered sugar, lemon juice, and lemon zest in a small bowl. Add milk 1 tablespoon at a time until it reaches a pourable but thick consistency. It should coat the back of a spoon.
- Pour the frosting over the cooled cake and spread it gently with an offset spatula. Let it set for 10–15 minutes before slicing.
Tips
- Squeeze the vegetables well: After grating, place the zucchini or carrots in a clean kitchen towel and wring out as much liquid as possible. Excess moisture makes the cake dense and soggy.
- Use light-colored metal for even baking: A shiny aluminum pan bakes most evenly. If you use a glass or dark nonstick pan, lower the oven temperature by about 25°F (15°C) and check for doneness earlier, as those materials brown faster.
- Don’t overmix the batter: Stir just until the flour disappears. Overmixing develops gluten, which makes the cake tough instead of tender.
- Make it ahead: This cake actually tastes better the next day as the flavors meld. Store it covered at room temperature for up to 2 days, or refrigerate for up to 5 days.
Serving Suggestions
Serve slices at room temperature with a cup of coffee or tea. For a more decadent dessert, add a scoop of vanilla ice cream or a dollop of lightly sweetened whipped cream. The lemon frosting pairs beautifully with the warm spices, so don’t skip the zest – it adds a fresh, aromatic note.
Variations
- Add pineapple: Fold in 1/2 cup (120 ml) drained crushed pineapple for extra moisture and tropical flavor.
- Swap the nuts: Use raisins, dried cranberries, or shredded coconut instead of walnuts.
- Make it a loaf: Bake in a 9x5x3-inch loaf pan for 55–65 minutes, checking with a toothpick. The loaf will be taller and need more time.
- Try a cream cheese frosting: Beat 8 oz (225 g) softened cream cheese with 1/2 cup (115 g) butter, then add 3 cups (360 g) powdered sugar and 1 teaspoon lemon juice for a richer, tangier topping.
Storage and Reheating
Store the frosted cake in an airtight container at room temperature for up to 2 days. For longer storage, refrigerate for up to 5 days – the frosting will firm up, but the cake stays moist. To freeze, wrap unfrosted cake slices tightly in plastic wrap and then foil; freeze for up to 3 months. Thaw overnight in the refrigerator, then bring to room temperature before frosting or serving. If you prefer warm cake, microwave individual slices for 10–15 seconds – the frosting will melt slightly, which is delicious.
Related
Frequently Asked Questions
Can I use all zucchini or all carrots? Yes, absolutely. The recipe is designed for either, so use 2 cups of whichever you have. Just make sure to squeeze out the excess liquid.
Do I need to peel the zucchini or carrots? No. The skin is edible and adds color and nutrients. Just wash them well and grate them with the skin on.
Can I reduce the sugar? You can cut the granulated sugar to 3/4 cup (150 g) without major texture changes, but the cake will be less sweet. The frosting adds sweetness, so you may not miss it.
Why did my cake sink in the middle? This usually happens if the batter is overmixed or the oven door is opened too early. Make sure your baking powder and soda are fresh, and don’t open the oven during the first 25 minutes of baking.
Can I make this gluten-free? Yes, use a 1:1 gluten-free all-purpose flour blend that contains xanthan gum. The texture will be slightly more crumbly, but it works well.
How do I know when the cake is done? Insert a toothpick into the center – it should come out with a few moist crumbs clinging, not wet batter. The top should spring back when lightly pressed. An instant-read thermometer inserted in the center should read about 200°F (93°C) for a fully baked cake.