• About
  • Recipe Index
  • Recipes By Course
    • Breakfast
    • Dinner
    • Desserts
menu icon
go to homepage
  • About
  • Recipe Index
  • Recipes By Course
    • Breakfast
    • Dinner
    • Desserts
search icon
Homepage link
  • About
  • Recipe Index
  • Recipes By Course
    • Breakfast
    • Dinner
    • Desserts
×

Rainbow Cake Recipe

Published: Mar 4, 2026 by Amelia · This post may contain affiliate links · Leave a Comment

Jump to Recipe· 4.1 from 9 reviews

If you’re looking to add a joyful burst of color and flavor to your dessert table, this Rainbow Cake Recipe is going to become your new favorite. Imagine biting into moist, perfectly tender layers of cake in every color of the rainbow, stacked high and frosted with a velvety smooth buttercream that balances sweetness with a hint of vanilla. It’s not just a cake; it’s a celebration in every bite, perfect for birthdays, special occasions, or anytime you want to surprise your loved ones with something delightfully beautiful and delicious.

Ingredients You'll Need

The image shows a stack of seven cake layers with creamy white frosting between each one, all placed on a white surface with a white marbled background. From bottom to top, the layers are pink, bright blue, green, light yellow, darker yellow, and red. Each cake layer has a soft texture with a smooth layer of frosting that slightly spills over the edges. The layers are evenly stacked, forming a colorful tower with sharp edges on the frosting and cake, giving a clean, fresh look. photo taken with an iphone --ar 4:5 --v 7

Getting the perfect rainbow cake is all about using simple, well-balanced ingredients that create a tender crumb and vibrant colors. Each ingredient plays a crucial role: flour for structure, buttermilk and milk for tenderness and moisture, and the right amount of vanilla and frosting components for that creamy finish.

  • Cake flour: Provides a light, soft texture essential for delicate cake layers.
  • Granulated sugar: Adds the sweetness that balances the tangy buttermilk.
  • Baking powder and baking soda: These leavening agents work together to give your cake that perfect rise.
  • Buttermilk: Infuses moisture and a slight tang to enrich flavor and texture.
  • Milk: Lightens the batter for softness and moisture.
  • Vanilla extract: A classic flavor booster that enhances the cake’s sweetness.
  • Vegetable oil: Keeps the cake moist without weighing it down.
  • Egg whites (room temperature): Whipped to add air, creating a light and fluffy crumb.
  • Food coloring: The magic ingredient that brings the rainbow layers to life.
  • Unsalted butter (room temperature): Essential for rich, creamy buttercream.
  • Powdered sugar: Sweetens and thickens the frosting for smooth spreading.
  • Salt (a pinch): Balances flavors in the buttercream.
  • Heavy cream: Adds luscious creaminess and adjusts frosting texture as needed.

How to Make Rainbow Cake Recipe

Step 1: Prepare Your Pans and Oven

First things first, preheat your oven to 350 degrees Fahrenheit. Prepare six 8-inch cake pans by spraying them with cooking spray and lining each with parchment paper rounds. Don’t worry if you don’t have six pans — you can bake in batches. This setup ensures even baking and easy removal of the delicate layers.

Step 2: Mix Dry and Wet Ingredients

Whisk together the cake flour, granulated sugar, baking powder, and baking soda in a large bowl. In a separate container, combine the buttermilk, milk, vanilla extract, and vegetable oil. Gently blend the wet ingredients into the dry until just combined. The batter should be smooth but don’t overmix to keep things light and airy.

Step 3: Whip Those Egg Whites

In a clean bowl, whip the room temperature egg whites into medium stiff peaks. This technique infuses air and is key for creating those tender layers that feel light as a cloud. Once whipped, fold the egg whites carefully into the batter to maintain all that fluffy goodness.

Step 4: Divide and Color the Batter

Evenly split your batter into six bowls (about 275 grams per bowl if you want to be precise). Now for the fun, color each bowl with your chosen food coloring: red, orange, yellow, green, blue, and purple. This step brings your rainbow cake vision to life before your very eyes.

Step 5: Bake the Cakes

Pour each colored batter into its prepared pan and bake for about 15 to 18 minutes. You’ll know they’re done when the cake springs back to the touch in the center. Allow the layers to cool completely. For the best results, wrap each cooled layer in plastic wrap and freeze overnight — it makes stacking and frosting a breeze.

Step 6: Make the Buttercream Frosting

Beat the unsalted butter and powdered sugar together until combined and fluffy. Mix in vanilla extract, a pinch of salt, and 4 to 5 tablespoons of heavy cream, beating until smooth and creamy. Add more cream if you need a softer consistency. Reserve 2 cups of this frosting plain white and tint the rest a light blue for a subtle sky effect on the outside of your cake.

Step 7: Assemble and Frost

Stack your cake layers starting from the purple on the bottom, spreading a thin layer of frosting between each — follow the rainbow order finishing with red on top. Apply a thin crumb coat all over the exterior and chill for 20 minutes. Then, smooth the remaining frosting using a spatula, taking care to swipe gently to avoid disturbing your layers. Finally, pipe fluffy white clouds with a large round tip over the top and edges for a dreamy finishing touch.

How to Serve Rainbow Cake Recipe

This image shows a tall rainbow cake with six layers, each layer a different bright color from bottom to top: pink, light blue, green, yellow, orange, and red. Each layer is separated by a thin white cream layer. The outside of the cake is covered in light blue frosting decorated with small yellow cream flowers on top and on the side. A woman's hand is holding a cake server under a slice of the cake, lifting it slightly. The cake sits on a white marble cake stand, and the background has a white marbled texture. photo taken with an iphone --ar 4:5 --v 7

Garnishes

Adding garnishes can really elevate your Rainbow Cake Recipe. Consider fresh berries or edible flowers that compliment the cake’s colors. Sprinkles or rainbow sugar crystals add an extra sparkle, making every slice Instagram-worthy and irresistibly festive.

Side Dishes

Pair this cake with light, fresh sides like a simple fruit salad or whipped cream for balance. A cool glass of milk or a cup of fragrant tea also enhances the experience without overpowering the delicate vanilla and buttery flavors of the cake.

Creative Ways to Present

Try serving individual rainbow slices on pastel-colored plates, or place the cake on a rustic wooden board for a charming contrast. You could also create mini rainbow cupcakes using the same batter, perfect for gifting or sharing at parties!

Make Ahead and Storage

Storing Leftovers

Leftover rainbow cake should be stored in an airtight container in the refrigerator to keep the buttercream fresh and the cake moist. It will stay delicious for up to four days, so you can enjoy every colorful bite.

Freezing

This Rainbow Cake Recipe freezes beautifully. Wrap the cake tightly with plastic wrap and then aluminum foil if freezing a whole cake. You can freeze frosted slices individually as well. When ready to enjoy, thaw overnight in the refrigerator for best texture.

Reheating

Since this cake is best served chilled or at room temperature, reheating isn’t necessary. If you prefer it slightly warmer, allow it to sit out at room temperature for about 30 minutes before serving. Avoid microwaving to keep the frosting’s texture intact.

FAQs

Can I use regular milk instead of buttermilk?

You can substitute regular milk mixed with a tablespoon of lemon juice or vinegar to mimic buttermilk’s acidity. This keeps your cake tender and light just like with buttermilk.

What type of food coloring works best?

Gel food coloring is ideal because it provides vibrant colors without thinning the batter. Liquid food coloring can be used but may affect consistency slightly.

Can I make this cake with fewer layers?

Absolutely! You can halve the recipe or use fewer pans; just adjust the baking time slightly and still enjoy that stunning rainbow effect.

Is this cake suitable for freezing ahead of parties?

Yes, the layers freeze wonderfully and the cake can be assembled and frosted the day before your event for minimal stress.

Can I use an electric mixer for whipping egg whites?

Definitely, an electric mixer or stand mixer makes whipping egg whites much easier to achieve those stiff peaks crucial for a light cake texture.

Final Thoughts

This Rainbow Cake Recipe is more than just a dessert — it’s a slice of happiness that will brighten any occasion. Whether you’re an experienced baker looking for a fun, impressive project or a beginner eager to wow friends and family, this cake is worth every colorful, buttery bite. So grab your bowls and food coloring, and let’s bring a rainbow into your kitchen today!

Print
clockclock iconcutlerycutlery iconflagflag iconfolderfolder iconinstagraminstagram iconpinterestpinterest iconfacebookfacebook iconprintprint iconsquaressquares iconheartheart iconheart solidheart solid icon
Rainbow Cake Recipe

Rainbow Cake Recipe

5 Stars 4 Stars 3 Stars 2 Stars 1 Star

4.1 from 9 reviews

Print Recipe
Pin Recipe

This vibrant Rainbow Cake is a visually stunning layered dessert perfect for celebrations. Featuring six colorful layers, each tinted in a different hue of the rainbow, it's baked to moist perfection and layered with creamy vanilla buttercream frosting. The cake requires a bit of time and patience to bake in batches and chill for stacking, but the result is a show-stopping, delicious cake that delights both the eyes and the palate.

  • Total Time: 5 hours 18 minutes (includes cooling and freezing time)
  • Yield: 12 servings

Ingredients

Cake

  • 3 ⅓ cups cake flour
  • 2 ¼ cups granulated sugar
  • 2 ¼ teaspoons baking powder
  • ¾ teaspoon baking soda
  • 1 ½ cups buttermilk
  • ⅓ cup milk
  • 3 teaspoons vanilla extract
  • ¾ cup vegetable oil
  • 6 egg whites (room temperature)
  • Food coloring (red, orange, yellow, green, blue, purple)

Buttercream Frosting

  • 2 pounds unsalted butter (room temperature)
  • 16 cups powdered sugar
  • 2 tablespoons vanilla extract
  • 1 pinch salt
  • ⅓ cup heavy cream (more if needed)
  • Food coloring (light blue and white for decoration)

Instructions

  1. Prepare pans and oven: Preheat the oven to 350°F (175°C). Spray six 8-inch cake pans with cooking spray and line with parchment rounds. If you don’t have six pans, bake in batches, two cakes at a time.
  2. Mix dry ingredients: In a large bowl, whisk together the cake flour, granulated sugar, baking powder, and baking soda until thoroughly combined.
  3. Add wet ingredients: Into the dry mixture, add the buttermilk, milk, vanilla extract, and vegetable oil. Mix gently until just combined, being careful not to overmix.
  4. Whip egg whites: In a separate large bowl, whip the room temperature egg whites until medium stiff peaks form, giving the cake a light, airy texture.
  5. Fold in egg whites: Carefully fold the whipped egg whites into the batter until no streaks remain, ensuring the batter remains airy.
  6. Divide and color batter: Divide the batter equally into six separate bowls (approximately 275 grams per bowl). Tint each portion with a different food coloring: red, orange, yellow, green, blue, and purple.
  7. Bake: Pour each colored batter into the prepared pans and bake for 15-18 minutes, or until the center springs back when lightly pressed.
  8. Cool and freeze: Let the cakes cool completely. Wrap each layer individually with plastic wrap and store flat in the freezer overnight. This firms them up, making stacking and frosting easier.
  9. Prepare buttercream: In a stand mixer, beat the unsalted butter and powdered sugar until combined. Add vanilla extract, salt, and 4-5 tablespoons of heavy cream, beating until smooth. Add more cream if needed for a softer consistency.
  10. Tint frosting: Reserve 2 cups of white frosting for decoration. Tint the remaining frosting light blue for layering the cake.
  11. Assemble cake: Start stacking the cake layers from bottom to top in this order: purple, blue, green, yellow, orange, and red, spreading a thin layer of light blue frosting between each layer.
  12. Crumb coat: Apply a thin layer of frosting over the outside of the cake to seal in crumbs. Chill the cake for 20 minutes to set the crumb coat.
  13. Smooth outer frosting: Using a frosting spatula, smooth the frosting evenly around the cake by swiping along the sides without lifting the spatula straight up to avoid pulling off frosting or crumbs.
  14. Decorate: Using a piping bag fitted with a large round tip, pipe white cloud decorations around the top edge and cascading slightly down the sides to complete the rainbow theme.

Notes

  • If you have fewer cake pans, bake the colored layers in batches, letting the pans cool completely between uses.
  • Freezing the cake layers overnight makes them easier to stack and frost without crumbling.
  • Room temperature egg whites whip better and create a lighter batter texture.
  • Use gel-based food coloring for more vibrant colors without thinning the batter.
  • Store the finished cake in the refrigerator and allow it to come to room temperature before serving for best flavor.
  • Author: Amelia
  • Prep Time: 45 minutes
  • Cook Time: 30 minutes (baking layers in batches)
  • Category: Dessert
  • Method: Baking
  • Cuisine: American

Have you made this recipe? I'd love to see it!

Click here to Follow me on Pinterest

More Desserts

  • Gluten Free Vanilla Cupcakes Recipe
    Gluten Free Vanilla Cupcakes Recipe
  • Gluten Free Honey Cloud Cake Recipe
    Gluten Free Honey Cloud Cake Recipe
  • Sweet Potato Cake with Cream Cheese Frosting Recipe
    Sweet Potato Cake with Cream Cheese Frosting Recipe
  • Gluten Free Apple Cake with Cinnamon Buttercream Frosting Recipe
    Gluten Free Apple Cake with Cinnamon Buttercream Frosting Recipe

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star

Hi, I’m so happy you’re here!

I'm Amelia, a 27-year-old recipe developer and former restaurant line cook living in Portland, Oregon. This is where I share recipes that actually work in real kitchens, tested by someone who's cooked through the chaos of Friday night dinner rush and the reality of weeknight exhaustion.

Learn more

Popular

  • Middle Eastern Lamb Mince with Pomegranate Seeds and Fresh Herbs Recipe
    Middle Eastern Lamb Mince with Pomegranate Seeds and Fresh Herbs Recipe
  • Fig and Balsamic Vinaigrette Recipe
    Fig and Balsamic Vinaigrette Recipe
  • Tangy Apricot BBQ Sauce (for Grilling, Glazing & Dipping!) Recipe
    Tangy Apricot BBQ Sauce (for Grilling, Glazing & Dipping!) Recipe
  • Chicken Freekeh Salad with Pomegranate, Feta, and Pistachios Recipe
    Chicken Freekeh Salad with Pomegranate, Feta, and Pistachios Recipe
  • Persian Lemon Chicken with Yogurt and Turmeric Recipe
    Persian Lemon Chicken with Yogurt and Turmeric Recipe
  • Easy Lamb Kofta Wraps with Yogurt Sauce Recipe
    Easy Lamb Kofta Wraps with Yogurt Sauce Recipe
  • Turkish Lamb Shish Kebab Recipe
    Turkish Lamb Shish Kebab Recipe
  • Coq au Vin Blanc (French Stewed Chicken in White Wine) Recipe
    Coq au Vin Blanc (French Stewed Chicken in White Wine) Recipe
  • Whipped Ricotta Crostini with Walnuts & Salted Honey Recipe
    Whipped Ricotta Crostini with Walnuts & Salted Honey Recipe
  • Gelatinous Chicken Feet Bone Broth Recipe
    Gelatinous Chicken Feet Bone Broth Recipe

Footer

↑ Back to Top

About

  • Privacy Policy
  • Terms & Conditions
  • Contact
  • Disclosure
  • DMCA

Newsletter

Sign Up! for emails and updates

Browse Recipes

  • Appetizers & Snacks
  • Breakfast
  • Desserts
  • Dinner
    • Beef
    • Chicken
  • Lunch and Side-Dish
  • Soups

We may earn from qualifying purchases through affiliate links at no extra cost to you.

Copyright © 2025 Recipes Vibe. All rights reserved.