Ingredients
Method
- Preheat the oven to 350°F (175°C). Grease a 9x13-inch pan, line the bottom with parchment, and lightly grease the parchment.
- In a large bowl, whisk flour, granulated sugar, brown sugar, baking powder, baking soda, salt, cinnamon, ginger, and nutmeg until evenly combined.
- In a medium bowl, whisk oil, eggs, and vanilla until smooth and slightly thickened.
- Pour wet ingredients into dry and gently stir with a spatula until most of the flour is incorporated. Do not overmix.
- Fold in grated carrots, crushed pineapple, and walnuts (if using) until evenly distributed and no dry streaks remain.
- Scrape the batter into the prepared pan and smooth the top. Tap the pan once on the counter to release air bubbles.
- Bake for 32 to 38 minutes, until the top is set and a toothpick inserted in the center comes out clean with a few moist crumbs.
- Cool the cake in the pan on a rack for 20 minutes, then run a knife around the edges and lift out using the parchment. Cool completely before frosting.
- Make the frosting: Beat cream cheese and butter on medium speed until creamy and no lumps remain, 2 to 3 minutes. Add powdered sugar, vanilla, and salt; beat on low to combine, then on medium-high until fluffy, 1 to 2 minutes.
- Spread frosting over the cooled cake, swirling to the edges. Garnish with a sprinkle of chopped walnuts, slice, and serve.
Notes
For two 9-inch rounds, bake 22 to 28 minutes; cool completely and double the frosting for lush layers.
Finely grate carrots on the small holes of a box grater for the best texture.
If the pineapple is very juicy, press it lightly with paper towels so the cake doesn’t bake up soggy.
For clean slices, chill the frosted cake 20 minutes, then cut with a hot, wiped knife.