• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Sweetly Cakes
  • Home
  • Recipe index
  • Cakes
  • Frosting & filling
  • Cupcakes
  • Cake basics
  • Brownies
  • Cookies
  • About
  • Contact
  • Français
menu icon
go to homepage
subscribe
search icon
Homepage link
  • Home
  • Recipe index
  • Cakes
  • Frosting & filling
  • Cupcakes
  • Cake basics
  • Brownies
  • Cookies
  • About
  • Contact
  • Français
    • Facebook
    • Instagram
    • Pinterest
    • Twitter
    • YouTube
  • ×
    Home / Desserts / Cakes

    Rainbow Cake

    Last update: Aug 31, 2025 Published: Aug 31, 2025 by Fadela This post may contain affiliate links

    Jump to Recipe·Print Recipe·Leave a Review

    Rainbow cake is the ultimate celebration cake—bright, fun, and surprisingly easy. With soft, moist layers baked in vibrant colors and stacked with creamy buttercream, it turns any birthday or party into a happy moment. Let’s make yours shine.

    New to layer cakes? Check out my layer cake guide for tips and step-by-step help

    Rainbow cake on a cake stand with one slice cut out
    Jump to:
    • Why you'll love this recipe
    • Ingredients You Need
    • How To Make Rainbow Cake
    • Tips for this recipe
    • Variations & Substitutions
    • Recipe Questions
    • Rainbow Cake


    This rainbow cake is a colorful layer cake with soft vanilla sponge and creamy buttercream. With six vibrant layers, it’s the perfect cake for birthdays, kids’ parties, or any celebration.

    Each layer is a fluffy white cake tinted in bright colors, filled with a light mascarpone whipped cream, then covered in smooth buttercream and finished with a colorful drip. A homemade rainbow cake that’s as delicious as it is stunning.

    Why you'll love this recipe


    • Bright and fun – Six colorful cake layers make this the ultimate celebration cake.
    • Surprisingly easy – One simple vanilla batter, just divided and tinted with food coloring.
    • Delicious and creamy – Soft sponge with mascarpone whipped cream, buttercream, and a playful drip finish.

    Ingredients You Need

    • Cake layers: cake flour, granulated sugar, baking powder, baking soda, egg whites, buttermilk, unsalted butter, vanilla extract, gel food coloring.
    • Filling: heavy cream, mascarpone cheese, powdered sugar, vanilla.
    • Buttercream frosting: unsalted butter, powdered sugar, heavy cream, vanilla extract.
    • Drip: white chocolate, heavy cream, gel food coloring.

    Want to see my tools? Here’s what I use for all my cakes.

    Ingredients for homemade rainbow cake with flour, butter, sugar, eggs and food coloring

    How To Make Rainbow Cake

    Here are a few quick step-by-step visuals. Don’t forget that the full instructions with exact ingredient amounts are in the recipe card below!

    In a large mixing bowl, whisk together the unsalted butter and granulated sugar until the cake batter is light and creamy.

    Add the egg whites gradually along with the vanilla extract, whisking well after each addition to keep the mixture fluffy. This is the key to a soft and moist sponge for your rainbow layer cake.

    Mixing bowl with butter and sugar for rainbow cake batter
    Creamed butter and sugar with egg whites for rainbow cake sponge

    Finish by gently folding in the sifted flour and buttermilk, alternating between the two. Use a spatula and mix until the cake batter is smooth and well combined, perfect for baking even layers for your rainbow cake.

    Cake batter with flour and buttermilk for rainbow layer cake
    Rainbow cake sponge batter in mixing bowl

    Divide the cake batter evenly into six portions using a kitchen scale and transfer them into small mixing bowls. Add gel food coloring to each portion and stir until you reach the desired shade.

    Pour the colored batter into six 6-inch cake pans, lined on the bottom with parchment paper only. Bake in a preheated oven at 325°F (160°C) for 18 to 20 minutes, or until the rainbow cake layers are set in the center.

    Cake pans filled with colorful rainbow cake batter
    Cooling rack with rainbow cake layers for assembly

    Place the purple sponge first on a cake board set on a turntable. Spread a layer of mascarpone whipped cream on top, then cover with the blue sponge.

    Repeat with the green, yellow, and orange layers, finishing with the red sponge on top to complete your rainbow cake.

    Cake turntable with stacked rainbow cake layers
    Rainbow layer cake assembled without frosting

    Cover the entire layer cake with buttercream frosting and smooth it out using a cake scraper. Chill the cake in the fridge until the buttercream is firm to the touch.

    Next, pour the colorful drip around the edges, then finish by piping swirls on top and adding rainbow sprinkles for decoration.

    Rainbow cake with colorful drip and buttercream frosting
    Rainbow layer cake on a cake stand ready to serve

    Tips for this recipe

    • Bright colors – Use gel food coloring for vibrant shades that stay bold after baking.
    • Even layers – Weigh each portion of cake batter before baking for perfectly even sponges.
    • Plan ahead – Bake the cake layers 1 to 2 days in advance, then assemble and decorate the day before or on the day you serve.
    • Clean assembly – Chill the cake in the fridge after each step so the buttercream sets and smoothing is easier.

    Variations & Substitutions

    • Rainbow Cupcakes – Use the same vanilla batter and divide into cupcake liners for colorful single-servings.
    • Pastel Rainbow Cake – Add less gel food coloring for a softer, pastel look.
    • Chocolate Twist – Swap the vanilla buttercream for chocolate buttercream or ganache.
    Rainbow cake on a table with one slice removed

    Recipe Questions

    Can I make a rainbow cake without food coloring? → Yes, but the colors will be more muted. Natural food powders (like beet, matcha, turmeric) can work, but the classic vibrant rainbow comes from gel food coloring.

    How do I keep the cake layers moist? → Don’t overbake the sponges and make sure to chill the cake before frosting. Using mascarpone whipped cream and buttercream also helps lock in moisture.

    Can I make the cake ahead of time? → Yes! You can bake the layers 1–2 days in advance and assemble the cake the day you serve it.

    What frosting works best for a rainbow cake? → A light mascarpone whipped cream paired with buttercream for smoothing works perfectly, but you can also use Swiss buttercream or cream cheese frosting.

    You will also love

    • Strawberry Mascarpone Rosette Cake
    • Blueberry Cake
    • Lemon Curd Cake
    • Chocolate Cake with Buttercream Frosting
    Slice of rainbow cake served on a plate


    I hope you enjoyed this rainbow cake recipe! Don’t forget to leave a rating and a comment below to let me know what you think. Happy baking!

    Print
    clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon

    Rainbow Cake


    5 Stars 4 Stars 3 Stars 2 Stars 1 Star

    No reviews

    • Author: Fadela
    • Total Time: 1 hour
    • Yield: 8 - 10 slices
    Print Recipe
    Save Recipe Recipe Saved

    Description

    A colorful rainbow layer cake with six fluffy sponges, filled with light mascarpone whipped cream, covered in buttercream frosting, and decorated with a colorful drip. (For a 6-inch cake – about 8 to 10 servings)


    Ingredients

    White Cake Layers

    • 3 ¼ cups (415 g) cake flour 
    • 2 ½ tsp (11 g) baking powder
    • ¾ tsp (4 g) baking soda
    • ½ tsp salt
    • 1 cup (225 g) unsalted butter, softened
    • 1 ¾ cups (370 g) granulated sugar
    • 6 large egg whites (about 210 g)
    • 1 ⅓ cups (330 ml) buttermilk
    • 3 tsp vanilla extract
    • Gel food coloring: red, orange, yellow, green, blue, purple

    Mascarpone Whipped Cream Filling

    • 7 oz (200 g) mascarpone cheese, chilled
    • 1 ¼ cups (300 g) heavy cream, cold
    • 3 tbsp powdered sugar
    • 1 tsp vanilla extract

    Buttercream Frosting

    Follow my American Buttercream Frosting recipe

    Rainbow Drip

    • 4 ¼ oz (120 g) white chocolate, finely chopped
    • 3 tbsp (45 ml) heavy cream
    • Gel or oil-based food coloring: red, orange, yellow, green, blue, purple

    Instructions

    For the Cake Layers

    1. Preheat the oven to 325°F (160°C), convection/fan. Grease and line the bottoms of six 6-inch (15 cm) round cake pans with parchment paper.
    2. In a large mixing bowl (or the bowl of a stand mixer), beat the softened butter and granulated sugar until light and creamy.
    3. Add the egg whites gradually along with the vanilla extract, mixing well after each addition until the batter is fluffy.
    4. Using a spatula, gently fold in the sifted flour, baking powder, baking soda, and salt, alternating with the buttermilk, until the cake batter is smooth and well combined.
    5. Divide the batter evenly into six bowls using a kitchen scale.
    6. Tint each portion with gel food coloring (red, orange, yellow, green, blue, violet) and stir until the color is fully incorporated.
    7. Pour the colored batters into the prepared cake pans and bake for 18–20 minutes, or until a toothpick inserted in the center comes out clean.
    8. Let the cakes cool in the pans for 5 minutes, then remove and transfer to a wire rack to cool completely.

    For the Buttercream Frosting

    Prepare the buttercream following my American Buttercream recipe and set aside.

    For the Mascarpone Whipped Cream

    1. In a chilled mixing bowl, whip the cold heavy cream, cold mascarpone, powdered sugar, and vanilla extract together until stiff peaks form.
    2. Keep refrigerated until ready to assemble.

    To Assemble the Layer Cake

    1. Place the purple sponge layer on a cake board set on a turntable.
    2. Spread an even layer of mascarpone whipped cream with an offset spatula, then top with the blue sponge.
    3. Repeat with the green, yellow, and orange layers, finishing with the red layer on top. (Chill for 20 minutes if needed to stabilize.)
    4. Cover the cake with a thin crumb coat of buttercream frosting, smooth, and refrigerate for 30 minutes.
    5. Add a second, thicker layer of buttercream, smooth with a cake scraper, and chill until firm to the touch.

    For the Drip and Decoration

    1. Melt the white chocolate and heavy cream together in the microwave or over a double boiler until smooth and fluid.
    2. Divide into six small bowls, tint with gel food coloring, and let cool to about 86°F (30°C) before using.
    3. Drip the colorful ganache around the edges of the chilled cake.
    4. Finish by piping buttercream swirls on top and sprinkling with rainbow sprinkles.
    5. Serve the rainbow layer cake, or refrigerate and bring to room temperature for at least 30 minutes before slicing.

    Equipment

    Stand mixer

    Buy Now →

    Hand mixer

    Buy Now →
    Image of Angled Spatula

    Angled Spatula

    Buy Now →
    Image of cake carrier

    cake carrier

    Buy Now →

    acetate sheet

    Buy Now →
    Image of Adjustable pastry ring

    Adjustable pastry ring

    Buy Now →

    Airtight container

    Buy Now →
    Image of Cake decorating turntable

    Cake decorating turntable

    Buy Now →

    cake pan

    Buy Now →

    Notes

    Storage:  This rainbow cake keeps well for up to 2 days in the refrigerator, covered with a cake dome or stored in an airtight container. Bring it out at least 30 minutes before serving so the cream softens back to the right texture.

    Tips:

    • The cup measurements are approximate. For best results in baking, always use a kitchen scale instead of relying only on cups.
    • Use gel food coloring (brands like Wilton, Americolor, or Rainbow Dust) for vibrant colors that stay bright after baking.
    • Weigh each portion of batter to get even, consistent cake layers.
    • Level the sponges with a cake leveler or a large serrated knife for a clean assembly.
    • Assemble inside a tall acetate cake collar (or a deep cake ring) to keep the layers stable.
    • Chill the cake between steps of frosting and decorating—this makes smoothing and adding the drip much easier.
    • Prep Time: 40 minutes
    • Cook Time: 20 minutes
    • Category: cake, layer cake
    • Cuisine: American

    Did you make this recipe?

    Tag @sweetlycakes on Instagram

    « Which Cake is Best for Layer Cakes? 5 Foolproof Recipes You’ll Love

    Reader Interactions

    Leave a Reply Cancel reply

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

    Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star

    Primary Sidebar

    Hello and welcome to my blog! Fully addicted to cakes, blogging, and beautiful pictures! I share with you on this blog some tips and my favorite baking recipes which I hope will help you to enjoy your loved ones!

    More about me →

     Popular Posts

    • Rainbow Cake
    • Biscoff Cinnamon Rolls
    • Oreo Cinnamon Rolls
    • Lemon Meringue Pie

    Follow us

    Search on the blog

    Footer

    ↑ back to top

    About

    • Privacy Policy
    • About me
    • Recipes

    Newsletter

    • Sign Up! for emails and updates

    Contact

    • Contact
    • Work with me
    • Français

    As an Amazon Associate, I earn from qualifying purchases.

    Copyright © 2023 SWEETLYCAKES