Vegan Cake with Vanilla Icing Recipe
In this article
This is a moist, tender vanilla cake topped with a creamy dairy-free vanilla icing. It uses pantry staples and simple swaps, so you can make a celebration-worthy cake without eggs, milk, or butter. The cake is baked in two 8-inch round pans and frosted with a soft, spreadable icing that sets slightly at room temperature.
Cake Batter
- 2 cups (240 g) all-purpose flour
- 1 ½ cups (300 g) granulated sugar
- 1 tsp baking soda
- ½ tsp salt
- 1 cup (240 ml) unsweetened almond milk (or any plant milk)
- ⅔ cup (160 ml) neutral oil (sunflower, canola, or vegetable)
- 2 tbsp (30 ml) apple cider vinegar
- 1 tbsp (15 ml) vanilla extract
Prep
- Preheat oven to 350°F (175°C). Grease two 8-inch round cake pans and line the bottoms with parchment paper.
- In a large bowl, whisk together flour, sugar, baking soda, and salt.
- In a separate bowl or large measuring cup, combine plant milk, oil, vinegar, and vanilla. Stir well.
- Pour the wet ingredients into the dry. Whisk until just combined—no lumps remain, but do not overmix. The batter will be thin.
Bake
- Divide batter evenly between the prepared pans (about 400 g each).
- Bake for 25–30 minutes, until a toothpick inserted in the center comes out clean and the top springs back when lightly pressed. The internal temperature should read about 200°F (93°C) in the center.
- Cool in pans on a wire rack for 10 minutes, then turn out onto the rack and cool completely before frosting. This takes about 1 hour.
Vanilla Icing
- ½ cup (112 g) vegan butter, softened (or refined coconut oil, softened)
- 2 cups (240 g) powdered sugar, sifted
- 1 tsp vanilla extract
- 1–2 tbsp (15–30 ml) plant milk, as needed
- In a bowl, beat the vegan butter with an electric mixer until smooth and creamy, about 1 minute.
- Add powdered sugar, ½ cup at a time, beating on low until combined. Add vanilla and 1 tbsp of plant milk; beat on medium-high for 2–3 minutes until light and fluffy. Add more milk, 1 tsp at a time, if too stiff.
- If the icing is too soft, refrigerate for 15 minutes before spreading.
Assemble and Frost
- Place one cake layer on a serving plate. Spread about ½ cup of icing over the top.
- Place the second layer on top. Spread a thin crumb coat over the entire cake (a thin layer of icing to trap crumbs). Chill for 15 minutes.
- Spread the remaining icing over the top and sides. Use a spatula for smooth or swirled finish.
- Let the cake sit at room temperature for 30 minutes before slicing so the icing sets slightly.
Substitutions and Swaps
- Flour: Use an equal amount of all-purpose gluten-free flour blend (with xanthan gum) for a gluten-free version. The crumb will be slightly more delicate.
- Milk: Any unsweetened plant milk works—soy, oat, or rice. Avoid canned coconut milk (too thick) unless you thin it with water.
- Oil: Replace with ¾ cup (170 g) unsweetened applesauce for a lower-fat cake; it will be denser and more moist.
- Vinegar: White vinegar or lemon juice can replace apple cider vinegar in the same amount.
- Icing fat: Refined coconut oil (solid, not melted) works, but the icing may be slightly softer at room temperature. Add an extra ¼ cup powdered sugar to firm it up.
- Sugar: For a less sweet icing, reduce powdered sugar to 1 ½ cups and add 1 tbsp cornstarch to thicken.
Doneness and Texture Cues
- Cake: The top should be golden brown and a toothpick inserted in the center should come out with only a few moist crumbs (no wet batter). The internal temperature should be 200–205°F (93–96°C).
- Icing: It should hold a peak when the beater is lifted, but still be spreadable. If it slides off a spoon, refrigerate for 10–15 minutes.
Storing and Keeping
- Frosted cake keeps at room temperature for up to 2 days, covered with a cake dome or inverted bowl. Refrigerate if your kitchen is above 75°F (24°C).
- Unfrosted cake layers can be wrapped tightly in plastic wrap and refrigerated for up to 5 days, or frozen for up to 3 months. Thaw overnight in the fridge before frosting.
- Frosted cake can be refrigerated for up to 4 days. Bring to room temperature for 30 minutes before serving for best texture.
Vegan Cake for Cupcakes or Sheet Pan
- Cupcakes: Divide batter into 12 lined muffin cups. Bake at 350°F (175°C) for 18–22 minutes, until a toothpick comes out clean. Cool completely before frosting.
- 9x13-inch sheet cake: Pour batter into a greased 9x13-inch pan. Bake at 350°F (175°C) for 30–35 minutes, until a toothpick comes out clean. Use a double batch of icing to cover the top.
If you need a larger cake for a crowd, double the recipe and use three 9-inch pans; bake for 30–35 minutes. The icing recipe can be doubled as well.