Carrot Cake with Cream Cheese Frosting

Cook: 45 min24 servingsmediumAmerican
Carrot Cake with Cream Cheese Frosting

Classic carrot cake with oil, crushed pineapple, and pecans, topped with vanilla cream cheese frosting. Moist crumb from shredded carrots and undrained pineapple, warm spice from cinnamon and nutmeg, finished with tangy-sweet cream cheese frosting beaten to smooth peaks.

Ingredients

24 servings
  • 2 cup all-purpose flour
    whole wheat flour1:1whole grain

    denser crumb

  • 2 tsp baking soda
  • ½ tsp salt
  • 2 tsp ground cinnamon
  • ½ tsp ground nutmeg
  • 1 cup neutral oil
    melted coconut oil1:1vegan

    adds subtle coconut flavor

    Full guide →
  • 2 cup granulated sugar
  • 4 eggs
    flax eggs (1 Tbsp + 3 Tbsp water per egg)1:4vegan

    binder may be slightly less strong

    Full guide →
  • 2 tsp vanilla extract, pure
  • 3 cup carrots, shredded
  • 1 cup pecans, chopped
    walnuts1:1tree nut swap

    milder flavor

    Full guide →
  • 1 can (8 oz) crushed pineapple, undrained
  • 8 oz cream cheese, softened
    dairy-free cream cheese1:1vegan

    4

    Full guide →
  • ½ cup (1 stick) butter, softened
    vegan butter1:1vegandairy-free

    4

    Full guide →
  • 1 tsp vanilla extract, pure
  • 1 box (16 oz) confectioners' sugar

Instructions

  1. 1

    Preheat oven to 350°F.

  2. 2

    Mix flour, baking soda, salt, cinnamon, and nutmeg in a large bowl.

  3. 3

    Add oil, sugar, eggs, vanilla extract, shredded carrots, pecans, and crushed pineapple with juice; mix well.

  4. 4

    Pour batter into a greased and floured 13x9-inch baking pan.

  5. 5

    Bake until a toothpick inserted in the center comes out clean, about 45 minutes.

  6. 6

    Cool cake in pan on a wire rack.

  7. 7

    Beat softened cream cheese, butter, and vanilla extract in a large bowl with an electric mixer on medium speed until well blended.

  8. 8

    Gradually add confectioners' sugar, beating well after each addition.

  9. 9

    Frost the cooled cake with the cream cheese frosting.

Tips

Tip 1

Use room-temperature cream cheese and butter for the frosting to blend smoothly without lumps.

Tip 2

Do not overmix the cake batter after adding wet to dry ingredients to avoid a dense crumb.

Tip 3

Ensure pineapple juice is incorporated; it adds moisture to the cake.

Good to Know

Storage

Cover and refrigerate frosted cake up to 3 days. Unfrosted cake layers freeze up to 1 month.

Make Ahead

Bake cake, cool completely, and wrap unfrosted layers in plastic wrap 1 day ahead. Prepare frosting and frost the morning of serving.

Serve With

Serve at room temperature or chilled. Cut with a sharp knife, wiping between cuts for clean slices.

See pairing guide →

Common Mistakes

Watch

Do not skip the crushed pineapple and its juice; it hydrates the cake and prevents dryness.

Watch

Do not overbake; rely on the toothpick test rather than time alone to avoid a dry, dense texture.

Watch

Do not add confectioners' sugar to the frosting all at once; add gradually to avoid lumps and overbeating.

Substitutions

Dairy-Free Swaps

butter
vegan butter1:1vegandairy-free

4

Full guide →

Vegan Options

neutral oil
melted coconut oil1:1vegan

adds subtle coconut flavor

Full guide →
cream cheese
dairy-free cream cheese1:1vegan

4

Full guide →
eggs
flax eggs (1 Tbsp + 3 Tbsp water per egg)1:4vegan

binder may be slightly less strong

Full guide →

General Alternatives

pecans
walnuts1:1tree nut swap

milder flavor

Full guide →
all-purpose flour
whole wheat flour1:1whole grain

denser crumb

Full guide →
Find more substitutions →