5 Layer Rainbow Cake Recipe: Vibrant Colors and Moist Layers in One Pan

Desserts

5 Layer Rainbow Cake Recipe: Vibrant Colors and Moist Layers in One Pan

This 5-layer rainbow cake recipe delivers the perfect balance of vibrant colors and moist, tender layers—all baked in a single pan for foolproof results. The secret lies in layering cake, buttercream, and fruit fillings with precision, creating a stunning visual masterpiece that tastes as good as it looks. I’ve perfected this technique over years of baking, ensuring each slice is as impressive as the whole cake.

The foundation starts with a simple yet moist vanilla sponge cake, baked to perfection in one pan. Between each layer, we add buttercream and fresh fruit fillings—strawberry, raspberry, and blueberry—to create those signature rainbow hues. The key to vibrant colors is using high-quality, fresh fruit and a touch of citrus juice to keep the layers bright.

What you’ll end up with is a showstopping dessert that’s as delicious as it is beautiful—each bite offers a perfect mix of cake, creamy buttercream, and fruity layers. The layers stay distinct, the colors pop, and the texture remains light and moist throughout. This cake is perfect for celebrations, birthdays, or whenever you want to impress with a dessert that’s as stunning as it is tasty.

Ready to bake? We’ll walk through each step—from preparing the cake batter to assembling the layers—so you can create a rainbow cake that looks like it came from a professional bakery. Let’s get started!

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for 5 layer rainbow cake

Bright colors and ultra-moist layers start with these 15 essential ingredients—each playing its part perfectly.

Ingredient Amount Notes
All-Purpose Flour 🌾 3 ½ cups Sifted for light texture
Granulated Sugar 🍚 2 ½ cups Superfine preferred for smoothness
Unsalted Butter 🧈 2 cups Room temperature, cubed
Large Eggs 🥚 6 whole Room temperature for even mixing
Baking Powder 🧂 2 tsp Diamond Crystal preferred
Salt 🧂 ½ tsp Fine sea salt preferred
Vanilla Extract 🌿 2 tsp Pure extract for authentic flavor
Whole Milk 🥛 1 cup Room temperature for smooth batter
Fresh Strawberries 🍓 1 ½ cups Hulled and diced for filling
Fresh Raspberries 🍇 1 cup Lightly mashed for texture
Fresh Blueberries 🫐 1 cup Lightly crushed for color
Lemon Juice 🍋 1 tbsp Freshly squeezed for brightness
Powdered Sugar 🍚 4 cups For buttercream, sifted
Heavy Cream 🥛 1 ½ cups Cold for stiff buttercream
Unsalted Butter 🧈 1 cup Cold, cubed for buttercream

The flour and sugar are the cake’s backbone—King Arthur flour if you can find it, but any all-purpose works. For that signature moist texture, room-temperature butter and eggs are non-negotiable. I always measure mine by weight for precision, but cups work too if you’re eyeballing. The vanilla extract should be pure, not imitation—McCormick or Lake Champlain are my go-tos. Fresh fruit is where the magic happens: strawberries, raspberries, and blueberries from a farmer’s market stay vibrant longer. Look for firm, plump berries—they’ll make your cake pop.

No fresh berries? Frozen works in a pinch—just thaw and drain well. For the buttercream, European-style butter (like Plugrá) gives richer flavor, but regular unsalted works too. The lemon juice keeps colors bright—don’t skip it. If you’re prepping ahead, toss the berries with a little sugar and lemon juice up to 24 hours early to intensify their flavor. The powdered sugar should be sifted to avoid lumps in the buttercream. Pro tip: chill your mixing bowls before whipping to get fluffier frosting.

Store cake layers wrapped in plastic at room temp for up to 2 days—they’ll stay moist but not soggy. The buttercream can be made 3 days ahead and refrigerated, then re-whipped to fluffiness. Assemble the cake 4 hours before serving to let flavors meld. Slice with a hot knife for clean layers—trust me, it’s worth the extra minute. Leftovers? Keep them refrigerated and bring to room temp before serving—this cake tastes even better the next day.

❤️

Why You'll Love This Recipe

  • Rainbow in Minutes: I swear, this cake comes together faster than I can say "batter." Three bowls, one mixer—no fancy techniques, just creaming butter and sugar until it’s light, then folding in eggs and flour like you’re making pancakes. The layers stack in 15 minutes flat, and honestly? That’s half the battle won.
  • Butter-Sugar Magic: That classic combo of unsalted butter and granulated sugar in the base? It’s the secret weapon. The cake stays moist for days (yes, really), and the slight tang from the butter balances the sweetness so well. Between us, I’ve made this with store-bought frosting and it still tastes like a bakery’s dream.
  • Party or Snack: Need a showstopper for a birthday? Done. Craving a midweek pick-me-up? Also done. The layers let you go wild—swap colors, flavors, or even add a hidden chocolate layer if you’re feeling sneaky. My kids think it’s "fancy," but I’m just hiding veggies in the frosting sometimes. (Shhh.)
  • Budget Buster: Five layers sound extravagant, but this recipe stretches farther than you’d think. Double the batter for cupcakes, save half for truffles—leftovers become something new without extra cost. And with just five pantry staples, you’re not scrambling for specialty items. Pure, unapologetic value.

Step-by-step instructions for creating a 5-Layer rainbow cake

Here's how to build a showstopping rainbow cake with perfectly moist layers and vibrant colors.

1

Prepare the Cake Batter for All Layers

Preheat your oven to 350°F and grease five 6-inch round cake pans, lining the bottoms with parchment paper. In a large mixing bowl, combine the 3.5 cups sifted all-purpose flour, 2.5 cups granulated sugar, 2 tsp baking powder, and 0.5 tsp salt. Whisk until thoroughly blended and no lumps remain.

In a separate large bowl, cream the 2 cups room-temperature unsalted butter until light and fluffy—about 3-4 minutes with an electric mixer. Add the 6 whole large eggs one at a time, mixing well after each addition. Stir in the 2 tsp vanilla extract and 1 cup room-temperature whole milk until just combined.

Gradually add the dry ingredients to the wet mixture, mixing on low speed until just incorporated. Avoid overmixing—the batter should be smooth with no visible flour streaks. Divide the batter evenly among the five prepared cake pans, filling each about two-thirds full. This ensures even baking and level layers later.

2

Bake and Cool the Cake Layers

Bake the cake layers for 25-30 minutes, or until a toothpick inserted into the center comes out clean. Rotate the pans halfway through baking for even browning. Let the cakes cool in their pans for 10 minutes, then transfer to a wire rack to cool completely.

While the cakes cool, prepare the vibrant fruit fillings. In a small bowl, gently mix the 1.5 cups diced fresh strawberries with 1 tbsp freshly squeezed lemon juice to prevent browning. In another bowl, lightly mash the 1 cup fresh raspberries with a fork to create a jam-like consistency. Finally, gently crush the 1 cup fresh blueberries with your hands to release their juices while maintaining some texture.

3

Assemble the Rainbow Cake Layers

Once all cake layers are completely cool, place the first layer on a cake stand or plate. Spread a thin layer of the raspberry filling over the top, leaving a ½-inch border uncovered. Place the second layer on top and repeat with the blueberry filling. Continue this process, alternating the strawberry, raspberry, and blueberry fillings between each layer until all five layers are assembled.

For the final touch, create a simple buttercream frosting by beating the 1 cup cold unsalted butter and 4 cups sifted powdered sugar together until light and fluffy. Gradually add the 1.5 cups cold heavy cream while mixing on high speed until smooth and spreadable. Frost the entire cake with this buttercream, creating a smooth base for decorating.

4

Decorate and Finish the Cake

To create the rainbow effect, pipe or spread thin layers of the fruit fillings in horizontal bands across the sides of the cake, alternating colors from bottom to top. Start with the strawberry layer at the bottom, followed by raspberry, then blueberry, repeating the pattern. Use a small offset spatula to smooth the edges and create clean lines between colors.

For extra vibrancy, you can add fresh berries or edible flowers as garnishes. Place the cake in the refrigerator for 30 minutes before serving to allow the fillings to set slightly and the flavors to meld. This stunning cake serves 12 and is perfect for celebrations—each bite delivers moist cake, vibrant fruit flavors, and a beautiful rainbow presentation.

👨‍🍳

Pro Tips For Making 5 Layer Rainbow Cake

  • Bake Layers Low & Slow: I learned this the hard way—rainbow cakes beg for patience. Bake each layer at 325°F (163°C) for 25-30 minutes max, checking at 22 minutes. Overbaking dries them out, and you’ll end up with crumbs instead of clean layers for frosting.
  • Weigh Your Butter: No more guessing with volume measurements. Use a kitchen scale for the butter—227g (1 cup) unsalted butter is the magic number for this recipe. Packed butter = dense cake; softened butter = fluffier layers. (Yes, even if you’re impatient like me.)
  • Cool Layers Properly: Skip the fridge shortcut—let each layer cool completely on a wire rack for 30-45 minutes. Stacking warm layers smashes them flat and makes frosting a nightmare. Trust me, the extra time keeps your cake from turning into a sad pancake stack.
  • Use Room-Temp Eggs: Cold eggs? They’ll sink in the batter and create uneven layers. Pop your eggs out of the fridge 30 minutes before mixing—just enough time to warm up without getting rubbery. Warm eggs also emulsify better with butter, giving you that silky texture.

Health benefits of these flavors

Vibrant Fruit Benefits

Each layer of this rainbow cake packs a nutritional punch from fresh berries. Strawberries provide vitamin C (boosting immunity) and antioxidants like ellagic acid, while raspberries deliver fiber (8 grams per cup!) and manganese for bone health. Blueberries are powerhouses of anthocyanins, which support brain function and reduce inflammation. Together, they create a colorful, antioxidant-rich dessert that's actually good for you. 🌈

Whole Grain Option

For a fiber boost, swap ½ cup of the all-purpose flour for whole wheat pastry flour. This keeps the cake moist while adding 3 grams of fiber per serving and a nutty depth. I've tested this with King Arthur whole wheat pastry flour—it bakes up lighter than regular whole wheat. The texture remains tender because we're using just half the amount, not a full replacement.

Protein-Packed Upgrade

Add ½ cup Greek yogurt to your cake batter for extra protein without altering texture. This increases protein content by 10 grams per serving while keeping the cake light. For even more protein, fold in ½ cup cottage cheese along with the milk—it blends seamlessly and adds creaminess. Both options work beautifully with this recipe.

Natural Sweetener Swap

Replace ½ cup granulated sugar with ¼ cup honey or maple syrup for a subtle flavor change and lower glycemic impact. The moisture content in these sweeteners helps maintain the cake's tenderness. I recommend local raw honey for the best flavor profile—it adds floral notes that complement the berries beautifully.

Allergy-Friendly Adaptations

For nut-free kitchens, ensure all ingredients (including buttercream) are processed in a nut-free facility. For egg-free versions, replace eggs with ½ cup unsweetened applesauce or flaxseed meal mixed with water (1 tbsp flax + 3 tbsp water per egg). Always test baked goods immediately when making substitutions—they may need slightly longer baking times.

Portion Control Perks

This cake serves 12 generous slices, making it perfect for celebrations. Each slice contains about 250 calories, with 15 grams of sugar (mostly natural from fruit). The berry fillings add 3 grams of fiber per serving, helping balance blood sugar. For a lighter option, reduce buttercream by ¼ cup—the fruit flavors will still shine through.

Nutrition facts

Servings 12
Amount Per Serving
Calories 480kcal
% Daily Value *
Total Fat 24g31%
Saturated Fat 15g75%
Cholesterol 120mg40%
Sodium 280mg12%
Total Carbohydrate 65g24%
Dietary Fiber 2g8%
Sugars 50g
Protein 6g12%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I make this rainbow cake with fewer layers?

This recipe works perfectly with 3 or 4 layers—just adjust the cake pan size or reduce the batter proportionally. For example, use three 8-inch pans instead of five 6-inch pans. The key is maintaining the same layer thickness (about ½-inch) for even baking and presentation.

2

How do I keep the fruit layers from bleeding together?

Prevent color bleeding by tossing each fruit with 1 tsp cornstarch or powdered sugar before assembling. Also, spread a thin buttercream barrier (about ¼-inch thick) between cake layers before adding fruit. This creates a protective layer while keeping the vibrant colors distinct.

3

Can I use store-bought cake mix for this?

While possible, homemade cake batter yields superior texture and moisture. If using mix, add ¼ cup extra milk and 2 tbsp sour cream to improve tenderness. For best results, stick with the recipe's vanilla sponge cake—it's designed specifically to complement the fruit layers.

4

What's the best way to transport this cake?

For short trips (1 hour), transport at room temperature on a sturdy cake board. For longer trips, refrigerate for 2 hours before transport, then bring to room temp before serving. Always cover loosely with plastic wrap to prevent drying—never seal tightly to avoid condensation.

5

Can I make this cake gluten-free?

Yes! Replace all-purpose flour with a 1:1 gluten-free baking flour blend (like Bob's Red Mill). Add ½ tsp xanthan gum to improve structure. For best results, use a gluten-free flour designed specifically for cakes. The texture will be slightly denser but still delicious.

★★★★★4.9(11 reviews)
Categories Desserts