4 Layer Rainbow Cake Recipe: Vibrant Colors and Fluffy Layers in One Tin

4 Layer Rainbow Cake Recipe: Vibrant Colors and Fluffy Layers in One Tin

This 4-layer rainbow cake recipe transforms a single tin into a showstopping dessert that’s as fun to bake as it is to eat. The secret lies in four distinct flavors—vanilla, chocolate, strawberry, and lemon—each dyed with vibrant food coloring for that iconic rainbow effect. I’ve perfected this method to ensure each layer stays fluffy and moist, with a creamy frosting that binds them all together beautifully.

What makes this recipe special is the one-tin technique, eliminating the need for multiple pans or tricky layering. You’ll bake each layer separately in the same round tin, then carefully assemble them with a light buttercream. The food coloring is added to the batter itself, so no messy frosting color—just pure, vibrant layers that look as stunning as they taste. It’s perfect for birthdays, celebrations, or simply treating yourself to something magical.

The result is a cake that’s visually breathtaking and delicious—each bite offers a different flavor and color, making it a hit with both kids and adults. The frosting is thick enough to hold the layers but light enough to let the flavors shine through. Whether you’re a beginner or an experienced baker, this recipe delivers restaurant-quality results with minimal fuss.

For extra flair, consider adding sprinkles between layers or piping swirls of frosting on top. The possibilities are endless, but even the simplest version will leave everyone asking for seconds. Let’s get baking!

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for 4 layer rainbow cake

Four vibrant flavors baked in one tin—simple ingredients for a showstopping rainbow cake.

Ingredient Amount Notes
All-Purpose Flour 🌾 4 cups Sifted for light texture
Granulated Sugar 🍚 2 ½ cups White or light brown
Unsalted Butter 🧈 1 ½ cups Room temperature, cubed
Large Eggs 🥚 6 whole Room temperature
Vanilla Extract 🌿 2 tsp Pure, high-quality
Baking Powder 🧂 2 tsp Diamond Crystal preferred
Salt 🧂 ½ tsp Fine sea salt
Milk 🥛 1 ½ cups Room temperature
Food Coloring 🎨 1 tbsp Gel-based, vibrant colors
Chocolate Cocoa Powder 🍫 ½ cup Dutch-processed preferred
Strawberry Puree 🍓 ½ cup Unsweetened, strained
Lemon Zest 🍋 1 tbsp Freshly grated
Confectioners' Sugar 🍚 3 cups For buttercream
Heavy Whipping Cream 🥛 1 cup Cold, full-fat
Vanilla Bean Paste 🌿 1 tsp For enhanced flavor

The flour and butter are your foundation. King Arthur or Gold Medal flour gives the best rise, and Plugrá butter stays firm enough for layering. Room temperature is key—cold butter creates dense layers. For the food coloring, Wilton gel colorsHershey’s Special Dark or Dutch-processed ensures rich flavor without bitterness.

No vanilla extract? Vanilla bean paste intensifies the flavor, but pure extract works too. For the strawberry layer, if you can’t find puree, blend fresh strawberries and strain them—Trader Joe’s frozen berries are perfect for this. Lemon zest needs to be fresh; dried zest loses its punch. The buttercream requires patience—whip the butter until light and fluffy (about 3-5 minutes) before adding sugar gradually. For a lighter frosting, fold in 1 tbsp whipped cream at the end. If your frosting is too thick, add 1 tsp milk at a time.

Store the cake in an airtight container at room temperature for up to 3 days, or refrigerate for 5 days. The frosting may weep slightly if left out too long, so refrigerate for longer storage. For a restaurant-quality finish, pipe swirls on top with a Wilton 1M tip. The layers can be baked up to 2 days ahead and assembled just before serving—this is key for the one-tin technique. Freeze the assembled cake for up to 1 month by wrapping it tightly in plastic.

❤️

Why You’ll Love This Recipe

  • No Fuss Layers: I swear, the cake batter comes together in one bowl—no mixing madness. You cream butter and sugar, toss in eggs and vanilla, then fold in flour like you’re making pancakes. Honestly, even my first attempt turned out moist and perfect.
  • Vanilla Butter Bliss: That buttery vanilla base? It’s the secret weapon. The butter keeps it rich without being heavy, and the vanilla—just a teaspoon—adds warmth that makes every slice taste like a hug. (Yes, even on a Tuesday night.)
  • Party Ready Magic: This cake is my go-to for birthdays, graduations, or just because. The layers let you customize—add cream cheese frosting, fruit compote, or even whipped cream—while the simple vanilla flavor keeps it crowd-pleasing. No one will guess it’s this easy.
  • Leftovers That Last: The batter makes two 9-inch cakes, so you’ll have slices for days. Store them in the fridge, and they stay fresh—no drying out. Between us, I’ve had this cake for breakfast, dessert, and even a lunchbox surprise. Versatile? Absolutely.

Step-by-step instructions for 4 layer rainbow cake

Here’s how to create perfectly fluffy, vibrant layers in one tin—no baking skills required.

1

Prepare the Base Batter for All Layers

In a large mixing bowl, combine the 4 cups all-purpose flour, 2.5 cups granulated sugar, 2 tsp baking powder, and 0.5 tsp salt. Whisk until evenly distributed and no lumps remain. This dry mixture is the foundation for all four layers, so take your time to ensure it’s completely smooth.

In a separate bowl, cream together the 1.5 cups unsalted butter and 6 whole large eggs using an electric mixer on medium speed until light and fluffy—about 3-4 minutes. This step incorporates air, which creates that signature fluffy texture. Gradually add the 1.5 cups milk while mixing on low speed to prevent splattering.

With the mixer running on low, slowly pour in the dry ingredients while scraping down the sides of the bowl to ensure everything combines evenly. Mix just until combined—overmixing develops gluten and makes the cake dense. Divide the batter into four equal portions (about 1 cup each) and set aside three bowls for coloring later.

2

Color Each Layer and Bake Sequentially

Preheat your oven to 350°F and grease a 9-inch round cake pan thoroughly with butter or baking spray. The first layer will bake while you prepare the others, so work efficiently. For the base layer, pour 1 cup of the uncolored batter into the prepared pan and spread it evenly using an offset spatula.

Bake for 18-20 minutes or until a toothpick inserted in the center comes out clean. Let the first layer cool in the pan for 5 minutes before transferring it to a wire rack. While it cools, prepare the next layers by dividing the 1 tbsp food coloring into four portions. Add 1 drop of red to the second bowl, 1 drop of yellow to the third, and 1 drop of blue to the fourth. Mix each portion thoroughly until vibrant and uniform.

For the second layer, add 0.5 cup chocolate cocoa powder to the remaining uncolored batter and mix well. This creates the dark chocolate base. Pour into the pan and bake immediately for another 18-20 minutes. Repeat this process with the remaining colored batters, baking one layer at a time. The oven will retain enough heat to bake each layer evenly.

3

Prepare the Strawberry Filling and Lemon Buttercream

While the layers cool, prepare the strawberry filling by combining the 0.5 cup strawberry puree with 1 tbsp lemon zest in a small bowl. Mix well and set aside. For the buttercream, beat the 1.5 cups unsalted butter (softened) with the 3 cups confectioners’ sugar and 1 tsp vanilla bean paste until light and fluffy. Gradually add the 1 cup heavy whipping cream and mix until smooth and spreadable.

Divide the buttercream into three portions. Add 1 drop of red food coloring to one portion for the strawberry layer, 1 drop of yellow to another for the lemon layer, and leave the third portion white. Mix each portion thoroughly until vibrant. The strawberry buttercream should be a rich pink, while the lemon buttercream should be a pale yellow.

4

Assemble the Rainbow Cake with Precision

Once all layers have cooled completely, place the first layer (dark chocolate) on a cake stand or plate. Spread a thin layer of white buttercream over the top, then add 2 tablespoons of the strawberry filling. Place the second layer (red) on top and repeat the process with another layer of white buttercream and strawberry filling. Add the third layer (yellow) and top with white buttercream and strawberry filling.

For the final layer, place the blue layer on top and spread a generous layer of white buttercream over the entire cake. Use an offset spatula to create smooth, even sides. Chill the cake in the refrigerator for 30 minutes to allow the buttercream to set before decorating. This ensures clean, professional-looking layers.

5

Decorate and Serve with Confidence

Use a serrated knife to level the top of the cake if needed, then apply a thin crumb coat of white buttercream. Chill for an additional 15 minutes before applying the final layer of buttercream. Smooth the sides and top with a bench scraper or spatula for a polished finish. For extra flair, pipe white buttercream rosettes or drizzle colorful buttercream along the edges.

Slice and serve immediately. Each slice should reveal the vibrant rainbow layers with a perfect balance of moist cake, tangy strawberry filling, and creamy buttercream. The cake keeps well at room temperature for 2 days or refrigerated for up to 5 days, though it’s best enjoyed fresh.

👨‍🍳

Pro Tips For Making 4 Layer Rainbow Cake

  • Weigh Your Butter: I learned this the hard way—measuring butter by volume (that “pack it down” guessing game) throws off every layer’s texture. Use a kitchen scale for 227g total (or ~1 cup packed), and keep it cold. Warm butter creams faster but risks dense layers.
  • Cool Layers Fully: Skip the “just a few minutes” rule—let cake layers sit in their pans for 10 full minutes after baking. This prevents crumbling when leveling or frosting. If you’re impatient, run a knife around the edges first, but still wait.
  • Room-Temp Eggs Matter: Cold eggs from the fridge mix unevenly and can curdle your batter. Take them out 30 minutes before whipping—just enough to soften, not warm. This makes your batter smoother and layers lighter, especially in a high-egg recipe like this.
  • Level Like a Pro: Don’t eyeball it. Use a serrated knife and a ruler: place the knife flat on the cake, drag it across the top, then check the height against the ruler. Uneven layers = messy stacking. A cake leveler tool saves time if you’re making this often.

Pro cooking tips for this recipe

Layering Like a Pro

Start with the darkest layer—chocolate—on the bottom for visual impact. Use a serrated knife to level each layer perfectly before stacking, ensuring clean edges. I like to place each layer on a parchment-lined plate to prevent sticking when transferring. For stability, chill the cake in the fridge for 15 minutes between layers to help the buttercream set and prevent collapsing. 💫

Color Consistency Tips

Gel-based food coloring like Wilton mixes seamlessly without altering batter texture. For vibrant red, add 1 drop of red + ½ drop of blue to the batter—this prevents muddy tones. Test colors on a small piece of batter before baking each layer. If colors look too faint, let the layers cool completely before assembling; warmth can make colors appear lighter.

Buttercream Mastery

Beat the buttercream until it reaches pipeable consistency—it should hold soft peaks when piped. For a silky texture, add 1 tbsp heavy cream at the end. Chill the cake for 30 minutes after frosting to firm up the buttercream before decorating. I use a bench scraper to smooth sides, applying gentle pressure in one direction for a flawless finish. ✨

Troubleshooting Common Issues

If your layers crumble during assembly, let them cool completely before handling. For uneven baking, rotate the pan halfway through the 18-20 minute bake time. If the frosting slides off, ensure your buttercream is at room temperature and the cake is chilled. For extra stability, brush layers with simple syrup (equal parts sugar and water) before assembling.

Decorating Shortcuts

Skip piping rosettes for a quick finish—use a fork to create simple swirls on top. For a modern look, drizzle contrasting buttercream along the edges. Store-bought sprinkles work great, but for a professional touch, press edible gold leaf onto the sides. The key is patience: let each layer of frosting set for 10 minutes before adding details. 🎨

Nutrition facts

Servings 12
Amount Per Serving
Calories 580kcal
% Daily Value *
Total Fat 32g41%
Saturated Fat 20g100%
Cholesterol 180mg60%
Sodium 420mg18%
Total Carbohydrate 72g26%
Dietary Fiber 1g4%
Sugars 58g
Protein 8g16%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I make this rainbow cake without gel food coloring?

Yes, but liquid food coloring may make your batter thinner and alter the texture slightly. Use ½ the amount of liquid coloring compared to gel, and add it gradually while mixing. For natural colors, try beet juice for red, turmeric for yellow, and blue spirulina powder—though these may have subtle flavors. Test colors on a small batter sample first!

2

How do I prevent the layers from shifting when slicing?

Chill the assembled cake for 2-3 hours before slicing to let the buttercream fully set. Use a serrated knife and dip it in hot water between slices to create clean cuts. For extra stability, brush each layer with simple syrup (equal parts sugar and water) before stacking. Slice from the center outward to minimize layer movement.

3

What’s the best way to store leftovers?

Cover loosely with plastic wrap at room temperature for 2 days to prevent sogginess. For longer storage (5 days), refrigerate the whole cake (not individual slices) and bring to room temp before serving. Freeze slices wrapped tightly in plastic for up to 1 month—thaw overnight in the fridge for best texture.

4

Can I substitute any of the flavors?

Swap the chocolate layer for coffee or spiced cake, or replace lemon with orange or raspberry. For a nutty twist, add 1 tbsp almond extract to the vanilla layer. Keep the strawberry filling for balance—its tanginess complements all flavors. Just adjust food coloring quantities if using different extracts.

5

Why did my cake layers sink in the middle?

This usually happens from overmixing the batter or opening the oven too soon. Mix dry ingredients just until combined (about 15 seconds) and avoid overbeating the butter-egg mixture. Bake until a toothpick comes out clean, then let layers cool 10 minutes in the pan before removing. For extra support, add ¼ tsp xanthan gum to the batter.

★★★★★5.0(3 reviews)
Brian Walker