Vegan Rainbow Layer Cake Recipe
Introduction
This vibrant vegan rainbow cake is a delightful treat that’s perfect for any celebration or just brightening up your day. Made entirely without dairy, it features colorful layers and a creamy buttercream frosting that’s sure to impress both vegans and non-vegans alike.

Ingredients
- 960ml dairy-free milk (unsweetened soya milk works best)
- 4 teaspoons apple cider vinegar
- 800g self-raising flour
- 600g caster sugar (fine white sugar)
- 2 teaspoons baking powder
- 2 teaspoons bicarbonate of soda
- 240ml sunflower oil
- 4 teaspoons vanilla extract
- Vegan friendly food gels (purple, pink, peach, yellow, green recommended)
- 560g dairy-free butter (such as Flora Plant Block Butter)
- 600g powdered / icing sugar
- 2 teaspoons vanilla extract (for frosting)
- Dairy-free milk (if needed for frosting)
Instructions
- Step 1: Preheat your oven to 180°C fan. Line 5 or 6 eight-inch loose base or push-up cake tins with greaseproof paper. If you don’t have enough tins, bake the layers separately, covering unused batter with a damp tea towel.
- Step 2: In a bowl, whisk together the dairy-free milk and apple cider vinegar. Set aside for 10 minutes to curdle and create vegan ‘buttermilk’.
- Step 3: In a large bowl, sift together the self-raising flour, caster sugar, baking powder, and bicarbonate of soda. Mix well to combine.
- Step 4: Add sunflower oil and vanilla extract to the vegan buttermilk and whisk to combine.
- Step 5: Pour the wet ingredients into the dry ingredients and gently mix until just combined. Avoid over-mixing.
- Step 6: Divide the batter evenly into 5 bowls. Add different food gels to each bowl to create your desired colors (e.g. purple, blue, yellow, orange, pink). Mix each color thoroughly.
- Step 7: Pour each colored batter into separate prepared cake tins. Tap the tins gently on the counter to remove air bubbles.
- Step 8: Bake the cakes in the preheated oven for 25-30 minutes. The cakes are done when a skewer inserted in the center comes out clean and they spring back when touched.
- Step 9: Let the cakes cool slightly in their tins, then transfer to a wire rack to cool completely. Store in a sealed container until ready to frost.
- Step 10: To make the frosting, beat the dairy-free butter in a large bowl until light and creamy using a stand or hand mixer.
- Step 11: Sift in the icing sugar and add vanilla extract. Whip on high speed for about 5 minutes until fluffy. Add a splash of dairy-free milk if too thick, or more butter if too thin. Adjust with icing sugar to get a smooth, airy texture.
- Step 12: Set aside a small portion of the buttercream and color it yellow for piping flower decorations. Fill a piping bag and snip off the tip.
- Step 13: Transfer about 3 heaped tablespoons of plain buttercream into another piping bag fitted with a large star tip and set aside.
- Step 14: Place one cake layer on your serving plate. Spread or pipe a layer of buttercream evenly on top. Repeat with all cake layers to stack, spreading buttercream between each.
- Step 15: Apply a thin crumb coat of buttercream over the top and sides of the stacked cake. Smooth with a spatula and chill in the fridge for at least 30 minutes to firm.
- Step 16: Apply a thicker final layer of buttercream, smoothing it evenly over the entire cake.
- Step 17: Use the plain and yellow buttercream with piping bags to pipe flower decorations all over the cake’s sides and top.
- Step 18: Use a sharp knife to cut the cake into slices. Serve and enjoy your beautiful vegan rainbow cake!
Tips & Variations
- If you don’t have multiple cake tins, bake the layers one at a time and keep the batter covered with a damp towel.
- Experiment with different food gel colors to create your own rainbow pattern or ombré effect.
- For a fluffier cake, make sure not to over-mix the batter once wet and dry ingredients are combined.
- Adjust the buttercream consistency by adding more dairy-free milk or icing sugar as needed for piping or spreading.
- Try adding a splash of lemon zest to the batter for a subtle citrus flavor.
Storage
Store the cake in an airtight container in the fridge for up to 3 days. Let it come to room temperature for about 30 minutes before serving to soften the buttercream. You can also freeze the cake (unfrosted layers or fully assembled) wrapped well for up to 1 month; thaw overnight in the fridge before serving.
How to Serve

Serve this delicious recipe with your favorite sides.
FAQs
Can I use a different type of dairy-free milk?
Yes, you can substitute the soya milk with almond, oat, or any other dairy-free milk you prefer, but soya milk works best for flavor and texture in this cake.
What if I don’t have food gels for coloring?
You can use natural food colorings like beet juice for pink/red or turmeric for yellow, but the colors may be less vibrant. Liquid food coloring can also work but use less to avoid altering batter consistency.
Print
Vegan Rainbow Layer Cake Recipe
- Total Time: 3 hours
- Yield: 8 servings 1x
- Diet: Vegan
Description
This vibrant and colorful Vegan Rainbow Cake is a delightful dairy-free and egg-free dessert that boasts layers of beautifully tinted sponge cakes, stacked and frosted with creamy vegan buttercream. Perfect for celebrations or any occasion that calls for a show-stopping cake, it combines fluffy, moist self-raising flour sponges with a smooth, sweet, dairy-free frosting, colored with natural vegan-friendly food gels. The recipe uses simple pantry staples with a clever vegan ‘buttermilk’ to ensure the perfect crumb and texture.
Ingredients
Cake Batter
- 960ml dairy-free milk (unsweetened soya milk recommended)
- 4 teaspoons apple cider vinegar
- 800g self-raising flour
- 600g caster sugar (fine white sugar)
- 2 teaspoons baking powder
- 2 teaspoons bicarbonate of soda
- 240ml sunflower oil
- 4 teaspoons vanilla extract
- Vegan-friendly food gels in purple, pink, peach, yellow, green (e.g. Rainbow Dust Colours)
Buttercream Frosting
- 560g dairy-free butter (Flora Plant Block Butter recommended)
- 600g powdered/icing sugar
- 2 teaspoons vanilla extract
- Dairy-free milk (if needed for consistency)
Instructions
- Prepare Cake Tins: Preheat oven to 180°C fan. Line 5 or 6 eight-inch loose base/push up cake tins with greaseproof paper. If limited on tins, bake layers separately covering unused batter with a damp towel.
- Make Vegan Buttermilk: Combine dairy-free milk and apple cider vinegar in a bowl and whisk well. Set aside for 10 minutes to curdle and create a vegan buttermilk substitute.
- Mix Dry Ingredients: In a large bowl, sift together self-raising flour, caster sugar, baking powder, and bicarbonate of soda. Stir to combine evenly.
- Combine Wet Ingredients: Add sunflower oil and vanilla extract to the vegan buttermilk and whisk until fully incorporated.
- Make Batter: Pour wet ingredients into the dry mixture and gently mix until just combined. Avoid over-mixing to keep the batter light.
- Color the Batter: Divide the batter evenly into 5 bowls. Add different vegan food gel colors to each bowl and stir until the colors are vibrant and uniform.
- Fill Cake Tins: Pour each colored batter into the prepared cake tins. Tap tins gently on the countertop to release air bubbles.
- Bake the Cakes: Place tins in the center of the preheated oven and bake for 25-30 minutes. Check doneness by inserting a skewer or knife – it should come out clean. Cakes should feel springy to the touch.
- Cool Cakes: Remove cakes from tins onto a wire rack after slight cooling. Allow layers to cool completely before frosting. Store in a sealed container if not frosting immediately.
- Make Buttercream: In a large bowl, whip the dairy-free butter until light and creamy using a stand or hand mixer.
- Add Icing Sugar: Sift in the powdered sugar and add vanilla extract. Whip on high speed for about 5 minutes, adding dairy-free milk if needed to achieve smooth, creamy consistency. Adjust thickness by adding more butter or icing sugar as necessary.
- Prepare Piping Colors: Set aside a small portion of buttercream and color it yellow for piping flowers. Fill a piping bag with this colored buttercream and snip the tip.
- Prepare Piping Bag: Fill another piping bag with 3 heaped tablespoons of plain white buttercream fitted with a large star nozzle for decoration.
- Assemble Cake Layers: Place one cake layer on a serving plate or cake stand. Spread or pipe an even layer of vanilla buttercream over it. Repeat layering with all cakes and buttercream.
- Crumb Coat: Apply a thin layer of buttercream over the entire cake to trap crumbs, smoothing evenly with a cake scraper or palette knife. Chill in the refrigerator for at least 30 minutes to set.
- Final Frosting: Apply a thicker final layer of buttercream smoothly over the cake’s surface and sides.
- Decorate Cake: Use the piping bags with plain and yellow buttercream to pipe flowers all over the cake’s top and sides to create a beautiful design.
- Serve: Slice the cake with a sharp knife, serve, and enjoy your colorful vegan delight!
Notes
- For best results, use unsweetened soya milk for the vegan buttermilk to ensure proper curdling and flavor balance.
- If you don’t have multiple cake tins, bake layers one at a time, covering batter to prevent skin formation.
- Adjust buttercream consistency by balancing dairy-free milk and icing sugar depending on ambient temperature.
- Use high-quality vegan food gels to achieve vibrant and distinct colors.
- Store leftover cake in an airtight container in the refrigerator; bring to room temperature before serving for best flavor and texture.
- This cake keeps well for up to 3 days refrigerated or up to 1 month frozen when properly wrapped.
- Use an offset spatula for smoother frosting application.
- Prep Time: 30 minutes
- Cook Time: 25-30 minutes per cake layer (total approx. 2-3 hours if baked separately)
- Category: Dessert
- Method: Baking
- Cuisine: Vegan
Keywords: Vegan Rainbow Cake, dairy-free cake, vegan birthday cake, colorful cake recipe, vegan buttercream, plant-based desserts

