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.

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.

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.

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

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

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.

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.

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.

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.


Rainbow 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
- Prepare the cake mix according to box directions, using egg whites if offered. Divide batter evenly into six bowls.
- Tint each portion to make red, orange, yellow, green, blue, and purple.
- Line cupcake pans with 18 paper liners.
- Place each colored batter into a sandwich bag and snip a corner for piping. Cut one bag at a time to avoid spills.
- 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.
- Bake at 400°F (200°C) for 11–13 minutes, checking at 11 minutes. Cakes should spring back when gently touched.
- 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.
- 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.


