
Picture this: a towering masterpiece of soft, moist cake layers in every color of the rainbow, each one perfectly tender and kissed with vanilla sweetness, all wrapped in pillowy clouds of cream cheese frosting. This showstopper isn’t just a cake—it’s the centerpiece that makes birthdays unforgettable, pride celebrations magical, and ordinary days extraordinary. The best part? It’s easier to make than it looks, and the joy on everyone’s faces when you slice into those brilliant layers is absolutely priceless.
Why You’ll Love This Recipe
- Each layer bakes in just 12-15 minutes, so you can prepare all six layers in under two hours total
- The vanilla cake base is foolproof and stays moist for days, making it perfect for advance preparation
- No artificial flavors needed—gel food coloring creates vibrant hues without affecting taste or texture
- The cream cheese frosting is stable enough for stacking but stays incredibly creamy and spreadable
- One simple batter recipe gets divided and colored, so you’re not juggling multiple mixing bowls
Pro Tips
- Use gel food coloring instead of liquid—you’ll get more intense colors without thinning the batter, and just a tiny dab goes a long way
- Let each layer cool completely on wire racks before frosting, ideally for 30 minutes, to prevent the frosting from melting and sliding
- Chill the assembled cake for 20 minutes between the crumb coat and final frosting layer for the smoothest, most professional finish
- To ensure even layers, weigh your batter portions on a kitchen scale—each layer should be about 10-11 ounces of batter for six 8-inch pans

Colorful Rainbow Layer Cake Recipe
Ingredients
Method
- Preheat your oven to 350°F (175°C). Grease six 8-inch round cake pans with butter and line the bottoms with parchment paper circles. Set aside.
- In a medium bowl, whisk together the flour, baking powder, and salt until evenly combined. Set aside.
- In a large mixing bowl, beat the softened butter and sugar together on medium-high speed for 3-4 minutes until light and fluffy. Scrape down the sides of the bowl.
- Add the eggs one at a time, beating well after each addition. Mix in the vanilla extract until fully incorporated.
- With the mixer on low speed, alternate adding the flour mixture and milk in three additions, beginning and ending with the flour. Mix just until no streaks remain—do not overmix.
- Divide the batter evenly into six separate bowls (about 10-11 ounces each). Add a different gel food color to each bowl, stirring until the color is vibrant and uniform.
- Pour each colored batter into a prepared pan, spreading it evenly to the edges. Bake for 12-15 minutes, until a toothpick inserted in the center comes out clean and the edges just begin to pull away from the pan.
- Cool the layers in the pans for 10 minutes, then turn them out onto wire racks to cool completely, at least 30 minutes.
- For the frosting, beat the cream cheese and butter together on medium speed until smooth and creamy, about 2 minutes. Gradually add the powdered sugar one cup at a time, beating on low. Mix in the vanilla extract and heavy cream, then beat on high for 2 minutes until light and fluffy.
- Place the first cake layer (purple or red) on your serving plate. Spread about 3/4 cup frosting evenly over the top. Repeat with remaining layers in rainbow order, ending with the top layer. Apply a thin crumb coat over the entire cake, then chill for 20 minutes. Finish with the remaining frosting, smoothing the sides and top with an offset spatula.

Frequently Asked Questions
Can I make this cake ahead of time?
Yes, you can bake the layers up to 2 days ahead and store them wrapped tightly in plastic wrap at room temperature, or freeze them for up to 3 months. Frost the cake the day before serving and refrigerate it overnight for the cleanest slices.
What if I only have three cake pans?
No problem—bake the layers in batches. Keep the remaining colored batters covered at room temperature while the first batch bakes. The batter holds well for 30-45 minutes without affecting the texture.
Can I use buttercream instead of cream cheese frosting?
Absolutely. American buttercream or Swiss meringue buttercream both work beautifully with this cake. The cream cheese frosting adds a subtle tang that balances the sweetness, but use whatever frosting your crowd loves most.
Why are my layers domed in the middle?
Oven temperature that’s too high causes doming. Try reducing the temperature by 25°F and using cake strips (wet fabric strips wrapped around the pans) to promote even baking. You can also level the layers with a serrated knife before stacking.
Storage & Serving
Store the finished cake covered in the refrigerator for up to 5 days—the cream cheese frosting requires chilling. Bring it to room temperature 30 minutes before serving for the best flavor and texture. This cake is stunning on its own, but try serving it with fresh berries, a scoop of vanilla ice cream, or a drizzle of white chocolate ganache for extra celebration vibes.
Slice into those vibrant layers and watch the smiles spread—this is the kind of cake that creates memories.