Rainbow cake is a visually striking, multi-layered cake known for its vibrant, colorful appearance. Each layer of the cake is made with a different color of the rainbow, typically achieved by incorporating food coloring into the batter. The result is a cake that, when sliced, reveals a brilliant spectrum of colors that are both fun and festive.
Why It’s So Popular:
- Visually Stunning: The most striking feature of rainbow cake is, of course, its color. The bold, layered effect creates a sense of excitement and fun, making it a perfect centerpiece for parties and celebrations.
- Versatility: While the classic rainbow cake uses six layers (one for each color of the rainbow), you can adjust the colors and number of layers based on personal preference. Some bakers also incorporate various types of fillings and frostings to enhance the flavor and texture.

Here’s a simple recipe for a layered rainbow cake with a fluffy, creamy frosting to tie everything together.
π Easy 6-Layer Rainbow Cake
π Ingredients
Cake Batter
- 4 cups cake flour
- 3 tsp baking powder
- Β½ tsp salt
- 1Β½ cups unsalted butter (room temp)
- 2Β½ cups white sugar
- 6 large eggs (room temp)
- 1Β½ cups milk (room temp)
- 2 tsp vanilla extract
- Gel food colouring (red, orange, yellow, green, blue, purple)
π Use gel colouring, not liquid β it keeps colours bright without thinning the batter.
π§ Buttercream Frosting
- 2 cups unsalted butter (room temp)
- 6β8 cups icing sugar (sifted)
- 2β4 tbsp milk or cream
- 2 tsp vanilla extract
- Pinch of salt
π©βπ³ Method
1οΈβ£ Prepare
- Preheat oven to 180Β°C.
- Grease and line 6 x 20cm round tins.
(If you only have 2β3 tins, bake in batches.)
2οΈβ£ Make the Batter
- Sift flour, baking powder and salt together.
- Cream butter and sugar until light and fluffy (3β5 minutes).
- Add eggs one at a time, mixing well after each.
- Add vanilla.
- Alternate adding dry ingredients and milk:
- Flour β Milk β Flour β Milk β Flour
- Mix just until smooth.
3οΈβ£ Colour the Batter
- Divide batter evenly into 6 bowls.
- Add gel colouring to each bowl.
- Mix gently until evenly coloured.
Try to keep layer amounts equal β you can weigh them for precision.
4οΈβ£ Bake
- Spread each colour evenly into its tin.
- Bake 15β20 minutes (layers are thin).
- Insert skewer β if it comes out clean, itβs done.
- Cool completely before frosting.
π§ Buttercream
- Beat butter until pale and creamy.
- Add icing sugar gradually.
- Add vanilla and salt.
- Add milk 1 tbsp at a time until smooth.
- Beat 3β5 minutes until fluffy.
π Assembly
- Level layers if needed.
- Stack in rainbow order:
Purple β Blue β Green β Yellow β Orange β Red
(Or reverse if preferred.) - Spread thin layer of buttercream between each layer.
- Apply crumb coat (thin layer all over cake).
- Chill 20β30 minutes.
- Apply final smooth coat of buttercream.
Decorate with sprinkles, piping, or leave smooth and white for a surprise rainbow inside.
π‘ Helpful Tips
β Donβt overbake β thin layers dry quickly.
β Chill between frosting stages for clean edges.
β Use a serrated knife to level layers neatly.
β Clean knife between slices for perfect rainbow reveal.














