made with love and butter since 1997 ✨

PastryWiz.

food & fun starts here ✨

Easy Carrot Cake with Cream Cheese Frosting

Moist, deeply spiced, with the tang of cream cheese frosting balancing the sweetness — carrot cake done right. The key here is using freshly grated carrots (not the pre-shredded bagged kind, which are dry) and adding crushed pineapple, which most home recipes skip. The pineapple disappears into the crumb but keeps the cake unbelievably moist for days.

Why This Recipe Works

Grated carrots (not baby carrots): Large regular carrots grated on box grater’s large holes provide the perfect texture. Baby carrots are dense and don’t grate well. Pre-shredded bagged carrots are too dry and don’t melt into the batter.

Oil not butter: Oil produces the moistest carrot cake. Butter versions dry out faster and have less rise. Vegetable, canola, or light olive oil all work.

Both cinnamon AND nutmeg: Carrot cake spice profile is a specific combination. Cinnamon dominant, nutmeg supporting, sometimes a pinch of ginger for depth.

Real cream cheese frosting: The signature. Half butter, half cream cheese, powdered sugar, vanilla. Skip commercial frostings — they don’t compare.

Optional add-ins: Walnuts, raisins, pineapple, coconut all work. Traditional carrot cake includes crushed pineapple for moisture and sweetness.

The Definitive Carrot Cake Recipe

Ingredients (Makes 9×13 sheet cake or 2 9-inch layers, serves 12-16)

Cake

  • 340g all-purpose flour (2¾ cups)
  • 2 tsp baking soda
  • 1 tsp baking powder
  • 1½ tsp fine sea salt
  • 1 tbsp ground cinnamon
  • ½ tsp ground nutmeg
  • ¼ tsp ground ginger (optional)
  • 400g granulated sugar (2 cups)
  • 240g vegetable oil (1 cup)
  • 4 large eggs, room temperature
  • 2 tsp vanilla extract
  • 450g grated carrots (about 4 cups packed, from 4-5 large carrots)
  • 1 cup chopped walnuts or pecans (optional)
  • 1 cup crushed pineapple, drained (optional but traditional)
  • 1 cup raisins (optional)

Cream Cheese Frosting

  • 16 oz cream cheese, softened (2 blocks)
  • 230g unsalted butter, softened (1 cup)
  • 450g powdered sugar (4 cups)
  • 2 tsp vanilla extract
  • Pinch of salt

Instructions

Step 1: Preheat oven to 350F. Grease and flour 9×13 pan OR two 9-inch round cake pans (line rounds with parchment circles).

Step 2: In large bowl, whisk flour, baking soda, baking powder, salt, cinnamon, nutmeg, and ginger.

Step 3: In separate bowl, whisk sugar, oil, eggs, and vanilla until smooth.

Step 4: Add dry ingredients to wet in 3 additions, folding gently between each.

Step 5: Fold in grated carrots, and any add-ins (walnuts, pineapple, raisins).

Step 6: Pour batter into prepared pan(s). Smooth top.

Step 7: Bake — 9×13 pan: 40-45 minutes. 9-inch rounds: 30-35 minutes. Test with toothpick — should come out with a few moist crumbs.

Step 8: Cool completely on wire rack before frosting (2 hours minimum).

Step 9: Make frosting: beat cream cheese and butter until smooth (3 min). Add powdered sugar, vanilla, salt. Beat until fluffy (3 more min).

Step 10: Frost cooled cake. Optional decorations: chopped nuts on sides, orange piped icing carrots on top.

The 3 Types of Carrot Cake

Classic American (This Recipe)

Oil-based, moist, spice-forward, with cream cheese frosting. Most common in America. Perfect balance of tender cake and rich frosting.

Traditional English

Denser, less sweet, sometimes without frosting or with a simple lemon glaze. Predates American versions.

Modern Elevated

Restaurant version with brown butter, cardamom, olive oil, sometimes with mascarpone frosting or even honey-vanilla bean glaze. Sophisticated variation.

Cream Cheese Frosting Perfected

The 1:1 ratio (equal parts cream cheese and butter) is standard. Some recipes use more cream cheese for tangier frosting. Room temperature is critical — cold cream cheese produces lumpy frosting. Room temperature butter creams smoother.

For piping consistency: Add extra ½ cup powdered sugar. Firm enough to hold shape through decorating tips.

For spreadable: Standard recipe. Perfect for spreading with offset spatula.

Chill briefly: If frosting seems too soft, refrigerate 15 minutes to firm up before spreading.

10 Carrot Cake Variations

Carrot cake with pineapple (traditional): Add 1 cup drained crushed pineapple to batter. Extra moist, subtle tropical flavor.

Carrot cake with pecans: 1 cup toasted chopped pecans folded in. Southern variation.

Carrot cake with raisins: 1 cup dark or golden raisins. Divisive but traditional.

Carrot cake muffins: Same batter in 24 muffin cups. Bake at 350F for 22-25 minutes. Portable version.

Carrot cake cupcakes: Same as muffins but with piped cream cheese frosting swirl on top.

Carrot cake with coconut: Add ½ cup shredded coconut. Adds texture and tropical note.

Chocolate chip carrot cake: Fold in 1 cup chocolate chips. Modern twist.

Zucchini carrot cake: Replace half the carrots with grated zucchini. Extra moist.

Carrot cake with orange: Add zest of 2 oranges + 1 tablespoon fresh juice. Brightens flavor.

Vegan carrot cake: Replace eggs with 3 flax eggs, use vegan butter and vegan cream cheese. Works excellently.

How to Grate Carrots Perfectly

Box grater’s large holes produce the ideal size — small enough to melt into the batter but large enough to add texture. Food processor with shredding disc is faster but produces slightly drier shreds. Never use pre-shredded bagged carrots (too dry, waxed).

Pro tip: Peel carrots first. Skin adds bitter notes.

Wetness: Just-grated carrots release moisture. This is desirable for moist cake — don’t squeeze dry.

Storage and Make-Ahead

Room temperature: 2 days covered (if unfrosted). Frosted cake needs refrigeration due to cream cheese.

Refrigerator: 5-7 days covered. Bring to room temperature 30 minutes before serving.

Freezer (cake layers unfrosted): 3 months. Wrap tightly.

Freezer (frosted cake): 2 months. Freeze uncovered until firm, then wrap.

Make ahead for holiday: Bake cake 2 days ahead, wrap in plastic. Frost day of serving. Refrigerated frosted cake improves overnight (flavors meld).

Serving Suggestions

Traditional celebration cake — Easter, Mother’s Day, spring birthdays. Serve with coffee, tea, or dessert wine. Slice thin (this cake is rich). Pair with fresh berries or citrus fruit salad. For plated dessert: single wedge with cream cheese frosting rosette, fresh berries, and dust of powdered sugar. Adult beverage pairing: sweet dessert wine (Sauternes, Muscat), coffee cocktails, or Bailey’s Irish Cream.

Common Carrot Cake Problems

Cake Too Dense

Overmixed batter or too much flour. Fold gently. Weigh flour.

Cake Too Wet

Too many carrots or didn’t drain pineapple. Follow measurements exactly. Drain crushed pineapple well.

Cake Sunken in Middle

Underbaked or oven door opened early. Bake full time, test with toothpick.

Frosting Runny

Butter or cream cheese too warm. Chill 15 minutes to firm up. Or add more powdered sugar.

Frosting Lumpy

Cream cheese too cold. Bring to room temperature before beating.

Cake Dry

Overbaked or too much flour. Test at 40 minutes.

Grated Carrots Visible in Baked Cake

Grated too coarse or not folded in enough. Use large holes of box grater (not coarse), fold well.

The History of Carrot Cake

Carrot cake evolved from medieval carrot puddings (carrots were used as sweetener before refined sugar became affordable). Modern carrot cake with cream cheese frosting emerged in America in the 1960s during the health food movement — the “carrot” ingredient made cake feel more virtuous. It became a diner and bakery staple by the 1970s and remains one of America’s most beloved cakes.

British and Scottish versions predate American — some going back to the 1700s. But the specific “American carrot cake” with oil-based batter and cream cheese frosting is a 20th-century American invention.

Pro Tips

  1. Grate carrots yourself — pre-shredded is too dry.
  2. Oil, not butter, for moistest texture.
  3. Both cinnamon AND nutmeg for authentic spice.
  4. Cream cheese frosting is essential — 1:1 with butter.
  5. Room temperature everything (eggs, cream cheese, butter).
  6. Cool cake COMPLETELY before frosting.
  7. Refrigerate frosted cake (cream cheese requires it).
  8. Improves overnight — flavors meld.

Frequently Asked Questions

Do I need to peel the carrots?

Yes — carrot skin can add bitter notes. Peel first, then grate.

Can I use baby carrots?

Not recommended — they’re dense and don’t grate well. Use large regular carrots.

Can I use pre-shredded carrots?

Not recommended — too dry and often coated with preservatives that affect texture.

Butter vs oil in carrot cake?

Oil produces moister cake that stays fresh longer. Butter is possible but drier.

Add nuts, raisins, or pineapple?

All three are traditional additions. Choose your preference or use all three for hearty version.

How thick should I grate the carrots?

Medium — large holes of box grater. Not too fine (disappears) or too coarse (visible chunks).

Can I make carrot cake ahead?

Yes — bake 2 days ahead, wrap. Frost day of serving. Improves overnight.

How long does carrot cake last?

5-7 days refrigerated (cream cheese frosting requires refrigeration).

Can I freeze carrot cake?

Yes — 2 months frosted, 3 months unfrosted. Wrap tightly.

Vegan carrot cake?

Yes — flax eggs + vegan butter + vegan cream cheese. Works excellently.

Gluten-free carrot cake?

Substitute 1:1 gluten-free flour blend. Add ½ teaspoon xanthan gum.

Why is my carrot cake so moist it falls apart?

Too much liquid from carrots or undrained pineapple. Drain pineapple well. Bake full time.

Can kids help make carrot cake?

Yes — grating carrots (with supervision) and mixing wet ingredients are perfect kid tasks.

Easy Carrot Cake with Cream Cheese Frosting
MA
By Marisol Acosta, Pastry Chef
Updated May 24, 2026 · Tested by the PastryWiz Test Kitchen

Why this works

  • Freshly grated carrots release moisture as they bake — pre-shredded carrots are too dry
  • Crushed pineapple (drained) adds moisture and a subtle tropical note that complements the spices
  • Oil instead of butter keeps the cake moist for 5+ days
  • Baking soda (not powder) reacts with the acid in pineapple for proper rise

Ingredients

  • 2 cups (250g) all-purpose flour
  • 2 teaspoons baking soda
  • 2 teaspoons ground cinnamon
  • 1 teaspoon fine sea salt
  • 1/2 teaspoon ground nutmeg
  • 1/4 teaspoon ground ginger
  • 3 large eggs
  • 1 1/2 cups (300g) granulated sugar
  • 1 cup vegetable oil
  • 1 teaspoon vanilla extract
  • 3 cups (300g) finely grated carrots (about 4 medium carrots)
  • 1 cup chopped walnuts (optional)
  • 1/2 cup crushed pineapple, drained (optional but recommended)

Instructions

  1. Prep. Preheat oven to 350°F. Grease two 9-inch round cake pans and line bottoms with parchment.
  2. Mix dry. Whisk flour, baking soda, cinnamon, salt, nutmeg, and ginger in a medium bowl.
  3. Mix wet. In a large bowl, whisk eggs and sugar until lightened (about 1 minute). Whisk in oil and vanilla.
  4. Combine. Add dry ingredients to wet, mixing until just combined. Fold in carrots, walnuts, and pineapple.
  5. Bake. Divide batter between prepared pans. Bake 32-38 minutes until a toothpick comes out clean.
  6. Cool and frost. Cool completely. Frost with our silky cream cheese frosting — the perfect tangy match. Refrigerate frosted cake.

Storage

Frosted carrot cake must be refrigerated (cream cheese frosting). Holds 5-7 days refrigerated, freezes 2 months. Unfrosted layers freeze 3 months. See storage guide.

FAQ

Can I skip the pineapple?

Yes, but the cake will be slightly less moist and less complex. Most “best carrot cake” recipes include pineapple for this reason.

Why use grated carrots and not pureed?

Grated carrots add moisture AND texture. Pureed carrots make the cake dense and gummy. If you want absolutely zero visible carrot, use the small holes of a box grater.

Related

FAQ

Can I use pre-shredded carrots from a bag?

You can, but freshly grated carrots give better texture and moisture. Bagged shredded carrots are drier and thicker. If using bagged, soak briefly and squeeze dry.

Can I omit nuts?

Yes — just leave them out. The cake is great without. Add 1/4 cup more carrots or raisins if you want extra texture.

Why is my carrot cake oily?

Too much oil. The recipe specifies 1 cup; measure carefully (oil is easy to over-pour). Also drain excess liquid from grated carrots before adding to batter.

Can I make this gluten-free?

Yes — use a 1:1 gluten-free flour blend. The high moisture content of carrots and oil masks any dryness. Almond flour works as a partial substitute (replace 1/2 cup of regular flour).

How long does frosted carrot cake last?

Refrigerated 5 days, frozen 2 months (wrap tightly). The flavor actually improves on day 2 as the spices meld and the cake absorbs frosting moisture.