Carrot Cake Recipe: Moist, Spiced & Cream Cheese Frosted
In this article
This carrot cake is the real deal: deeply moist, warmly spiced, and topped with a tangy cream cheese frosting that balances every bite. It works because the carrots add natural sweetness and moisture, while a precise ratio of oil, eggs, and buttermilk keeps the crumb tender for days. Whether for a birthday, Easter, or just a weekend bake, this recipe delivers a classic, crowd-pleasing cake every time.
Ingredients
- 2 cups (250g) all-purpose flour
- 2 teaspoons baking powder
- 1 teaspoon baking soda
- 1 ½ teaspoons ground cinnamon
- ½ teaspoon ground nutmeg
- ½ teaspoon ground ginger
- ½ teaspoon salt
- 1 cup (200g) granulated sugar
- ½ cup (100g) packed light brown sugar
- 3 large eggs, at room temperature
- ¾ cup (180ml) vegetable oil (or canola oil)
- ½ cup (120ml) buttermilk, at room temperature
- 2 teaspoons vanilla extract
- 2 cups (about 250g) finely grated carrots (from 3-4 medium carrots)
- 1 cup (100g) chopped walnuts or pecans (optional)
- ½ cup (75g) raisins (optional)
For the Cream Cheese Frosting:
- 8 oz (226g) cream cheese, softened
- ½ cup (113g) unsalted butter, softened
- 3 cups (360g) powdered sugar, sifted
- 1 teaspoon vanilla extract
- Pinch of salt
Instructions
- Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line them with parchment paper rounds.
- In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, ginger, and salt. Set aside.
- In a large bowl, whisk the granulated sugar, brown sugar, eggs, oil, buttermilk, and vanilla extract until smooth and well combined.
- Add the dry ingredients to the wet ingredients and stir with a spatula or wooden spoon until just combined. Do not overmix.
- Fold in the grated carrots, and if using, the walnuts and raisins.
- Divide the batter evenly between the prepared pans. Bake for 25-30 minutes, or until a toothpick inserted into the center comes out clean (a few moist crumbs are fine).
- Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely. This is crucial—frosting a warm cake will melt the frosting.
- While the cakes cool, make the frosting: In a large bowl, beat the cream cheese and butter with an electric mixer until smooth and creamy, about 2 minutes.
- Add the powdered sugar, vanilla, and salt. Beat on low speed until combined, then increase to medium-high and beat for 2-3 minutes until fluffy.
- Once the cakes are completely cool, place one layer on a serving plate. Spread about 1 cup of frosting on top. Place the second layer on top and frost the top and sides with the remaining frosting.
- Refrigerate for at least 30 minutes before slicing to help the frosting set.
Tips
- Grate finely: Use the fine side of a box grater or a food processor. Larger shreds can leave the cake with uneven texture and may not bake through as evenly.
- Don't overmix: Once you add the dry ingredients, mix only until no streaks of flour remain. Overmixing develops gluten, making the cake tough.
- Room temperature ingredients: Eggs, buttermilk, and cream cheese blend more smoothly when at room temperature, resulting in a better texture and no lumps in the frosting.
- Use a kitchen scale: For the most accurate results, weigh your flour and carrots. Too much flour makes a dry cake; too little makes it dense.
Serving Suggestions
Serve this carrot cake at room temperature so the frosting softens slightly. It pairs beautifully with a cup of black coffee, chai tea, or a cold glass of milk. For a festive touch, garnish with a few extra chopped walnuts on top or a sprinkle of cinnamon. It's perfect for birthdays, spring gatherings, or as a comforting dessert after a Sunday dinner.
Variations
- Carrot Cupcakes: Divide the batter into 12-15 lined muffin cups and bake at 350°F (175°C) for 18-22 minutes. Frost as desired.
- Pineapple Carrot Cake: Add ½ cup (120g) drained crushed pineapple to the batter for extra moisture and sweetness.
- Spice it up: Add ½ teaspoon of allspice or cardamom along with the other spices for a different flavor profile.
- Nut-free: Simply omit the walnuts or replace with sunflower seeds or extra raisins.
- Gluten-free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. No other changes needed.
Storage and Reheating
Store frosted carrot cake in an airtight container in the refrigerator for up to 5 days. Because of the cream cheese frosting, it must be kept chilled. Let it sit at room temperature for 15-20 minutes before serving to soften the frosting. Unfrosted cake layers can be wrapped tightly in plastic wrap and stored at room temperature for up to 2 days, or frozen for up to 3 months. To freeze frosted cake, place it in the freezer unwrapped for 1 hour until the frosting hardens, then wrap in plastic wrap and foil. Thaw overnight in the refrigerator before serving. To reheat individual slices, microwave for 10-15 seconds to warm through, but be aware the frosting will soften.
Frequently Asked Questions
Can I use pre-shredded carrots from a bag?
Yes, but they are often drier and coarser than freshly grated carrots. If using pre-shredded, chop them finely with a knife before adding to the batter. Freshly grated carrots provide more moisture and a better texture.
Why did my cake sink in the middle?
This can happen if the oven door was opened too early, or if the batter was overmixed. It can also occur if the baking powder or baking soda is expired. Always check the expiration dates on your leaveners.
Can I make this cake without buttermilk?
Yes, you can make a quick substitute: add 1 ½ teaspoons of lemon juice or white vinegar to ½ cup of milk, stir, and let sit for 5 minutes until it thickens slightly. Use this in place of buttermilk.
How do I know when the cake is done?
Insert a toothpick into the center of the cake. If it comes out clean or with just a few moist crumbs, it's done. If it has wet batter, bake for another 3-5 minutes and test again. The edges will also start to pull away from the pan.
Can I reduce the sugar?
You can reduce the granulated sugar to ¾ cup (150g) and the brown sugar to ⅓ cup (65g) without drastically affecting the texture, but the cake will be less sweet. Keep in mind that sugar also contributes to moisture and browning.
Do I need to refrigerate the cake?
Yes, because the cream cheese frosting is perishable. If you leave it out for more than 2 hours, it should be refrigerated. The cake itself can stay at room temperature, but the frosting requires chilling.