Vegan chocolate cake

Rich, moist, and chocolatey, this vegan chocolate cake is the one you’ll want for every birthday and celebration. Two soft, tender layers are stacked with a silky chocolate buttercream, swirled on with the back of a spoon for a pretty, homemade look. It’s so decadent that no one will guess it’s made without eggs or dairy.

The secret to its moist, tender crumb is a simple vegan “buttermilk” made with coconut milk and a splash of apple cider vinegar. A full cup of cocoa powder makes it chocolatey, and a little ground coffee makes the chocolate taste even richer, without tasting like coffee. Oil instead of butter keeps the cake soft for days.

Best of all, the batter comes together in one bowl with just a whisk, so there’s no mixer needed for the cake and very little cleanup. While the layers cool, you can whip up the frosting, and the cake will be ready to slice and share.

Preparation Time: 1 hour (plus 1 hour to cool)

Ingredients

Nutrition Facts Nutrition information Per serving Calories Energy 750 3138 kJ 750 kcal Protein 6 g 6 g

Chocolate cake

  • 1 tablespoon vegan butter, for greasing
  • 2.25 cups unsweetened coconut milk (from a carton)
  • 1 tablespoon apple cider vinegar
  • 2 cups granulated sugar
  • 0.67 cup avocado oil
  • 1 tablespoon vanilla extract
  • 2 teaspoons finely ground coffee
  • 2.25 cups all-purpose flour
  • 1 cup unsweetened cocoa powder
  • 1.5 teaspoons baking soda
  • 1 teaspoon baking powder
  • 0.75 teaspoon salt

Chocolate frosting

  • 1.5 cups (3 sticks) vegan butter, softened
  • 4.25 cups powdered sugar
  • 1.25 cups unsweetened cocoa powder
  • 5 tablespoons unsweetened coconut milk or other plant-based milk, divided
  • 1 tablespoon vanilla extract
  • pinch of salt

For decorating (optional)

  • fresh raspberries, blackberries, and halved strawberries

Preparation

  1. Prep the pans. Preheat the oven to 350°F. Brush the bottoms and sides of two 8-inch round cake pans with a thin layer of vegan butter. Line the bottoms with parchment circles and the sides with parchment strips, pressing them flat so they stick.
  2. Make the “buttermilk.” In a large bowl, whisk together the coconut milk and apple cider vinegar. Let sit for 2 minutes, until slightly thickened.
  3. Add the wet ingredients. Whisk in the sugar, oil, vanilla, and ground coffee until smooth.
  4. Add the dry ingredients. Set a sieve over the bowl and sift in the flour, cocoa powder, baking soda, baking powder, and salt. Whisk gently, just until no dry flour remains. The batter will be fairly thin.
  5. Bake. Divide the batter evenly between the pans. Bake on the middle rack for 35 to 40 minutes, until a toothpick inserted into the center comes out clean or with a few moist crumbs. Don’t open the oven during the first 30 minutes.
  6. Cool. Let the cakes cool in the pans on a wire rack for 10 minutes. Carefully lift them out, still in their parchment, and let them cool completely on the rack, about 1 hour. Peel off the parchment just before frosting.
  7. Make the frosting. In a large bowl, beat the vegan butter with a hand or stand mixer for 1 minute, until smooth. Add the powdered sugar, cocoa powder, 3 tablespoons of the milk, the vanilla, and salt. Beat on low speed until combined, then on medium-high for 2 minutes, until fluffy and smooth. Add the remaining 2 tablespoons of milk and beat for 30 seconds more, until soft and spreadable.
  8. Frost the cake. Place one layer on a plate or cake stand, flat side up, and spread with about 1 cup of frosting. Top with the second layer, flat side up. Frost the sides, then the top, and make small curved swirls with the back of a spoon.

Whole vegan chocolate cake with swirled chocolate frosting topped with strawberries, raspberries, and blackberries on a white cake stand

Tips

  • Use carton coconut milk: Use unsweetened, unflavored coconut milk from a carton, not a can. Canned coconut milk is much thicker and richer, and it would change the texture. The cake won’t taste like coconut, since carton coconut milk is mild.
  • Measure the flour carefully: Spoon it into the measuring cup and level it off. Scooping straight from the bag packs in too much flour and makes the cake dry. Do the same with the cocoa powder.
  • Don’t worry about the coffee: The finely ground coffee only deepens the chocolate flavor. You won’t taste it.
  • Swap the oil: Any neutral oil, like canola or vegetable oil, works in place of avocado oil.
  • Sift the dry ingredients: Cocoa powder tends to clump, and sifting it straight into the bowl keeps the batter smooth, with no extra bowl to wash.
  • Whisk gently: Mix just until the flour disappears. Overmixing makes the cake dense instead of tender.
  • Don’t open the oven too early: A rush of cool air can make the center sink, so wait at least 30 minutes before checking. If the layers dip a little anyway, stack them flat side up, and the frosting will fill in any dip.
  • Keep the parchment on while cooling: The warm layers are very soft, and the parchment helps them hold together.
  • Let the cake cool completely: Even a slightly warm cake melts the frosting and makes it slide off.
  • Use butter sticks for the frosting: Vegan butter sticks, like Earth Balance, are firmer than tubs and make a thicker, creamier frosting. Take them out about 1 hour ahead, so they’re soft enough to press with a finger but not melted. Cold butter makes a lumpy frosting.
  • Adjust the frosting: If it feels stiff and tears the cake as you spread it, beat in a little more milk, 1 teaspoon at a time.
  • Slice it cleanly: Dip a large knife in hot water and wipe it dry between cuts.
  • Storage: Store the frosted cake covered at room temperature for up to 2 days, or in the refrigerator for 3 to 4 days. Let refrigerated slices sit at room temperature for 20 minutes before serving, so the frosting softens.