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

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

  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.
  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.
  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.
  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.

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.

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!

Rainbow Cake - 98Rainbow Cake - 94Rainbow Cake - 32Rainbow Cake - 97Rainbow Cake - 24Rainbow Cake - 75Rainbow Cake - 45Rainbow Cake - 47Rainbow Cake - 48Rainbow Cake - 68Rainbow Cake - 29Rainbow Cake - 20Rainbow Cake - 22Rainbow Cake - 24Rainbow Cake - 32Rainbow Cake - 34Rainbow Cake - 63Rainbow Cake - 44Rainbow Cake - 6