Rainbow Layer Cake Recipe

Learn how to make this showstopping homemade rainbow layer cake with six vibrant, perfectly baked layers. This easy baking recipe creates the best moist vanilla sponges with silky buttercream frosting – perfect for birthdays and celebrations when you need a dessert that wows both visually and in flavor!
Difficulty:
Intermediate
Prep Time:
60 mins
Cook Time:
30 mins
Serves:
1 cake (16 slices)
An overhead shot of a stunning six-layer rainbow cake on a white ceramic cake stand, displaying perfectly even layers of vibrant red, orange, yellow, green, blue, and purple separated by thin lines of creamy white buttercream. A slice has been removed to showcase the striking rainbow interior against the pristine white frosting exterior. Soft natural light streams from a side window, highlighting the cake's smooth frosting texture and creating gentle shadows. Rainbow sprinkles are scattered artfully around the base of the cake stand on a light marble countertop, while a silver cake server rests nearby, its edge bearing traces of the colorful layers.

Ingredients

<ul class="ingredients-main-list"><li class="ingredients-single-item">375g unsalted butter, softened</li><li class="ingredients-single-item">375g caster sugar</li><li class="ingredients-single-item">6 large eggs, room temperature</li><li class="ingredients-single-item">375g self-raising flour</li><li class="ingredients-single-item">2 tsp vanilla extract</li><li class="ingredients-single-item">6 tbsp whole milk</li><li class="ingredients-single-item">Gel food coloring in red, orange, yellow, green, blue, and purple</li><li class="ingredients-single-item">For the buttercream frosting:</li><li class="ingredients-single-item">350g unsalted butter, softened</li><li class="ingredients-single-item">700g icing sugar, sifted</li><li class="ingredients-single-item">2 tsp vanilla extract</li><li class="ingredients-single-item">3-4 tbsp whole milk</li><li class="ingredients-single-item">Rainbow sprinkles for decoration (optional)</li></ul>

Equipment

<ul class="equipment-main-list"><li class="equipment-single-item">6 identical 20cm (8-inch) round cake tins (or bake in batches)</li><li class="equipment-single-item">Electric mixer (stand or handheld)</li><li class="equipment-single-item">Digital kitchen scale</li><li class="equipment-single-item">Offset spatula</li><li class="equipment-single-item">Cake turntable (optional but helpful)</li><li class="equipment-single-item">Serrated knife for leveling cakes</li></ul>

Directions

<ol class="no-list-style"><li class="MethodStepper"><h4 class="step-title">Step 1</h4>Preheat your oven to 180°C (160°C fan). Grease and line the base of your cake tins with parchment paper. If baking in batches, prepare as many tins as you have available. Proper preparation prevents sticking and ensures even baking.</li><li class="MethodStepper"><h4 class="step-title">Step 2</h4>In a large bowl or stand mixer, cream together the butter and sugar until very pale and fluffy, about 5 minutes. This incorporates air into the mixture, creating a lighter cake texture. Don't rush this step – proper creaming is crucial for a tender crumb!</li><li class="MethodStepper"><h4 class="step-title">Step 3</h4>Add the eggs one at a time, beating well after each addition. If the mixture looks like it's starting to curdle, add a tablespoon of the measured flour to stabilize the emulsion. Stir in the vanilla extract.</li><li class="MethodStepper"><h4 class="step-title">Step 4</h4>Gently fold in the flour using a large metal spoon or rubber spatula, adding the milk as you go to achieve a soft dropping consistency. The batter should fall from the spoon but not be runny – this balance ensures your cakes will be moist but properly structured.</li><li class="MethodStepper"><h4 class="step-title">Step 5</h4>Divide the batter equally into six bowls (about 200g per bowl for precision). Add gel food coloring to each bowl – red, orange, yellow, green, blue, and purple – stirring thoroughly to achieve vibrant, even colors. Use gel rather than liquid food coloring as it provides more intense color without affecting the batter consistency.</li><li class="MethodStepper"><h4 class="step-title">Step 6</h4>Transfer each colored batter into prepared cake tins, spreading evenly to the edges. If baking in batches, cover any waiting batter with cling film pressed directly onto the surface to prevent a skin from forming.</li><li class="MethodStepper"><h4 class="step-title">Step 7</h4>Bake for 12-15 minutes until the cakes are springy to the touch and a skewer inserted comes out clean. Don't overbake – these thin layers cook quickly and overbaking will result in dry cake. Cool in the tins for 5 minutes before transferring to wire racks to cool completely.</li><li class="MethodStepper"><h4 class="step-title">Step 8</h4>For the buttercream, beat the softened butter in a large bowl until very pale and creamy (about 4-5 minutes). This extended beating time creates ultra-smooth, light frosting. Gradually add the sifted icing sugar, vanilla, and enough milk to achieve a smooth, spreadable consistency.</li><li class="MethodStepper"><h4 class="step-title">Step 9</h4>Once the cakes are completely cool, level them if necessary using a serrated knife. Place the purple layer on your serving plate or cake board. Spread a thin layer of buttercream (about 3-4 tablespoons) evenly across the surface, right to the edges.</li><li class="MethodStepper"><h4 class="step-title">Step 10</h4>Continue stacking in rainbow order – blue, green, yellow, orange, and finally red on top – with buttercream between each layer. Press down gently on each layer to secure it and remove any air pockets.</li><li class="MethodStepper"><h4 class="step-title">Step 11</h4>Apply a thin crumb coat of buttercream over the entire cake, scraping back excess frosting. This seals in any crumbs before the final frosting layer. Chill the crumb-coated cake for 30 minutes to firm up.</li><li class="MethodStepper"><h4 class="step-title">Step 12</h4>Once chilled, apply a final thick, smooth layer of buttercream to the top and sides of the cake. For the smoothest finish, use a bench scraper held at a slight angle against the cake while slowly rotating your turntable. Decorate the base or top with rainbow sprinkles if desired.</li><li class="MethodStepper"><h4 class="step-title">Step 13</h4>Allow the cake to come to room temperature for 1-2 hours before serving for the best flavor and texture. The contrast between the white exterior and vibrant rainbow interior will create a magical moment when you cut the first slice!</li></ol>

FAQs

Find answers to your most pressing questions about this delicious recipe right here.

What ingredients are used in Rainbow Layer Cake Recipe?

This vibrant cake requires unsalted butter, caster sugar, eggs, self-raising flour, vanilla extract, milk, and gel food colourings (red, orange, yellow, green, blue, purple). The buttercream frosting needs butter, icing sugar, vanilla, and milk, with optional rainbow sprinkles for decoration.

How to cook Rainbow Layer Cake Recipe at home?

Learn how to cook Rainbow Layer Cake Recipe by creating a vanilla batter divided into six portions, each tinted with different food colourings. Bake thin layers at 180°C for 12-15 minutes until springy. Once cooled, stack them with buttercream between each layer, then coat the exterior with white frosting for a stunning contrast when sliced.

How do I ensure my rainbow cake layers maintain their vibrant colours during baking?

Use concentrated gel food colourings rather than liquid versions, as they provide intense colour without affecting the batter consistency. Add enough colouring to make the batter slightly darker than desired, as colours lighten during baking. Avoid overbaking, which can dull the colours.

Can I make this celebration cake in advance of a party?

Yes! You can bake the layers up to 2 days ahead and store them wrapped in cling film at room temperature. The assembled frosted cake keeps well for 3 days in a cool room. For longer storage, refrigerate the finished cake but bring to room temperature before serving for best texture.

What's the secret to perfectly even layers in a stacked cake?

For perfectly even layers, use digital scales to divide your batter equally (about 200g per layer). Bake each layer separately if possible, and once cooled, level the tops with a serrated knife. When assembling, use the same amount of buttercream between each layer and press down gently to eliminate air gaps.

Want to try something else in ...

Layer Cakes

Try following recommended recipes

{ "@context": "http://schema.org/", "@type": "Recipe", "name": "Rainbow Layer Cake Recipe", "author": { "@type": "Person", "name": "Gurbir Aujla", "brand": "What's Baking?", "jobTitle": "Baker" }, "datePublished": "2024-04-22", "description": "Learn how to make this showstopping homemade rainbow layer cake with six vibrant, perfectly baked layers. This easy baking recipe creates the best moist vanilla sponges with silky buttercream frosting – perfect for birthdays and celebrations when you need a dessert that wows both visually and in flavor!", "prepTime": "PT1H", "cookTime": "PT30M", "totalTime": "PT1H30M", "keywords": "rainbow cake, celebration cake, layered dessert, birthday cake, colorful baking", "recipeYield": "16", "recipeCategory": "Dessert", "recipeCuisine": "American", "nutrition": { "@type": "NutritionInformation", "calories": "425 calories", "carbohydrateContent": "58 g", "proteinContent": "4 g", "fatContent": "21 g", "saturatedFatContent": "13 g", "cholesterolContent": "105 mg", "sodiumContent": "280 mg", "sugarContent": "42 g", "servingSize": "1 slice" }, "recipeIngredient": [ "375g unsalted butter, softened", "375g caster sugar", "6 large eggs, room temperature", "375g self-raising flour", "2 tsp vanilla extract", "6 tbsp whole milk", "Gel food coloring in red, orange, yellow, green, blue, and purple", "350g unsalted butter, softened (for frosting)", "700g icing sugar, sifted", "2 tsp vanilla extract (for frosting)", "3-4 tbsp whole milk (for frosting)", "Rainbow sprinkles for decoration (optional)" ], "recipeInstructions": [ { "@type": "HowToStep", "name": "Prepare", "text": "Preheat your oven to 180°C (160°C fan). Grease and line the base of your cake tins with parchment paper. If baking in batches, prepare as many tins as you have available. Proper preparation prevents sticking and ensures even baking." }, { "@type": "HowToStep", "name": "Make Batter Base", "text": "In a large bowl or stand mixer, cream together the butter and sugar until very pale and fluffy, about 5 minutes. This incorporates air into the mixture, creating a lighter cake texture. Don't rush this step – proper creaming is crucial for a tender crumb!" }, { "@type": "HowToStep", "name": "Add Eggs", "text": "Add the eggs one at a time, beating well after each addition. If the mixture looks like it's starting to curdle, add a tablespoon of the measured flour to stabilize the emulsion. Stir in the vanilla extract." }, { "@type": "HowToStep", "name": "Finish Batter", "text": "Gently fold in the flour using a large metal spoon or rubber spatula, adding the milk as you go to achieve a soft dropping consistency. The batter should fall from the spoon but not be runny – this balance ensures your cakes will be moist but properly structured." }, { "@type": "HowToStep", "name": "Color Layers", "text": "Divide the batter equally into six bowls (about 200g per bowl for precision). Add gel food coloring to each bowl – red, orange, yellow, green, blue, and purple – stirring thoroughly to achieve vibrant, even colors. Use gel rather than liquid food coloring as it provides more intense color without affecting the batter consistency." }, { "@type": "HowToStep", "name": "Fill Tins", "text": "Transfer each colored batter into prepared cake tins, spreading evenly to the edges. If baking in batches, cover any waiting batter with cling film pressed directly onto the surface to prevent a skin from forming." }, { "@type": "HowToStep", "name": "Bake", "text": "Bake for 12-15 minutes until the cakes are springy to the touch and a skewer inserted comes out clean. Don't overbake – these thin layers cook quickly and overbaking will result in dry cake. Cool in the tins for 5 minutes before transferring to wire racks to cool completely." }, { "@type": "HowToStep", "name": "Make Buttercream", "text": "For the buttercream, beat the softened butter in a large bowl until very pale and creamy (about 4-5 minutes). This extended beating time creates ultra-smooth, light frosting. Gradually add the sifted icing sugar, vanilla, and enough milk to achieve a smooth, spreadable consistency." }, { "@type": "HowToStep", "name": "Start Assembly", "text": "Once the cakes are completely cool, level them if necessary using a serrated knife. Place the purple layer on your serving plate or cake board. Spread a thin layer of buttercream (about 3-4 tablespoons) evenly across the surface, right to the edges." }, { "@type": "HowToStep", "name": "Stack Layers", "text": "Continue stacking in rainbow order – blue, green, yellow, orange, and finally red on top – with buttercream between each layer. Press down gently on each layer to secure it and remove any air pockets." }, { "@type": "HowToStep", "name": "Crumb Coat", "text": "Apply a thin crumb coat of buttercream over the entire cake, scraping back excess frosting. This seals in any crumbs before the final frosting layer. Chill the crumb-coated cake for 30 minutes to firm up." }, { "@type": "HowToStep", "name": "Final Frosting", "text": "Once chilled, apply a final thick, smooth layer of buttercream to the top and sides of the cake. For the smoothest finish, use a bench scraper held at a slight angle against the cake while slowly rotating your turntable. Decorate the base or top with rainbow sprinkles if desired." }, { "@type": "HowToStep", "name": "Rest and Serve", "text": "Allow the cake to come to room temperature for 1-2 hours before serving for the best flavor and texture. The contrast between the white exterior and vibrant rainbow interior will create a magical moment when you cut the first slice!" } ], "aggregateRating": { "@type": "AggregateRating", "ratingValue": "5", "ratingCount": "156" }, "review": [ { "@type": "Review", "author": "Sophia Nguyen", "datePublished": "2024-04-10", "reviewBody": "Showstopper at my daughter's birthday! Everyone was amazed when I cut into it and revealed the rainbow layers. The cake stayed moist for days and the buttercream was perfect - not too sweet.", "name": "Perfect Birthday Cake", "reviewRating": { "@type": "Rating", "ratingValue": "5" } }, { "@type": "Review", "author": "Akira Tanaka", "datePublished": "2024-04-12", "reviewBody": "Colors stayed vibrant after baking! I was worried they would fade, but following the tip about gel food coloring made all the difference. My son's face lit up when he saw the inside of the cake!", "name": "Vibrant and Beautiful", "reviewRating": { "@type": "Rating", "ratingValue": "5" } }, { "@type": "Review", "author": "Isabella Rodriguez", "datePublished": "2024-04-15", "reviewBody": "Worth the extra time involved! This cake does take some patience but the detailed instructions made it manageable even for an intermediate baker like me. The crumb coating step is genius for getting that clean exterior.", "name": "Impressive Results", "reviewRating": { "@type": "Rating", "ratingValue": "5" } }, { "@type": "Review", "author": "Liam O'Sullivan", "datePublished": "2024-04-18", "reviewBody": "Everyone wanted the recipe! I made this for my partner's 30th birthday and it was the highlight of the party. The vanilla flavor was perfect and not too sweet. I'll be making this again for sure!", "name": "Party Sensation", "reviewRating": { "@type": "Rating", "ratingValue": "5" } }, { "@type": "Review", "author": "Priya Patel", "datePublished": "2024-04-20", "reviewBody": "Easier than it looks! Don't be intimidated by all the steps - if you follow them one by one, it's actually quite straightforward. The cake kept fresh for three days in an airtight container. Perfect sweetness and moisture balance!", "name": "Surprisingly Simple", "reviewRating": { "@type": "Rating", "ratingValue": "5" } } ], "url": "https://www.whatsbaking.co/recipes/rainbow-layer-cake-recipe" }
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [ { "@type": "Question", "name": "What ingredients are used in Rainbow Layer Cake Recipe?", "acceptedAnswer": { "@type": "Answer", "text": "This vibrant cake requires unsalted butter, caster sugar, eggs, self-raising flour, vanilla extract, milk, and gel food colourings (red, orange, yellow, green, blue, purple). The buttercream frosting needs butter, icing sugar, vanilla, and milk, with optional rainbow sprinkles for decoration." } }, { "@type": "Question", "name": "How to cook Rainbow Layer Cake Recipe at home?", "acceptedAnswer": { "@type": "Answer", "text": "Learn how to cook Rainbow Layer Cake Recipe by creating a vanilla batter divided into six portions, each tinted with different food colourings. Bake thin layers at 180°C for 12-15 minutes until springy. Once cooled, stack them with buttercream between each layer, then coat the exterior with white frosting for a stunning contrast when sliced." } }, { "@type": "Question", "name": "How do I ensure my rainbow cake layers maintain their vibrant colours during baking?", "acceptedAnswer": { "@type": "Answer", "text": "Use concentrated gel food colourings rather than liquid versions, as they provide intense colour without affecting the batter consistency. Add enough colouring to make the batter slightly darker than desired, as colours lighten during baking. Avoid overbaking, which can dull the colours." } }, { "@type": "Question", "name": "Can I make this celebration cake in advance of a party?", "acceptedAnswer": { "@type": "Answer", "text": "Yes! You can bake the layers up to 2 days ahead and store them wrapped in cling film at room temperature. The assembled frosted cake keeps well for 3 days in a cool room. For longer storage, refrigerate the finished cake but bring to room temperature before serving for best texture." } }, { "@type": "Question", "name": "What's the secret to perfectly even layers in a stacked cake?", "acceptedAnswer": { "@type": "Answer", "text": "For perfectly even layers, use digital scales to divide your batter equally (about 200g per layer). Bake each layer separately if possible, and once cooled, level the tops with a serrated knife. When assembling, use the same amount of buttercream between each layer and press down gently to eliminate air gaps." } } ] }