“You know that feeling when you walk into a bakery, and the colors of the cakes practically stop you in your tracks? Well, I never thought I’d be the one making those stunning pastel rainbow layer cakes—until a random Tuesday afternoon turned into a bit of a kitchen mess and a happy surprise. I was supposed to be baking a simple vanilla cake for my neighbor’s birthday, but in my usual scatterbrained way, I grabbed all the wrong food coloring and nearly forgot to preheat the oven. The batter was a swirl of pastel hues before I even realized it, and honestly, the whole kitchen looked like a party had exploded. That first bite transported me to childhood birthday parties, with that soft, tender crumb and the creamy buttercream frosting that just melts on your tongue. Maybe you’ve been there—scrambling in the kitchen, feeling overwhelmed—but ending up with something that’s not just pretty but truly delicious. This pastel rainbow layer cake recipe stuck with me because it’s not just about looks; it’s about joy in every slice.”
Why You’ll Love This Recipe
Over several attempts (some messier than others), this pastel rainbow layer cake recipe has become a kitchen favorite, perfect for both novices and seasoned bakers looking for a splash of color and comfort. Here’s why it’s a must-try:
- Quick & Easy: Comes together in under 90 minutes, including baking and frosting—perfect for last-minute celebrations or spontaneous baking urges.
- Simple Ingredients: Uses pantry staples with a sprinkle of food coloring — no exotic or hard-to-find items needed.
- Perfect for Special Occasions: Whether it’s a birthday, baby shower, or just a bright weekend treat, it impresses without stress.
- Crowd-Pleaser: Kids adore the soft pastel layers, and adults can’t help but go back for seconds of the creamy buttercream.
- Unbelievably Delicious: The buttery, moist cake combined with smooth, velvety frosting hits that sweet spot every time.
This isn’t just another rainbow cake recipe. The trick? A perfectly balanced vanilla batter that’s not too sweet, and a buttercream frosting whipped to just the right fluffiness—neither too stiff nor too runny. Plus, I’ve found that tinting the batter lightly in pastel shades keeps the flavors clean and bright, which really makes the cake pop visually and taste-wise. It’s the kind of recipe that makes you close your eyes with the first bite and smile, knowing you nailed it. Imagine serving this at your next gathering and watching the surprise and delight unfold—it’s a showstopper without the fuss.
What Ingredients You Will Need
This pastel rainbow layer cake recipe uses simple, wholesome ingredients to deliver bold color and a tender crumb without complicated fuss. Most of these are pantry staples you probably already have. Here’s the breakdown:
- For the Cake Batter:
- All-purpose flour – 2 ½ cups (310g), sifted for smooth texture
- Baking powder – 2 ½ teaspoons to give the cake a light rise
- Salt – ½ teaspoon to balance sweetness
- Unsalted butter – 1 cup (225g), softened (I prefer Land O’Lakes or Kerrygold for richness)
- Granulated sugar – 1 ¾ cups (350g), for just the right sweetness
- Large eggs – 4, room temperature (important for better mixing)
- Pure vanilla extract – 2 teaspoons (real vanilla makes a big difference!)
- Whole milk – 1 cup (240ml), room temperature (use any milk you prefer; almond milk works well too)
- For the Pastel Colors:
- Gel food coloring in pastel shades (pink, yellow, mint green, lavender, baby blue) – about ¼ teaspoon each (gel colors give vibrant hues without thinning the batter)
- For the Creamy Buttercream Frosting:
- Unsalted butter – 1 cup (225g), softened
- Powdered sugar – 4 cups (480g), sifted to avoid lumps
- Heavy cream – 2 tablespoons (30ml), for smoothness
- Pure vanilla extract – 1 ½ teaspoons
- Pinch of salt, to balance sweetness
Pro tip: For the best texture, use small-curd cottage cheese or yogurt if you want to swap out some milk for added moisture. Also, if you’re aiming for gluten-free, almond flour or a gluten-free blend works nicely but expect a slightly denser crumb. When picking food coloring, brands like AmeriColor or Wilton offer great pastel options that don’t taste artificial.
Equipment Needed
- Two 8-inch (20 cm) round cake pans – non-stick or lined with parchment paper for easy release
- Electric mixer – stand or hand mixer makes whipping batter and frosting a breeze
- Mixing bowls – several sizes for batter and frosting preparation
- Measuring cups and spoons – for precise ingredient amounts
- Rubber spatula – to scrape batter and fold colors gently
- Cooling racks – to cool the cake layers evenly
- Offset spatula or butter knife – for smooth frosting application
If you don’t have cake pans exactly 8 inches wide, you can use 9-inch pans; just adjust baking time slightly. I once used a springform pan when I was short on options, but it took longer to bake and was harder to frost neatly. For budget-friendly alternatives, silicone baking mats or parchment liners work wonders. Also, keep your mixer’s beaters clean and dry to avoid clumps in your frosting. Trust me, a little care here saves a lot of frustration later!
Preparation Method

- Preheat your oven to 350°F (175°C). Grease your two 8-inch cake pans with butter or non-stick spray, then line the bottoms with parchment paper circles to prevent sticking. This step saves you from wrestling with the cake later.
- Mix dry ingredients: In a medium bowl, sift together 2 ½ cups (310g) all-purpose flour, 2 ½ teaspoons baking powder, and ½ teaspoon salt. Set aside.
- Cream butter and sugar: Using your electric mixer on medium speed, beat 1 cup (225g) softened unsalted butter and 1 ¾ cups (350g) granulated sugar for about 3 to 5 minutes until the mixture is light and fluffy. You should see it become paler and feel softer to the touch.
- Add eggs and vanilla: Beat in 4 large room-temperature eggs, one at a time, making sure each is fully incorporated before adding the next. Then mix in 2 teaspoons pure vanilla extract. This gives the batter a rich, fragrant base.
- Alternate adding dry ingredients and milk: Reduce mixer speed to low. Add the flour mixture in three additions, alternating with 1 cup (240ml) whole milk (starting and ending with flour). Mix just until combined each time to avoid overworking the batter, which can make the cake tough.
- Divide batter and tint: Evenly divide the batter into 5 small bowls (about 1 cup or 240ml each). Add approximately ¼ teaspoon of each pastel gel food coloring to each bowl (pink, yellow, mint green, lavender, baby blue) and gently fold until colors are uniform but still soft and pastel. Don’t overmix or the colors will deepen.
- Layer and bake: Pour each colored batter into the prepared pans, layering gently or baking separately in batches if you prefer distinct layers. Bake for 18-22 minutes or until a toothpick inserted in the center comes out clean. If layering in the same pan, bake each layer separately for best results.
- Cool completely: Let the cakes cool in their pans for 10 minutes, then turn them out onto wire racks to cool fully. This prevents sogginess and helps the frosting stick better.
- Prepare buttercream frosting: Beat 1 cup (225g) softened unsalted butter until creamy, about 2 minutes. Gradually add 4 cups (480g) sifted powdered sugar, alternating with 2 tablespoons (30ml) heavy cream, then mix in 1 ½ teaspoons vanilla extract and a pinch of salt. Beat on high for 3-4 minutes until fluffy and spreadable. Add more cream or sugar to adjust consistency.
- Assemble the cake: If you baked layers separately, trim the domed tops with a serrated knife for even stacking. Place the first layer on your serving plate and spread a generous amount of buttercream. Repeat layering with all colors, finishing with a thick coat of frosting on top and sides. Smooth with an offset spatula or create soft swirls for a pretty effect.
- Chill and serve: Refrigerate the cake for at least 30 minutes to let the frosting set. This makes slicing clean and less messy. Bring to room temperature before serving for best flavor.
Cooking Tips & Techniques
Making a pastel rainbow layer cake with creamy buttercream frosting is easier than it looks, but a few tricks can really make your cake shine:
- Don’t overmix your batter: Once you add the flour, mix just enough to combine. Overmixing develops gluten and can lead to a dense cake. I learned this the hard way after a batch that felt more like bricks!
- Use gel food coloring: Liquid dyes can thin your batter and muddy colors. Gel or paste food coloring gives vibrant pastels without changing texture.
- Room temperature eggs and milk: These ingredients mix more evenly, helping the batter come together smoothly. Cold ingredients can cause lumps.
- Trim the cake layers: If your cake domes on top, leveling them before stacking prevents wobbling and uneven frosting layers.
- Beat your buttercream well: Whipping it for several minutes makes it lighter and easier to spread. If it’s too stiff, add a teaspoon of cream at a time until perfect.
- Multi-task by cooling: While the cakes cool, prepare your frosting to save time. Just keep the buttercream covered so it doesn’t dry out.
One thing I often mess up is forgetting to line my pans with parchment and then spending ten minutes scraping stuck bits off. Trust me, that step saves you so much hassle later!
Variations & Adaptations
This pastel rainbow layer cake recipe is incredibly adaptable to fit different tastes and diets:
- Dairy-Free Version: Swap butter for vegan margarine and use almond or oat milk instead of whole milk. Use a dairy-free buttercream made with vegan butter and powdered sugar.
- Gluten-Free Alternative: Use a gluten-free all-purpose flour blend. The texture will be slightly different but still tender and delicious.
- Flavor Twists: Add a teaspoon of almond extract to the batter for a nutty note, or swap vanilla for lemon zest and juice for a citrusy brightness.
- Chocolate Pastel Layers: Mix a tablespoon of cocoa powder into each colored batter for a subtle chocolate twist that pairs beautifully with the buttercream.
- Mini Cake Version: Make mini layers using 4-inch pans for individual pastel delights perfect for parties or gifts.
My personal favorite variation is adding a thin layer of homemade raspberry jam between the layers for a fruity surprise. It cuts through the sweetness and adds a little tart pop that guests love.
Serving & Storage Suggestions
Serve this pastel rainbow layer cake at room temperature for the best texture and flavor. The buttercream frosting softens slightly and becomes silky, making each bite melt in your mouth.
- Pair it with a fresh fruit salad or light bubbly for celebrations.
- A cup of mild coffee or floral tea complements the sweetness beautifully without overwhelming the pastel flavors.
Store any leftovers tightly wrapped in the refrigerator for up to 4 days. To keep it fresh, cover the cake with a cake dome or plastic wrap to prevent drying out. You can also freeze the cake in an airtight container for up to 2 months; thaw overnight in the fridge and bring to room temperature before serving.
Reheating isn’t necessary, but if you want to warm a slice, pop it in the microwave for 10-15 seconds. The buttercream might soften a bit, which can be delightful, but be careful not to melt it completely.
Nutritional Information & Benefits
This pastel rainbow layer cake is a treat, but it also offers some nutritional value from simple ingredients:
- Approximately 350-400 calories per slice (1/12th of the cake), depending on frosting amount
- Contains protein from eggs and butter
- Provides calcium from milk and butter
- Free from artificial preservatives when made from scratch
For those watching carbs or gluten, there are easy substitutions as noted above. The homemade nature means you control sweetness and quality, so you avoid unnecessary additives found in store-bought cakes. I find this recipe hits a nice balance between indulgence and simple ingredients, making it a fun occasional treat for family and friends.
Conclusion
This pastel rainbow layer cake with creamy buttercream frosting is the kind of recipe that makes you feel like a kitchen wizard. It’s colorful, inviting, and honestly, pretty forgiving if life throws you a curveball while baking. Whether you’re celebrating a special moment or just craving a slice of happiness, this recipe delivers without stress.
Feel free to tweak the colors, flavors, or layering to match your style—after all, baking is as much about creativity as it is about precision. I still remember the day I accidentally mixed up my colors and ended up with a marbled surprise that everyone loved. So, go ahead, get a little messy, have fun, and share your pastel masterpiece!
If you try it, please drop a comment below or share your photos—I’d love to see your versions and hear how you made it your own.
Happy baking, and may your kitchen be filled with color and joy!
Frequently Asked Questions
Can I use liquid food coloring instead of gel?
You can, but gel food coloring is better because it doesn’t thin the batter and produces brighter pastel colors. If you only have liquid, use it sparingly to avoid runny batter.
How do I prevent my cake from drying out?
Don’t overbake—check the cake a few minutes before the timer. Also, cool it properly and store leftovers wrapped tightly to retain moisture.
Can I make this cake ahead of time?
Yes! Bake the layers up to 2 days before assembling and keep them wrapped in plastic wrap at room temperature. Frost and assemble on the day of serving for best freshness.
What’s the best way to get even layers?
Use a serrated knife or cake leveler to trim domed tops after baking. This creates flat, even layers that stack beautifully.
Is this recipe suitable for beginners?
Absolutely! The instructions are straightforward, and the equipment needed is basic. Just take your time with coloring and frosting, and you’ll have a stunning cake in no time.
Pin This Recipe!

Perfect Pastel Rainbow Layer Cake Recipe Easy Homemade Buttercream Frosting
A colorful and delicious pastel rainbow layer cake with a soft, tender crumb and creamy buttercream frosting. Perfect for special occasions and easy enough for beginners.
- Prep Time: 20 minutes
- Cook Time: 22 minutes
- Total Time: 1 hour 20 minutes
- Yield: 12 servings 1x
- Category: Dessert
- Cuisine: American
Ingredients
- 2 ½ cups (310g) all-purpose flour, sifted
- 2 ½ teaspoons baking powder
- ½ teaspoon salt
- 1 cup (225g) unsalted butter, softened
- 1 ¾ cups (350g) granulated sugar
- 4 large eggs, room temperature
- 2 teaspoons pure vanilla extract
- 1 cup (240ml) whole milk, room temperature
- Gel food coloring in pastel shades (pink, yellow, mint green, lavender, baby blue) – about ¼ teaspoon each
- 1 cup (225g) unsalted butter, softened (for frosting)
- 4 cups (480g) powdered sugar, sifted
- 2 tablespoons (30ml) heavy cream
- 1 ½ teaspoons pure vanilla extract (for frosting)
- Pinch of salt (for frosting)
Instructions
- Preheat your oven to 350°F (175°C). Grease two 8-inch cake pans and line the bottoms with parchment paper.
- In a medium bowl, sift together flour, baking powder, and salt. Set aside.
- Using an electric mixer, beat butter and granulated sugar on medium speed for 3 to 5 minutes until light and fluffy.
- Add eggs one at a time, beating well after each addition, then mix in vanilla extract.
- Reduce mixer speed to low and alternately add flour mixture and milk in three additions, starting and ending with flour. Mix just until combined.
- Divide batter evenly into 5 bowls. Add about ¼ teaspoon of each pastel gel food coloring to each bowl and gently fold until colors are uniform but pastel.
- Pour each colored batter into prepared pans, layering gently or bake separately in batches. Bake for 18-22 minutes or until a toothpick comes out clean.
- Cool cakes in pans for 10 minutes, then transfer to wire racks to cool completely.
- For frosting, beat butter until creamy. Gradually add powdered sugar alternating with heavy cream, then mix in vanilla extract and salt. Beat until fluffy and spreadable.
- Trim domed tops of cake layers if needed. Assemble cake by layering each colored cake with buttercream between layers and cover top and sides with frosting.
- Chill cake for at least 30 minutes to set frosting. Bring to room temperature before serving.
Notes
Use gel food coloring for vibrant pastel colors without thinning the batter. Room temperature eggs and milk help batter mix smoothly. Don’t overmix batter to avoid dense cake. Trim domed cake tops for even layers. Beat buttercream well for light, spreadable frosting. Chill cake before slicing for clean cuts.
Nutrition
- Serving Size: 1 slice (1/12th of c
- Calories: 375
- Sugar: 38
- Sodium: 210
- Fat: 18
- Saturated Fat: 11
- Carbohydrates: 52
- Fiber: 1
- Protein: 4
Keywords: pastel rainbow cake, layer cake, buttercream frosting, easy cake recipe, colorful cake, birthday cake, homemade cake



