• Skip to primary navigation
  • Skip to primary sidebar
  • Skip to footer
  • Skip to content
Preppy Kitchen logo
  • About
    • Meet John Kanell
    • Press
  • Recipes
    • Desserts
    • Breakfast
    • Main Dishes
    • Side Dishes
    • Breads
    • Soups
    • Salads
    • Casseroles
    • Instant Pot
    • Appetizers
    • Drinks
    • Holiday
  • Cookbook
  • Shop
  • Contact
menu icon
go to homepage
search icon
Homepage link
  • About
  • Press
  • All Recipes
  • Cookbook
  • Shop
  • Contact
  • Follow us on

    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • YouTube
  • ×
    Home » Recipes » Desserts » Cakes » Rainbow Cake

    Rainbow Cake

    Published: June 20, 2023 · Modified: Jun 20, 2023 by John Kanell

    This post may contain affiliate links. Please read our disclosure policy.

    This beautiful Rainbow Cake recipe is perfect for any occasion, from birthday parties to holidays! It’s always a crowd-pleaser as you cut into it, revealing six stunning colorful layers with buttercream throughout. It’s moist, flavorful, and absolutely show-stopping.

    A plate with a slice of rainbow cake with a glass of milk, a second plated slice, and the cut cake on a cake stand in the background.
    54 shares
    • Share
    • Reddit
    Jump to Recipe Print Recipe
    Pinterest graphic of a slice of rainbow cake being removed from the cake.
    Pinterest graphic of a slice of rainbow cake on a plate with rainbow sprinkles on top and scattered around.
    Pinterest graphic of a rainbow cake with a quarter of it cut out, on a cake stand.
    Pinterest graphic of a plate with a slice of raimbow cake with a fork and glass of milk in the background.
    Pinterest graphic of a slice of rainbow cake with a glass of milk, a second plated slice, and the cut cake on a cake stand in the background.

    If you want to see everyone’s faces light up when you cut into a cake, then you must make this rainbow cake recipe! It’s positively stunning with all the colors of the rainbow including purple, blue, green, yellow, orange, and red layers with white buttercream between each layer. It is such a festive cake that tastes just as good as it looks!

    Don’t be intimidated by the layers and color. This post will walk you through step by step how to make a rainbow layer cake that everyone will love. The cake is moist, tender, and has a sweet vanilla flavor throughout. It pairs wonderfully with the smooth buttercream icing, and I top it with some rainbow sprinkles to give everyone a hint of what’s inside. It’s truly an impressive cake that’s fun for all ages which you can effortlessly assemble. If you want another easy cake recipe, then try my strawberry lemonade cake, naked cake, or chocolate chip cake.

    What You Need to Make This Recipe

    Ingredients needed to make a rainbow cake.

    Flour — you don’t need anything fancy to make this rainbow cake! Just all-purpose flour.

    Leavening agents — always double-check that your baking powder and soda are fresh and not expired. Purchase a new container if they’ve expired, or your cake crumb will not be light and tender.

    Eggs — you’ll need 6 eggs to make this cake! Make sure you bring them to room temperature so they can effortlessly mix into the batter without overmixing.

    Oil — using oil in the cake batter adds more fat to the cake layers to ensure moist, soft, and tender layers.

    Milk — make sure you buy whole milk and not low-fat milk. Whole milk will give you the best flavor and add moisture to the cake.

    Food coloring — you can use your favorite food coloring. If you can, then find gel food coloring as it will give you extremely vibrant color!

    Butter — I always recommend using unsalted butter to avoid salty buttercream. Be sure to bring the butter to room temperature. It must be soft enough so your finger leaves a dent when pressing it.

    Powdered sugar — you might find it labeled as confectioners’ sugar, icing sugar, and 10X, but they are all the same. If you’ve run out of powdered sugar to make the buttercream, then see my guide on how to make powdered sugar.

    How to Make Rainbow Cake

    Set of two photos showing dry ingredients whisked together in a bowl and wet ingredients whisked together in a separate bowl.

    1. Whisk together the flour, sugar, baking powder, baking soda, and salt in a large mixing bowl.

    2. Combine the eggs, vegetable oil, milk, and vanilla in another large mixing bowl. Whisk until well combined.

    Set of two photos showing the wet ingredients poured into the bowl of dry ingredients and food coloring added to bowls of batter.

    3. Pour into the flour mixture and whisk until combined.

    4. Divide the batter among 6 mixing bowls. Color each batter with food coloring to make red, orange, yellow, green, blue, and purple batters.

    Set of two photos showing multiple cake pans full of different colored batter and powdered sugar added to a mixer.

    5. Pour a single color batter into each prepared cake pan. Place the remaining batter bowls in the fridge until ready to bake. Bake for 20 minutes or until a toothpick inserted into the center comes out clean. Let the cakes cool for 10 minutes in the pan, then remove and finish cooling on a wire rack. Wash the pans, grease, and line with parchment paper again, and bake the remaining batters.

    6. Prepare the buttercream by beating butter and salt on medium speed until very fluffy and pale in the stand mixer bowl fitted with the whisk attachment. With the mixer on low speed, gradually add the powdered sugar a cup at a time, adding a tablespoon of cream at a time throughout the mixing. Stop and scrape down the bowl occasionally. Then beat in the vanilla and add additional cream if the frosting feels grainy when rubbed between your fingers. Increase the speed to medium-low and beat until light and fluffy.

    Set of two photos showing buttercream spread onto the cake and piped onto the top of the cake.

    7. Remove the parchment paper from the cake layers. Place the purple layer on a cake plate and spread ½ cup of frosting over the top. Place the blue layer on top and spread another ½ cup of frosting on top. Repeat with the remaining cake layers in the order of green, yellow, orange, and red. Using an offset spatula, spread the remaining frosting all over the outside of the cake.

    8. Pipe on additional frosting if desired. Chill the cake for at least 1 hour before serving.

    A slice of rainbow cake pulled with a cake spatula from the cake on the cake stand.

    Pro Tips for Making This Recipe

    • If the tops of your rainbow cake layers are domed, then use a serrated knife to cut off the top of the domes so you can stack them evenly. Alternatively, use cake strips to help your cake layers come out evenly. Cake strips work by keeping the outside edge of the pan cooler to ensure that the entire cake rises at the same rate, preventing a dome from forming in the middle. If you don’t want to buy cake strips, then see my post on how to DIY cake strips.
    • I highly recommend using a scale to measure your flour, as it’s the most accurate method. If you don’t have a scale, then fluff your flour with a spoon and spoon it into your cups before leveling it off with a knife. Fluffing the flour and spooning it into a measuring cup prevents you from overpacking it.
    • Make sure to allow the cake layers to cool before you add the buttercream.
    • The longer you chill the rainbow cake, the better the buttercream will stick to the cake layers.
    • Make sure the butter is room temperature before you cream it, as cold butter will lead to lumpy buttercream.
    • Avoid over-mixing the batter as you risk over-developing the gluten leading to a tough, dry, and dense cake.
    A slice of rainbow cake on a plate with rainbow sprinkles on top and scattered around.

    Frequently Asked Questions

    Can I make this cake in advance?

    You can make the rainbow layers and buttercream frosting for this beautiful cake a few days ahead of time and keep them tightly wrapped in the fridge, then assemble them when you’re ready. You can also make the entire cake in advance and place it in the fridge until ready to serve.

    How do I store leftovers?

    Cover and store leftover cake at room temperature for up to 3 days. You can refrigerate it if you’d like to keep it for longer.

    Can I freeze this cake?

    You can freeze the individual cake layers before assembling the cake. After allowing it to cool, wrap the cake layers in plastic wrap and foil before freezing for up to 3 months. You can also freeze the rainbow cake entirely or leftover slices. Tightly wrap the cake in plastic wrap and foil, then freeze for up to 3 months. You can also flash-freeze each slice on a lined baking sheet and then wrap the frozen slices with plastic wrap.

    If you love this recipe try these out!

    • A slice of zebra cake on a plate in front of the rest of the cake behind it on a cake stand.

      Zebra Cake

    • photo of a Funfetti Cake with a pink drizzle and lots of sprinkles

      Funfetti Cake

    • Photo of a Berry Cake cake on a pink cake stand with a piece on a plate

      Berry Cake

    • A chiffon cake on a stand, cut with a slice plated in front with whipped cream and berries.

      Chiffon Cake

    • An angel food cake topped with fruit on a crystal cake plate.

      Angel Food Cake

    If you’ve tried this Rainbow Cake recipe, then don’t forget to rate the recipe and let me know how you got on in the comments below, I love hearing from you!

    A plate with a slice of rainbow cake on its side, showing 6 different colored layers.
    Print
    5 from 4 votes

    Rainbow Cake

    This Rainbow Cake recipe is moist, tender, and beyond stunning with its six different colored cake layers! The brightly colored cake will be the star of the show!
    Course Dessert
    Cuisine American
    Prep Time 1 hour hour
    Cook Time 40 minutes minutes
    Cool Time 10 minutes minutes
    Total Time 1 hour hour 50 minutes minutes
    Servings 12 servings
    Calories 1440kcal
    Author John Kanell

    Equipment

    • 8 inch cake pans
    • Parchment paper
    • Mixing Bowls

    Ingredients

    For the Rainbow Cake Layers:

    • 5 cups all-purpose flour (600g)
    • 3 cups granulated sugar (600g)
    • 1 tablespoon baking powder
    • ½ teaspoon baking soda
    • 1 teaspoon salt
    • 6 large eggs room temperature
    • 1½ cups vegetable oil (360ml)
    • 1½ cups whole milk (360ml)
    • 1 tablespoon vanilla extract
    • Food coloring (red, yellow, blue, green)

    For the Buttercream:

    • 2½ cups unsalted butter softened (565g)
    • ½ teaspoon salt
    • 10 cups confectioners’ sugar (1200g)
    • ½ cup cream room temperature (120ml)
    • 2 teaspoons vanilla extract

    Instructions

    For the Rainbow Cake Layers:

    • Preheat the oven to 350F. Grease two or three 8-inch round cake pans with baking spray or butter. Line the bottoms with parchment paper.
    • In a large mixing bowl, whisk together the flour, sugar, baking powder, baking soda, and salt.
    • In another large mixing bowl, combine the eggs, vegetable oil, milk, and vanilla. Whisk until well combined. Pour into the flour mixture and whisk until combined.
    • Divide the batter among 6 mixing bowls. Color each batter with food coloring to make red, orange, yellow, green, blue, and purple batters. Pour a single color batter into each cake pan. Place the remaining batter bowls in the fridge until ready to bake. (This helps to stop the baking powder from reacting while waiting to bake.)
    • Bake for 20 minutes or until a toothpick inserted into the center comes out clean. Let the cakes cool for 10 minutes in the pan, then remove and finish cooling on a wire rack. Wash the pans, grease and line with parchment paper again, and bake the remaining batters.

    For the Buttercream:

    • In a large mixing bowl or the bowl of a stand mixer fitted with the whisk attachment, beat the butter and salt on medium speed until very fluffy and pale, about 5 minutes.
    • With the mixer on low speed, gradually add the confectioners’ sugar a cup at a time, adding a tablespoon of cream at a time throughout mixing. Stop and scrape down the bowl occasionally during mixing. Once all of the sugar is added, beat in the vanilla and add additional cream if the frosting feels grainy when rubbed between your fingers. Increase the speed to medium-low and beat until light and fluffy, about 1 minute.

    For the Assembly:

    • Remove the parchment paper from the cake layers. Place the purple layer on a cake plate and spread ½ cup of frosting over the top. Place the blue layer on top and spread another ½ cup of frosting on top. Repeat with the remaining cake layers in the order of green, yellow, orange, and red. Spread the remaining frosting all over the outside of the cake. Chill the cake for at least 1 hour before serving. Leftover cake should be covered and can be stored at room temperature for up to 3 days.

    Video

    Notes

    • If the tops of your rainbow cake layers are domed, then use a serrated knife to cut off the top of the domes so you can stack them evenly. Alternatively, use cake strips to help your cake layers come out evenly. Cake strips work by keeping the outside edge of the pan cooler to ensure that the entire cake rises at the same rate, preventing a dome from forming in the middle. If you don’t want to buy cake strips, then see my post on how to DIY cake strips.
    • I highly recommend using a scale to measure your flour, as it’s the most accurate method. If you don’t have a scale, fluff your flour with a spoon and spoon it into your cups before leveling it off with a knife. Fluffing the flour and spooning it into a measuring cup prevents you from overpacking it.
    • Make sure to allow the cake layers to cool before you add the buttercream.
    • The longer you chill the rainbow cake, the better the buttercream will stick to the cake layers.
    • Make sure the butter is room temperature before you cream it, as cold butter will lead to lumpy buttercream.
    • Avoid over-mixing the batter as you risk over-developing the gluten leading to a tough, dry, and dense cake.

    Nutrition

    Calories: 1440kcal | Carbohydrates: 192g | Protein: 10g | Fat: 73g | Saturated Fat: 32g | Polyunsaturated Fat: 18g | Monounsaturated Fat: 18g | Trans Fat: 2g | Cholesterol: 198mg | Sodium: 497mg | Potassium: 158mg | Fiber: 1g | Sugar: 150g | Vitamin A: 1496IU | Vitamin C: 0.1mg | Calcium: 136mg | Iron: 3mg
    *Nutrition Disclaimer
    Have you Tried this Recipe? Tag me Today!Mention @preppykitchen and tag #preppykitchen!
    « Pasta Carbonara
    Strawberry Muffins »

    Reader Interactions

    Leave a Reply Cancel reply

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

    Recipe Rating




    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Primary Sidebar

    Welcome to Preppy Kitchen!

    Thanks for stopping by! I’m John Kanell, a husband, dad to twins Lachlan and George, Los Angeles native, and an avid baker and cooker of all things delicious thanks to a life long education from my mother. This blog is where I share all of my kitchen creations!

    Search

    Follow Us On

    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • YouTube

    Preppy Kitchen Newsletter

    Sign up to receive recipes, recommendations and tips straight to your inbox!

    Buy My Book

    Preppy Kitchen Cookbook

    As Seen On

    As seen on Elle Décor, People, Food Network and more

    Top Recipes This Month

    • A stack of peanut butter cookies on a small wooden board

      Peanut Butter Cookies Recipe

    • A photo of a vanilla cupcake on a cupcake stand with vanilla buttercream frosting beautifully piped on top.

      Buttercream Frosting

    • An Oatmeal Chocolate Chip cookie next to a glass of milk

      Oatmeal Chocolate Chip Cookies

    • An Espresso martini on a gray surface with coffee beans scattered around

      Espresso Martini

    • A plate with multiple cake pops on it with one with a bite taken out.

      Cake Pops

    • A cake stand with a slice of red velvet cake cut out and placed on a plate in front.

      Red Velvet Cake

    • Lemon bars dusted with powdered sugar on a green and white plate.

      Lemon Bars

    • A group of pink macarons on a serving tray next to flowers

      Macaron Recipe

    • photo of moist Vanilla Cupcakes in pink paper wrappers

      Moist Vanilla Cupcake Recipe

    • A slice of vanilla cake on a plate in front of the cake on a cake stand.

      Vanilla Cake Recipe

    Footer

    As Seen On:

    Elle Décor, People, Country Living, Better Homes & Gardens, Food Network, Woman's Day, forkly, Yummly, the Bump, Buzz Feed, Home and Family and New York magazine.

    The Brand

    • About John
    • Press

    Preppy Kitchen Logo

    Dessert Recipes

    • Cakes
    • Cookies
    • Cupcakes
    • Pies
    • All Desserts

    Main Course Recipes

    • Main Dishes
    • Side Dishes
    • Casseroles
    • InstantPot
    • Soups
    • Salads

    COPYRIGHT © 2015–2023 PREPPY KITCHEN | PRIVACY POLICY

    54 shares