• 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

strawberry buttercream recipe by sugar and sparrow

Favorite Strawberry Buttercream Recipe

lemon blueberry layer cake with cream cheese frosting

Lemon Blueberry Cake with Lemon Cream Cheese Buttercream

thick caramel filling recipe for cake

Thick Caramel Filling for Cakes

Search

Archives

Follow Along

@sugarandsparrowco

LEMON CUPCAKES 🍋 after about a dozen recipe tes LEMON CUPCAKES 🍋 after about a dozen recipe tests, this one is everything I could want in a lemon cupcake! Fluffy-yet-moist, bursting with natural lemon flavor, and absolutely irresistible topped with lemon cream cheese buttercream. 

Full recipe (with frosting) linked in my bio + at https://sugarandsparrow.com/homemade-lemon-cupcakes/

INGREDIENTS:
1 Cup (132g) all-purpose flour
1 tsp baking powder
1/4 tsp salt
1/4 Cup (60ml) whole milk, room temperature
3 Tbsp (45ml) lemon juice from 1 medium lemon
3/4 Cup (150g) granulated sugar
3 Tbsp (42g) unsalted butter, room temperature
2 Tbsp (30ml) vegetable oil
2 large eggs, room temperature
1 tsp pure vanilla extract

INSTRUCTIONS:
1. Preheat the oven to 350ºF (177ºF) and line a standard cupcake pan with 12 paper liners.
2. In a large bowl, whisk together the flour, baking powder, and salt. Set aside. 
3. In the bowl of a stand mixer fitted with the paddle attachment (or with a hand mixer and large bowl), add the lemon zest to the sugar and mix on low speed until fragrant and well combined, about 1 minute. Meanwhile, combine the lemon juice with the milk and set aside. 
4. Add the butter to the lemon-sugar mixture and cream on medium speed until and combined, about 2 minutes. Add the vegetable oil and beat until light and creamy, about 3 minutes. Scrape down the bowl and paddle as needed.
5. Mix in the eggs one at a time on low speed, then add the vanilla and turn the mixer to medium speed for one minute.
6. Turn the mixer off and add the flour mixture all at once. Mix on low speed until just combined, then slowly pour in the lemon-milk mixture. Mix until just combined, about 30 seconds.
7. Divide the batter equally between the liners and bake for 14-18 min. Cool, then top with frosting of your choice (link in bio for lemon cream cheese frosting)�
#lemoncupcakes #creamcheesefrosting #lemon #cupcakes #cupcakedecorating
April in my kitchen 🌸 I published 5 NEW recipes April in my kitchen 🌸 I published 5 NEW recipes on my site, baked my Oreo cupcake recipe for a fundraiser and found it was just as delicious as I remember, and filmed/photographed 3 recipes that will be on my blog in May (Lemon Cupcakes, Lemon Cream Cheese Buttercream, and No-Bake Marbled Strawberry Cheesecake) 🥰 

Comment “APRIL” to get all the available recipes and stay tuned for more! 

#bakersofinstagram #springbaking #cakedecorating #cupcakes #bakinglove
SHEET PAN COOKIE CAKE 🍪 slice it warm for a fud SHEET PAN COOKIE CAKE 🍪 slice it warm for a fudgy chocolate chip cookie OR let it settle into a moist and chewy cookie cake that’s perfect for decorating! My fave vanilla buttercream + sprinkles turn this giant chocolate chip cookie into the perfect birthday cake alternative at the end 🥳
⁣
Full recipe + decorating ideas at https://sugarandsparrow.com/sheet-pan-chocolate-chip-cookie-cake/
⁣
INGREDIENTS⁣
1 Cup (226g) unsalted butter, melted⁣
1 1/3 Cups (267g) packed light or dark brown sugar⁣
1/2 Cup (100g) granulated sugar⁣
3 large eggs⁣
1 Tbsp pure vanilla extract⁣
1 tsp baking soda⁣
1 tsp cornstarch⁣
1/2 tsp salt⁣
3 Cups (398g) all purpose flour⁣
2 Cups (350g) semi-sweet chocolate chips⁣
⁣
INSTRUCTIONS⁣
1. Preheat the oven to 350ºF (177ºC). Grease and line a 13×18 inch sheet pan.⁣
2. In a large bowl, add the brown sugar and granulated sugar. Melt the butter in the microwave and pour it over the top of the sugars. Whisk together until uniform. Add the eggs and vanilla, then continue whisking until uniform. Whisk in the baking soda, cornstarch, and salt.⁣
3. Add the flour and use a silicone spatula to fold it in until smooth cookie dough forms. Reserve 1/2 Cup of the chocolate chips and set them aside, then fold the remaining 1 1/2 Cups of chocolate chips into the cookie dough.⁣
4. Place the chocolate chip cookie dough onto the prepared sheet pan and use an offset spatula to spread it all the way to the edges in an even layer.⁣
5. Bake the cookie cake for 14-16 minutes, until it looks golden brown on the edges and set. 
6. Enjoy warm or let it cool and decorate with vanilla buttercream and sprinkles! ⁣
⁣
#cookiecake #chocolatechipcookies #sheetcake #birthdaycake #cakedecorating
STRAWBERRY CUPCAKES 🍓based on my beloved strawb STRAWBERRY CUPCAKES 🍓based on my beloved strawberry layer cake recipe, this cupcake version is just as moist yet fluffy and bursting with natural strawberry flavor! Between the mix of fresh strawberries in the cupcakes + freeze-dried strawberries in the frosting, the flavor is out of this world 🚀

Full recipe link in my bio (with strawberry buttercream) + at https://sugarandsparrow.com/strawberry-cupcakes/

STRAWBERRY CUPCAKES
Yield: 14 cupcakes

INGREDIENTS:
5 oz (143g) fresh or frozen strawberries
1/3 Cup (80ml) whole milk, room temp
1 1/2 Cups (158g) sifted cake flour
1 tsp baking powder
1/4 tsp baking soda
1/2 tsp salt
6 Tbsp (85g) unsalted butter, room temp
1 Cup (200g) granulated sugar
2 large eggs, room temp
3 Tbsp (45g) sour cream, room temp
1 tsp vanilla extract
1 drop pink food coloring (optional)

INSTRUCTIONS: 
1. Puree the strawberries using a food processor (you’ll have about 1/2 cup of puree), then place into a saucepan over medium-low heat. Bring to a simmer, then cook for 10-15 min, stirring occasionally, until you have 1/4 cup. Refrigerate until room temp.
2. Preheat oven to 350ºF (177ºC) and line a standard cupcake pan with liners.
3. Whisk together the sifted cake flour, baking powder, baking soda, and salt and set aside.
4. In a stand mixer w/ paddle attachment (or hand mixer + large bowl), whip the butter on high for 2 min. Add sugar and beat for 2 min, until light and fluffy. Turn the mixer to low and add the eggs one at a time, then add the vanilla and sour cream, turn the mixer to high and beat for 1 min. Meanwhile, whisk together the strawberry puree, whole milk, and food coloring (if using).
5. Turn the mixer off and add all of the dry ingredients at once. Mix on low until just combined, then add the strawberry milk mixture until just combined, about 30 seconds.
6. Fill the cupcake liners 2/3 full and bake for 14-18 minutes. Cool completely before topping with strawberry buttercream (full recipe linked above). 

#strawberrycupcakes #strawberrycake #pinkcupcakes #strawberry #cupcakes
COFFEE BUTTERCREAM (recipe below)☕️ this frost COFFEE BUTTERCREAM (recipe below)☕️ this frosting has AMAZING coffee flavor, is so easy to decorate cakes with, and pairs beautifully with so many flavors (chocolate, vanilla, or any cake flavor you’d want to turn into a latte). 

All my cake pairing suggestions are linked in my bio or at https://sugarandsparrow.com/coffee-buttercream-recipe/ 

COFFEE BUTTERCREAM⁣
Yield: 2.5 Cups⁣

INGREDIENTS⁣
1 1/2 tsp instant coffee or espresso powder⁣
1 1/2 Tbsp whole milk, room temperature⁣
1 Cup (226g) unsalted butter, room temperature⁣
3 1/2 Cups (420g) powdered sugar⁣
2 tsp pure vanilla extract⁣
Pinch of salt⁣

INSTRUCTIONS⁣
1. Combine the instant espresso/coffee with the whole milk and set aside. In the bowl of a stand mixer, beat the butter on high until creamy and smooth (about 5 minutes), scraping down the bowl and paddle a few times in between.⁣
2. Turn the mixer to low and add the powdered sugar a few cups at a time, scraping down the bowl and paddle between intervals. Add the vanilla, the coffee/espresso milk mixture, and salt. Mix on low until fully incorporated, about one minute.⁣

#coffeebuttercream #buttercream #frosting #coffeecake

Footer

On the Blog

  • Cake Basics
  • Recipes
  • Tutorials

Info

  • About
  • Privacy Policy & Disclosure

stay in the know

Copyright © 2026 · Theme by Sugar & Sparrow