Go Back
Slice of zucchini cake with cream cheese frosting on a white plate

Zucchini Cake with Cream Cheese Frosting

Prep Time 20 minutes
Cook Time 35 minutes
Total Time 55 minutes
Servings: 16
Course: Dessert

Ingredients
  

For the Zucchini Cake
  • 2½ cups All-purpose flour 315 g
  • 2 teaspoons Ground cinnamon 5 g
  • ½ teaspoon Ground nutmeg 1 g
  • 1 teaspoon Baking soda 5 g
  • 1 teaspoon Baking powder 4 g
  • ¾ teaspoon Fine salt 4 g
  • 3 Large eggs, room temperature 150 g
  • 1 cup Granulated sugar 200 g
  • ½ cup Light brown sugar, packed 100 g
  • ¾ cup Neutral oil (canola or vegetable) 180 ml
  • ½ cup Sour cream or plain Greek yogurt 120 g
  • 2 teaspoons Pure vanilla extract 10 ml
  • 3 cups Grated zucchini, lightly squeezed about 2 medium (300 g)
  • 1 cup Chopped walnuts or pecans (optional) 110 g
For the Cream Cheese Frosting
  • 8 oz Block cream cheese, softened 226 g
  • ½ cup Unsalted butter, softened 1 stick (113 g)
  • 3 cups Powdered sugar (confectioners' sugar), sifted 360 g
  • 1½ teaspoons Pure vanilla extract 7 ml
  • Pinch of salt
  • 1 to 2 teaspoons Lemon juice (optional) 5 to 10 ml

Method
 

  1. Heat your oven to 350°F (175°C) and place a rack in the center. Grease the 9×13-inch pan and line it with parchment, leaving an overhang on the long sides so you can lift the cake out later.
  2. Wash the zucchini and trim the ends. You don't need to peel it, because the thin green skin disappears into the cake. Grate it on the large holes of a box grater. Place the shreds in a clean towel and give them one firm squeeze, just enough that a few drops come out. You are not wringing it dry.
  3. In a medium bowl, whisk the flour, cinnamon, nutmeg, baking soda, baking powder, and salt. Whisking spreads the leavening evenly, which prevents bitter pockets of baking soda.
  4. In a large bowl, whisk the eggs with both sugars until slightly thickened, about 1 minute. Whisk in the oil, sour cream, and vanilla until smooth and glossy.
  5. Add the dry ingredients to the wet in two additions. Fold gently with a spatula until just combined, with no dry streaks. Fold in the grated zucchini and the nuts, if using. The batter will be thick but spreadable.
  6. Spread the batter evenly into the pan and bake for 32 to 38 minutes. The cake is done when a toothpick inserted in the center comes out with a few moist crumbs, and the top springs back when lightly pressed.
  7. Cool the cake in the pan on a wire rack for at least 1 hour. This step matters. Frosting a warm cake melts the cream cheese and leaves you with a greasy, sliding mess.
  8. Beat the softened cream cheese and butter on medium speed for 2 minutes, until completely smooth and lump-free. Add the powdered sugar one cup at a time on low speed, then add the vanilla and salt. Beat on medium-high for 1 to 2 minutes until fluffy. Add a teaspoon of lemon juice if you want more tang.
  9. Spread the frosting over the cooled cake with an offset spatula. Sprinkle with toasted walnuts or a dusting of cinnamon. For the cleanest slices, chill the frosted cake for 30 minutes, then cut with a warm, wiped knife.

Notes

Cool the cake in the pan on a wire rack for about 1 hour before frosting. Refrigerate the frosted cake, covered, for up to 5 days.