Thoughtfully curated baking recipes, fresh inspiration.Explore the cookbook collection

Bright Rainbow Layer Cupcakes

BakeryDiary is a recipe curation and editorial platform. We research and curate recipes from public sources, considering ratings, reviews, comments, and feedback. We then refine and present them clearly for home cooks. We are committed to an ad-free, focused experience that makes discovering and preparing recipes easier.

Rainbow Cupcakes are a cheerful, colorful dessert that brings a little magic to birthdays, holiday gatherings, school celebrations, and family parties.

Each cupcake features beautiful layers of rainbow-colored cake, creating a bright surprise when you take a bite.

Topped with fluffy buttercream frosting and an optional candy rainbow nestled between sweet frosting clouds, these treats are as delightful to look at as they are to eat.

The cupcake batter starts with white cake mix, making preparation simple while allowing the vibrant colors to stand out.

Sour cream and milk add moisture, while eggs and vegetable oil help create a soft, tender crumb.

Food coloring transforms the pale batter into brilliant shades of blue, green, yellow, and other rainbow hues.

Layering each color carefully inside the cupcake liners creates distinct stripes that reveal themselves when the cupcakes are cut or bitten into.

The homemade buttercream frosting adds a creamy, sweet finish to every cupcake.

Made with butter, powdered sugar, milk, vanilla extract, and coconut extract, it has a light, fluffy texture that complements the tender cake.

The subtle coconut flavor adds a pleasant twist, although using vanilla extract alone is an easy alternative.

For an extra-special presentation, blue frosting can form the base for white frosting clouds and colorful candy rainbows.

Despite their impressive appearance, these cupcakes rely on straightforward ingredients and simple decorating techniques.

They are a wonderful baking project for families, especially when children can help choose colors and layer the batter.

Whether served at a birthday party or displayed on a festive dessert table, Rainbow Cupcakes bring vibrant colors, classic cake flavor, and plenty of fun to any occasion.

Lawrence D. Smith

Bright Rainbow Layer Cupcakes

These Rainbow Cupcakes feature soft, moist cake made from white cake mix, sour cream, milk, eggs, and vegetable oil. The batter is divided, tinted in multiple colors, and layered in cupcake liners before baking.
Each cupcake is finished with fluffy homemade vanilla-coconut buttercream, with optional rainbow sprinkles or candy rainbows tucked into frosting clouds for a playful, colorful presentation.
Prep Time 10 minutes
Cook Time 30 minutes
Total Time 40 minutes
Servings: 18 Cupcakes
Course: Dessert
Cuisine: American

Ingredients
  

For the Rainbow Cupcakes
  • – 1 box white cake mix
  • – 2 eggs
  • – 1 cup sour cream
  • – 1/2 cup milk
  • – 1/3 cup vegetable oil
  • – Food coloring in 5 or 6 desired colors
For the Buttercream Frosting
  • – 3 sticks butter 1 1/2 cups, at room temperature
  • – 6 cups powdered sugar
  • – 5 tablespoons milk adding gradually as needed
  • – 1/2 teaspoon vanilla extract
  • – 1/2 teaspoon coconut extract or substitute additional vanilla extract
  • – A dash of salt
Optional Decorations
  • – Rainbow-colored sprinkles
  • – Airheads Xtremes candy strips for making rainbow arches
  • – Additional blue and white frosting for the double-rainbow cloud decoration

Equipment

  • Mixing bowl
  • Electric hand mixer or stand mixer
  • Rubber spatula
  • Measuring cups and spoons
  • Small bowls for dividing and coloring the batter
  • Standard 12-cup muffin or cupcake pan
  • Paper cupcake liners
  • Toothpick for checking doneness
  • Small bowl of water for spreading the batter
  • Piping bag or resealable plastic bag for frosting
  • Scissors for cutting the candy rainbow, if using

Method
 

  1. Prepare the Cupcake Batter: Combine the white cake mix, eggs, sour cream, milk, and vegetable oil in a mixing bowl. Mix for approximately 30 seconds, just until the ingredients are incorporated.
    Scrape down the sides of the bowl, then beat at medium-high speed for 3 minutes until the batter is well combined.
  2. Divide the Batter: Separate the batter evenly among 5 or 6 small bowls, depending on how many colors you plan to use. If using five colors, approximately 1 cup of batter per bowl should be sufficient.
  3. Color Each Portion: Add food coloring to each bowl and mix until the desired shades are achieved. Gel food coloring is a useful choice because it produces vibrant colors without significantly thinning the thick batter.
  4. Prepare the Cupcake Pan: Line a standard cupcake pan with paper liners. Keep a small bowl of water nearby to help spread the batter smoothly without it sticking to your fingers.
  5. Layer the Colored Batter: Spoon the first color into each cupcake liner and gently spread it into an even layer using a finger dipped in water. Add the remaining colors one at a time, spreading each layer before adding the next.
    For five colors, approximately 2 teaspoons of each color per cupcake worked well in the original method. Adjust the amount to suit your liners and the number of colors, keeping the layers even.
  6. Bake the Cupcakes: Bake according to the directions on the white cake mix package. Check for doneness by inserting a toothpick into a cupcake; it should come out dry when the cake is ready.
  7. Cool the Cupcakes: Allow the cupcakes to cool completely before applying the frosting. This helps prevent the buttercream from softening or melting against the warm cake.
  8. Beat the Butter and Sugar: Place the room-temperature butter and powdered sugar in a mixing bowl. Beat until the mixture becomes light and fluffy.
  9. Flavor the Frosting: Add the vanilla extract, coconut extract, and a dash of salt. Mix until the ingredients are evenly incorporated.
  10. Adjust the Frosting Consistency: Gradually add the milk, beating as you go. You may not need all 5 tablespoons. Continue beating for 2–3 minutes, until the frosting is fluffy and suitable for spreading or piping.
  11. Frost and Decorate: Spread or pipe the buttercream onto the completely cooled cupcakes. For a simple decorating option, spoon the frosting into a resealable plastic bag, snip off one corner, and pipe it onto the cupcakes. Finish with rainbow sprinkles if desired.
  12. Create the Double-Rainbow Decoration: Reserve approximately 1/3 cup of white frosting and tint the remaining frosting blue. Frost the cupcakes with the blue buttercream. Place the reserved white frosting in a resealable bag and pipe cloud shapes on top.
    Cut an Airheads Xtremes candy strip in half and position it in the frosting clouds to create a rainbow arch, pressing the ends into the clouds so the candy stays upright.

Notes

  • Cake Mix: Use only the white cake mix and the additional ingredients listed in this recipe. Do not follow the cake mix package’s ingredient instructions; use the package directions for baking.
  • Food Coloring: Gel food coloring is recommended for achieving vibrant rainbow shades without making the batter too thin.
  • Batter Portions: Divide the batter as evenly as possible among five or six bowls. Five colors require approximately 1 cup of batter per bowl.
  • Even Layers: The batter is thick, so spread each colored portion gently before adding the next. Dipping your finger in water helps prevent the batter from sticking.
  • Portion Control: For five colors, approximately 2 teaspoons of each color per cupcake worked well in the original recipe. Adjust portions as needed to avoid overfilling the liners.
  • Baking Time: Follow the baking temperature and timing specified on the cake mix package, checking doneness with a toothpick.
  • Frosting Consistency: Add the milk gradually to the buttercream. You may not need the entire amount to achieve a light, fluffy consistency.
  • Flavor Variation: Replace the coconut extract with additional vanilla extract if you prefer a classic vanilla buttercream.
  • Cooling: Let the cupcakes cool completely before frosting them.
  • Decorating: For the double-rainbow design, press the candy ends securely into the white frosting clouds to help support the arches.
  • Storage Note: Keep the decorated cupcakes in a suitable covered container. The original recipe notes that the rainbow decorations can hold up well when refrigerated.

Chef’s Secret

The secret to beautifully defined rainbow layers is controlling the amount of batter used for each color and spreading every layer evenly before adding the next.

Because this cupcake batter is thicker than many standard cake batters, simply spooning the colors into the liners may leave gaps or uneven stripes.

Keep a small bowl of water beside your workspace and lightly wet your fingertip before smoothing each portion.

This simple technique helps the batter glide into an even layer without clinging to your skin.

For consistent results across all 18 cupcakes, measure the first color into each liner, then repeat with the remaining colors.

Using approximately 2 teaspoons per color for a five-color design provides a helpful starting point, although the amount may need adjusting to suit your liners.

Serving Suggestions

Serve Rainbow Cupcakes on a colorful dessert platter at birthday parties, family celebrations, school events, or holiday gatherings.

Rainbow sprinkles add extra color and a playful finishing touch, while the blue frosting, white clouds, and candy arches create an eye-catching centerpiece.

For a coordinated dessert table, pair the cupcakes with fresh strawberries, blueberries, grapes, or a bowl of mixed fruit to provide a refreshing contrast to the sweet buttercream.

They also work well alongside simple cookies, bite-sized brownies, or vanilla ice cream for a more elaborate dessert spread.

For children’s parties, arrange the cupcakes in rainbow color order or display them on a tiered stand to highlight their layered interiors.

If serving the double-rainbow version, position the candy decorations just before presentation when practical, and keep the cupcakes protected until serving to help preserve their appearance.

Conclusion

Rainbow Cupcakes combine soft, moist cake, vibrant layers of color, and fluffy homemade buttercream in a festive dessert that is as enjoyable to make as it is to serve.

With a simple cake-mix base and an easy layering technique, you can create impressive cupcakes without complicated baking methods.

Finish them with rainbow sprinkles for a classic look or add blue frosting clouds and candy arches for an extra-magical presentation.

These cheerful cupcakes are a delightful choice for birthdays, celebrations, and any occasion that calls for a colorful homemade treat.

Leave a Comment

Recipe Rating