Perfectly spiced, incredibly moist, and crowned with a tangy cream cheese frosting, this Classic Carrot Cake is everything a carrot cake should be.
Grated carrots keep the crumb tender and sweet, while warm cinnamon, nutmeg, and toasted walnuts add depth and crunch. This is the definitive version of a beloved classic—impressive enough for a birthday, simple enough for a Sunday bake.
The Science of Moisture, Spice & Tangy Balance
Carrot cake achieves its signature moist, dense texture through a combination of vegetable oil and finely grated carrots. Unlike butter, oil remains liquid at room temperature, coating the flour proteins and preventing excessive gluten formation. This yields a tender, almost velvety crumb that stays moist for days.
The carrots themselves contribute more than flavor and color—their natural sugars caramelize during baking, and their high water content creates steam that helps the cake rise. Brown sugar adds molasses notes and additional moisture, while the acidic tang of cream cheese frosting cuts through the cake’s sweetness.
A touch of lemon juice in the frosting brightens the flavor and stabilizes the emulsion, ensuring a silky-smooth, pipeable consistency that holds its shape beautifully.

Instructions
Preheat & Prep Pans
Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, line the bottoms with parchment paper, and grease the parchment.
Combine Dry Ingredients
In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, ginger, cloves, and salt until well combined.
Mix Wet Ingredients
In a large bowl, whisk the eggs, granulated sugar, and brown sugar together until smooth and slightly thickened, about 1-2 minutes. Gradually whisk in the vegetable oil and vanilla extract until fully emulsified.
Combine & Fold
Add the dry ingredients to the wet ingredients and mix with a spatula until just combined and no flour streaks remain. Do not overmix. Fold in the grated carrots, toasted walnuts, and raisins (if using) until evenly distributed.
Bake
Divide the batter evenly between the prepared pans. Bake for 30-35 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs. Let cakes cool in pans for 15 minutes, then turn out onto wire racks to cool completely.

Make the Frosting
In a large bowl using a hand mixer or stand mixer, beat the softened cream cheese and butter together on medium-high speed until smooth, creamy, and no lumps remain, about 2-3 minutes.
Gradually add the sifted powdered sugar, 1 cup at a time, beating on low speed until combined. Add the vanilla extract, lemon juice, and salt. Increase speed to medium-high and beat for 2-3 minutes until light, fluffy, and smooth.
Assemble & Frost
Place one cake layer on a serving plate. Spread about 1 cup of frosting evenly over the top. Place the second cake layer on top. Apply a thin crumb coat over the entire cake and refrigerate for 15-20 minutes. Then, apply the final layer of frosting, smoothing the top and sides with an offset spatula.
Decorate & Serve
Gently press the chopped toasted walnuts onto the sides of the cake or sprinkle over the top. For best results, let the frosted cake set in the refrigerator for at least 1 hour before slicing. Serve at room temperature.
Pro-Tips for Carrot Cake Perfection

- Finely Grate the Carrots: Use the small holes of a box grater or a food processor. Large shreds create uneven texture and don’t incorporate as well.
- Toast the Nuts: Toasting walnuts in a dry skillet or oven for 5-7 minutes deepens their flavor and keeps them crunchy.
- Don’t Overmix: Overmixing develops gluten and toughens the cake. Mix just until the flour disappears.
- Room Temperature Ingredients: Cold eggs can seize the oil emulsion. Room temperature eggs incorporate more smoothly.
- Weigh Your Carrots: 3 cups is about 340g. Don’t guess—too many carrots can make the cake dense and wet.
- Cool Cakes Completely: Warm cake will melt the cream cheese frosting into a soupy mess.
- Soften Cream Cheese Properly: It should be room temperature and soft to the touch. Cold cream cheese creates lumpy frosting.
- Chill Before Slicing: Cream cheese frosting sets beautifully when chilled. A short rest in the fridge ensures clean, beautiful slices.
- Make Ahead: Unfrosted cake layers can be wrapped tightly and frozen for up to 3 months. Frosting can be made ahead and refrigerated for up to 1 week; bring to room temperature and re-whip before using.
This Classic Carrot Cake is a timeless, beloved dessert.