Desserts
The 5-layer rainbow cake transforms any celebration into a visual masterpiece with its vibrant colors and perfectly balanced flavors. This recipe delivers a showstopping dessert that's as delicious as it is stunning, combining classic vanilla and chocolate layers with bright citrus and berry accents. Each layer is light, fluffy, and moist, ensuring every bite lives up to the dazzling presentation.
What sets this cake apart is the foolproof layering technique that keeps the structure intact while showcasing those rainbow hues. We'll use a simple vanilla cake base for the majority of layers, then introduce subtle flavor variations—like lemon zest and raspberry filling—to complement the vibrant colors. The secret to success lies in precise baking times and gradual cooling between layers.
By the time you're done assembling, you'll have a stunning centerpiece that's just as impressive to eat as it is to look at. The frosting is smooth, creamy, and perfectly piped to highlight each colorful layer, while the final decorative touches add that professional bakery finish. This cake is perfect for birthdays, holidays, or any occasion where you want to make a lasting impression.
Whether you're a seasoned baker or trying this for the first time, the step-by-step instructions will guide you through every stage—from mixing the batter to decorating the finished cake. Let's create something truly special that will leave everyone asking for seconds.
Ingredients for 5 layer rainbow cake
Fifteen ingredients transform ordinary baking into a rainbow celebration—vibrant colors meet foolproof layers.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 4 ½ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 2 ½ cups | White or light brown |
| Unsalted Butter 🧈 | 2 ¼ cups | Room temperature, softened |
| Large Eggs 🥚 | 8 whole | Room temperature, separated |
| Baking Powder 🧂 | 2 tbsp | Diamond Crystal preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Vanilla Extract 🌿 | 2 tbsp | Pure alcohol-free preferred |
| Milk 🥛 | 1 ½ cups | Whole milk for richness |
| Lemon Zest 🍋 | 1 tbsp | Freshly grated |
| Raspberry Jam 🍓 | 1 ½ cups | Seedless for smooth filling |
| Blue Food Coloring 🔵 | ½ tsp | Gel-based for vibrancy |
| Yellow Food Coloring 🟡 | ½ tsp | Gel-based for vibrancy |
| Green Food Coloring 🟢 | ½ tsp | Gel-based for vibrancy |
| Red Food Coloring 🔴 | ½ tsp | Gel-based for vibrancy |
| Purple Food Coloring 🟣 | ½ tsp | Gel-based for vibrancy |
| Confectioners' Sugar 🍚 | 4 cups | For buttercream frosting |
| Heavy Cream 🥛 | 1 ½ cups | Cold for whipping |
The flour and butter are your foundation—King Arthur flour and Plugrá butter are my go-tos for that perfect crumb. Room temperature butter is non-negotiable; it should dent but not spread when pressed. For the eggs, room temperature is key—cold eggs won't incorporate properly. The baking powder matters too: Diamond Crystal is double-acting, so it's the only brand I trust for consistent rise. Food coloring can be pricey, but Wilton gel colors are worth the investment—they won't bleed through your layers like liquid dyes.
No lemon zest? Substitute orange zest at the same amount, but the flavor won't be identical. Jam options are endless—strawberry or apricot work too, but raspberry keeps the berry brightness. For the colors, start with small amounts of gel dye and adjust as you go—you can always add more, but you can't take it out. If you're avoiding food coloring, natural alternatives like spirulina (green) or beet powder (pink) work, though they're less vibrant. The buttercream needs heavy cream—whipping cream won't hold its shape. And for the frosting, powdered sugar sifted through a fine-mesh sieve prevents lumps like nothing else.
Store cake layers at room temperature in an airtight container for up to 2 days—they'll dry out if refrigerated. The frosting keeps for 3 days in the fridge, but add a splash of milk before re-whipping. For a showstopping presentation, chill the cake 1 hour before slicing—it'll hold those perfect layers. The colors will fade slightly over time, but the flavor stays vibrant. Freeze unfrosted layers for up to 3 months if you're prepping ahead.
Why You'll Love This Recipe
- No-Fuss Layers: I swear by this recipe because it’s actually five simple batters—no fancy piping bags or hours of chilling. Just mix the same base (flour, sugar, butter, eggs, baking powder) in five bowls, tint each with food coloring, and bake. The layers stack like magic, and honestly? Even if they’re uneven, no one will notice past the first bite.
- Butter-Sugar Magic: That classic combo of melted butter and granulated sugar in the batter? It’s the secret weapon. The cake stays moist without being dense, and the slight crispness on the edges (thanks to the baking powder) makes it irresistible. I’ll be real: I’ve made this for birthdays, holidays, and just because—it never disappoints.
- Party in a Box: This cake is my go-to for celebrations, but it’s also the perfect dessert for a casual Sunday brunch. The vibrant layers make it feel special without the fuss of decorating, and the neutral vanilla base lets you customize with fillings (cream cheese, whipped frosting, or even fruit compote). My kids pick the colors, so it’s always a hit.
- Budget Brightness: Five layers for the price of one? Yes, please. You’re using the same core ingredients—just tinted differently—so it’s a fraction of the cost of store-bought. Plus, leftovers? They’re even better the next day, sliced and served with a sprinkle of powdered sugar. (Yes, even on a Tuesday night.)
Step-by-step instructions for creating a vibrant 5-Layer rainbow cake
Here's how to assemble this showstopper with perfect layers and vivid colors every time.
Prepare the Cake Batter Base
In a stand mixer fitted with the paddle attachment, cream the 2.25 cups unsalted butter and 2.5 cups granulated sugar on medium speed for 3-4 minutes until light and fluffy. You'll see the mixture nearly double in volume and become pale yellow—this aeration is crucial for fluffy layers. Scrape down the sides of the bowl to ensure even mixing.
Add the 8 whole large eggs, one at a time, mixing just until each is fully incorporated. Then stir in the 2 tbsp vanilla extract and 1 tbsp lemon zest. In a separate bowl, whisk together the 4.5 cups all-purpose flour, 2 tbsp baking powder, and 0.5 tsp salt. Gradually add the dry ingredients to the wet mixture, alternating with the 1.5 cups milk, beginning and ending with the flour. Mix on low speed until just combined—you should still see small flour streaks. Overmixing develops gluten, which can make your cake dense.
Divide the batter evenly into five separate mixing bowls. Here's where the magic happens: add 0.5 tsp red food coloring to the first bowl, 0.5 tsp orange food coloring (mix red and yellow) to the second, 0.5 tsp yellow food coloring to the third, 0.5 tsp green food coloring to the fourth, and 0.5 tsp blue food coloring to the fifth. For the purple layer, mix equal parts of the remaining red and blue coloring into the final bowl. Stir each color gently to distribute evenly without deflating the batter.
Bake the Layers to Perfect Doneness
Preheat your oven to 350°F and grease five 6-inch round cake pans, lining the bottoms with parchment circles. Pour each colored batter evenly into its prepared pan, smoothing the tops with a spatula. Bake for 20-25 minutes or until a toothpick inserted into the center comes out clean. The edges should be golden brown, and the tops should spring back gently when touched.
I like to rotate the pans halfway through baking for even browning. As soon as they're done, remove the cakes from the oven and let them cool in their pans for 5 minutes. Then transfer them to a wire rack to cool completely. This gradual cooling prevents cracking when you remove them from the pans. While they cool, prepare your raspberry jam filling by heating it gently in a small saucepan until it's spreadable—about 2 minutes over low heat.
Layer and Assemble with Precision
Once all layers are completely cool, place the first (red) layer on a cake stand or plate. Spread a thin, even layer of the warmed raspberry jam—about 1 tablespoon—over the top. Place the second (orange) layer on top and repeat with another 1 tablespoon of jam. Continue this process with all five layers, finishing with the blue layer on top. The key here is to keep the layers level—use a serrated knife to trim any uneven edges if needed.
For extra stability, you can chill the assembled cake in the refrigerator for 30 minutes before frosting. This helps the layers set and makes the frosting application easier. While it chills, prepare the buttercream by beating the 2.25 cups unsalted butter (softened) and 4 cups confectioners' sugar together until light and fluffy. Gradually add the 1.5 cups cold heavy cream and mix until smooth and spreadable. If needed, add a splash of milk to adjust the consistency.
Frost and Decorate for Maximum Impact
Once the cake is chilled, spread a thin layer of buttercream over the entire surface to create a "crumb coat." This step seals in any loose crumbs and creates a smooth base for the final frosting. Chill the cake again for 15 minutes, then apply the final layer of buttercream, spreading it evenly to the edges. Use an offset spatula to create smooth sides and a clean finish.
For a polished look, run a small spatula around the edges to create a slight lip. If you're feeling ambitious, pipe decorative swirls or rosettes on top using the remaining buttercream. The vibrant colors will shine through the thin frosting, making this cake as beautiful as it is delicious. Serve at room temperature for the best texture and presentation.
Pro Tips For Making 5 Layer Rainbow Cake
- CHILL THE BATTER BETWEEN LAYERS: I learned this the hard way—pouring warm batter onto a cold cake leads to soggy, uneven layers. Let each batter rest in the fridge for 10-15 minutes before baking. The temperature contrast keeps the layers distinct and prevents the cake from collapsing under the weight of the next layer.
- WEIGH YOUR FLOUR (NOT SCOOP): That scoop-and-sweep method? It’s the reason your layers might be denser than they should be. Use a kitchen scale for precise measurements—5-layer cakes are unforgiving with volume errors. A cup of flour can vary wildly by brand, and you’ll notice the difference in texture.
- BAKE ONE LAYER AT A TIME: I was skeptical until I tried it: baking all layers simultaneously in a crowded oven leads to uneven doneness. Space out your baking sessions by 10-15 minutes—this ensures each layer rises evenly and doesn’t steam through the next batter. Your layers will thank you.
- USE ROOM-TEMP BUTTER AND EGGS: Cold butter and eggs create air pockets that don’t develop properly, leading to flat, heavy layers. Take them out 1-2 hours before mixing—yes, even if you’re impatient like me. The batter will be smoother, and your cake will rise higher. Trust the process.
Pro cooking tips for this dish
Batter Consistency
The secret to fluffy, even layers starts with your batter consistency—it should be thick but pourable, like heavy pudding. I use a stand mixer on medium speed until the butter and sugar are light and fluffy (about 3-4 minutes), which incorporates air for that signature rainbow cake lightness. For the perfect texture, add the eggs one at a time, mixing just until fully incorporated. Overmixing here can make your layers dense and heavy, so stop as soon as the batter is smooth. 🥄
Color Mixing Tricks
Gel-based food coloring is your best friend for vibrant layers that won’t bleed. Start with 0.5 tsp per color in separate bowls, then gently fold in the batter using a spatula—this prevents deflating the air bubbles. For the orange layer, mix equal parts red and yellow (about ¼ tsp each) to avoid muddy tones. Pro tip: Divide your batter into five separate bowls before adding color to keep everything organized. Purple? Mix equal parts red and blue for a true magenta hue. 🎨
Even Baking Time
All five layers should bake for the same amount of time—20-25 minutes at 350°F—but check them individually. The center should spring back when touched, and a toothpick should come out clean. I rotate my pans halfway through baking for even browning. Let each layer cool in the pan for 5 minutes before transferring to a wire rack—this prevents cracking when you remove them. Patience here ensures clean layers that stack perfectly. ⏱️
Layering Precision
Use a serrated knife to level each layer after baking—this creates an even surface for stacking. Spread 1 tablespoon of warmed raspberry jam between layers, keeping it thin to avoid sogginess. For stability, assemble the cake on a cake stand or sturdy plate, and place a small weight (like a cake dowel) in the center to prevent doming. Chill the assembled cake for 30 minutes before frosting—this helps the layers set and makes piping easier. 🎂
Buttercream Mastery
Your buttercream should be light and fluffy, not stiff. Beat 2.25 cups softened butter and 4 cups sifted powdered sugar until pale, then gradually add 1.5 cups cold heavy cream—this keeps the frosting stable. For a smooth finish, spread a thin crumb coat first, then chill the cake for 15 minutes before adding the final layer. Use an offset spatula to create clean edges, and pipe decorative swirls on top for that bakery-style touch. 🎨
Decorating Like a Pro
For a polished look, run a small spatula around the edges to create a slight lip at the base. Add edible glitter or colored sprinkles to the top layer for extra sparkle. If you’re feeling creative, pipe rainbow rosettes or swirls using leftover buttercream. The key is to keep the frosting thin enough to showcase those vibrant layers underneath. Serve at room temperature for the best texture and presentation. ✨
Nutrition facts
Frequently asked questions
Can I make this cake without food coloring?
For natural colors, use spirulina powder (green), beet juice (pink/red), turmeric (yellow), matcha powder (green), and blueberry powder (purple). Start with 1 teaspoon per color and adjust—these alternatives are less vibrant but still create beautiful layers. The flavors will be subtly different (e.g., earthy matcha or berry notes), so taste-test small batches first.
How do I prevent my layers from collapsing when stacking?
Use cake dowels (or wooden skewers) for support—insert them vertically through the center of each layer before adding frosting. Chill the assembled cake for 30 minutes before frosting to help the layers set. For extra stability, spread a thin layer of jam or buttercream between layers instead of just jam. Never skip the crumb coat—it seals the layers and prevents shifting during frosting.
Can I bake the layers ahead of time?
Yes! Bake layers 1-2 days ahead and store them at room temperature in an airtight container with parchment between them. Refrigerate for 30 minutes before assembling to prevent condensation. For longer storage (up to 1 week), wrap each layer tightly in plastic wrap and freeze. Thaw completely before layering—never microwave or thaw at room temperature.
What’s the best way to level uneven cake layers?
Use a serrated knife or cake leveler to trim the top of each baked layer. Place the knife at a slight angle and gently saw back and forth while pressing down evenly. For extra precision, use a clear acrylic cake leveler—it shows exactly where to cut. Always level layers after they’ve cooled completely to avoid crumbling. A perfectly flat surface ensures clean, professional-looking stacks.
How do I fix a cake that’s leaning or doming?
If your cake leans, place it on a cooling rack with a small weight (like a cake board) in the center to pull it upright. For doming, gently press down on the top with a plate or cake turntable while the frosting is still soft. If the issue persists, try the tower method: stack layers with dowels and let them set for 1 hour before frosting. Never force adjustments—patience and proper support are key!
