My Favorite Carrot Cake Recipe: Moist, Spiced & Topped with Cream Cheese Frosting
This is the carrot cake that ends your search for the perfect recipe — impossibly moist, deeply spiced with cinnamon and nutmeg, loaded with grated carrots and toasted walnuts, and covered in thick, tangy cream cheese frosting. It’s the kind of cake that makes people genuinely emotional because it tastes exactly like the one they remember from their childhood, but better.
The moisture comes from three sources working together: grated carrots (which release water during baking), vegetable oil (which keeps the cake moist far longer than butter), and brown sugar (which is hygroscopic — it pulls moisture from the air). These three ingredients mean this cake actually gets better over 2–3 days as the flavors deepen and the crumb becomes even more tender. The cream cheese frosting is the non-negotiable partner — tangy, sweet, and thick enough to pipe or spread. Makes a stunning 2-layer 9-inch cake that serves 12–16.
Key Takeaways
- Oil, not butter: Keeps the cake moist for days (butter cakes dry out faster)
- 3 cups grated carrots: The natural moisture engine of this cake
- Warm spices: Cinnamon, nutmeg, ginger, and cloves for depth
- Cream cheese frosting: Must be thick — cold cream cheese + cold butter
- Cool layers completely: Warm cake melts the frosting instantly
- Serves 12–16: Two 9-inch layers, impressive presentation

Why Oil-Based Cakes Stay Moist Longer Than Butter Cakes
This isn’t opinion — it’s food science. Butter is only about 80% fat (the rest is water and milk solids). Oil is 100% fat, which means it coats the flour proteins more completely, producing a more tender crumb that stays moist for days. Butter also solidifies when cool, which is why butter cakes can taste dry the next day. Oil stays liquid at any temperature, keeping the cake perpetually soft and moist.
The tradeoff: butter has better flavor. But in carrot cake, the carrots, spices, and brown sugar provide all the flavor you need. Oil is the right choice here — it’s why this cake tastes amazing on day three while a butter-based version would be passable at best.
Carrot Cake Nutrition Facts
| Nutrient | Per Slice (1/16) | Per Cake | % Daily Value |
|---|---|---|---|
| Calories | 485 kcal | 7,760 kcal | 24% |
| Protein | 6g | 96g | 12% |
| Total Fat | 28g | 448g | 36% |
| Saturated Fat | 8g | 128g | 40% |
| Carbohydrates | 56g | 896g | 20% |
| Sugar | 40g | 640g | — |
| Fiber | 2g | 32g | 7% |
| Sodium | 310mg | 4,960mg | 13% |
Essential Ingredients for Carrot Cake
For the Cake
| Ingredient | Amount | Purpose | Substitution |
|---|---|---|---|
| All-purpose flour | 2 cups (250g) | Structure | 1:1 GF blend |
| Vegetable oil | 1 cup (240ml) | Moisture, tender crumb | Canola or light olive oil |
| Brown sugar (packed) | 1 cup (200g) | Moisture, caramel depth | — |
| Granulated sugar | ½ cup (100g) | Sweetness, structure | — |
| Eggs | 4 large | Structure, richness | — |
| Grated carrots | 3 cups (about 4 large) | Moisture, flavor, texture | — |
| Cinnamon | 2 tsp | Warm spice backbone | — |
| Nutmeg | ½ tsp | Warm complexity | — |
| Ground ginger | ½ tsp | Bright warmth | — |
| Ground cloves | ¼ tsp | Deep, aromatic warmth | Allspice |
| Baking soda | 2 tsp | Leavening (reacts with brown sugar acid) | — |
| Baking powder | ½ tsp | Additional lift | — |
| Salt | 1 tsp | Flavor balance | — |
| Vanilla extract | 2 tsp | Flavor depth | — |
| Toasted walnuts | 1 cup, chopped | Crunch, nuttiness | Pecans (classic Southern swap) |

For the Cream Cheese Frosting
| Ingredient | Amount | Purpose | Substitution |
|---|---|---|---|
| Cream cheese (full fat) | 16 oz (2 blocks), cold | Tangy base, structure | Never use low-fat (too thin) |
| Unsalted butter | ½ cup (115g), cold | Richness, spreadability | — |
| Powdered sugar | 3 cups (360g) | Sweetness, thick texture | — |
| Vanilla extract | 2 tsp | Flavor | — |
Step-by-Step: How to Make Carrot Cake
Step 1: Prep the Dry Ingredients (5 Minutes)
Preheat oven to 350°F (175°C). Grease and line two 9-inch round cake pans with parchment paper. Whisk flour, baking soda, baking powder, salt, cinnamon, nutmeg, ginger, and cloves in a large bowl. Whisking blends the leaveners and spices evenly — lumps of baking soda cause bitter spots in the cake. Set aside.
Step 2: Mix Wet Ingredients (5 Minutes)
In another large bowl, whisk oil, brown sugar, granulated sugar, eggs, and vanilla until smooth and well combined. The mixture should look glossy and slightly thickened. Don’t worry about over-mixing at this stage — there’s no flour yet, so gluten isn’t a concern.
Step 3: Combine and Fold (3 Minutes)
Pour dry ingredients into wet and fold with a spatula until just combined — stop when the last streak of flour disappears. Over-mixing develops gluten and makes the cake tough instead of tender. Fold in grated carrots and toasted walnuts. The batter will be thick and heavy — that’s correct.

Step 4: Bake (30–35 Minutes)
Divide batter evenly between the two prepared pans. Bake at 350°F for 30–35 minutes until a toothpick inserted in the center comes out with just a few moist crumbs (not wet batter). Don’t open the oven door during the first 25 minutes — the sudden temperature drop can cause the cake to sink. Cool in pans 10 minutes, then invert onto wire racks to cool completely (at least 1 hour).

Step 5: Make the Frosting (10 Minutes)
Beat cold cream cheese and cold butter with an electric mixer on medium speed until smooth — about 2 minutes. Cold ingredients are critical — room temperature cream cheese makes runny frosting. Add powdered sugar one cup at a time, beating on low after each addition. Add vanilla, then beat on medium-high for 1 minute until thick, fluffy, and spreadable. If too thin, refrigerate 15 minutes.
Step 6: Assemble and Frost
Place one cake layer on a serving plate or cake board. Spread about 1 cup of frosting on top — evenly, edge to edge. Place the second layer on top. Apply a thin crumb coat (very thin layer of frosting over the entire cake) and refrigerate 15 minutes to set. Then apply the final thick layer of frosting. Decorate with extra walnuts, carrot curls, or a cinnamon dusting.
Carrot Cake Add-In Comparison
| Add-In | Amount | Flavor Contribution | Include? |
|---|---|---|---|
| Walnuts (This Recipe) | 1 cup, toasted | Earthy crunch, classic pairing | Yes — recommended |
| Pecans | 1 cup, toasted | Buttery, slightly sweeter than walnuts | Excellent alternative |
| Raisins | ¾ cup | Chewy sweetness, traditional | Optional — love/hate ingredient |
| Crushed pineapple | ½ cup, drained well | Tropical sweetness, extra moisture | Optional — drain thoroughly |
| Coconut flakes | ½ cup | Sweet, tropical, textural contrast | Optional — not traditional |

How to Store Carrot Cake
| Method | Duration | Container | Notes |
|---|---|---|---|
| Refrigerator (frosted) | 5 days | Covered cake plate or airtight container | Bring to room temp 30 min before serving |
| Freezer (unfrosted layers) | 3 months | Wrap in plastic + foil | Thaw in fridge overnight, frost day-of |
| Freezer (frosted) | 2 months | Freeze uncovered 1 hour, then wrap tightly | Thaw in fridge 4+ hours |
| Room temperature | 2 hours max | — | Cream cheese frosting requires refrigeration |
Expert Tips for the Best Carrot Cake
Grate Carrots on the Small Holes
Fine grating creates carrots that melt into the cake, releasing maximum moisture. Large shreds create visible pockets and a stringy texture. If you have a food processor with a fine grating disc, use it — it’s faster and more consistent. You need about 4 large carrots for 3 cups grated. Don’t use baby carrots — they have less moisture and flavor.
Toast Your Walnuts
Raw walnuts taste flat and slightly bitter in cake. Toasting for 8 minutes at 350°F transforms them — they become nutty, aromatic, and crunchy. Spread on a sheet pan in a single layer, bake until fragrant and slightly darker. Let cool before folding into batter. This single step elevates the entire cake.
Cold Cream Cheese = Thick Frosting
The #1 mistake with cream cheese frosting: using room-temperature cream cheese. It becomes too soft and the frosting turns runny and won’t hold its shape. Start with cold cream cheese straight from the fridge and cold butter. It takes slightly longer to beat smooth, but the result is thick, pipeable frosting that stays put on the cake. This is the foundation of any really good dessert — the same principle applies to our M&M cookies requiring cold dough.

Carrot Cake
- Total Time: 1 hour
- Yield: 1 cups 1x
- Diet: Vegetarian
Description
Moist, spiced carrot cake with cream cheese frosting. Loaded with freshly grated carrots, warm spices, and topped with the creamiest frosting.
Ingredients
- 2 cups (250g) All-purpose flour
- 1 cup (240ml) Vegetable oil
- 1 cup (200g) Brown sugar (packed)
- ½ cup (100g) Granulated sugar
- 4 large Eggs
- 3 cups (about 4 large) Grated carrots
- 2 tsp Cinnamon
- ½ tsp Nutmeg
- ½ tsp Ground ginger
- ¼ tsp Ground cloves
- 2 tsp Baking soda
- ½ tsp Baking powder
- 1 tsp Salt
- 2 tsp Vanilla extract
- 1 cup, chopped Toasted walnuts
Instructions
- Prep the Dry Ingredients (5 Minutes) — Preheat oven to 350°F (175°C). Grease and line two 9-inch round cake pans with parchment paper. Whisk flour, baking soda, baking powder, salt, cinnamon, nutmeg, ginger, and cloves in a large bowl. Whisking blends the leaveners and spices evenly — lumps of baking soda cause bitter spots in the cake. Set aside.
- Mix Wet Ingredients (5 Minutes) — In another large bowl, whisk oil, brown sugar, granulated sugar, eggs, and vanilla until smooth and well combined. The mixture should look glossy and slightly thickened. Don’t worry about over-mixing at this stage — there’s no flour yet, so gluten isn’t a concern.
- Combine and Fold (3 Minutes) — Pour dry ingredients into wet and fold with a spatula until just combined — stop when the last streak of flour disappears. Over-mixing develops gluten and makes the cake tough instead of tender. Fold in grated carrots and toasted walnuts. The batter will be thick and heavy — that’s correct.
- Bake (30–35 Minutes) — Divide batter evenly between the two prepared pans. Bake at 350°F for 30–35 minutes until a toothpick inserted in the center comes out with just a few moist crumbs (not wet batter). Don’t open the oven door during the first 25 minutes — the sudden temperature drop can cause the cake to sink. Cool in pans 10 minutes, then invert onto wire racks to cool completely (at least 1 hour).
- Make the Frosting (10 Minutes) — Beat cold cream cheese and cold butter with an electric mixer on medium speed until smooth — about 2 minutes. Cold ingredients are critical — room temperature cream cheese makes runny frosting. Add powdered sugar one cup at a time, beating on low after each addition. Add vanilla, then beat on medium-high for 1 minute until thick, fluffy, and spreadable. If too thin, refrigerate 15 minutes.
- Assemble and Frost — Place one cake layer on a serving plate or cake board. Spread about 1 cup of frosting on top — evenly, edge to edge. Place the second layer on top. Apply a thin crumb coat (very thin layer of frosting over the entire cake) and refrigerate 15 minutes to set. Then apply the final thick layer of frosting. Decorate with extra walnuts, carrot curls, or a cinnamon dusting.
- Prep Time: 25 minutes
- Cook Time: 35 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
Nutrition
- Serving Size: 1 serving
- Calories: 485
- Sugar: 40g
- Sodium: 310mg
- Fat: 28g
- Saturated Fat: 8g
- Carbohydrates: 56g
- Fiber: 2g
- Protein: 6g
Frequently Asked Questions
Can I make carrot cake without nuts?
Yes — simply omit the walnuts. The cake is wonderful without them, especially for those with nut allergies. The texture will be slightly softer without the crunch. You can add ¾ cup raisins instead for a different textural element.
Why is my carrot cake dense and heavy?
Three likely causes: (1) too much flour — measure by weight or use the spoon-and-level method, (2) over-mixing the batter, developing too much gluten, (3) old baking soda that’s lost its leavening power. Test baking soda by dropping some in vinegar — if it doesn’t fizz vigorously, replace it.
Do I have to refrigerate carrot cake?
Yes — cream cheese frosting must be refrigerated. It’s a dairy product that can spoil at room temperature. The cake can sit out for 2 hours during serving, but store leftovers in the fridge. Bring to room temperature 30 minutes before serving for the best texture and flavor.
Can I make this as cupcakes?
Yes — this recipe makes 24 cupcakes. Fill liners ¾ full, bake at 350°F for 20–22 minutes. Reduce bake time by 10–12 minutes compared to the layer cake. The frosting recipe makes enough for generous piping on all 24 cupcakes.
Can I make the cake layers ahead of time?
Yes — baked, cooled cake layers can be wrapped tightly in plastic wrap and stored in the fridge for 2 days or frozen for 3 months. Frost them the day you’re serving. Cold layers are actually easier to frost because they don’t crumble.
Why does my cream cheese frosting turn runny?
Room-temperature cream cheese is the culprit. Always use cold cream cheese and cold butter. If your frosting is already made and too thin, refrigerate it for 30 minutes and re-beat — it often firms up enough. If still too thin, add ½ cup more powdered sugar.
Recipe by Anna — Le Cordon Bleu-trained chef and recipe developer at Chef Johns Gourmet. This carrot cake recipe has been my go-to for over a decade and never fails to impress.




