Go Back
A whole rainbow cake with smooth white frosting and rainbow sprinkles on top, sitting on a cake stand with the full cake in frame and space around it on a light table | rainbow cake | bright, happy, birthday celebration mood

Easy Rainbow Cake with Six Bright Layers

A soft vanilla cake split into six bright layers: red, orange, yellow, green, blue, and purple, stacked with plain white buttercream. The calm white coat hides the rainbow until the first slice is cut. A happy centerpiece cake for birthdays and family parties.
Prep Time 45 minutes
Cook Time 45 minutes
Cooling Time 1 hour
Total Time 2 hours 30 minutes
Servings: 14
Course: Dessert
Cuisine: American
Calories: 620

Ingredients
  

For the Cake:
  • 3 3/4 cups all purpose flour spooned and leveled
  • 3 3/4 teaspoons baking powder
  • 1 teaspoon fine salt
  • 1 1/4 cups unsalted butter soft (2 1/2 sticks), plus more for the pans
  • 2 1/2 cups granulated sugar
  • 5 large eggs at room temperature
  • 1 tablespoon alcohol free vanilla extract
  • 1 1/2 cups whole milk at room temperature
  • Gel food colors: red, orange, yellow, green, blue, and purple
For the White Buttercream:
  • 1 1/2 cups unsalted butter soft (3 sticks)
  • 6 cups powdered sugar sifted
  • 2 teaspoons clear alcohol free vanilla extract
  • 4 to 6 tablespoons whole milk
  • 1/2 teaspoon fine salt
  • Rainbow sprinkles optional, for the top

Method
 

  1. Heat the oven to 350°F (175°C). Butter two or three 8 inch round pans, line the bottoms with baking paper, butter the paper, and dust with flour.
  2. Whisk the flour, baking powder, and salt in a bowl.
  3. Beat the butter and sugar for 3 to 4 minutes, until pale, thick, and fluffy.
  4. Add the eggs one at a time, beating well after each one. Stir in the vanilla.
  5. Add the flour mix in three parts and the milk in two parts, taking turns, starting and ending with flour. Mix on low just until smooth.
  6. Split the batter evenly among six small bowls, about 1 1/2 cups in each. Weigh the bowls for layers that match.
  7. Stir one gel color into each bowl: red, orange, yellow, green, blue, and purple, a few drops at a time, until the color looks even.
  8. Pour one colored batter into each ready pan, smooth the tops, and cover the rest of the bowls with a clean towel.
  9. Bake 14 to 16 minutes, until the top springs back and a toothpick in the center comes out clean.
  10. Rest the pans 10 minutes, turn the layers out, peel off the paper, and cool fully. Butter and line the pans fresh and bake the next round until all six layers are done.
  11. Beat the frosting butter until pale and smooth. Add the powdered sugar one cup at a time with the milk, then the vanilla and salt. Beat 2 to 3 minutes, until light and fluffy.
  12. Stack the layers cold in this order: purple, blue, green, yellow, orange, red, with a thin layer of frosting between each one. Spread a thin coat over the whole cake, chill 20 minutes, then finish with the rest of the frosting in soft swirls. Add sprinkles on top if you like.

Notes

  • Gel color only. Liquid color thins the batter and bakes pale.
  • Weigh the six bowls of batter so all the layers bake to the same thickness.
  • Stack the layers cold and chill the crumb coat for 20 minutes, so the tall cake stands straight.