Nut-Free Carrot Cake Recipe with Cream Cheese Frosting

Updated November 3, 2026

Total time
2 hr 30 min
prep 30 min · cook 40 min
Serves
12
portions as written
Safe temperature (USDA)
160°F / 71°C
check the thickest piece

Jump to recipe

Nut-Free Carrot Cake Recipe with Cream Cheese Frosting

This nut-free carrot cake is a soft, warmly spiced cake made with freshly grated carrots, brown sugar, and oil, then finished with tangy cream cheese frosting. Baked in a single rectangular pan, it is easy to portion and keeps its tender crumb without walnuts or pecans.

Ingredients

  • 2 cups (250 g) all-purpose flour, spooned into the measuring cup and leveled
  • 1 teaspoon (4 g) baking powder
  • 1½ teaspoons (7 g) baking soda
  • 2 teaspoons (5 g) ground cinnamon
  • 1 teaspoon (2 g) ground ginger
  • ¼ teaspoon (0.5 g) ground nutmeg
  • 1 teaspoon (6 g) fine salt
  • 1¼ cups (250 g) packed light brown sugar
  • ½ cup (100 g) granulated sugar
  • 1 cup (220 g) neutral oil, such as canola or sunflower oil
  • 4 large eggs (about 200 g without shells), at room temperature
  • 2 teaspoons (10 ml) vanilla extract
  • 3 cups (330 g) finely grated carrots, from about 4 medium carrots; measure after grating
  • 8 ounces (226 g) full-fat cream cheese, softened but still cool
  • ½ cup (113 g) unsalted butter, softened
  • 3 cups (360 g) powdered sugar, sifted if lumpy
  • 1 teaspoon (5 ml) vanilla extract for the frosting
  • 1 teaspoon (5 ml) lemon juice, optional, for a brighter frosting
  • ⅛ teaspoon (0.7 g) fine salt for the frosting

Instructions

  1. Prepare the pan and oven. Set a rack in the middle of the oven and heat it to 350°F (177°C). Grease a 9-by-13-inch (23-by-33-cm) baking pan and line the bottom with parchment paper, leaving a little overhang on the long sides if you want to lift the cake out easily. The parchment is helpful but not essential if the pan is well greased.
  2. Grate the carrots. Peel the carrots and grate them using the small or medium holes of a box grater. Measure 3 cups (330 g) after grating. Finely grated carrot distributes evenly and softens as the cake bakes; avoid using pre-shredded packaged carrot, which is usually too dry and coarse for this batter. Do not squeeze out the carrot moisture.
  3. Combine the dry ingredients. In a medium bowl, whisk together the flour, baking powder, baking soda, cinnamon, ginger, nutmeg, and salt. Break up any small lumps of baking soda so the cake rises evenly and does not develop a bitter spot.
  4. Mix the wet ingredients. In a large bowl, whisk the brown sugar, granulated sugar, and oil until evenly combined. Whisk in the eggs one at a time, then whisk in the vanilla. The mixture may look glossy and slightly thick. Using room-temperature eggs helps them blend into the oil and sugar without leaving streaks.
  5. Make the batter. Add the dry ingredients to the wet mixture in two additions. Fold with a flexible spatula just until the flour is mostly incorporated, then fold in the grated carrots. Stop as soon as no dry pockets remain; a few small lumps are fine. Mixing longer than necessary can make the cake dense rather than tender.
  6. Bake until set. Scrape the batter into the prepared pan and smooth the top. Bake for 35–42 minutes, rotating the pan once if your oven browns unevenly. The cake is done when the center springs back lightly, the edges have begun to pull away from the pan, and a toothpick inserted in the middle comes out with a few moist crumbs rather than wet batter. For egg safety, the USDA FSIS safe minimum for egg dishes is 160°F (71°C); the cake should pass that temperature, while the toothpick and set center are the practical tests for cake doneness.
  7. Cool completely and frost. Set the pan on a rack and leave the cake to cool for 10 minutes. Lift it out by the parchment, if using, and let it cool on the rack for another 50 minutes, or until no warmth remains in the center. For the frosting, beat the softened cream cheese and butter until smooth, about 1–2 minutes. Add the powdered sugar in three additions, mixing on low at first, then beat in the vanilla, optional lemon juice, and salt until creamy. Spread the frosting over the cooled cake. Refrigerate for 20 minutes to help the frosting set before slicing.

Tips

  • Check the flour measurement. Too much flour is a common reason carrot cake turns dry. Weigh it when possible; otherwise spoon flour lightly into the measuring cup and level the top rather than packing it down.
  • Use freshly grated carrots. Grating them yourself gives the batter the moisture it needs. If the carrots are especially large or woody, peel them and avoid the tough core. Measure the grated carrot loosely rather than compressing it into the cup.
  • Keep the cream cheese cool. Softened cream cheese should yield to a light press but not look shiny or runny. If it becomes too warm, the frosting can turn loose; refrigerate it for 10–15 minutes before spreading.
  • Check ingredient labels for allergy needs. This recipe contains no nuts as written, but ingredients and equipment can have cross-contact warnings. For someone with a nut allergy, check every package, use clean utensils and pans, and avoid garnishes or toppings that may have contacted nuts.

Serving Suggestions

Cut the chilled cake into 12 generous squares, or make smaller pieces for a buffet or dessert table. Let slices stand at room temperature for about 15–20 minutes before serving so the cake softens and the frosting is not too firm. A little extra ground cinnamon over the frosting is a simple finish; if you want a nut-free crunch, use toasted pumpkin seeds only after checking their packaging for cross-contact information.

This cake works well after a meal with coffee or tea, and it can also be served as a snack cake without any additional topping. Because the cream cheese frosting is rich, modest portions are satisfying; for a party, cut the pan into 16 smaller squares and offer a serving spatula so the frosting stays neat.

Variations

Make it dairy-free: Use a plant-based butter and a plain dairy-free cream cheese alternative in the frosting. Choose products that are suitable for your dietary needs and check their allergy statements. The frosting may be softer or less tangy than the dairy version, so chill it until spreadable and keep the finished cake refrigerated.

Add raisins or coconut: Fold up to ½ cup (75 g) raisins or ½ cup (40 g) unsweetened shredded coconut into the batter with the carrots. Raisins add chewy sweetness, while coconut makes the crumb a little more textured. Avoid adding a large quantity of extra mix-ins, which can weigh down the cake and affect how evenly it bakes.

Use a different pan: The batter can be divided between two greased 8-inch (20-cm) round pans for a layer cake. Begin checking after about 28 minutes; the actual time varies with the pans and oven. Cool the layers fully before frosting, and place a parchment circle in each pan to make removal easier. Do not fill pans more than about two-thirds full.

Adjust the spices: For a milder flavor, reduce the ginger to ½ teaspoon (1 g). For a more pronounced warm spice profile, add ¼ teaspoon (0.5 g) ground cloves or allspice. These spices are optional additions, not replacements for the flour or leaveners, and a small amount is enough to keep the carrot flavor noticeable.

Storage and Reheating

Because the frosting contains cream cheese, refrigerate the frosted cake within 2 hours of serving. Cover the pan tightly or transfer slices to an airtight container and refrigerate for up to 4 days. The cake is best served slightly softened, so take out only the portions you plan to eat and leave them at room temperature for 15–20 minutes. Do not leave the frosted cake out for more than 2 hours at room temperature.

For longer storage, freeze individual unfrosted slices or frosted portions in a single layer until firm, then wrap them well and place them in a freezer-safe container for up to 2 months. Thaw overnight in the refrigerator. If you prefer to freeze the whole cake, freeze it unfrosted when possible and make the frosting after thawing; this gives the neatest texture. Reheating is not necessary, and warming a frosted slice can melt the topping. If you want the cake slightly warm, briefly warm an unfrosted slice and add frosting after it cools.

Frequently Asked Questions

Can I make this nut-free carrot cake without a mixer?
Yes. A whisk is enough to combine the wet ingredients, and a flexible spatula works well for folding in the flour and carrots. Use a hand mixer or stand mixer for the frosting if available, since it makes the cream cheese and butter especially smooth, but a sturdy whisk and some patient mixing will also work.

Can I use whole-wheat flour?
You can replace up to ½ cup (60 g) of the all-purpose flour with whole-wheat flour. The cake will have a slightly heartier texture and a more noticeable wheat flavor. Replacing all the flour may make the crumb heavier, so for a first batch, keep most of the flour all-purpose and measure carefully.

Why did my carrot cake turn out dense?
Common causes include measuring too much flour, overmixing after adding the flour, or using old baking soda or baking powder. The batter should be folded only until combined. Also check that your oven is fully heated before the pan goes in, since a slow start can interfere with an even rise.

Can I prepare the cake ahead of time?
Yes. Bake the cake a day ahead, cool it completely, cover it, and refrigerate it unfrosted. You can also make the frosting ahead and store it in a covered container in the refrigerator for up to 3 days. Let the frosting soften slightly, then stir or briefly beat it smooth before spreading; frost the cake once it is cool.

Can I bake this recipe as cupcakes?
Yes. Line a standard muffin pan and fill each cup about two-thirds full. Bake at the same 350°F (177°C) temperature, beginning to check at 18 minutes; many ovens take about 18–22 minutes. They are ready when the tops spring back and a toothpick comes out without wet batter. Cool completely before frosting, and expect the yield to depend on how full you fill each cup.

How can I tell whether packaged ingredients are safe for a nut allergy?
Read the current label on the flour, spices, sugars, oil, and especially the frosting ingredients, since manufacturing and cross-contact statements can vary. If the cake is for someone with a serious allergy, ask which ingredients and precautions are appropriate for that person, and use freshly cleaned equipment and work surfaces. A recipe made without nuts cannot guarantee that packaged ingredients are free from cross-contact.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).