This carrot zucchini walnut cake is a moist, spiced loaf that packs two vegetables into one tender crumb, with toasted walnuts adding crunch in every slice. The zucchini keeps the cake exceptionally moist while the carrots give it classic sweetness and color, and the cream cheese frosting (optional but recommended) balances the spices perfectly. It bakes in a standard 9×5-inch loaf pan, so no special equipment is needed.
Ingredients
- 1 ½ cups (190 g) all-purpose flour
- 1 teaspoon baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- 1 teaspoon ground cinnamon
- ½ teaspoon ground nutmeg
- ½ cup (120 ml) vegetable oil (or melted coconut oil)
- ¾ cup (150 g) granulated sugar
- ¼ cup (50 g) packed light brown sugar
- 2 large eggs, at room temperature
- 1 teaspoon vanilla extract
- 1 cup (120 g) finely grated carrot (about 2 medium carrots)
- 1 cup (120 g) finely grated zucchini (about 1 medium zucchini), excess moisture squeezed out
- ¾ cup (90 g) chopped walnuts, toasted
- For the cream cheese frosting (optional): 4 oz (113 g) cream cheese, softened; 2 tablespoons (28 g) unsalted butter, softened; 1 cup (120 g) powdered sugar; ½ teaspoon vanilla extract
Instructions
- Preheat your oven to 350°F (175°C). Grease a 9x5x3-inch loaf pan (about 8 cups capacity) and line it with parchment paper, leaving overhang on two opposite sides for easy lifting.
- In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, and nutmeg. Set aside.
- In a large bowl, whisk the oil, granulated sugar, and brown sugar until combined. Add the eggs one at a time, whisking well after each, then stir in the vanilla.
- Fold in the grated carrot and squeezed zucchini until evenly distributed.
- Add the dry ingredients to the wet mixture and stir with a spatula until just combined—do not overmix. Fold in the toasted walnuts.
- Pour the batter into the prepared loaf pan and smooth the top. Bake for 50–60 minutes, or until a toothpick inserted into the center comes out with a few moist crumbs (not wet batter). If the top browns too quickly, tent loosely with foil after 40 minutes.
- Let the cake cool in the pan on a wire rack for 15 minutes, then lift it out using the parchment overhang and cool completely on the rack before frosting.
- If making the frosting: beat the cream cheese and butter until smooth, then add powdered sugar and vanilla, beating until fluffy. Spread over the cooled cake.
Tips
- Grate the zucchini finely and squeeze out as much liquid as possible—otherwise the cake can become soggy. A clean kitchen towel works well for this.
- Toast the walnuts in a dry skillet over medium heat for 3–5 minutes until fragrant; this deepens their flavor. Let them cool before adding.
- Use a light-colored metal loaf pan for even browning. If using a dark or nonstick pan, reduce the oven temperature by 25°F (15°C) and check for doneness a few minutes earlier.
- Don’t overmix the batter once you add the flour—stir just until no streaks remain to avoid a tough cake.
Serving Suggestions
Serve this cake at room temperature with a dollop of cream cheese frosting, or simply dust it with powdered sugar for a lighter finish. It pairs beautifully with a cup of coffee or chai tea. For a brunch spread, slice it thick and serve alongside fresh fruit and yogurt.
Variations
- Replace the walnuts with pecans or omit them for a nut-free version.
- Add ½ cup (85 g) raisins or dried cranberries along with the walnuts for extra sweetness.
- Swap the cinnamon and nutmeg for 1 teaspoon of pumpkin pie spice.
- For a gluten-free option, use a 1:1 gluten-free all-purpose flour blend—bake time may vary slightly.
Storage and Reheating
Store unfrosted cake in an airtight container at room temperature for up to 3 days, or in the refrigerator for up to 5 days. Frosted cake should be refrigerated. To freeze, wrap the unfrosted cake tightly in plastic wrap and then foil; it will keep for up to 3 months. Thaw overnight in the refrigerator and bring to room temperature before serving. To reheat individual slices, microwave for 10–15 seconds or warm in a 300°F (150°C) oven for 5–7 minutes.
Frequently Asked Questions
Do I need to peel the zucchini? No, the skin is tender and thin; just wash it well and grate it. The green flecks add color.
Can I use a different pan? Yes, you can bake this in an 8×8-inch square pan (about 8 cups capacity). The batter will be about 1 inch deep, so start checking at 30 minutes. A 9-inch round pan works too—check at 35 minutes. Ovens vary, so rely on the toothpick test.
Why is my cake dense? Overmixing the batter develops gluten, which makes the cake tough. Also, make sure your baking powder and baking soda are fresh—they lose potency over time.
Can I reduce the sugar? You can cut the granulated sugar to ½ cup (100 g) without major changes, but the cake will be less tender. Don’t reduce the brown sugar, as it adds moisture.
How do I know when it’s done? Insert a toothpick into the center—it should come out with a few moist crumbs, not wet batter. The top should spring back when lightly pressed.
Can I make this into muffins? Yes, divide the batter among 12 muffin cups and bake at 350°F (175°C) for 18–22 minutes, or until a toothpick comes out clean.