Desserts
This 6-layer rainbow cake recipe delivers bakery-quality layers with vibrant colors and fluffy texture—all baked in a single tin. The secret lies in precise leveling, carefully layered fillings, and a foolproof buttercream that binds everything together beautifully. I've perfected this technique over years of baking, ensuring each layer stays moist and the colors pop without bleeding.
What makes this recipe truly special is the one-tin method, which eliminates the need for multiple pans and makes assembly much simpler. You'll bake six identical layers of vanilla sponge cake, then alternate them with jam and cream fillings for that classic rainbow effect. The buttercream frosting not only holds the layers together but also creates the perfect canvas for vibrant food coloring.
By the time you're done, you'll have a stunning cake with six distinct colors, each layer perfectly aligned and moist. The buttercream swirls add professional flair, while the vibrant toppings make it perfect for celebrations. This recipe is designed to be beginner-friendly, with step-by-step guidance to ensure your rainbow cake turns out flawless every time.
The best part? This cake stays fresh for days, making it ideal for parties or special occasions. Whether you're baking for a birthday, anniversary, or just because, this recipe delivers a showstopper dessert that's sure to impress. Let's get started on creating your masterpiece!
Ingredients for 6 layer rainbow cake
Six vibrant layers, one perfect tin—here's how to bake rainbow magic with simple yet precise ingredients.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 7 ½ cups | Sifted for light texture |
| Granulated Sugar 🍚 | 2 ½ cups | Superfine for smooth batter |
| Unsalted Butter 🧈 | 2 ½ cups | Room temperature, cubed |
| Large Eggs 🥚 | 12 whole | Room temperature, separated |
| Vanilla Extract 🌿 | 2 tbsp | Pure Madagascar preferred |
| Baking Powder 🧂 | 2 tbsp | Diamond Crystal preferred |
| Salt 🧂 | 1 tsp | Fine sea salt |
| Whole Milk 🥛 | 2 cups | Room temperature |
| Food Coloring Gel 🎨 | 6 tbsp | Vibrant, alcohol-free |
| Raspberry Jam 🍓 | 1 ½ cups | Seedless, high-quality |
| Heavy Whipping Cream 🥛 | 3 cups | Cold, full-fat |
| Powdered Sugar 🍚 | 4 cups | Confectioners' sugar |
| Vanilla Bean Paste 🌿 | 1 tbsp | For buttercream flavor |
| Unflavored Gelatin 🍬 | 1 tbsp | Bloomed in 3 tbsp cold water |
| Fresh Berries 🍓 | 2 cups | Assorted for garnish |
The flour and sugar are your foundation. King Arthur flour works best for tender layers, and superfine sugar (or pulse regular sugar in a food processor) ensures smooth batter. Butter should be room temperature but not melted—press a cube to test. Eggs are separated for stability, so room temperature prevents curdling. For food coloring, Wilton gels are my go-to—they're vibrant and won't bleed. Buy a set of six colors to match your layers. The jam should be high-quality, seedless raspberry—none of that jelly with chunks. Fresh berries for garnish? Strawberries and blueberries hold up best on the cake.
No superfine sugar? Pulse regular sugar in a food processor for 20 seconds—game-changer. Out of raspberry jam? Strawberry preserves work too, just strain out any large fruit pieces. For the buttercream, if you can't find vanilla bean paste, double the extract and add a pinch of salt. The gelatin is key for stability—bloom it in cold water first, then heat gently. Want extra flair? Add a splash of lemon juice to the buttercream for brightness. And if you're worried about colors bleeding, bake layers separately and let them cool completely before coloring.
Store the cake in an airtight container between two cake boards at room temperature for up to 3 days. For longer storage, wrap tightly in plastic and refrigerate for 5 days. The buttercream will firm up in the fridge, so bring it to room temperature before serving. To transport, place the cake on a large cake board and secure with a wide ribbon. The colors stay vibrant for 24 hours if kept away from direct sunlight. For extra shine, brush the top with a simple syrup before serving—keeps everything moist and makes the colors pop.
Why You'll Love This Recipe
- No Fuss Layers: I swear by this method—just mix the same batter six times, let it cool, and stack. No fancy piping skills needed, just a spatula and patience (the good kind).
- Butter-Sugar Magic: That creamy butter-sugar base? It’s the secret. The eggs add richness, but the vanilla ties it all together—simple, but ridiculously good when layered with those vibrant colors.
- Party in a Box: Birthdays, showers, or just because—this cake’s your go-to. The layers keep well, so slice it ahead and store it covered. Bonus: kids love picking their favorite colors.
- Budget-Friendly Luxury: Flour, sugar, butter—these are pantry staples. No expensive shortcuts here, just pure cake joy that won’t break the bank. Leftovers? Even better the next day.
Step-by-step instructions for creating a stunning 6-Layer rainbow cake
This showstopper cake combines precision baking with vibrant colors—let's build it layer by layer.
Prepare the Batter Base for All Layers
In a stand mixer fitted with the paddle attachment, cream the 2.5 cups unsalted butter and 2.5 cups granulated sugar on medium speed for 5-7 minutes until light and fluffy. This step is critical—you're incorporating air that will make those layers impossibly tender. Scrape down the bowl occasionally to ensure even mixing.
In a separate bowl, whisk together the 7.5 cups all-purpose flour, 2 tbsp baking powder, and 1 tsp salt. Sift this dry mixture directly into the creamed butter mixture, mixing on low speed just until combined. Add the 12 whole large eggs, one at a time, mixing well after each addition. Incorporate the 2 cups whole milk and 2 tbsp vanilla extract, mixing until smooth. Divide this base batter evenly into six separate bowls—each will become a different colored layer.
Create the Vibrant Color Layers
Working quickly, divide the 6 tbsp food coloring gel evenly among the six bowls of batter—about 1 tbsp per bowl. Use a silicone spatula to gently fold each color into its corresponding batter until completely uniform. Here's where the magic happens: the colors should be vivid yet still allow the cake to bake evenly. If any batter looks too thick, gently fold in 1-2 teaspoons of whole milk to maintain consistency.
Pour each colored batter into six 8-inch round cake pans that have been lightly greased and lined with parchment circles. The pans should be filled about ⅔ full—don't overfill or the layers won't bake evenly. Tap each pan firmly on the counter 3-4 times to remove air bubbles. Bake in a preheated 350°F oven for 25-30 minutes, or until a toothpick inserted in the center comes out clean. Rotate the pans halfway through baking for even browning.
Assemble the Cake with Jam Filling
Allow the baked layers to cool in their pans for 10 minutes, then transfer to a wire rack to cool completely. Once cooled, level the tops if necessary using a serrated knife. Here's a pro tip: place the cake pans on a cutting board and gently press down with a long serrated knife to create a perfectly flat surface.
Spread ¼ cup of raspberry jam evenly over the first layer, then stack the second layer on top. Repeat this process with the remaining layers, alternating colors as you go. The final layer should remain plain—you'll add the buttercream on top. This layering technique creates the signature rainbow effect while keeping each slice perfectly balanced.
Prepare the Stabilized Buttercream
In a small bowl, bloom the 1 tbsp unflavored gelatin in 3 tbsp cold water for 5 minutes until fully dissolved. In a separate heatproof bowl, gently warm 1 cup of heavy whipping cream until steaming (do not boil). Slowly whisk the bloomed gelatin into the warm cream until completely dissolved. Let this mixture cool to room temperature.
In a stand mixer fitted with the whisk attachment, beat the remaining 2 cups heavy whipping cream until soft peaks form. Gradually add the 4 cups powdered sugar and 1 tbsp vanilla bean paste, mixing until smooth and fully incorporated. With the mixer running on low speed, slowly pour in the gelatin mixture, mixing just until combined. This stabilized buttercream will hold its shape beautifully for decorating.
Frost and Decorate Your Masterpiece
Spread a thin layer of buttercream over the top and sides of the cake to create a smooth canvas. Add a final layer of buttercream on top, then use an offset spatula to create a smooth, domed surface. Chill the cake in the refrigerator for 30 minutes to firm up the buttercream before decorating.
Pipe decorative borders or swirls using the remaining buttercream. Arrange the 2 cups fresh berries on top for a natural, colorful finish. The cake will keep in the refrigerator for up to 3 days, though I promise it won't last that long with guests clamoring for slices!
Pro Tips For Making 6 Layer Rainbow Cake
- CHILL THE PANS: After baking each layer, slide them straight into the fridge for 10 minutes before stacking. I learned this the hard way—warm layers squish like wet socks when you try to layer them, and your rainbow effect turns into a sad, smudged mess. Even 5 minutes helps, but 10 guarantees clean separation.
- WEIGH YOUR FLOUR: Scoop and level isn’t cutting it here. Use a kitchen scale for the flour—6 layers mean tiny measurement errors multiply fast. I used to eyeball it, and by layer 4, the texture was all over the place. Precision matters more than you’d think for that perfect crumb.
- SKIP THE OVERMIXING: Once you add the eggs to the butter-sugar mix, fold just until combined—no more. I’ve seen people beat this into oblivion, and suddenly you’re dealing with dense, rubbery layers instead of light, airy ones. The moment the batter looks smooth is the moment to stop.
- LAYER WITH FILLING FIRST: Spread the filling (jam, cream, or buttercream) before adding the next cake layer. Pressing the top layer down on dry filling makes it tear when you cut. This isn’t the prettiest method—it looks like a gooey sandwich—but it keeps your cake intact when you finally slice into it. Trust the process.
Storing and reheating your leftovers
Room Temperature Storage
Keep your rainbow cake at room temperature between two 8-inch cake boards inside an airtight container for up to 3 days. The buttercream will stay soft enough to slice cleanly, while the layers maintain their moisture. I always place a small piece of parchment paper between layers to prevent sticking—this is especially helpful if you're storing it for more than 24 hours. 🌈
Refrigerator Refresh
For longer storage, refrigerate the cake in an airtight container for up to 5 days. The buttercream will firm up slightly, so let it sit at room temperature for 30-45 minutes before serving. To revive the texture, gently warm the cake in the microwave for 10-15 seconds (covered with a damp towel) if the buttercream feels too hard. A quick brush with simple syrup (equal parts sugar and water, heated) brings back moisture and shine. ❄️
Freezer Preservation
This cake freezes beautifully for up to 3 months! Wrap each layer individually in plastic wrap, then stack them with parchment paper between each. Place the entire cake in a freezer bag, squeezing out excess air to prevent freezer burn. When ready to serve, thaw overnight in the refrigerator, then bring to room temperature before decorating. The colors stay vibrant, and the texture remains tender when properly thawed. 🧊
Transport Tips
For events, place the cake on a large cake board and secure it with a wide satin ribbon to prevent shifting. If transporting in warm weather, use an insulated cake carrier to keep the buttercream from melting. I’ve even shipped cakes overnight—just wrap them tightly in plastic and place them in a Styrofoam cooler with ice packs. The colors remain vivid, and the layers stay intact if handled gently. 🚗
Reheating Slices
Individual slices can be reheated in the microwave for 5-8 seconds (covered with a damp paper towel) to restore the buttercream’s softness. For a stovetop method, warm slices on a wire rack over low heat for 1-2 minutes—this keeps the cake moist without drying out the edges. Avoid over-heating; the buttercream should just feel slightly warm, not melted. 🔥
Color Preservation
The vibrant colors will fade slightly over time, especially if exposed to light. To maintain brightness, store the cake in a dark, cool place (like a pantry) rather than near windows. If the colors dull after refrigeration, a quick food coloring gel touch-up on the buttercream swirls can restore the rainbow effect. Keep a small bottle of each color handy for last-minute fixes! 🎨
Nutrition facts
Frequently asked questions
Can I bake all six layers at once?
No, baking all six layers simultaneously isn't recommended. The oven's heat distribution can cause uneven baking, especially with colored batters. Instead, bake them in batches of two pans at a time, rotating positions halfway through for consistent results. This ensures each layer has the perfect texture and color.
How do I prevent the colors from bleeding into each other?
Use gel-based food coloring (not liquid) and bake each layer separately in individual pans. Once cooled completely, assemble the cake with thin layers of jam or cream between colors. The gelatin in the buttercream also helps stabilize the colors and prevent bleeding during storage.
What if I don't have six cake pans?
No problem! Use the same pan for all layers, baking them one at a time. Simply grease the pan thoroughly between each batch and let layers cool completely before adding color. This one-tin method works perfectly—it's actually how I developed this recipe to begin with!
Can I make this cake gluten-free?
Yes, but with adjustments. Replace the all-purpose flour with a 1:1 gluten-free baking flour blend (like Bob's Red Mill) and use xanthan gum if not already included. Expect slightly denser layers—consider reducing baking time by 2-3 minutes and checking for doneness early. The buttercream will still work the same.
How do I level the cake layers perfectly?
Use a serrated knife and a level surface. Place the cake pan on a cutting board, then gently press down with the knife at a slight angle. For extra precision, use a cake leveler tool. Always level layers before adding filling to ensure even stacking and clean slices.
