Easy Rainbow Cake with Six Bright Layers
A plain white cake that hides a rainbow is the best kind of surprise. Cut the first slice of this rainbow cake and six bright layers show up in a neat row: red, orange, yellow, green, blue, and purple. Under all that color sits a soft vanilla sponge with a plain white buttercream coat. One batter, six bowls, and a few drops of gel color are all it takes. The steps stay calm and simple, from the first bowl to the last swirl of frosting.

Why You Will Love This Rainbow Cake
- Six bright layers hide under a calm white coat
- One vanilla batter makes all six colors
- Gel color keeps the layers bold with no odd taste
- Thin layers bake fast, about 15 minutes a round
- The soft crumb and sweet frosting suit kids and grown ups alike
Ingredients
For the Cake:
- 3 3/4 cups all purpose flour, spooned into the cup and leveled (swap: cake flour in the same amount gives a slightly finer crumb)
- 3 3/4 teaspoons baking powder
- 1 teaspoon fine salt
- 1 1/4 cups unsalted butter, soft at room temperature (2 1/2 sticks), plus a little more for the pans (butter only here, since it gives the rich taste this cake needs)
- 2 1/2 cups granulated sugar
- 5 large eggs, at room temperature
- 1 tablespoon alcohol free vanilla extract
- 1 1/2 cups whole milk, at room temperature (swap: 2 percent milk in the same amount, with a slightly lighter crumb)
- Gel food colors in red, orange, yellow, green, blue, and purple (gel only; liquid color thins the batter and bakes pale)

For the White Buttercream:
- 1 1/2 cups unsalted butter, soft at room temperature (3 sticks)
- 6 cups powdered sugar, sifted so no lumps stay in the bowl
- 2 teaspoons clear alcohol free vanilla extract (clear keeps the coat snowy white; plain vanilla works too and gives a soft ivory tone)
- 4 to 6 tablespoons whole milk (swap: heavy cream for a richer, softer coat)
- 1/2 teaspoon fine salt, to balance the sweet taste
- Rainbow sprinkles for the top, if you like
Gel Color, Not Liquid Drops
Liquid color from the store is mostly water. It thins the batter, and the layers bake pale and weak. Gel color is thick and strong, so three or four drops turn a whole bowl of batter bright. If color is the whole point of the cake, gel is the tool that gets you there.
Allergen and Dietary Disclosure
Contains: gluten, dairy, and eggs.
Gluten Free Option: swap the all purpose flour with a 1 to 1 gluten free baking flour, and let the mixed batter rest for 10 minutes before you split it into the six bowls.
Dairy Free Option: use a firm plant butter in the same amount and oat milk in place of whole milk, in both the cake and the frosting.
Nut Free: the base recipe has no nuts at all, so no change is needed. Check your gel color and sprinkle labels to be safe.
Egg Free Option: swap each egg with a flax egg (1 tablespoon ground flax seed stirred with 3 tablespoons water, rested 10 minutes). The layers will be a bit more dense, but the colors still show well.
Disclaimer: Always confirm ingredients with your specific brand labels, as formulations vary by manufacturer.
Step-by-Step Instructions
Step 1: Heat the oven to 350°F (175°C). Rub soft butter inside two or three 8 inch round pans, set a circle of baking paper in the bottom of each one, butter the paper, and dust the pans with a thin coat of flour.
Step 2: Whisk the flour, baking powder, and salt in a large bowl until the mix looks even and light.
Step 3: Beat the butter and sugar in a second large bowl for 3 to 4 minutes, until the mix turns pale, thick, and fluffy.
Chef’s Note: This beating step traps tiny pockets of air in the butter. Those pockets grow in the oven heat and lift all six layers, so do not rush it.
Step 4: Add the eggs one at a time, beating well after each one so the mix stays smooth. Stir in the vanilla. Food safety note: Raw batter holds raw egg, so do not taste it before the layers are baked.
Step 5: Add the flour mix in three parts and the milk in two parts, taking turns, and start and end with the flour. Mix on low speed just until no dry streaks show.
Chef’s Note: Stop the mixer the moment the batter looks smooth. Extra mixing makes the crumb tough, and a tough layer cracks when you stack it.
Step 6: Set out six small bowls. Split the batter evenly among them, about 1 1/2 cups in each bowl. For even layers, weigh each bowl and move small spoonfuls around until all six weigh the same.
Step 7: Stir one gel color into each bowl: red, orange, yellow, green, blue, and purple. Add the color a few drops at a time, and stir gently until the color looks even from top to bottom.
Chef’s Note: Gel color looks a shade deeper once the layers bake. Stop one shade lighter than the color you want, and the baked layers will land right on it.
Step 8: Pour one colored batter into each ready pan and smooth the tops with the back of a spoon. Cover the rest of the bowls with a clean towel while the first round bakes.
Step 9: Bake for 14 to 16 minutes. The layer is ready when the top springs back under a soft finger press and a toothpick pushed in the center comes out clean.
Chef’s Note: Thin layers bake fast, and brown edges mute the bright color, so start to check at 13 minutes.
Step 10: Rest the pans for 10 minutes. Turn the layers out, peel off the paper, and let them cool fully. Butter and line the pans fresh, then bake the next round until all six layers are done.
Step 11: While the last layers cool, beat the frosting butter until it looks pale and smooth. Add the powdered sugar one cup at a time with the milk, then the vanilla and salt. Beat for 2 to 3 minutes, until the frosting turns light and fluffy.
Step 12: Set the purple layer on a plate and spread a thin layer of frosting over it. Stack the rest in this order: blue, green, yellow, orange, and red on top, with thin frosting between each one. Spread a thin coat over the whole cake, chill it for 20 minutes, then add the rest of the frosting in soft swirls. Add sprinkles on top if you like.
Expert Tips and Tricks
- Set the six bowls in rainbow order on the counter before you tint. It stops mix ups and keeps the stack order clear.
- Trim a thin brown rim off a layer with a long knife if the edge baked dark. The cut slice then shows pure color.
- Turn each pan around once, halfway through its bake, if your oven browns one side faster than the other.
- A cold cake stacks best. If the day is warm, chill the layers for 20 minutes before you build the cake.
- Make ahead tip: bake all six layers one day early, wrap each one tight once cool, and keep them in the fridge.
- Storage tip: keep the frosted cake in the fridge for up to 4 days, and rest each slice on the counter for 30 minutes before you serve it.
Allergen-Specific Cooking Notes
Gluten free layers are a bit more delicate, so cool them in the pans for the full 10 minutes and lift them out with care. Plant butter frosting can turn soft fast in a warm room; if it looks shiny and loose, chill the bowl for 10 minutes and beat it again before you spread it.
Storage Instructions
Room Temperature: the frosted cake keeps for up to 1 day under a cake cover in a cool room. In a warm kitchen, move it to the fridge the same day.
Refrigerator: up to 4 days in a covered box or under a cake dome.
Freezer: sliced, up to 2 months. Wrap each slice in plastic wrap, then in foil, and thaw in the fridge overnight. Whole unfrosted layers freeze well for up to 1 month, wrapped tight.
Reheating: this cake is served cool or at room temperature, so no reheating is needed. Just rest slices on the counter for 30 minutes.
Make-Ahead Notes: the six layers keep 1 day in the fridge or 1 month in the freezer, wrapped tight. The frosting can be made 3 days early and beaten again for 1 minute before you spread it.
A Cold Cake Cuts Clean Slices
Warm buttercream smears as the knife moves, and the colors drag into each other. Chill the frosted cake for 30 minutes before you cut it. The coat firms up, the knife slides through in one clean pass, and each slice shows six sharp stripes of color.
Variations and Substitutions
Pastel Rainbow Cake: use one or two drops of gel color in each bowl instead of three or four. The layers bake soft and pale, a sweet pick for baby showers and spring parties.
Rainbow Cupcakes: split and tint the batter the same way, then fill 24 lined cupcake cups with one color each, or layer spoonfuls of all six colors in each cup. Bake for 16 to 18 minutes and frost white.
Three Layer Rainbow: pick any three colors you love most and keep the rest of the steps the same. The cake stands shorter, feeds a small group, and still cuts a bright slice.
Natural Color Rainbow: use fruit and plant colors: beet juice for pink red, turmeric for yellow, matcha for green, and butterfly pea flower tea for blue. The shades bake soft and muted, never as bold as gel, and the taste stays mild.
What to Serve With This
Vanilla Ice Cream: one cold scoop next to a slice is the classic birthday plate.
Fresh Berries: a small pile of strawberries or raspberries adds a tart bite next to the sweet crumb.
Cold Milk: a plain glass suits young guests and keeps the focus on the cake.
Hot Tea: a simple cup of black tea cuts the sweet edge for grown ups.
Whipped Cream: a soft spoonful on the side keeps the plate light when the cake feels rich.
Nutrition Information
| Calories per Serving | approximately 620 |
| Protein | 6 g |
| Carbs | 92 g |
| Fat | 26 g |
| Fiber | 1 g |
| Sugar | 68 g |
| Sodium | 380 mg |
| Serving Size | 1 slice, one fourteenth of the cake |
| Servings per Recipe | 14 |
Most of the sugar sits in the frosting and the sweet crumb, so this is a true party slice. A thinner cut still shows all six colors, and fresh berries on the side round out the plate.
Disclaimer: Nutrition values are approximate and calculated per serving using standard ingredient amounts. Values may vary based on brands used and portion sizes.
Follow on Pinterest for new updates at Beyaskitchen
Frequently Asked Questions
1. Can I bake the rainbow layers a day ahead?
Yes, and it makes party day calmer. Wrap the cooled layers tight and keep them 1 day in the fridge or up to 1 month in the freezer, then frost on the day you serve.
2. Why did my rainbow layers come out pale and dull?
Pale layers almost always come from liquid food color, which is weak and adds water. Use gel color instead, pull the layers as soon as a toothpick comes out clean, and trim any dark rim.
3. Can I use natural colors instead of gel colors?
Yes, but the shades bake soft and muted, never bold. Beet juice gives pink, turmeric gives yellow, matcha gives green, and butterfly pea tea gives blue.
4. How do I know when the thin layers are done?
The top springs back under a soft finger press, and a toothpick in the center comes out clean. Thin layers need only 14 to 16 minutes, so start checking at 13 minutes.
5. Why did my tall rainbow cake lean to one side?
One bowl held more batter, so that layer baked thicker and the stack tilts. Weigh the six bowls, level any domed top, and stack the layers cold with a chilled crumb coat.

Conclusion
Six bowls, six colors, and one plain white coat: that is the whole trick behind this rainbow cake. The work splits into calm parts, the layers bake fast, and the plain outside keeps the secret until the first slice is cut. Take your time with the tinting, stack the layers cold, and the stripes will come out clean and bold. Bake it once for a birthday at home, and it will be the cake your family asks for by name. If you loved this recipe, save it to your rainbow cakes Pinterest board so you can find it easily later.
Get more updates at: beyaskitchen

Easy Rainbow Cake with Six Bright Layers
Ingredients
Method
- Heat the oven to 350°F (175°C). Butter two or three 8 inch round pans, line the bottoms with baking paper, butter the paper, and dust with flour.
- Whisk the flour, baking powder, and salt in a bowl.
- Beat the butter and sugar for 3 to 4 minutes, until pale, thick, and fluffy.
- Add the eggs one at a time, beating well after each one. Stir in the vanilla.
- Add the flour mix in three parts and the milk in two parts, taking turns, starting and ending with flour. Mix on low just until smooth.
- Split the batter evenly among six small bowls, about 1 1/2 cups in each. Weigh the bowls for layers that match.
- Stir one gel color into each bowl: red, orange, yellow, green, blue, and purple, a few drops at a time, until the color looks even.
- Pour one colored batter into each ready pan, smooth the tops, and cover the rest of the bowls with a clean towel.
- Bake 14 to 16 minutes, until the top springs back and a toothpick in the center comes out clean.
- Rest the pans 10 minutes, turn the layers out, peel off the paper, and cool fully. Butter and line the pans fresh and bake the next round until all six layers are done.
- Beat the frosting butter until pale and smooth. Add the powdered sugar one cup at a time with the milk, then the vanilla and salt. Beat 2 to 3 minutes, until light and fluffy.
- Stack the layers cold in this order: purple, blue, green, yellow, orange, red, with a thin layer of frosting between each one. Spread a thin coat over the whole cake, chill 20 minutes, then finish with the rest of the frosting in soft swirls. Add sprinkles on top if you like.
Notes
- Gel color only. Liquid color thins the batter and bakes pale.
- Weigh the six bowls of batter so all the layers bake to the same thickness.
- Stack the layers cold and chill the crumb coat for 20 minutes, so the tall cake stands straight.
