Classic Vegan Carrot Cake (Super Moist)

A vegan carrot cake stays soft and holds its shape when the fat is a neutral oil instead of vegan butter and when the leaveners get a little acid to wake them up. This version leans on both: oil keeps the crumb tender for days, apple cider vinegar reacts with the baking soda for lift, and the grated carrots add their own moisture as the cake bakes. There’s no flax, no tofu, and no egg replacer in the bowl, just the pantry staples most people already have. The batter comes together in two bowls with about 25 minutes of hands-on work, and the cakes bake in a little over half an hour.

Two layers, a full two cups of grated carrot, and a thick cream cheese frosting make this taste like the bakery version rather than a compromise. I keep the spice mix close to the classic, cinnamon with a little ginger and nutmeg, because carrot cake should still taste like carrot cake. It’s the cake I bring when I want to please a table of vegans and non-vegans at the same time, and it sits just as well next to a mug of vegan hot chocolate as it does on a dessert table with vegan banana bread and vegan chocolate chip cookies.

Vegan Carrot Cake, vegan recipe

Vegan Carrot Cake

A soft, warmly spiced vegan carrot cake with a tender crumb and a thick vegan cream cheese frosting that actually holds between the layers.
Prep Time 25 minutes
Cook Time 32 minutes
Total Time 57 minutes
Servings: 12 slices
Course: Dessert
Cuisine: American

Ingredients
  

Cake
  • 2 1/4 cups all-purpose flour
  • 1 cup granulated sugar
  • 1/2 cup packed light brown sugar
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1/2 teaspoon fine salt
  • 2 teaspoons ground cinnamon
  • 1/2 teaspoon ground ginger
  • 1/4 teaspoon ground nutmeg
  • 3/4 cup neutral oil such as canola or vegetable
  • 1 cup unsweetened oat milk or soy milk
  • 2 teaspoons apple cider vinegar
  • 1 tablespoon vanilla extract
  • 2 cups finely grated carrots about 3 medium carrots
  • 1/2 cup chopped walnuts or pecans optional, toasted
Vegan Cream Cheese Frosting
  • 8 ounces vegan cream cheese, softened brick-style, not the spreadable tub
  • 1/2 cup vegan butter, softened firm baking butter, not a soft spread
  • 3 1/2 cups powdered sugar sifted
  • 1 teaspoon vanilla extract
  • 1 tablespoon cornstarch optional, for a firmer frosting
  • 1 pinch fine salt

Method
 

  1. Heat the oven to 350 F (175 C). Grease two 8-inch round cake pans and line the bottoms with rounds of parchment paper.
  2. Whisk the flour, granulated sugar, brown sugar, baking powder, baking soda, salt, cinnamon, ginger, and nutmeg together in a large bowl until no streaks of spice or flour remain.
  3. In a second bowl, whisk the oil, oat milk, apple cider vinegar, and vanilla until the mixture looks smooth and slightly thickened. The vinegar will make the milk look a little curdled, and that's exactly what you want.
  4. Pour the wet ingredients into the dry and stir with a spatula just until the last dry patches disappear, about 15 to 20 strokes. Fold in the grated carrots and the nuts. Stop as soon as everything is evenly combined, because a batter that's stirred too long bakes up tough.
  5. Divide the batter evenly between the two pans, about 2 1/2 cups per pan, and smooth the tops with the spatula.
  6. Bake for 28 to 32 minutes, until the centers spring back when you press them gently and a toothpick inserted in the middle comes out clean or with a few moist crumbs.
  7. Cool the cakes in the pans for 15 minutes, then run a knife around the edges, turn them out onto a wire rack, and let them cool completely before frosting.
  8. For the frosting, beat the softened vegan cream cheese and vegan butter with an electric mixer until smooth and fluffy, about 2 minutes. Add the powdered sugar one cup at a time on low speed, then beat in the vanilla, salt, and cornstarch until the frosting is thick and holds a soft peak. If it feels loose, chill it for 20 minutes before using.
  9. Place one cooled layer on a serving plate and spread about a cup of frosting over the top. Add the second layer, then frost the top and sides with the rest. Refrigerate for at least 1 hour so the frosting sets before you slice.

Notes

Oat milk and soy milk both carry a little protein and body that help the crumb hold together, so either works well here. Very thin milks like almond or rice milk give a slightly softer, wetter center, which is still fine but less sturdy under a two-layer cake. Grate the carrots on the small holes of a box grater rather than the large ones; thick shreds stay firm in the batter and leave long strands in the slice.

Vegan Carrot Cake, vegan recipe

Tips for Vegan Carrot Cake

Carrot cake is forgiving, but a handful of small choices decide whether it comes out tender or heavy.

  • Grate the carrots on the small holes of a box grater. Thick shreds stay firm through baking and leave visible strings in the slice.
  • Spoon the flour into the measuring cup and level it off. Scooping straight from the bag packs in extra flour, and too much flour is the most common reason a carrot cake turns out dry.
  • Stop mixing the moment the last streak of flour disappears. Overworking the batter develops gluten and gives the cake a bready crumb instead of a soft one.
  • Use oil rather than melted vegan butter. Oil stays liquid at room temperature, so the cake keeps its softness for days instead of firming up in the fridge.
  • Toast the walnuts or pecans for 6 to 8 minutes before folding them in. It takes the raw edge off and makes them taste deeper in the cake.
  • Let both layers cool completely before you frost them. A warm cake melts the frosting and sends it sliding down the sides.
  • Grate the carrots yourself instead of buying pre-shredded. Bagged shreds are drier and tougher, and they don’t release the same moisture into the batter.
  • Line the pans with parchment even if they’re nonstick. Carrot cake is moist and delicate, and the parchment is what lets each layer release in one piece.

Storage

Frosted carrot cake keeps for 4 to 5 days in the fridge in a covered container, and it tastes best after the first day, once the spices settle into the crumb. Bring a slice to room temperature for about 20 minutes before eating, because the frosting firms up in the cold. To make it ahead, bake the layers up to 2 days in advance and store them tightly wrapped in the fridge, or freeze the unfrosted layers for up to 3 months, wrapped first in plastic and then in foil. Thaw them in the fridge overnight before frosting. The frosting itself can be made a day ahead and chilled, then given a quick 20-second beat to loosen it before you spread it. If you’d rather serve the whole cake at room temperature, pull it out of the fridge about 30 minutes ahead so the crumb softens back up.

FAQ

Why did my carrot cake sink in the middle?

A sunken center usually comes from one of three things: the oven door was opened too early and dropped the temperature, the batter was mixed past the point where it was just combined, or the cake came out before the center set. Leave the oven door shut for the first 20 minutes, stir the batter only until the dry patches disappear, and check for a clean toothpick near the center rather than near the edge. If a layer has already sunk a little, don’t toss it, because the center stays tender and the frosting hides the dip once the cake is assembled.

Can I make this vegan carrot cake without nuts?

Yes, and you don’t need to replace them with anything. The nuts add crunch and a little richness, but the cake holds together on its own without them. If you want that textural contrast back, fold in 1/2 cup of raisins or a drained 8-ounce can of crushed pineapple instead, both of which fit the classic flavor.

How do I keep the frosting from turning runny?

Start with brick-style vegan cream cheese and a firm vegan butter meant for baking, not a soft tub spread or margarine. Both of those carry extra water that makes the frosting loose. Beat the butter and cream cheese until smooth first, add the sifted powdered sugar slowly, and if it still feels soft, beat in the tablespoon of cornstarch and chill the bowl for 20 minutes. A cold cake also helps the frosting set on contact.

Can I bake this as cupcakes instead of a layer cake?

Yes. Line a 12-cup muffin tin with paper liners, fill each about three-quarters full, and bake at 350 F for 18 to 22 minutes, until a toothpick comes out clean. Let them cool completely before frosting. The full batch of frosting is more than enough for 12 cupcakes, so you’ll have some left over unless you pile it high.

Ricky

Recipe developer

I've been vegan for years, and this site is where I share the recipes and answers I wish I'd had when I started. Everything here is something I've actually made and would make again.

Leave a Comment

Recipe Rating