Dinners

Easy Moist Carrot Cake Scratch Recipe

Updated · By Stir & Share

Total timeprep + cook
1 hr 15 min
Prep
20 min
hands-on
Cook
55 min
oven or stovetop
Serves
12
as written
USDA safe temp
200°F / 93°C
check the thickest part

Jump to recipe Save

This scratch-made carrot cake is incredibly moist and flavorful, thanks to a blend of warm spices and grated carrots baked into a tender crumb. The secret to its moistness lies in using oil instead of butter and adding shredded carrots directly to the batter, retaining moisture throughout the baking process. It’s a crowd-pleaser perfect for birthdays, holidays, or a comforting weeknight treat.

Ingredients

  • 2 cups (250 g) all-purpose flour
  • 2 teaspoons baking soda
  • 1 teaspoon ground cinnamon
  • 1/2 teaspoon ground nutmeg
  • 1/4 teaspoon ground cloves
  • 1/2 teaspoon salt
  • 1 1/2 cups (300 g) granulated sugar
  • 3/4 cup (150 g) packed light brown sugar
  • 3/4 cup (180 ml) vegetable oil
  • 4 large eggs
  • 1 teaspoon vanilla extract
  • 3 cups (about 400 g) grated carrots, packed
  • 1 cup (about 125 g) chopped walnuts or pecans (optional)
  • 1/2 cup (about 65 g) raisins (optional)

Instructions

  1. Preheat your oven to 350°F (175°C). Grease and flour a 9×13 inch (23×33 cm) baking pan.
  2. In a large bowl, whisk together the flour, baking soda, cinnamon, nutmeg, cloves, and salt.
  3. In a separate large bowl, combine the granulated sugar, brown sugar, and vegetable oil. Beat with an electric mixer until well combined.
  4. Add the eggs one at a time, beating well after each addition. Stir in the vanilla extract.
  5. Gradually add the dry ingredients to the wet ingredients, mixing until just combined. Do not overmix.
  6. Stir in the grated carrots, walnuts (if using), and raisins (if using).
  7. Pour the batter into the prepared baking pan and spread evenly.
  8. Bake for 50-55 minutes, or until a wooden skewer inserted into the center comes out with a few moist crumbs. USDA FSIS safe minimum internal temperature is 200°F (93°C).
  9. Let the cake cool in the pan for 10 minutes before inverting it onto a wire rack to cool completely.

Cream Cheese Frosting

  • 8 ounces (225 g) cream cheese, softened
  • 1/2 cup (115 g) unsalted butter, softened
  • 3 cups (360 g) powdered sugar
  • 1 teaspoon vanilla extract

Instructions (Frosting)

  1. In a large bowl, beat the cream cheese and butter until smooth and creamy.
  2. Gradually add the powdered sugar, beating until well combined.
  3. Stir in the vanilla extract.
  4. Frost the cooled cake with the cream cheese frosting.

Why Carrot Cake Can Go Wrong and How to Fix It

Too Dry

A dry carrot cake usually results from overbaking or using too much flour. To prevent this, measure flour accurately (spoon into the measuring cup and level off) and check for doneness a few minutes early. Adding a tablespoon or two of applesauce or plain yogurt to the batter can also help retain moisture.

Too Runny

A runny cake can be caused by using too many eggs or not enough flour. Ensure your eggs are large and measure accurately. If the batter seems excessively thin, add a tablespoon of flour at a time until it reaches a pourable consistency. Avoid overmixing, as this can develop gluten and make the cake tough.

Dense and Heavy

A dense cake often results from overmixing the batter, which develops too much gluten. Mix the dry and wet ingredients until just combined, being careful not to overwork the batter. Also, ensure your baking powder and baking soda are fresh – old leavening agents lose their potency.

Substitutions

Flour

You can substitute up to 1/2 cup (60 g) of the all-purpose flour with whole wheat flour for a nuttier flavor and slightly denser texture. If substituting, reduce the amount of liquid in the recipe by 1 tablespoon.

Sugar

Brown sugar can be substituted for the granulated sugar, or vice versa. Using all brown sugar will result in a moister, more caramel-like cake.

Oil

While oil provides the best moisture, you can substitute it with 1/2 cup (115 g) of melted unsalted butter. The cake will have a slightly different flavor and texture, being less moist.

Nuts

Walnuts or pecans can be substituted with other chopped nuts, such as almonds or hazelnuts. You can also omit the nuts entirely.

Equipment That Matters

Baking Pan

A 9×13 inch (23×33 cm) baking pan is ideal for this recipe. If using a different size pan, adjust the baking time accordingly. A dark-colored pan will bake the cake faster, so check for doneness a few minutes early. A glass pan will also bake faster, so reduce the oven temperature by 25°F (14°C).

Electric Mixer

An electric mixer is helpful for creaming the sugar and oil together and incorporating the eggs. However, you can also use a whisk and a good arm workout.

Food Thermometer

A food thermometer is essential for ensuring the cake reaches a USDA FSIS safe minimum internal temperature of 200°F (93°C) and for checking the temperature of any meat or poultry you might be serving with the cake.

Storage

Leftover carrot cake can be stored in an airtight container at room temperature for up to 2 days or in the refrigerator for up to 4 days. For longer storage, wrap the cake tightly in plastic wrap and freeze for up to 3 months. Thaw in the refrigerator overnight before serving.

Serves S · Prep P · Cook C · Total T

Related

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).