Zimt

Homemade Carrot Cake Recipe for Moist Dessert

· 6 min read · Cakes

In this article
  1. Cake Equipment and Pairing
  2. Ingredients
  3. Instructions
  4. Ingredient Swaps and Ratios
  5. Cake Storage and Safety

This carrot cake uses oil and grated carrots to create a dense, moist crumb that stays fresh for days. The combination of brown sugar and cinnamon provides a deep warmth that pairs with a tangy cream cheese frosting for a balanced, crowd-pleasing dessert. It is a reliable choice for potlucks, holiday gatherings, or a weekend treat.

Cake Equipment and Pairing

Two 9-inch (23 cm) round cake pans are standard for this recipe to ensure even baking and a consistent height. If you only have one larger rectangular pan, such as a 9x13 inch (23x33 cm) pan, you can use it, but you will need to increase the bake time by about 5-10 minutes. A box grater or a food processor with a grating disk is necessary for the carrots; hand-grating produces a coarser texture that adds more moisture, while a processor creates finer shreds that blend more seamlessly into the batter.

For mixing, a stand mixer or a handheld electric mixer works best to incorporate the sugar and oil without overworking the flour. If mixing by hand, use a large whisk and a wide mixing bowl to avoid lumps. To ensure the cake releases easily, grease the pans with butter or non-stick spray and line the bottoms with parchment paper circles. This prevents the moist cake from sticking to the bottom of the pan during removal.

Serve this cake with a cup of black coffee or a strong Earl Grey tea to cut through the richness of the cream cheese frosting. For a more elaborate presentation, garnish the top with toasted walnut halves or a sprinkle of cinnamon. It also pairs well with a side of fresh berries, such as raspberries or sliced strawberries, which add a tart contrast to the sweet cake layers.

Serves 12 · Prep 30 min · Cook 35 min · Total 2 hr 35 min

Ingredients

  • 2 cups (250 g) all-purpose flour
  • 2 cups (400 g) granulated sugar
  • 1 tablespoon (15 ml) ground cinnamon
  • 1 teaspoon (5 g) baking soda
  • 1 teaspoon (5 g) baking powder
  • 1/2 teaspoon (3 g) salt
  • 1 cup (240 ml) vegetable oil or canola oil
  • 4 large eggs, room temperature
  • 3 cups (340 g) grated carrots, about 5-6 medium carrots
  • 1/2 cup (65 g) chopped walnuts or pecans, optional
  • 1/2 cup (60 g) raisins, optional
  • 8 oz (225 g) cream cheese, softened to room temperature
  • 1/2 cup (115 g) unsalted butter, softened to room temperature
  • 4 cups (500 g) powdered sugar
  • 1 teaspoon (5 ml) vanilla extract
  • 2 tablespoons (30 ml) milk or heavy cream

Instructions

  1. Preheat your oven to 350°F (175°C). Grease and flour two 9-inch (23 cm) round cake pans and line the bottoms with parchment paper.
  2. Whisk together the flour, granulated sugar, cinnamon, baking soda, baking powder, and salt in a large bowl. Ensure there are no large clumps of cinnamon or baking soda.
  3. In a separate medium bowl, beat the oil and eggs together until smooth. Stir in the vanilla extract if using.
  4. Gradually stir the wet ingredients into the dry ingredients using a spatula or mixer on low speed. Mix only until the flour streaks disappear; overmixing at this stage can make the cake tough.
  5. Fold in the grated carrots, chopped walnuts, and raisins by hand using a rubber spatula. Stir until the carrots are evenly distributed throughout the batter.
  6. Divide the batter equally between the two prepared pans. Bake for 30-35 minutes. The cake is done when a toothpick inserted into the center comes out clean or with just a few moist crumbs, and the edges have slightly pulled away from the sides of the pan.
  7. Remove the pans from the oven and let them cool for 10 minutes before inverting the cakes onto wire racks to cool completely. The cakes must be entirely cold before frosting, or the cream cheese icing will melt and slide off.
  8. To make the frosting, beat the softened cream cheese and butter together in a bowl until smooth and creamy, about 2-3 minutes.
  9. Add the powdered sugar one cup at a time, beating on low speed then increasing to medium until fluffy. Stir in the vanilla extract and milk until the frosting reaches a spreadable consistency.
  10. Place one cake layer on a serving plate. Spread a generous layer of frosting over the top. Place the second cake layer on top and frost the top and sides of the entire cake.

Ingredient Swaps and Ratios

If you prefer a different fat source, you can replace the vegetable oil with melted coconut oil at a 1:1 ratio. Coconut oil adds a very subtle coconut flavor and can make the cake slightly firmer when chilled. For a denser, more buttery flavor, you can use melted unsalted butter, though the cake will be less moist over time than the oil-based version.

To swap the nuts, use pumpkin seeds or sunflower seeds for a nut-free alternative, maintaining the 1/2 cup (65 g) quantity. If you do not have raisins, dried cranberries or chopped dried apricots work well. For a more citrusy profile, add 1 tablespoon (15 ml) of orange zest to the batter; this complements the carrots and cinnamon without altering the chemistry of the bake.

If you need to adjust the sweetness, you can replace half of the granulated sugar with light brown sugar (1 cup granulated, 1 cup brown). This increases the molasses notes and adds a bit more moisture to the crumb. For the frosting, if it is too thick, add milk one teaspoon (5 ml) at a time. If it is too thin, whisk in an additional 1/4 cup (30 g) of powdered sugar.

Cake Storage and Safety

Because this cake contains a cream cheese frosting, it is a perishable item. Refrigerate the cake within 2 hours of frosting to prevent the dairy from spoiling. Store it in an airtight cake carrier or a large plastic container to prevent the cake from absorbing other odors from the refrigerator. The cake will stay fresh and safe to eat for about 3-4 days when kept refrigerated.

For longer storage, you can freeze the unfrosted cake layers. Wrap each cooled layer tightly in two layers of plastic wrap and then a layer of aluminum foil. Frozen layers will keep for up to 3 months. To use them, thaw the layers in the refrigerator overnight before frosting. If you freeze the cake after it has been frosted, slice it into individual pieces first; this makes it easier to thaw and reheat small portions.

When reheating a slice of cake, it is best to let it sit at room temperature for 30-60 minutes to soften the fats in the cake and frosting. If you prefer it warm, use a microwave on low power for 10-15 seconds, but be careful not to overheat it, as the cream cheese frosting will melt quickly. Any leftovers that have been left at room temperature for more than 2 hours (or 1 hour if the room is above 90°F/32°C) should be discarded to avoid foodborne illness.

Regarding raw ingredients, raw flour and raw eggs can contain bacteria. Do not taste the batter before baking. To make the batter safe for those who must avoid raw flour, heat-treat the flour in the oven at 350°F (175°C) until it reaches an internal temperature of 160°F (71°C), then let it cool before using. Use pasteurized eggs for added safety, especially for pregnant people, young children, or older adults.