• Cake
  • Frosting
  • YouTube
  • My Favorite Tools
  • Nav Social Icons

  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Recipes
    • Cake
    • Cupcakes
    • Frosting
    • Ice Cream
    • Vegan
  • Cake Basics
  • Tutorials
  • Blog
  • About
  • Mobile Menu Widgets

    Connect

    Search

Sugar & Sparrow logo in script font

Sugar & Sparrow

Lifestyle and Cake from Portland Oregon

  • Cake Basics
  • Recipes
    • Cake
    • Cupcakes
    • Cookies & Bars
    • Filling
    • Frosting
    • Ice Cream
    • No-Bake
    • Small Batch
    • Vegan
  • Tutorials
  • Book
  • Blog
  • About

The Ultimate Rainbow Cake (Inside and Out!)

March 7, 2026 · In: Cake, Featured, Recipes, Tutorials

Jump to Recipe

This is the ULTIMATE rainbow cake – six layers of rainbow colored cake layers inside, rainbow striped buttercream on the outside, and a rainbow sprinkled swirl border on top. I used my bakery-style white cake for the cake layers, which is super soft, moist, and easy to tint any color of the rainbow. The filling and frosting is my favorite vanilla buttercream, which is easy to make, silky smooth, and packed with vanilla flavor. All together, this cake is visually stunning inside and out, and tastes like soft vanilla cake heaven! 

rainbow cake layers recipe with rainbow buttercream
rainbow cake slice on a plate

Rainbow Cake Elements & Supplies  

This rainbow cake is definitely a project, but as long as you plan it out and have the right supplies, it’s super fun! Here’s everything that goes into this cake:

  • Bakery-Style White Cake. The recipe begins by making my bakery-style white cake. It’s the softest, fluffiest vanilla cake recipe that tastes like it came from your favorite bakery, but it’s 100% HOMEMADE! It’s super moist (and stays that way for days), packed with vanilla flavor, and made with egg whites to keep the color of the cake nearly white. That makes it perfect for tinting rainbow colors. 
  • Vanilla Buttercream. My favorite vanilla buttercream is the filling and frosting for the rainbow cake, which is an incredibly easy American buttercream recipe that’s been tailored to be less sweet than average. Any white buttercream will work with this recipe, but you’ll need a lot of it – a little over 6 Cups – and it needs to be easy to tint rainbow colors. 
  • Food Coloring. I used Wilton Color Right food colors for tinting the cake layers and buttercream, and I’ve listed more brands I love below. 
  • Round Cake Pans. To create six cake layers in different colors, it’s very helpful to have six 6-inch cake pans.This way you can divide the batter evenly, add the food coloring, and distribute it between the pans and bake them all at once. If you only have a few cake pans, you’ll benefit greatly from having a kitchen scale so you can weigh the batter. Each pan has about 200g of cake batter in it, so with a kitchen scale you can weigh out what you need and bake in batches. 
  • Cake Decorating Equipment. To decorate this rainbow cake as pictured, you’ll need a cake turntable, piping bags, icing spatulas, an icing smoother, and a piping tip for the swirls on top. I used Wilton Tip 4B for the swirls pictured.  
  • Rainbow Sprinkles. Colorful rainbow sprinkles are the perfect finishing touch! I used Sprinkle Pop Rainbow Road sprinkles for this cake but any rainbow sprinkles will do the trick. 
Rainbow cake layers made with vanilla cake recipe

What Food Coloring Should I Use? 

Any kind of food coloring will work to make this rainbow cake, but I love using gel food coloring. For the pastel rainbow color palette pictured here, I used the Wilton Color Right Performance Food Coloring System, which is a set of colors that can be mixed to create custom colors. I used the red, orange, yellow, and blue from the kit as-is, for the green I mixed yellow and blue, and for the purple I mixed the pink and blue. All the food coloring brands that I love are:

  • AmeriColor
  • Wilton
  • Colour Mill – oil-based gel that’s great for meringue-based buttercreams
  • Chefmaster
  • ENCO Naturals – if you’re looking for dye-free natural food coloring
Striped rainbow cake with vanilla buttercream
striped buttercream rainbow cake tutorial

How to Make a Rainbow Layer Cake 

Step 1. Make the rainbow cake layers. Make the cake batter and divide it evenly between 6 bowls. You should have about 200g per bowl. Add food coloring to each bowl to create red, orange, yellow, green, blue, and purple cake layers, then bake the layers. Cool them to room temperature before filling and frosting.

how to tint cake batter rainbow colors
rainbow colored cake layers in pans

Step 2. Make the vanilla buttercream, fill, and crumb coat the cake. Make the vanilla buttercream, then prepare the cooled cake layers by leveling each one to a uniform height. Place the purple cake layer onto the turntable and add a thin (about 1/8 inch) layer of vanilla buttercream as filling, then place the blue layer on top. 

filling and stacking a rainbow layer cake

Repeat the process in reverse rainbow order before crumb coating the cake and placing it in the refrigerator to let the frosting firm up.

filling and crumb coating rainbow layer cake

Step 3. Make the rainbow buttercream. Reserve about 1 Cup of buttercream for the swirls on top, then divide the rest of the buttercream between 6 bowls. One bowl (the one you’ll tint red) should have slightly more buttercream since it will be used for the top of the cake and one of the stripes. Add food coloring to each bowl to create red, orange, yellow, green, blue, and purple buttercream.

rainbow buttercream colors

Step 4. Create the rainbow stripes. Place each buttercream color into a separate piping bag. Starting at the bottom with the purple buttercream, squeeze the piping bag while you rotate the turntable to add stripes of buttercream to the cake. Try to keep each color in line with the colors of the cake layers so they line up when the cake is sliced. Repeat the process in reverse rainbow order.

frosting a cake with rainbow buttercream stripes

Add the red buttercream on top of the cake after piping the red stripe, then smooth it down with an icing spatula to create a flat top. Use the icing smoother to create a smooth buttercream finish on the sides of the cake before swiping the top edges inward to create sharp edges.

rainbow buttercream cake tutorial

Be sure to clean your icing smoother often so that the rainbow colors don’t mix in the smoothing process. Even still, the stripes might look messy at first, but trust the process! 

Step 5. Pipe the swirls on top and add the sprinkles. Place the reserved white buttercream into a piping bag fitted with Wilton Tip 4B and pipe a swirl border on top of the cake, then garnish with rainbow sprinkles.

rainbow cake with white swirls on top and rainbow sprinkles

This is truly the most magical rainbow cake and a true showstopper – perfect for St. Patrick’s Day, birthdays, baby showers, and any celebration that could use more fun and whimsy!  

rainbow cake recipe with rainbow buttercream
rainbow striped buttercream cake with white swirls on top

I can’t get over how beautiful each slice is.

rainbow cake slice

More Rainbow Recipes You’ll Love

If you need more rainbow desserts in your life, here are some of my favorites from the blog:

  • Easy Rainbow Cupcakes
  • Pastel Rainbow Birthday Cake
  • Gradient Rainbow Buttercream Cake
  • Green Velvet Cake with Rainbow Frosting
  • Funfetti Layer Cake
rainbow cake recipe with rainbow frosting

This rainbow cake is sure to dazzle everyone at your next event and I hope you love it as much as I do! Let me know if you make it in the comments below and feel free to tag @sugarandsparrowco on Instagram and show me – I love to see your baking projects!

Rainbow layer cake with rainbow frosting

Rainbow Cake with Rainbow Buttercream

The ULTIMATE rainbow cake: six layers of rainbow colored cake layers inside, rainbow striped buttercream on the outside, and a rainbow sprinkled swirl border on top. The cake layers are made with my bakery-style white cake recipe (extra soft and moist!), then filled and frosted with my favorite vanilla buttercream.
Print Recipe Pin Recipe
Prep Time:1 hour hr
Cook Time:30 minutes mins
Cooling Time:3 hours hrs
Total Time:4 hours hrs 30 minutes mins
Course: Dessert
Cuisine: American
Servings: 20 slices

Equipment

  • Six 6-inch cake pans

Ingredients

Rainbow Cake

  • 2 1/2 Cups (265g) sifted cake flour* DIY recipe in notes
  • 2 tsp baking powder
  • 1/2 tsp baking soda
  • 1/2 tsp salt
  • 1 1/2 Cups (300g) granulated sugar
  • 1/2 Cup (113g) unsalted butter, room temperature
  • 4 large egg whites, room temperature
  • 1/2 Cup (120ml) vegetable oil
  • 1 Tbsp pure vanilla extract
  • 1 1/4 Cups (300ml) full-fat buttermilk*, room temperature DIY recipe in notes
  • red, orange, yellow, green, blue, and purple food coloring

Vanilla Buttercream

  • 2 Cups (452g) unsalted butter, room temperature
  • 7 Cups (840g) powdered sugar
  • 4 tsp pure vanilla extract
  • 1/4 Cup whole milk, room temperature
  • pinch of salt, or to taste
  • red, orange, yellow, green, blue, and purple food coloring

Garnish

  • 2 Tbsp rainbow sprinkles

Instructions

Make the Rainbow Cake

  • Preheat the oven to 325°F (163°C) and prepare six 6-inch cake pans by spraying the sides with baking spray and fitting a parchment paper circle to the bottom of each pan.
  • In a medium bowl, add the flour, baking powder, baking soda and salt. Whisk together and set aside.
  • In the bowl of a stand mixer fitted with the paddle attachment, beat the butter at high speed until creamy, about 2 minutes. Add the sugar and cream it together with the butter at medium-high speed until light and fluffy, about 2 minutes, scraping the bowl and paddle at the halfway point. Turn the mixer to low and add the egg whites one at a time, mixing until they are just combined and scraping down the bowl and paddle as needed. Add the vegetable oil and vanilla, increase the mixer speed to high and beat for 1 minute.
  • Turn the mixer off and add the flour mixture all at once. Mix the ingredients on low speed until just combined, then slowly pour in the buttermilk. Continue mixing at low speed for about 30 seconds, until the batter is uniform and combined. The batter will be slightly thin.
  • Divide the batter evenly between six bowls. You should have about 200g of batter per bowl. In the first bowl, whisk in a few drops of red food coloring until you create red colored batter (keep in mind it will darken in the baking process!). Repeat the process with the remaining bowls using orange, yellow, green, blue, and purple food coloring.
  • Pour each bowl of batter into a separate cake pan and bake for 18-22 minutes, until the layers spring back to the touch and a toothpick inserted comes out clean. Let the cake layers cool in their pans for 5 minutes, then remove them from the pans and allow them to cool completely on a wire rack.

Make the Vanilla Buttercream

  • With a hand mixer or paddle attachment on your stand mixer, cream the butter on medium-high until it’s creamy and light (almost white) in color. About 7 minutes. 
  • With the mixer on low, add the powdered sugar one cup at a time, scraping down after each addition and making sure each cup is fully incorporated before adding the next one. Add the vanilla, milk, and salt and mix on low for another minute until fully incorporated. Wait to add the food coloring until Step 2 of the Assembly process below.

Assembly

  • Once the cake layers are completely cooled, level them to get rid of any domed tops and create even layers. Add a swipe of vanilla buttercream onto a cardboard cake circle and place the first cake layer on top. Fill and stack the cake layers in reverse rainbow order, using about 1/8 inch of buttercream between each layer. When you get to the final cake layer, place it upside down on top of the stack, then crumb coat the cake with vanilla buttercream. Refrigerate the cake for 15-20 minutes to let the crumb coat firm up while you prepare the rest of the buttercream.
  • Color the Buttercream: Reserve about 1 Cup of buttercream for the swirls on top, then divide the rest of the buttercream between 6 bowls. One bowl (the one you’ll tint red) should have slightly more buttercream since it will be used for the top of the cake and one of the stripes. Add food coloring to each bowl to create red, orange, yellow, green, blue, and purple buttercream.
  • To create the rainbow striped design pictured: Add each buttercream color into its own piping bag and cut off about 1/2 inch opening. Starting at the bottom with the purple buttercream, squeeze the piping bag while you rotate the turntable to add stripes of buttercream to the cake. Try to keep each color in line with the colors of the cake layers so they line up when the cake is sliced. Repeat the process in reverse rainbow order, then cover the top of the cake with red buttercream. Smooth the top down with an angled spatula, then create a smooth finish on the sides with your icing smoother before swiping the top edges inward to create sharp edges.
  • Add the reserved white buttercream into a piping bag fitted with Tip 4B and pipe swirls on top of the cake, then garnish the swirls with rainbow sprinkles.

Notes

*DIY cake flour recipe: if you can’t find cake flour locally, here’s how to make a homemade version using all purpose flour and cornstarch. Keep in mind that if you do use the homemade version, the gram measurement will weigh more (295g instead of 265g) since all-purpose flour is heavier than cake flour.  
*DIY buttermilk recipe: add 1 Tbsp of white vinegar to a jar and top it with 1 1/4 Cups of whole milk. Stir and let sit for 15 minutes before using in the recipe.
Make ahead tips: 
  1. The cake layers can be made ahead and stored at room temperature, covered tightly in plastic wrap, for up to two days. Alternatively, you can cover with plastic wrap and store in the freezer for up to two months before thawing to room temperature. 
  2. The vanilla buttercream can be made ahead and stored in an airtight container in the refrigerator for up to two weeks. When you’re ready to use it, bring it back to room temperature and re-whip in your stand mixer to bring back to smooth buttercream consistency. 

By: Whitney · In: Cake, Featured, Recipes, Tutorials · Tagged: pride cake, rainbow buttercream, rainbow cake, st patricks day cake

you’ll also love

st patricks day cake ideas by sugar and sparrowSt. Patrick’s Day Dessert Ideas
rainbow swirl cupcakes tutorialHow to Make Rainbow Swirl Cupcakes
green velvet cake recipe for st patricks day dessertGreen Velvet Cake with Rainbow Frosting

Join the List

Stay up to date & receive the latest posts in your inbox.

Reader Interactions

Leave a Reply Cancel reply

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

Recipe Rating




Next Post >

St. Patrick’s Day Dessert Ideas

Primary Sidebar

Welcome to Sugar & Sparrow

Welcome to Sugar & Sparrow

Helping you whip up pretty desserts with confidence and creativity. And hopefully sharing a few laughs with you along the way!

Learn More

Connect

let’s bake!

Get my very best recipes, baking tips, and decorating tutorials sent to your inbox

Featured Posts

carrot cake recipe by sugar and sparrow

Carrot Cake with Cream Cheese Frosting

halloween jack o lantern candy bucket cake tutorial

Jack O Lantern Candy Bucket Cake Tutorial

no-churn cookie dough ice cream cake recipe by sugar and sparrow

The BEST Cookie Dough Ice Cream Cake

Search

Archives

Follow Along

@sugarandsparrowco

TOP 10 BIRTHDAY CAKES 🥳 These are just a few of my TOP 10 BIRTHDAY CAKES 🥳 These are just a few of my favorite birthday cake recipes that will make anyone feel special! 

Comment “BIRTHDAY” and I’ll send you all 24+ of my favorite birthday cake ideas –  classics like funfetti cake and yellow cake with chocolate frosting, plus ice cream cakes, sheet cakes, and more complex flavor combos like Snickers cake and Millionaire cake. 

https://sugarandsparrow.com/best-birthday-cake-recipes/

#birthdaycake #partycake #birthdaycakeideas #cakeinspiration #cakeideas
BERRIES & CREAM SHEET CAKE 🍓🫐 deliciously light, n BERRIES & CREAM SHEET CAKE 🍓🫐 deliciously light, naturally stunning, and the easiest cake you’ll want to make all Summer long!! It’s my favorite bakery-style vanilla sheet cake that’s so soft and moist, topped with silky whipped cream cheese frosting and fresh berries. I love how quickly this cake comes together with simple ingredients + doesn’t require any fancy cake decorating techniques to make it a showstopper✨

Grab the recipe link in my bio or find it at https://sugarandsparrow.com/berries-and-cream-sheet-cake/

#berrycake #berriesandcream #sheetcake #whippedcreamfrosting #cakedecorating
FUNFETTI SHEET CAKE 🥳 the most celebratory flavor FUNFETTI SHEET CAKE 🥳 the most celebratory flavor of all and so perfect for a crowd. It’s extra soft and moist vanilla cake speckled with rainbow sprinkles + captures that box mix texture but it’s 100% homemade and EASY! Top it with vanilla buttercream and rainbow sprinkles for the perfect party cake 🎉
 
Full recipe (w/ frosting) at the link in my bio or at https://sugarandsparrow.com/funfetti-sheet-cake/ 

INGREDIENTS 
2 1/2 Cups (265g) sifted cake flour 
2 tsp baking powder 
1/2 tsp baking soda 
1 tsp salt 
3/4 Cup (170g) unsalted butter, room temp 
1 3/4 Cup (340g) granulated white sugar 
3 large eggs, room temp 
1/2 Cup (120g) sour cream, room temp 
1 Tbsp pure vanilla extract 
1 Cup (240ml) whole milk, room temp 
1/3 Cup (60g) rainbow sprinkles, coated in 1 tsp flour 
 
INSTRUCTIONS 
1. Preheat the oven to 325°F (163ºC). Grease and line a 9×13 baking pan. 
2. In a medium bowl, whisk together the sifted cake flour, baking powder, baking soda, and salt. Set aside.  
3. In the bowl of your stand mixer fitted with the paddle attachment (or with a large bowl and hand mixer), beat the butter and sugar on medium-high speed until light and fluffy, 4 min. Add the eggs one at a time, then add the vanilla and sour cream and mix for one minute on high speed. 
4. Turn the mixer off and add the dry ingredients all at once. Mix on low speed until just combined, then add the milk and mix until just incorporated.  
5. Coat the rainbow sprinkles in 1 teaspoon of flour, then gently fold them into the cake batter. Pour the batter into the prepared baking pan and bake for 30-35 minutes, or until the cake springs back to the touch and a toothpick inserted into the middle comes out clean. Let the cake cool in the baking dish until room temperature, then decorate with vanilla buttercream + rainbow sprinkles (full recipe link in bio!) 
 
#funfetti #funfetticake #sheetcake #cake #birthdaycake
COOKIE DOUGH ICE CREAM CAKE 🍪🍦this is the birthday COOKIE DOUGH ICE CREAM CAKE 🍪🍦this is the birthday cake of my DREAMS and I’m so excited to share the recipe with you!! It’s chocolate and vanilla no-churn ice creams with homemade cookie dough chunks in every bite, swirled together and set on a delicious Oreo cookie crust 😍 easy, perfectly sliceable, and ideal for making ahead! I’m already dreaming about when I can make it again ✨

Get the recipe link in my bio + at https://sugarandsparrow.com/chocolate-chip-cookie-dough-ice-cream-cake/

#birthdaycake #icecreamcake #cakedecorating #nochurnicecream #icecreamlover
My kitchen in May 💛 some of these recipes had me f My kitchen in May 💛 some of these recipes had me feeling CRAZY with how many tests they took 🤪 but in the end I am so happy with these ones I got to hit the publish button on + I made my DREAM birthday cake that I can’t wait to share ASAP!!

Comment “MAY” to get all the recipes that are available now:

-Strawberry Shortcake Sheet Cake
-Lemon Cupcakes
-Lemon Cream Cheese Buttercream
-Orange Poppyseed Cake
-Whipped Mascarpone Frosting
-No-Bake Marbled Strawberry Cheesecake
-Chocolate Chip Cookie Cake

https://sugarandsparrow.com/everything-i-baked-in-may
 
#dessert #bakersofinstagram #baking #bakinglove #dessertlovers

Footer

On the Blog

  • Cake Basics
  • Recipes
  • Tutorials

Info

  • About
  • Privacy Policy & Disclosure

stay in the know

Copyright © 2026 · Theme by Sugar & Sparrow