This rainbow cake is the kind of dessert that makes everyone at the table gasp before the first slice is even cut. Six thin, tender sponge layers in red, orange, yellow, green, blue, and purple are stacked with a generous swirl of vanilla buttercream between each one. From the outside it looks like a simple white cake, but the first cut reveals the whole colorful surprise inside.
The sponges are made with buttermilk, which keeps them especially moist and soft, and the frosting is a rich buttercream flavored with vanilla paste. It takes a little patience to build the layers straight and even, but the payoff is a celebration cake that looks like it came from a bakery.
You will need six small layer cake pans of about 6 inches (15 cm) in diameter, though you can bake in batches if you don't own that many. Serve it at a birthday, a shower, or any party where you want to leave everyone with their mouths open.


Ingredients for Rainbow Cake
This recipe makes one tall 6-inch layer cake, serving about 18 people.
- 125 g unsalted butter, at room temperature
- 225 g white sugar
- 4 egg whites (medium)
- 300 g all-purpose flour
- 3 teaspoons baking powder
- Half a teaspoon salt
- 300 g buttermilk (285 g milk plus 15 g lemon juice)
- 1 teaspoon vanilla paste
- Gel or paste food coloring: red, orange, yellow, green, blue, and purple
- 400 g unsalted butter, at room temperature
- 400 g powdered sugar, sifted
- 1 teaspoon vanilla paste

How to Make Rainbow Cake Step by Step
1. Preheat and cream the butter and sugar
Preheat the oven to 350°F (180°C) with top and bottom heat. Grease 6 layer cake pans of 15 cm (6 inches) in diameter and set them aside. Beat 125 grams of unsalted butter at room temperature with 225 grams of white sugar until the mixture lightens in color and becomes very creamy.

2. Add the egg whites
Add 4 medium egg whites and beat until they are completely incorporated into the mixture.

3. Sift in the dry ingredients
Sift 300 grams of all-purpose flour together with 3 teaspoons of baking powder and half a teaspoon of salt. Fold them into the mixture at the lowest speed your mixer has.

4. Add the buttermilk and vanilla
Add 300 grams of buttermilk and 1 teaspoon of vanilla paste. You can make the buttermilk by mixing 285 g of milk with 15 g of lemon juice and letting it sit a few minutes until it looks slightly curdled. Keep beating at the lowest speed until everything is fully combined, then scrape down the sides of the bowl to catch any stray bits of batter.

5. Divide the batter into six bowls
Once the batter is completely smooth, divide it among 6 bowls. You can weigh the batter and put the same amount in each bowl, or use an ice cream scoop to add the same number of scoops to each until the batter is used up.

6. Tint each bowl a different color
Color the batter in each bowl with gel or paste food coloring in red, orange, yellow, green, blue, and purple.

7. Bake in two batches and cool
Pour each portion of batter into the greased pans. Bake in two batches, three pans at a time, for 15 to 20 minutes, or until a toothpick inserted in the center comes out clean. Remove from the oven and let cool in the pans for 10 minutes, then unmold and cool completely.

8. Make the vanilla buttercream
Once the sponges have cooled completely, make the frosting. Beat 400 grams of unsalted butter at room temperature with 400 grams of sifted powdered sugar and 1 teaspoon of vanilla paste until the mixture has whitened and is very creamy.

9. Stack the layers with buttercream
To assemble the cake, put a small dab of buttercream on the serving plate so the first layer sticks and doesn't slide. Place the first sponge, the purple one, and spread a portion of buttercream on top, smoothing it out. Continue with the blue layer and more buttercream, then the green, yellow, orange, and red layers, adding buttercream between each. Keep checking that the cake stays straight as you build.

10. Apply a thin crumb coat
When all the sponges are stacked with buttercream between them, cover the whole cake with a very thin layer of buttercream to seal in the crumbs and make decorating easier later. Chill the cake in the refrigerator for at least 15 minutes so the buttercream firms up slightly.

11. Cover with the remaining buttercream
Next, cover the cake with the remaining buttercream and finish the decoration however you like, which can be as simple as spreading the rest of the frosting in a rustic style over the entire surface of the cake.

12. Serve
Slice and serve the cake to reveal the colorful layers inside. The sponges are very tender, and paired with the vanilla buttercream they are simply irresistible.

Tips for the Best Rainbow Cake
Bake in batches if you lack pans
This recipe calls for six layer cake pans, but if you don't have that many, there's no problem. Bake the first few sponges, let them cool, wash the pans, and bake the remaining colored sponges.
Make your own buttermilk
For especially juicy sponges, use buttermilk, which you can easily make by mixing 285 g of milk with 15 g of lemon juice. Let the mixture rest for a few minutes until it takes on a curdled-milk texture, and it's ready to use.
Take your time assembling
This recipe is a little laborious and takes some skill to get a straight cake, but the effort is worth it when you see the surprised faces of the people eating it. The sponges come out very tender, and with the vanilla buttercream they are irresistible.
| Detail | Value |
|---|---|
| Prep time | 40 minutes |
| Cook time | 40 minutes (100 minutes total baking) |
| Total time | 1 hour 20 minutes |
| Servings | 18 |
| Category | Baking / Dessert |
| Cuisine | American |
| Calories per serving | 433 kcal |
30 Top Dishes I Enjoy Cooking at Home

Much like me, you probably like having a rotation of fuss-free comfort dishes, well-known global plates, and desserts that please a crowd.
When a rich, indulgent treat is what I'm after, I tend to reach for this La Viña Molten Cheesecake recipe, this refined Original French Crème Brûlée recipe, or a luscious Chocolate Mousse Cake recipe. And any time a fruity, cozy dessert sounds good, this timeless French Tarte Tatin recipe is my go-to.
On mornings when I want something quick and on lighter days, I'll whip up these airy Oatmeal and Banana Pancakes recipe, a hearty Stuffed Sweet Potato recipe, or these bright Eggs Stuffed with Avocado and Salmon recipe. And for a gluten-free staple to keep in the pantry, I'm fond of making this no-fuss Gluten-Free Rice Flour recipe.
For tapas nights and Mediterranean flavors, I switch between this punchy Basque Tuna with Tomato recipe, crunchy Patatas Bravas Air Fryer recipe, silky Tirokafteri Greek Dip Sauce recipe, and a cool Burrata Salad with Tomato and Pesto recipe. This crisp Italian Vitello Tonnato recipe is another one I love to serve when the occasion calls for something a bit fancier.
Come lunchtime cravings or a cozy evening meal, I'm quick to suggest this warming Meatballs in Spanish Sauce recipe, time-honored Meatballs in Almond Sauce recipe, deeply savory Italian Bolognese Sauce recipe, and velvety Chicken Croquettes in Thermomix recipe. Should I be after something more substantial, I'll bake this Greek Pastitsio Pie recipe, a homey Potatoes and Squid Stew recipe, or the deeply comforting French Boeuf Bourguignon recipe.
Any time street-food style or party-ready plates are calling, I'll usually fix this succulent Homemade Chicken Doner Kebab recipe, crispy Salchipapas recipe, punchy Mexican Pork Carnitas recipe, or these crisp Korean Hobak Jeon recipe. These simple Air Fryer Zucchini Rings recipe are another favorite of mine to set out as a light starter or snack.
And when drinks plus a whole spread are on the agenda for company, I'll typically serve dinner alongside this cooling Original Cuban Mojito recipe, this strong Long Island Iced Tea recipe, or a pitcher of this fruity Bleeding Spanish Sangria recipe. Then to fill out the table, I like to add this zesty French Remoulade Sauce recipe on the side or finish things off with this eye-catching Mediterranean Black Rice with Squid recipe.
Additional Tasty Recipes to Cook for Loved Ones

After years of trying and tweaking recipes in my own kitchen, I've come to see that the greatest dishes balance ease, dependable methods, and big flavor.
The recipes gathered here are the very ones I keep coming back to, time and again—whether I'm throwing together a fast meal just for me or putting on something memorable for friends and family.
For a sweet finish, the rich, silky Orange Chocolate Mousse Recipe is one I turn to whenever I want something elegant yet effortless. Another dessert I adore is the caramelized Trdelnik Slavic Pastry Recipe, inspired by the famous Central European chimney cake. If baking is your thing, knowing how to make syrup for better dessert texture comes in handy, and my Inverted Sugar Recipe shows exactly how I make it at home.
Whenever something light and uncomplicated is what I'm craving, I reach for the familiar Italian Caprese Salad Recipe or a flawlessly cooked Simple Poached Egg Recipe. For fuller comfort meals, I'm quick to point to the filling Meatball Sandwich Recipe, the creamy Russian Stroganoff Beef Recipe, and the speedy weeknight winner One Pot Pasta Recipe.
I'm equally fond of passing along dishes rooted in tradition from across the globe, among them the genuine Sorropotún de Bonito Fish Stew Recipe, crisp Chilean Pumpkin Sopaipillas Recipe, and the timeless Spanish Cochifrito Segovian Fried Pig Recipe.
Air fryer cooking is another area I return to often, since it cuts down on time while still delivering excellent texture. The ones I make most include Air Fryer Pork Ribs Recipe, Air Fryer Chicken Thighs Recipe, Air Fryer Sweet Potatoes Recipe, Air Fryer Baked Potatoes Recipe, Air Fryer Peppers Recipe, Air Fryer Mixed Sandwich Recipe, Air Fryer Toasted Bread Recipe, and Air Fryer Hard-Boiled Eggs Recipe.
And for those steering clear of wheat, my cozy Gluten-Free Lasagna Recipe shows that baked pasta classics can still be indulgent, cheesy, and deeply satisfying minus the gluten.
Gluten free Empanada Dough Recipe 🍕 Fluffy Apple Cake Recipe 🍔 Langos Hungarian Fried Bread Recipe 🌭 Gluten Free French Brioche Recipe 🍟 Madeira British Sponge Cake Recipe 🌮 Chocolate Argentinian Cookies Alfajores Recipe 🌯 Barmbrack Irish Sweet Bread Recipe 🥙 Gluten free Cookies Recipe 🥗 Homemade cream Maruxas Galician Biscuit Recipe 🍝 Japanese Dumplings Gyoza Dough Recipe
American Gluten Free Cookies Recipe 🍜 Gluten Free King Cake Recipe 🍲 Gluten Free Chocolate Cake Recipe 🍛 Extremadura Style Chard Recipe 🍣 Keto Sliced Sandwich Bread Recipe 🍱 Gluten Free Waffles Recipe 🍤 Low Carb Keto Pizza Recipe 🍗 Gluten Free Bread Rolls Recipe 🍖 Flourless Gluten Free Bread Buns Recipe 🥓 Protein Ice Cream Recipe 🥞 Chia Pudding Dessert with Seeds Recipe
Fluffy Cloud Bread Pan Nube Recipe 🧇 Quinoa Bread Recipe 🍞 Schiacciata Tuscan Focaccia Flat Bread Recipe 🥐 Shokupan Japanese Milk Bread Recipe 🥨 Potato Sandwich Bread Recipe 🧀 Homemade Breadsticks Recipe 🍳 Stollen German Dried Fruits Cake Recipe 🥚 French Gingerbread Spiced Cake Recipe 🍰 Gluten Free Pancakes Recipe
🥔 Potato-omelet-in-Thermomix 🍓 Smores-Sandwich-Dessert 🍰 Womens-Day-Mimosa-cake ☕ Coffee-Sorbet 🍆 Eggplant-pizza 🍋 Ciambella-Italian-Lemon-Cake 🥖 Zapiekanka-Polish-Snack 🌰 Dukkah-Egyptian-Nuts-Mix 🧆 Best-Hummus 🥑 Best-Avocado