Two words: rainbow cupcakes.
While the festive colors may have been what caught your eye, I guarantee it’s the sugar cookie-esque taste that will grab your taste buds’ attention. Cupcakes that taste like sugar cookies? Yes indeed!
These light, buttery, impossibly moist cupcakes star six layers of rainbow colors that bake up into a centerpiece-worthy treat perfect for birthdays, St. Patrick’s Day, and any other ordinary or extraordinary occasion in need of a little color and a whole lot of flavor.
Top off the treats with pillowy buttercream frosting or opt for tangy cream cheese frosting then complete your cupcake creations with a shower of rainbow sprinkles. And if you love these rainbow cupcakes and are looking for even more of a wow factor in a fraction of the time, don’t miss my quick-fix Rainbow Cake!
Craving more? Subscribe to Just a Taste to get new recipes and a weekly newsletter delivered straight to your inbox! And stay in touch on Facebook, Twitter, Pinterest and Instagram for all of the latest updates.
Ingredients
For the cupcakes:
- 3 cups all-purpose flour
- 2 1/2 teaspoons baking powder
- 1/2 teaspoon salt
- 1 cup (2 sticks) unsalted butter, softened
- 1 3/4 cups sugar
- 2 large eggs
- 1 1/2 teaspoons vanilla extract
- 1 1/2 cups whole milk
- Food coloring (red, orange, yellow, green, blue and purple)
- Rainbow sprinkles
For the frosting:
- 1 cup (2 sticks) unsalted butter, softened
- 2 teaspoons vanilla extract
- 2 Tablespoons heavy cream
- 3 cups powdered sugar, sifted
- Equipment: Cupcake wrappers
Instructions
Make the cupcakes:
- Preheat the oven to 350°F. Line cupcake tins with wrappers.
- In a medium bowl, sift together the flour, baking powder and salt.
- In the bowl of a stand mixer fitted with the paddle attachment, cream together the butter and sugar until light and fluffy. Add the eggs, one at a time, mixing between each addition then add the vanilla and mix until combined.
- Alternately add the flour mixture and milk to the stand mixer in three increments each, beginning and ending with the flour mixture and beating between each addition. Divide the batter into six bowls then dye each with the red, orange, yellow, green, blue and purple food coloring.
- Spoon a portion of the purple batter into each cupcake cup, top it with the blue, then green, yellow, orange and red, careful not to mix any of the layers. (Alternately, transfer each color into sealable plastic bags and pipe the batter into the cups.) Bake the cupcakes for 15 to 18 minutes until a toothpick inserted comes out clean. Remove the cupcakes from the oven and transfer them to a rack to cool completely while you make the frosting.
Make the frosting:
- In the bowl of a stand mixer fitted with the paddle attachment, cream the butter until it is light and fluffy. Add the vanilla extract and beat until combined then add half of the powdered sugar and continue beating until well combined.
- Add the heavy cream and continue beating and then add the remaining powdered sugar and beat until the frosting is thick and creamy. (See Kelly's Notes.)
- Once the cupcakes have cooled completely, pipe or spread the frosting onto them then top with rainbow sprinkles and serve.
Kelly's Notes:
- Beating the frosting in between each addition of the powdered sugar lightens the color of the frosting and will make it more white in color (rather than yellow).
- If the frosting is too thin, add additional sifted powdered sugar ¼ cup at a time, or if it’s too thick, add additional heavy cream 1 teaspoon at a time until the frosting reaches your desired consistency.
- ★ Did you make this recipe? Don't forget to give it a star rating below!
Nutrition
Shoutout
Did you try this recipe?
Share it with the world! Mention @justataste or tag #justatasterecipes!
Recipe by Kelly Senyei of Just a Taste. Please do not reprint this recipe without my permission. If you'd like to feature this recipe on your site, please rewrite the method of preparation and link to this post as the original source.
I made this recipe for my son’s 18th birthday. We used to make rainbow cupcakes when he was little using a box cake mix and store bought frosting. I wanted to do something special and nostalgic – These were amazing! So easy to make and yummy. They got 2 thumbs up from the birthday boy when we taste tested one.
LOVE this, Jenna! I’m so glad you enjoyed the recipe. Happy 18th birthday to your son!
Can I store the left over batter ?? If yes how and how many days can it last ??
Hi Smita – I wouldn’t recommend it because the leaveners will lose their potency so the batter will get flat.
My granddaughters favorite color is rainbow…she had a blast helping make these today!! Easy and tasty!!
Yay! I’m so glad you and your granddaughter enjoyed the recipe, Kirsten!
How much of each makes a cupcake? Mine came out giant and heavy!
Hi Anna – Did you use a standard muffin pan?
Do you use gel food coloring?
Yes! I prefer gel food coloring :)
Realy loved the recipe
I’m so happy to read this, Anna Maria!
Yes!
Happy to report back they turned out light and moist.
Yay! I’m so thrilled you enjoyed the recipe, Nancy!
They look delish. But I could have made 18. I thought it was too much batter for 14 cupcakes when I was filling tins. I have cooked for 18 min and still runny. Now have to keep checking at 3min intervals. (My oven is accurate for most baking/cooking I do) fingers crossed they work out. Albeit once iced no child will turn one away I’m sure.
Please give recipe in lbs and ozs / grams
They look great!
Hi Denise! Our recipes are written in the Imperial format, so feel free to use an online conversion program for metric. :)
Hi Kelly, I’m so glad I stumbled on this recipe :) Trying to make 24 cupcakes by Friday. What color of liner/wrapper did you use to make the color stand out so boldly? I’m assuming white. Thanks for your input!
Hi Ana – Yes, white! I hope you enjoy the recipe :)
The plastic baggie is a fantastic idea. My MIL used to decorate cakes and her frosting was incredibly light and fluffy. She used the Wilton buttercream recipe, but after mixing the frosting she whipped it on high in her Kitchenaid for 5 minutes. The frosting was airy like a marshmallow based frosting, but it still piped beautifully. I tried the technique with all butter buttercream, and it worked perfectly. The frosting isn’t overly sweet, and it also freezes well, although it’s not quite a fluffy when thawed. I love flavoring my frosting with vanilla and real almond extract that has bitter almond oil in it. It gives the frosting a wonderful flavor, but it doesn’t taste like almond. I also use salted butter in add a pinch of salt because I like how the slightly salty taste balances out the sugar. I love buttercream frosting, but it can be too sweet. Whipping it then adding almond makes it taste even better.
Your baggie trick is similar to what I do for decorating. I use a ziplock bag and put the coupler on the inside of one corner then cut a small hole. It works just like a piping bag, and I already have ziplock bags in the kitchen. I did this once when I had run out of plastic piping bags, and I’ve never gone back. For storage I just put the filled bag inside another ziplock bag and refrigerate or freeze. Even smaller ziplock bags work. I like the zip top kind because they don’t pop open as easily as the others.
Hi Kelly made these cupcakes yesterday ,your recipe is a sure deal …Thank you so much .I am not going to cruise around the net for such recipe# sticking with this one .I even shared it with my friends here in Zimbabwe .
Awesome! I’m so thrilled you enjoyed the recipe, Julie!
Hi Kelly the cup is us or UK ….can I have the merserments in gr pls
Hi Diane – US cup! I hesitate to provide the amounts in grams for this recipe because I don’t use grams when I bake, and I’m concerned if I tried to convert everything just using an online converter, it wouldn’t be accurate.
Please could you say in grams or ounces HOW MUCH IS A CUP. ???? I have made many cakes from recepies using an official set of CUP MEASURES and they do not always work out correctly. I would love to bake your rainbow cupcakes but not sure
if my CUP MEASURES are correct
Hi Olive – I hesitate to provide the amounts in grams for this recipe because I don’t use grams when I bake, and I’m concerned if I tried to convert everything just using an online converter, it wouldn’t be accurate. Here’s a helpful video for How to Accurately Measure Flour: https://www.justataste.com/video-how-to-accurately-measure-flour/
Tried this for my niece’s birthday and she loved it! May i know if the recipe can be used as a cake instead of cupcake?
Hi there! Here’s my version of this recipe made into a cake: https://www.justataste.com/video-easy-rainbow-cake-recipe/ :)
This was the best food ever
I’m so thrilled you enjoyed the recipe, Hannah!