Rainbow Layer Cake 

Magical and show stopping, this rainbow cake features layers of tender-crumb cake in various colors accented by vibrant white buttercream frosting. Completely fun and undeniably delicious, this will delight people of all ages.

Jump to Recipe
A rainbow birthday cake with a slice out of it.

Rainbow Cake Recipe

I cannot get over how pretty this Rainbow Cake is! The vibrant rainbow layers sandwiched by a white buttercream that is silky smooth –mmmmhmmm, give me more of that! This is the perfect Rainbow Birthday Cake, St. Patrick’s Day celebration cake or baby shower cake with rainbow for a sweet rainbow baby. 

ad for shop site.

But looks aren’t everything. Which is why it’s a really good thing that this cake is really, really good. It is the perfect vanilla-y, buttery flavor with a moist/tender/fluffy texture that will make you feel like you picked it up from your nearest bakery. All I’m saying is you’re going to be glad it is 6 layers tall because you’re going to want every single bite.

Colored cake layers prior to being frosted.

What Ingredients Are In Rainbow Cake? 

Cake

  • Salted butter, melted – I always use salted butter! You are welcome to use unsalted butter, if you’d prefer. Just be sure to add an extra pinch of salt to the batter. 
  • Canola oil– we use both butter and oil in this recipe to give the cake a super spongey and moist crumb.
  • Granulated sugar
  • Eggs, room temperature – Cold eggs? No problem. Quickly bring eggs to room temperature by placing them in a bowl of warm (almost tepid) water for a few minutes. 
  • Vanilla extract
  • Butter flavor – Try my high-quality, super-strength Butter Flavoring! This flavor is what will give your cake that bakery taste.
  • Cake flour – The cake flour will help your cake maintain a fluffy softness and tender crumb. 
  • All-purpose flour– this is what will give our cake more structure so it won’t fall while baking.
  • Baking soda
  • Baking powder
  • Salt
  • Buttermilk, room temperature – Buttermilk is KEY to the light, fluffy, and tender texture of this cake! 
  • Food coloring – I find that gel works best, but regular food coloring will also work if needed. 

Vanilla Buttercream

  • Salted butter, softened – Again, unsalted will work too. 
  • Powdered sugar
  • Clear vanilla – You can sub regular vanilla, your frosting just won’t be bright white. 
  • Rainbow colored sprinkles
A birthday cake frosted with rainbow sprinkles.

How to Make Rainbow Birthday Cake

  1. Preheat the oven to 350°F.
  2. Prepare six 6-inch cake pans by spraying with nonstick spray and then lining the bottom with parchment paper. Set aside.
  3. In the bowl of a stand mixer with the paddle attachment, combine the salted butter, canola oil and granulated sugar until well combined.
  4. Add in the eggs, one at a time, mixing thoroughly between each addition.
  5. Once mixed in, add the vanilla extract and butter flavor.
  6. In a separate bowl, whisk together the cake flour, all-purpose flour, baking soda, baking powder and salt.
  7. Add the dry ingredients to the mixer and slowly begin to incorporate. Once the dry ingredients are almost all combined with the wet ingredients, slowly pour in the buttermilk and mix until well combined and smooth.
  8. Divide the batter evenly into 6 bowls. Color each bowl your desired color– I did pink, purple, blue, green, yellow and orange.
  9. Pour the colored batter into the prepared pans.
  10. Bake at 350°F for 20-25 minutes or until the edges of the cake start to pull away from the sides of the pan. Do not underbake or the cake will collapse.
  11. Allow the cakes to cool on the counter for 10 minutes before flipping the cake out onto a cooling rack. Allow the cakes to cool completely and then freeze for 15 minutes before trimming.
  12. To trim your cakes, use a sharp knife and cut the hard edge off of the outside of the cake. Next, use a long serrated knife to cut the top of the cake flat and to remove the browned portion on the bottom of the cake. This will make the final cake look much cleaner. Repeat with all 6 layers.
  13. Freeze again while making the vanilla buttercream.

Making the Buttercream & Assembling the Cake

  1. To make the buttercream, whip the butter in a stand mixer on high speed for 10-15 minutes. The butter should turn a very bright white color and will be very fluffy when it is ready for the next step.
  2. Scrape the sides of the bowl and then add the powdered sugar in a few additions, mixing between each.
  3. Add the vanilla and whip until smooth.
  4. To arrange the cake, place a small dollop of frosting on your cake plate or stand to keep the cake in place. Set the first cake layer down in the center.
  5. Spread an even layer of frosting on top using an offset spatula. Place the next layer on top and gently press down. Repeat until all layers have been added.
  6. Spread a thin layer of frosting over the entire cake to trap the crumbs (called a crumb coat) and then chill in the freezer for 5-10 minutes.
  7. Apply the rest of the frosting in a thicker layer, smoothing with an offset spatula or bench scraper. I added the sprinkles to the remaining frosting before applying to my cake. Make sure to set aside enough white frosting for the swirl on top, if desired.
  8. Decorate the top with additional frosting or sprinkles, if desired.
  9. Store in the fridge until 30 minutes before serving. Enjoy!
A slice of rainbow cake on a plate. All colors displayed.

How should I store my cake with rainbow design?

After you have assembled your cake, store in the fridge for up to 2 days. Remove from the fridge 30 minutes prior to serving. Enjoy!

A slice of rainbow birthday cake on a plate. In the background the res t of the cake is on a tray.

Rainbow Faves

A slice of rainbow cake on a plate. All colors displayed.

Rainbow Layer Cake

Magical and show stopping, this rainbow cake features layers of tender-crumb cake in various colors accented by vibrant white buttercream frosting. Completely fun and undeniably delicious, this will delight people of all ages.
5 from 1 vote
Print Pin Rate
Prep Time: 2 hours
Cook Time: 25 minutes
Servings: 16 servings
Calories: 617kcal

Ingredients

  • 1/2 cup salted butter, melted
  • 1/2 cup canola oil
  • 2 cup granulated sugar
  • 4 eggs, room temperature
  • 1 tbsp vanilla extract
  • 1/2 tsp butter flavor
  • 2 cup cake flour
  • 1/2 cup all-purpose flour
  • 1/2 tsp baking soda
  • 1/2 tsp baking powder
  • 1 tsp salt
  • 1 1/3 cups buttermilk, room temperature
  • Food coloring (gel works best)

Vanilla Buttercream

  • 2 1/2 cups salted butter softened
  • 4 1/2 cups powdered sugar
  • 1 tbsp + 1 tsp clear vanilla
  • 1/4 cup rainbow colored sprinkles

Instructions

  • Preheat the oven to 350°F.
  • Prepare six 6-inch cake pans by spraying with nonstick spray and then lining the bottom with parchment paper. Set aside.
  • In the bowl of a stand mixer with the paddle attachment, combine the salted butter, canola oil and granulated sugar until well combined.
  • Add in the eggs, one at a time, mixing thoroughly between each addition.
  • Once mixed in, add the vanilla extract and butter flavor.
  • In a separate bowl, whisk together the cake flour, all-purpose flour, baking soda, baking powder and salt.
  • Add the dry ingredients to the mixer and slowly begin to incorporate. Once the dry ingredients are almost all combined with the wet ingredients, slowly pour in the buttermilk and mix until well combined and smooth.
  • Divide the batter evenly into 6 bowls. Color each bowl your desired color- I did pink, purple, blue, green, yellow and orange.
  • Pour the colored batter into the prepared pans.
  • Bake at 350°F for 20-25 minutes or until the edges of the cake start to pull away from the sides of the pan. Do not underbake or the cake will collapse.
  • Allow the cakes to cool on the counter for 10 minutes before flipping the cake out onto a cooling rack. Allow the cakes to cool completely and then freeze for 15 minutes before trimming.
  • To trim your cakes, use a sharp knife and cut the hard edge off of the outside of the cake. Next, use a long serrated knife to cut the top of the cake flat and to remove the browned portion on the bottom of the cake. This will make the final cake look much cleaner. Repeat with all 6 layers.
  • Freeze again while making the vanilla buttercream
  • To make the buttercream, whip the butter in a stand mixer on high speed for 10-15 minutes. The butter should turn a very bright white color and will be very fluffy when it is ready for the next step.
  • Scrape the sides of the bowl and then add the powdered sugar in a few additions, mixing between each.
  • Add the vanilla and whip until smooth.
  • To arrange the cake, place a small dollop of frosting on your cake plate or stand to keep the cake in place. Set the first cake layer down in the center.
  • Spread an even layer of frosting on top using an offset spatula. Place the next layer on top and gently press down. Repeat until all layers have been added.
  • Spread a thin layer of frosting over the entire cake to trap the crumbs (called a crumb coat) and then chill in the freezer for 5-10 minutes.
  • Apply the rest of the frosting in a thicker layer, smoothing with an offset spatula or bench scraper. I added the sprinkles to the remaining frosting before applying to my cake. Make sure to set aside enough white frosting for the swirl on top, if desired.
  • Decorate the top with additional frosting or sprinkles, if desired.
  • Store in the fridge until 30 minutes before serving. Enjoy!
Find Cookies for Days on Instagram!Follow @cookiesfordaaays for new recipes daily!
Share by Text

Nutrition

Calories: 617kcal | Carbohydrates: 73g | Protein: 3g | Fat: 36g | Saturated Fat: 19g | Polyunsaturated Fat: 3g | Monounsaturated Fat: 12g | Trans Fat: 1g | Cholesterol: 76mg | Sodium: 422mg | Potassium: 31mg | Fiber: 0.5g | Sugar: 58g | Vitamin A: 887IU | Calcium: 20mg | Iron: 0.4mg

Latest Recipes:

2 Comments

5 from 1 vote

Leave a Reply

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

Recipe Rating