Rainbow Layer Cupcakes: Colorful Homemade Recipe Guide

No need for a pot of gold when you’ve got these cupcakes! These colorful rainbow cupcakes are moist, tender, and topped with a silky buttercream that will brighten any celebration.

Cupcakes are always a crowd-pleaser. If you enjoy these, try other favorites like churro, cannoli, or lemon blueberry cupcakes for more variety.

Rainbow cupcakes on a marble serving platter.

Rainbow Cupcakes With Buttercream Frosting Recipe

These rainbow cupcakes are a fun, festive dessert for birthdays, St. Patrick’s Day, or any time you want a pop of color. The cake is a vanilla base made with buttermilk for extra moisture and tenderness. To get the rainbow effect, divide the batter, tint each portion, and layer them in the liners. Finish with a smooth homemade buttercream and a candy rainbow for a cheerful presentation.

Rainbow Cupcake Ingredients

Most ingredients are pantry staples. Exact quantities are listed in the recipe card below.

  • Cake Flour: Produces a fine, tender crumb.
  • Granulated Sugar: Sweetens the cake.
  • Baking Powder and Baking Soda: Ensure proper rise.
  • Salt: Enhances flavor.
  • Buttermilk: Adds acidity for moist, tender cupcakes.
  • Milk: Helps the batter come together smoothly.
  • Clear Vanilla: Keeps colors bright—avoid regular vanilla, which can add a yellow tint.
  • Vegetable Oil: Keeps the cupcakes moist.
  • Egg Whites (4): Whipped and folded in for a light, airy texture.

Buttercream Frosting

  • Unsalted Butter (room temperature): The base of the frosting.
  • Powdered Sugar: For a smooth, sweet finish.
  • Vanilla Extract: Adds depth of flavor.
  • Salt: A pinch enhances balance.
  • Milk: Adjusts consistency and creaminess.
  • Rainbow Ribbon Candy: I used Airhead Extremes for decoration.

How to Make Rainbow Cupcakes

  1. Preheat and prepare pans: Preheat oven to 350°F. Spray a muffin tin with pan spray and line with cupcake liners.
  2. Whisk dry ingredients: In a medium bowl, whisk together cake flour, granulated sugar, baking powder, baking soda, and salt.
  3. Combine wet ingredients: Add buttermilk, milk, clear vanilla, and oil to the dry ingredients. Beat with a paddle attachment or hand mixer until just combined. In a separate bowl, whip the egg whites to medium-stiff peaks, then gently fold them into the batter.
  4. Color and layer: Divide the batter into six small bowls. Tint each portion a different color (red, orange, yellow, green, blue, purple). Layer about 1 teaspoon of each color into the cupcake liners until they are two-thirds full.
  5. Bake: Bake for 20–25 minutes, or until a toothpick inserted in the center comes out clean and the tops spring back when lightly pressed. Cool completely before frosting.

Making the Buttercream Frosting

  1. Beat butter: In the mixer bowl, beat room-temperature butter with the paddle attachment for 1–2 minutes until smooth and creamy.
  2. Add sugar and flavor: Add powdered sugar and mix on low until mostly incorporated, scraping the bowl as needed. Add vanilla and salt, then beat on medium-high for 2–3 minutes until light.
  3. Adjust texture with milk: Add milk one tablespoon at a time on medium-low, scraping the bowl, then beat on medium-high for 2 minutes until the frosting is white and fluffy.
  4. Color frosting: Reserve about 1 cup of frosting in a small bowl to stay white. Tint the remaining frosting a light blue with 1–2 drops of blue food coloring.
  5. Decorate: Use a large round piping tip to frost the cupcakes with the light blue frosting. Cut rainbow ribbon candy into short strips and curve them into rainbow shapes on top of each cupcake. Pipe white frosting at the base of each candy rainbow to form clouds using a small round tip.
Process shots of layering cupcakes with different colored batter.

Tips for Making the Best Cupcakes

Keep these simple tips in mind for perfect results.

  • Egg whites: Whip to medium peaks and fold gently to keep the batter airy.
  • Don’t overmix: Overmixing develops gluten and makes cupcakes dense.
  • Fill liners carefully: Because you’re layering colors, add small amounts so liners are no more than two-thirds full to prevent overflow.
A rainbow cupcake cut in half.

Storing Your Cupcakes

Store unfrosted or fully frosted cupcakes in an airtight container at room temperature for up to 3 days. Keep them covered to preserve freshness.

Closeup of a cupcake cut in half.

More Amazing Cupcake Recipes

If you love cupcakes, try a few more variations for parties and gatherings. These recipes are easy and taste far better than boxed cake.

img 162402 5

Desserts

Strawberry Cupcakes

1 hour

img 162402 6

Desserts

The BEST White Cupcakes

42 minutes

img 162402 7

Desserts

Lemon Cupcakes

1 hour

img 162402 8

Rainbow Cupcakes

No need for a pot of gold when you’ve got these cupcakes around! These colorful rainbow cupcakes are perfectly moist and topped with amazing buttercream.
Prep Time: 45 minutes
Cook Time: 35 minutes
Total Time: 1 hour 20 minutes
Servings: 12 Cupcakes

Ingredients

  • 2 ¼ Cups Cake Flour
  • 1 ½ Cups Granulated Sugar
  • 1 Tablespoon Baking Powder
  • ½ Teaspoon Baking Soda
  • ½ Teaspoon Salt
  • 1 Cup Buttermilk
  • ¼ Cup Milk
  • 2 Teaspoons Clear Vanilla
  • ½ Cup Vegetable Oil
  • 4 Egg Whites

Buttercream

  • 1 Cup Unsalted Butter, room temperature
  • 4 Cups Powdered Sugar
  • 1 Tablespoon Vanilla Extract
  • ½ Teaspoon Salt
  • 3 Tablespoons Milk
  • Rainbow Ribbon Candy (such as Airhead Extreme)

Instructions

  • Preheat oven to 350°F. Spray a muffin tin with pan spray and line with cupcake liners.
  • Whisk together cake flour, sugar, baking powder, baking soda, and salt in a medium bowl.
  • Add buttermilk, milk, clear vanilla, and oil to the dry ingredients and beat just until combined. Whip egg whites to medium-stiff peaks and gently fold into the batter. Divide the batter into six bowls and tint each one a different color: red, orange, yellow, green, blue, purple.
  • Layer about 1 teaspoon of each color into the liners until two-thirds full. Bake 20–25 minutes or until a toothpick comes out clean. Cool completely.

Buttercream

  • Beat the butter for 1–2 minutes until smooth. Add powdered sugar on low until incorporated, then add vanilla and salt and beat on medium-high for 2–3 minutes.
  • Add milk 1 tablespoon at a time on medium-low, scrape the bowl, then beat on medium-high for 2 minutes until white and fluffy.
  • Reserve about 1 cup of frosting white. Tint the remaining frosting light blue with 1–2 drops of blue coloring.
  • Frost cupcakes with a large round tip. Cut ribbon candy into 3-inch strips, shape into rainbows, and place on top. Pipe white frosting at the base of each rainbow to form clouds.

Nutrition

Calories: 502 kcal
Carbohydrates: 84 g
Protein: 5 g
Fat: 17 g

Nutrition information is an estimate.

Additional Info

Course: Dessert