This carrot cake bakes up tender and moist with a warm spice aroma, finished with a tangy cream cheese frosting. Using an 8-inch round pan gives you a tall, bakery-style layer that’s perfect for a small celebration or a weekend treat. The method here keeps the crumb soft and the frosting stable, so you get clean slices every time.
Ingredients
- 1 ½ cups (188 g) all-purpose flour
- 1 teaspoon baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- 1 teaspoon ground cinnamon
- ½ teaspoon ground nutmeg
- ¼ teaspoon ground ginger
- ½ cup (120 ml) neutral oil (canola or vegetable)
- ¾ cup (150 g) granulated sugar
- ¼ cup (50 g) packed light brown sugar
- 2 large eggs, room temperature
- ¼ cup (60 ml) buttermilk, room temperature
- 1 teaspoon vanilla extract
- 1 ½ cups (170 g) finely grated carrots (about 2 medium carrots)
- ½ cup (60 g) chopped walnuts or pecans (optional)
- ¼ cup (40 g) raisins (optional)
For the frosting
- 8 oz (226 g) cream cheese, softened
- ½ cup (113 g) unsalted butter, softened
- 2 cups (240 g) powdered sugar, sifted
- 1 teaspoon vanilla extract
Instructions
- Preheat the oven to 350°F (175°C). Grease an 8×2-inch (20×5 cm) round pan and line the bottom with parchment paper.
- In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger.
- In a large bowl, whisk the oil, granulated sugar, and brown sugar until combined. Add the eggs one at a time, whisking well after each. Stir in the buttermilk and vanilla.
- Pour the dry ingredients into the wet mixture and stir with a spatula until just combined. Fold in the grated carrots, nuts, and raisins if using.
- Pour the batter into the prepared pan and smooth the top. Bake for 30–35 minutes, until a toothpick inserted in the center comes out clean and the top springs back when lightly pressed.
- Cool the cake in the pan on a wire rack for 15 minutes, then turn it out onto the rack to cool completely, about 1 hour.
- For the frosting, beat the cream cheese and butter together until smooth. Add the powdered sugar gradually, beating until fluffy, then stir in the vanilla.
- Once the cake is completely cool, spread the frosting over the top and sides. Refrigerate for 30 minutes before slicing to help the frosting set.
Choose the Right Pan and Adjust for Other Sizes
An 8-inch round pan is the key to this cake’s height. The pan should be at least 2 inches (5 cm) deep; a shallow 1-inch pan will overflow. If you only have a 9-inch round pan, the cake will be shorter and bake faster—start checking at 25 minutes. For a 9×13-inch pan, double the recipe and bake for 35–40 minutes. For cupcakes, fill liners two-thirds full and bake for 18–22 minutes.
If your pan is dark metal, reduce the oven temperature by 25°F (15°C) to prevent over-browning. Glass pans also bake hotter, so check earlier.
Substitutions That Keep the Cake Moist
- Oil: Replace neutral oil with melted coconut oil or applesauce (use ⅓ cup applesauce for ¼ cup oil to reduce fat, but the cake will be denser).
- Buttermilk: Mix 1 tablespoon lemon juice or vinegar with enough milk to make ¼ cup; let sit 5 minutes.
- Nuts and raisins: Omit either or both; add ½ cup shredded coconut or chopped pineapple (drained) for extra moisture.
- Spices: Use 1 ½ teaspoons pumpkin pie spice instead of the cinnamon, nutmeg, and ginger.
- Flour: For a gluten-free version, use a 1:1 gluten-free flour blend that contains xanthan gum; the texture will be slightly more crumbly.
Why It Can Come Out Dry, Dense, or Sunken—and the Fix
Too dry
Overbaking is the usual culprit. Start checking at 30 minutes; the toothpick should have a few moist crumbs, not be completely clean. Also, measure flour by spooning it into the cup and leveling off—scooping packs it down and adds extra flour.
Too dense
Overmixing the batter develops gluten, making the cake tough. Stir only until the flour disappears. Grate the carrots finely—coarse shreds create air pockets and a heavy texture.
Sunken in the middle
This happens when the batter is underbaked or the oven door is opened early. Keep the oven closed for the first 25 minutes. If the center sinks slightly, it’s still safe to eat; just frost generously.
Frosting too runny
Warm cream cheese or butter causes a thin frosting. Use them straight from the fridge, softened just until pliable. If the frosting is too soft, chill it for 15 minutes before spreading.
Storing and Freezing
Frosted carrot cake keeps in the refrigerator for up to 4 days. Cover it loosely with plastic wrap or place it in a cake carrier. Bring slices to room temperature for 30 minutes before serving to soften the frosting.
Unfrosted cake can be wrapped tightly in plastic and frozen for up to 3 months. Thaw overnight in the refrigerator, then frost. Frosted cake also freezes well for up to 1 month—freeze it unwrapped for 1 hour, then wrap in plastic and foil.
Always refrigerate any leftovers within 2 hours of serving. Cream cheese frosting contains dairy, so it should not sit at room temperature for more than 2 hours total.
Related
- Sheet Pan Lemon Garlic Butter Salmon Recipe
- Honey Garlic Sausage and Sweet Potatoes Sheet Pan Dinner
- Mango Muffins Recipe With Streusel Topping
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).
