Rainbow Cupcakes are bright, colorful treats made with layered cake batter and fluffy frosting. These fun desserts add a cheerful touch to any celebration or gathering.

Rainbow Cupcakes cut in half.
Want to save this recipe?

Rainbow Cupcakes are a fun and colorful dessert that brings joy to any occasion. With vibrant layers of cake in every bite and a swirl of fluffy frosting on top, these cupcakes are as delightful to look at as they are to eat.

Whether you’re baking for a birthday party, classroom celebration, or just because, rainbow cupcakes are an easy way to add some bright, sweet magic to your table.

This is a fun treat for St. Patrick’s Day or a birthday party because it is so fun and festive.

Why This Recipe Works

  • Bright and colorful: The vibrant layers make each cupcake a fun visual surprise.
  • Kid-friendly fun: A great recipe to make with kids. They love mixing and layering the colors.
  • Festive for any occasion: Great for birthdays, classroom parties, or themed celebrations.
  • Simple ingredients: Uses a basic cupcake batter and food coloring. It’s easy and accessible.
  • Customizable: Switch up the colors, frosting, or sprinkles to match any theme or holiday.
  • Guaranteed smiles: These cupcakes are a hit with both kids and adults every time.

Ingredients

Ingredients for recipe: powdered sugar, cake mix, sprinkles, food coloring, oil, butter, eggs and pudding.

Cupcakes

  • White Cake Mix. Any brand of box mix is fine but make sure to use white cake mix so the color is vibrant.
  • Instant Vanilla Pudding Mix. Just use the mix and do not prepare it based on the box.
  • Rainbow Colors of Gel Food Coloring. Choose any colors you like.

Icing

  • Unsalted Butter. Softened at room temperature so the icing will be smooth.
  • Clear Pure Vanilla Extract. It’s best to use clear so the icing stays pure white.
  • Confectioners Sugar. The powdered sugar should be sifted to remove any lumps.
  • Rainbow Sprinkles. These make the cupcakes so festive.

Scroll to see the full recipe and ingredients in the recipe card.

Variations

  • Store bought icing. You don’t have to make homemade icing. You can buy icing and place in piping bags to decorate the cupcakes.
  • Topping. Another fun idea is to use airheads candy rainbow cut into pieces.
  • Frosting. We also love Homemade Cream Cheese Frosting Recipe.

Step By Step Instructions

  • Step 1. Preheat the oven. First, preheat the oven to 350 degrees F. While the oven is warming up, line a muffin pan with 12 paper cupcake liners. 
Mixing bowl with  batter combined.

Step 2. Get out a large bowl. You will need to use an electric mixer. You can use a handheld mixer or a stand mixer to beat the dry ingredients, water, oil, eggs and pudding mix on medium speed. The flour mixture should be smooth and creamy.  

Batter divided into bowls with food coloring.

Step 3. Divide the batter into 6 small bowls. Then use the gel food coloring to dye each bowl of icing a different color of the rainbow.  I used red, orange, yellow, green, blue and purple.  

Batter piped into layers in each cupcake liner.

Step 4. Put each color batter in a ziplock bag. Cut off a small piece of 1 of the corners and pipe layers of the batter into the cupcake tins. I started with purple, then blue, then green, then yellow, then orange and finally red. 

Cupcakes baked and cooling.

Step 5. Bake the cupcakes for 15 to 18 minutes or until a toothpick inserted into the middle comes out clean.  Then allow to cool completely. 

Mixing bowl with frosting ingredients.

Step 6. While the cupcakes cool, make the vanilla buttercream frosting. Use a medium bowl to cream the butter until smooth. We used a stand mixer, but you can use a hand mixer as well. Add the confectioners’ sugar one cup at a time using low speed. Then stir in the vanilla and milk.  Beat until combined and fluffy.

Cupcakes topped with frosting and sprinkles.

Step 7. Decorate the cupcakes. Use a piping bag with a star tip to decorate the cupcakes with buttercream frosting.  Finally, top with the rainbow sprinkles. 

Recipe Tips

  • Use Ziploc bags for batter: Transferring your colored batter into Ziploc bags makes layering much easier and less messy. Simply snip a corner off each bag and pipe the colors into the cupcake liners. It also helps keep the colors clean and separated without mixing or smudging.
  • Choose clear vanilla extract: Using clear vanilla instead of traditional dark extract will help keep your frosting bright white. Ideal if you’re going for a cloud-like look or adding vibrant decorations.
  • Whip your frosting well: Beat the frosting until it’s light and fluffy, like a cloud. This gives it a beautiful texture and makes it easier to pipe onto your cupcakes.
  • Layer batter carefully: Avoid swirling or mixing the colors together. Pipe or spoon each color directly on top of the last, gently smoothing if needed. This keeps the layers bold and distinct once baked.
  • Try whipped cream topping: For a lighter alternative to frosting, use homemade whipped cream made with heavy cream. Piped on top, it looks like fluffy clouds and pairs perfectly with the bright cupcakes.
  • Add sprinkles for extra fun: Rainbow sprinkles are a festive finishing touch. Use what you have on hand, or match them to your party theme or color scheme.
  • Play with color themes: While traditional rainbow colors are fun, you can easily swap in team colors, holiday shades, or party-themed palettes. The possibilities are endless!
  • Use gel food coloring: For the most vibrant layers without thinning your batter, opt for gel food coloring instead of liquid.
  • Don’t overfill liners: Only fill each cupcake liner about ¾ full to avoid overflowing and losing the layered effect.

Storage

Room temperature: Store unfrosted cupcakes in an airtight container at room temperature for up to 2 days.

Refrigerate if frosted: If the cupcakes are frosted (especially with whipped cream or cream cheese frosting), keep them refrigerated in a sealed container. Let them come to room temperature before serving for the best texture.

Freezing: You can freeze unfrosted cupcakes for up to 2 months. Wrap each one individually in plastic wrap, then place in a freezer-safe bag or container. Thaw at room temperature before frosting.

Avoid moisture: Make sure cupcakes are completely cooled before storing to prevent condensation from making them soggy.

rainbow cupcakes with icing.

More Rainbow Desserts

We’d love to hear what you think! If you try this Rainbow Cupcakes recipe, be sure to leave a comment and a star rating to let us know how it turned out.

Rainbow cupcakes with rainbow sprinkles.

Rainbow Cupcakes

4.84 from 6 votes
These spectacular Rainbow Cupcakes will be the hit of the party. They are so bright and colorful while being absolutely delicious too.
Prep Time 15 minutes
Cook Time 15 minutes
Total Time 30 minutes
Servings 12
Cuisine American
Course Dessert
Calories 368

Ingredients

Want to save this?
Just enter your email and I’ll send it right to you, plus great new recipes weekly!

Instructions

  • Preheat the oven to 350 degrees F and line a muffin tin with 12 paper cupcake liners.
  • In a large bowl, beat with a hand held mixer or a stand up mixer the cake mix, water, oil, eggs and pudding mix until the mixture is smooth and creamy.
  • Then divide the batter evenly into 6 small bowls.  Use the gel food coloring to dye each bowl of icing a different color of the rainbow.  I used red, orange, yellow, green, blue and purple.
  • Place each color of the batter in a ziplock bag and cut off a small piece of 1 of the corners. Gently pipe layers of the batter into the cupcake tins. I started with purple, then blue, then green, then yellow, then orange and finally red.  Make sure to layer the batter on top of each other as evenly as possible and do not swirl the colors together.
  • Bake for 15-18 minutes until a toothpick inserted into the middle of the cupcakes comes out clean.  Then allow the cupcakes to cool completely.
  • FOR THE ICING:
  • In a large bowl cream the butter until smooth.
  • Beat in the confectioners sugar (one cup at a time) on low speed until well combined.
  • Stir in vanilla and milk.  Whip until thoroughly mixed and fluffy on a medium-high setting.
  • Then icing the cooled cupcakes.  I used a star tip with a decorator’s bag to decorate the cupcakes.  Then top the cupcake icing with the rainbow sprinkles.
  • Serve and enjoy!

Nutrition Facts

Calories 368kcal, Carbohydrates 35g, Protein 3g, Fat 24g, Saturated Fat 12g, Polyunsaturated Fat 4g, Monounsaturated Fat 6g, Trans Fat 1g, Cholesterol 82mg, Sodium 452mg, Potassium 50mg, Fiber 1g, Sugar 18g, Vitamin A 536IU, Calcium 109mg, Iron 1mg

Pin This Now to Remember It Later

Pin Recipe

Share this recipe!

PinYummly

About the Author

Hi, I’m Carrie. Welcome to Desserts on a Dime!

I’m on a mission to help you create delicious desserts on a budget and do not require a ton of time. Together, we are going to make something sweet that the entire family will love!

4.84 from 6 votes (6 ratings without comment)

Leave A Review

Your email address will not be published. Required fields are marked *

Recipe Rating