Classic Moist Carrot Cake with Cream Cheese Frosting

Published: February 22, 2026
Jimmy JohnsonJimmy Johnson
Tags: Dessert, Baking, Party, Cake, Holiday, Carrot

Carrot Cake

This carrot cake is the kind I make when I want something comforting and a little nostalgic — tender crumb, warm spices, and bright ribbons of grated carrot that keep the cake moist. The cream cheese frosting is tangy and smooth, a perfect counterpoint to the sweet, spiced cake; it’s the sort of dessert that disappears at family gatherings.

The recipe is approachable for bakers of any level: mix the dry ingredients, stir together the wet, fold in carrots, nuts, and a touch of pineapple for extra moisture, then bake until golden. It layers beautifully for a celebration cake or can be baked in a single pan for a casual tea-time treat.

Ingredients

  • 2 cups All-purpose flour
  • 1 cup Granulated sugar
  • 1/2 cup Light brown sugar, packed
  • 1 tsp Baking powder
  • 1 tsp Baking soda
  • 1 tsp Kosher salt
  • 2 tsp Ground cinnamon
  • 1/4 tsp Ground nutmeg
  • 3 pieces Eggs
  • 1 cup Vegetable oil
  • 2 tsp Vanilla extract
  • 3 cups Carrots, grated
  • 1 cup Walnuts, chopped
  • 1/2 cup Crushed pineapple, drained
  • 8 oz Cream cheese, softened
  • 1/2 cup Unsalted butter, softened
  • 3 cups Powdered sugar
  • 1 tbsp Lemon juice
  • 1/8 tsp Salt (for frosting)

Instructions

  1. Preheat the oven to 350°F. Grease and flour two 8-inch round cake pans (or line a 9x13 pan) and set aside.

  2. In a large bowl whisk together the flour, granulated sugar, brown sugar, baking powder, baking soda, kosher salt, cinnamon, and nutmeg until well combined.

  3. In a separate bowl beat the eggs with the vegetable oil and vanilla extract until smooth. Stir the wet mixture into the dry ingredients until just combined.

  4. Fold in the grated carrots, chopped walnuts, and drained crushed pineapple until evenly distributed. Do not overmix.

  5. Divide the batter between the prepared pans and smooth the tops. Bake for 40–50 minutes, or until a toothpick inserted into the center comes out clean. If using a 9x13 pan, start checking at 35 minutes.

  6. Allow the cakes to cool in the pans for 10 minutes, then run a knife around the edges and transfer to a wire rack to cool completely before frosting.

  7. To make the frosting, beat the softened cream cheese and unsalted butter together until smooth and creamy. Gradually add the powdered sugar, then beat in the lemon juice and salt until the frosting is light and spreadable.

  8. If layering, level the cake tops with a serrated knife, spread a generous layer of frosting between the layers, then frost the top and sides. For a rustic finish, swirl the top with an offset spatula and sprinkle with extra chopped walnuts.

Tips & Notes

  • Measure flour by spooning it into the cup and leveling with a knife to avoid a dense cake.
  • Grate carrots with the larger holes of a box grater for tender texture; finely shredded carrots can make the cake too wet.
  • Room-temperature ingredients (eggs, cream cheese, butter) blend more smoothly and give a better crumb and frosting texture.
  • If the frosting seems too soft, chill for 15–20 minutes before finishing to make spreading easier.