How to Make Colorful Rainbow Cupcakes (With Video Tutorial)

These Rainbow Cupcakes start with a simple boxed white cake mix, which is divided, colored, and layered to create bright rainbow interiors, finished with a light whipped cream cheese frosting.

Rainbow cupcakes with whipped cream cheese frosting

Bright, layered colors, rounded tops, and a fluffy cream cheese frosting make these cupcakes a cheerful treat for celebrations like St. Patrick’s Day or any colorful gathering.

Colorful layered rainbow cupcakes

When you slice a cupcake and see distinct, even layers and a nicely domed top instead of a sunken center, you know you’ve nailed the technique.

Sliced rainbow cupcake showing layers

Confetti or sequin sprinkles add a playful finish. I prefer small round sprinkles for a classic look, but any colorful sprinkle works well.

Cupcake topped with sequins sprinkles

Below I’ll walk through the easy steps and two key tricks to bake cupcakes with perfectly rounded tops and clean rainbow layers.

Tray of rainbow cupcakes

These cupcakes use a boxed white cake mix for convenience. Prepare the mix according to the package directions—if the option exists, use egg whites rather than whole eggs for a lighter crumb. Once mixed, divide the batter evenly into six bowls and tint each portion with food coloring or gel to get red, orange, yellow, green, blue, and purple.

Bowls of rainbow cupcake batter

To get even layers, transfer each color into a disposable sandwich bag, snip a small corner, and pipe into the liners. Cut only one bag at a time so the batter stays contained. If you prefer less cleanup, spoon each color into liners and smooth layers with your finger.

Rainbow batter in sandwich bags

Pipe the batter into paper-lined cupcake tins in rainbow order: red, orange, yellow, green, blue, purple. For tidier edges, pipe the batter against the liner first, then fill the center. Smooth each layer gently before adding the next. A helpful technique is to pipe all of one color across the batch, then move to the next color to keep layers consistent.

Layering colored batter in cupcake liners

Two tricks for perfect cupcake domes:

  • Fill each liner about 2/3 to 3/4 full. I recommend making 18 cupcakes even if the mix claims 24—this gives you taller, neater domes.
  • Bake at a higher temperature: 400°F (about 200°C) for approximately 11–13 minutes. The hotter oven encourages the cakes to rise quickly, setting the dome before the batter can collapse. Start checking at 11 minutes—cakes should spring back when touched lightly.

Baking this way also means you need less frosting to achieve a tall, attractive finish.

Baked rainbow cupcakes ready to frost
Rainbow Cupcakes plated
4.80 from 10 ratings

Rainbow Cupcakes

Simple boxed white cake mix, divided and colored, layered into rainbow cupcakes with whipped cream cheese frosting.
Yields 18 cupcakes

Ingredients

  • 15.25 oz (432 g) box white cake mix
  • Ingredients called for on the cake mix box (use egg whites if available; example: 1 1/4 cups water, 1/3 cup oil, 4 egg whites)
  • Food coloring or gel: red, orange, yellow, green, blue, purple
  • 1 recipe The BEST Cream Cheese Frosting
  • 4 oz (113 g) whipped topping (about half an 8 oz tub of Cool Whip)
  • Rainbow sequins/confetti sprinkles

Instructions

  1. Prepare the cake mix according to box directions, using egg whites if offered. Divide batter evenly into six bowls.
  2. Tint each portion to make red, orange, yellow, green, blue, and purple.
  3. Line cupcake pans with 18 paper liners.
  4. Place each colored batter into a sandwich bag and snip a corner for piping. Cut one bag at a time to avoid spills.
  5. Pipe each color into the liners in rainbow order (red → purple) or reverse if you want red on top. Pipe against the liner first, then fill the center. Smooth each layer before adding the next. Tip: pipe all of one color across the batch, then move to the next.
  6. Bake at 400°F (200°C) for 11–13 minutes, checking at 11 minutes. Cakes should spring back when gently touched.
  7. Make the cream cheese frosting and fold in half of an 8 oz tub of whipped topping with a handheld mixer to lighten it. Fit a piping bag with a coupler (no tip) and fill the bag.
  8. Pipe frosting from the outer edge inward, finishing in the center. Top with rainbow sequins or sprinkles.

Notes

  • Store cupcakes in an airtight container in the refrigerator for up to 4–5 days.
  • To save time, spoon colored batters into liners and smooth layers with your finger instead of piping.

Update: Photos were updated to show an alternate color order with red on top and purple on the bottom; either arrangement looks great—choose the look you prefer.

Rainbow cupcake update photo 1
Rainbow cupcake update photo 2
Rainbow cupcake update photo 3