Dinners

Fresh Milled Carrot Cake Recipe With Cream Cheese Frosting

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
2 hr 30 min
Prep
45 min
hands-on
Cook
45 min
oven or stovetop
Serves
12
as written

Jump to recipe Save

Time 2 hr 30 min · Serves 12 · The key step Grating carrots finely ensures even moisture and texture. This spiced, moist carrot cake is layered with cream cheese frosting and best served at room temperature for gatherings or as a weekend treat.

Origins

Carrot cake became popular in American home baking during the mid-20th century, when sugar rationing encouraged the use of vegetables as sweeteners. It relies on finely grated carrots to add moisture and structure, along with warm spices and a tender crumb.

Ingredients

  • 2 cups (250 g) all-purpose flour
  • 2 tsp (10 g) baking soda
  • 1 tsp (5 g) fine salt
  • 2 tsp (4 g) ground cinnamon
  • 1/2 tsp (1 g) ground nutmeg
  • 1/2 tsp (1 g) ground ginger
  • 3 large eggs, at room temperature
  • 1 1/2 cups (300 g) granulated sugar
  • 1 cup (240 ml) vegetable oil or melted coconut oil
  • 2 tsp (10 ml) pure vanilla extract
  • 3 cups (300 g) finely grated fresh carrots (about 4 medium)
  • 1/2 cup (60 g) chopped walnuts or pecans (optional)
  • 1/2 cup (80 g) crushed pineapple, drained (optional, for extra moisture)

Cream Cheese Frosting

  • 8 oz (225 g) full-fat cream cheese, softened
  • 1/2 cup (115 g) unsalted butter, softened
  • 4 cups (480 g) powdered sugar, sifted
  • 1 tsp (5 ml) vanilla extract
  • 1-2 tbsp (15–30 ml) heavy cream or milk, as needed for consistency

Instructions

  1. Preheat oven to 350°F (175°C). Grease and flour two 9-inch (23 cm) round cake pans or line with parchment.
  2. In a medium bowl, whisk together flour, baking soda, salt, cinnamon, nutmeg, and ginger. Set aside.
  3. In a large bowl, beat eggs, sugar, oil, and vanilla with an electric mixer on medium speed for 2 minutes until smooth and slightly thickened.
  4. Gradually add the dry ingredients to the wet, mixing on low until just combined. Do not overmix.
  5. Fold in grated carrots, nuts, and drained pineapple (if using) with a spatula until evenly distributed.
  6. Divide batter evenly between the prepared pans. Tap pans gently on counter to release air bubbles.
  7. Bake for 30–35 minutes, until a toothpick inserted into the center comes out clean and the top springs back when lightly pressed.
  8. Cool in pans for 10 minutes. Run a knife around edges, then invert onto wire racks. Remove parchment and cool completely before frosting, about 1 hour.
  9. To make frosting: beat cream cheese and butter together until smooth and creamy, about 2 minutes.
  10. Add powdered sugar one cup at a time, mixing on low to avoid clouding, then increase speed to incorporate fully.
  11. Blend in vanilla and 1 tbsp cream. Add second tbsp only if needed for spreadable consistency.
  12. Place one cake layer on a plate. Spread frosting evenly over the top. Top with second layer and frost top and sides uniformly.
  13. For clean slices, chill cake for 20 minutes before cutting with a sharp knife wiped between cuts.

Doneness and Texture

What It Should Look Like

The cake is done when the top is golden brown and slightly domed, with small cracks forming. The surface should spring back when touched lightly. A toothpick inserted into the center should come out clean or with a few dry crumbs—no wet batter.

Bake time: 30–35 minutes at 350°F (175°C). Overbaking leads to dryness; underbaking results in a gummy crumb.

Common Errors

Overmixing the batter develops gluten, making the cake dense and rubbery. Mix dry ingredients into wet just until combined, then fold in carrots by hand.

Using coarse or wet grated carrots adds too much liquid and uneven texture. Grate carrots finely using the small holes of a box grater. Do not squeeze moisture out—it contributes to tenderness.

Frosting a warm cake causes the frosting to melt and slide off. Cool layers completely on wire racks—about 1 hour—before applying frosting.

Storage and Safety

Refrigeration

This cake contains perishable ingredients: eggs, cream cheese, and butter. Refrigerate within 2 hours of assembly. Store in an airtight container or under a cake dome for up to 5 days.

Freezing

Unfrosted cake layers can be wrapped tightly in plastic and foil, then frozen for up to 3 months. Thaw overnight in the refrigerator before frosting.

Frosted cake can be frozen whole: place in the freezer uncovered for 1 hour to firm the frosting, then wrap in plastic. Use within 2 months. Thaw in the refrigerator overnight.

Cross-Contamination

Use separate bowls and utensils for raw egg-containing batter and frosting. Wash hands, beaters, and surfaces after handling raw eggs to prevent salmonella risk.

Serving and Slicing

Temperature

For best texture, serve cake at room temperature. Remove from the refrigerator 30 minutes before serving to soften frosting slightly.

Clean Slices

Use a long, thin-bladed knife dipped in hot water and wiped dry between cuts. Chilling the cake for 20 minutes before slicing helps maintain sharp edges.

Ingredient Swaps

Gluten-free: Substitute all-purpose flour with a 1:1 gluten-free baking blend containing xanthan gum. Do not use almond or coconut flour alone—they lack structure.

Dairy-free: Use plant-based cream cheese and butter alternatives labeled for baking. Some brands separate when beaten; choose ones formulated for frosting.

Nut-free

: Omit walnuts or pecans. The cake remains moist without them. For crunch, consider toasted sunflower seeds.

Oil substitution: Replace oil with unsweetened applesauce in a 1:1 ratio for a lighter texture, but expect a denser crumb and less richness.

Grating Carrots

Best Method

Use a box grater with fine holes or a food processor with a fine shredding disc. Aim for thin, uniform strands about 1/16 inch (1.5 mm) thick. Finer shreds blend into the batter and release moisture evenly during baking.

Carrot Weight and Yield

One medium carrot weighs about 75 g unpeeled. After peeling and grating, it yields about 60 g. For 3 cups (300 g) grated, use 4–5 medium carrots. Overfilling the measuring cup adds excess moisture.

Pan Options

Use two 9-inch (23 cm) round pans for a layer cake. For a sheet cake, use a 9×13-inch (23×33 cm) pan and increase bake time to 40–45 minutes.

For cupcakes, line 24 muffin cups and bake at 350°F (175°C) for 18–22 minutes. Fill liners 2/3 full to avoid overflow.

Spice Adjustments

The spice blend enhances warmth without overpowering. Increase cinnamon to 2 1/2 tsp for stronger flavor. Reduce nutmeg to 1/4 tsp if sensitive to its sharpness. Ground cloves (1/4 tsp) can be added for depth but may dominate if overused.

Cooling Process

Cooling in the pan for 10 minutes allows structure to set. Removing too early causes collapse. Leaving longer than 15 minutes traps steam, leading to a soggy bottom. Invert promptly, then cool completely on wire racks to prevent condensation.

Frosting Consistency

Too stiff? Add cream 1 tsp at a time. Too runny? Chill frosting for 10 minutes or add 1/4 cup more powdered sugar. Overbeating can cause butter to separate—stop once smooth.

Make-Ahead Plan

Bake cake layers up to 2 days ahead. Cool, wrap in plastic, and store at room temperature if using within 24 hours; otherwise refrigerate.

Frosting can be made 3 days ahead. Store in an airtight container in the refrigerator. Rebeat at room temperature for 1 minute before using.

Yield and Scaling

This recipe fills two 9-inch (23 cm) round pans to a depth of about 1 1/2 inches (4 cm). For a three-layer cake, use the same recipe and divide among three pans. Bake time remains 30–35 minutes.

To double, use a 12-cup Bundt pan. Bake at 325°F (160°C) for 60–70 minutes, until center is set and toothpick clean.

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