I often bake a double batch of these cupcakes and freeze the unfrosted ones, tightly wrapped, for up to a month. Having these Lucky Rainbow Cupcakes on hand means you’re always ready for a last-minute celebration or a sudden sweet craving.
There’s something about a rainbow that just makes you smile, isn’t there? It’s a promise of brighter days, a little bit of magic, and pure, simple joy. That’s the exact feeling I wanted to capture in a dessert. Not just any dessert, but one that could turn an ordinary Tuesday into a party or make a holiday like St. Patrick’s Day feel extra special. These Lucky Rainbow Cupcakes are that dessert. They’re more than just a pretty face; they’re a soft, buttery vanilla cake swirled with vibrant colors and topped with a cloud of fluffy vanilla frosting. They taste like a holiday celebration in every single bite. They’re the kind of st patricks day baked treats that kids will remember making with you, and that adults will sneak a second one of when they think no one is looking. Simple ingredients, warm memories. This recipe is all about creating that magic in your own kitchen, with a few simple tricks I’ve learned along the way to make it stress-free and fun.
Table of Contents
Lucky Rainbow Cupcakes
These vibrant cupcakes feature a soft vanilla cake swirled with rainbow colors and topped with fluffy vanilla frosting. Perfect for St. Patrick’s Day or any celebration, they are surprisingly simple to make and guaranteed to bring joy.
- Prep Time: 25min
- Cook Time: 20min
- Total Time: 1h
- Yield: 12 cupcakes 1x
- Category: dessert
- Method: baking
- Cuisine: American
Ingredients
- 1 1/2 cups (190g) all-purpose flour
- 1 1/2 teaspoons baking powder
- 1/4 teaspoon salt
- 1/2 cup (115g) unsalted butter, softened
- 1 cup (200g) granulated sugar
- 2 large eggs, room temperature
- 2 teaspoons pure vanilla extract
- 1/2 cup (120ml) whole milk, room temperature
- Gel food coloring in red, orange, yellow, green, blue, purple
- 1 cup (230g) unsalted butter, softened
- 4 cups (480g) confectioners’ sugar, sifted
- 3–4 tablespoons heavy cream or whole milk
- 2 teaspoons pure vanilla extract
- Pinch of salt
Instructions
- Preheat oven to 350°F (175°C). Line a 12-cup muffin tin with liners.
- Whisk flour, baking powder, and salt in a medium bowl.
- In a large bowl, beat softened butter and granulated sugar until light and fluffy, 2-3 minutes.
- Beat in eggs one at a time, then mix in vanilla extract.
- With mixer on low, add flour mixture in three parts, alternating with milk, mixing just until combined.
- Divide batter evenly among six small bowls. Color each with a different gel food coloring.
- Spoon small amounts of each colored batter into liners, layering in rainbow order. Fill each liner 2/3 full.
- Bake 18-20 minutes, until a toothpick inserted comes out clean. Cool in pan 5 minutes, then transfer to a wire rack to cool completely.
- For frosting, beat softened butter until smooth. Gradually add confectioners’ sugar on low speed.
- Add vanilla, salt, and 3 tablespoons cream. Beat on high until fluffy, adding more cream if needed.
- Frost cooled cupcakes. Decorate with sprinkles if desired.
Notes
Use gel food coloring for vibrant colors without thinning batter. Ensure cupcakes are completely cool before frosting. Unfrosted cupcakes freeze well for up to 3 months.
Nutrition
- Serving Size: 1
- Calories: 420
- Sugar: 45
- Sodium: 85
- Fat: 22
- Saturated Fat: 14
- Unsaturated Fat: 6
- Trans Fat: 0
- Carbohydrates: 55
- Fiber: 0
- Protein: 3
- Cholesterol: 85

Ingredients List
Lucky Rainbow Cupcakes start with a classic, reliable vanilla batter that’s sturdy enough to hold those beautiful colors without becoming dense. Here’s what you’ll need to gather. I’ve included my favorite swaps, so you can make this work with what you have.
For the Vanilla Cupcakes:
- 1 ½ cups (190g) all-purpose flour
- 1 ½ teaspoons baking powder
- ¼ teaspoon salt
- ½ cup (115g) unsalted butter, softened to room temperature
- 1 cup (200g) granulated sugar
- 2 large eggs, room temperature
- 2 teaspoons pure vanilla extract
- ½ cup (120ml) whole milk, room temperature
For the Rainbow Swirl:
- Gel food coloring in red, orange, yellow, green, blue, and purple (or violet). Gel is key here—it gives vibrant color without thinning the batter.
For the Fluffy Vanilla Frosting:
- 1 cup (230g) unsalted butter, softened to room temperature
- 4 cups (480g) confectioners’ sugar, sifted
- 3-4 tablespoons heavy cream or whole milk
- 2 teaspoons pure vanilla extract
- Pinch of salt
Smart Substitutions:
- Gluten-Free: Use a 1:1 gluten-free all-purpose flour blend for an easy swap to create gluten free st patricks day treats. I’ve had great results with brands like Bob’s Red Mill or King Arthur.
- Dairy-Free: Use plant-based butter sticks and your favorite non-dairy milk (oat or almond work well) in both the cake and frosting.
- Buttermilk Twist: Swap the milk for buttermilk for a slightly tangier, even more tender crumb.
Timing
One of the best parts about these st patricks day treats easy is that they come together without a huge time commitment. Perfect for an after-school project or a festive weekend bake.
- Prep Time: 25 minutes (this includes dividing and coloring the batter)
- Cook Time: 18-20 minutes
- Total Time: About 1 hour (including cooling time for perfect frosting)
Step-by-Step Instructions
Follow these simple steps for the most vibrant, delicious Lucky Rainbow Cupcakes. The secret is in the layering!
1. Prep and Mix the Dry Ingredients. Preheat your oven to 350°F (175°C). Line a 12-cup muffin tin with festive liners. In a medium bowl, whisk together the flour, baking powder, and salt. This ensures your leavening is evenly distributed for a perfect rise.
2. Cream Butter and Sugar. In a large bowl, use a hand mixer or stand mixer to beat the softened butter and granulated sugar together on medium-high speed for 2-3 minutes. It should become light, fluffy, and pale in color. This step incorporates air, which is crucial for a light cupcake texture.
3. Add Eggs and Vanilla. Beat in the eggs one at a time, making sure each is fully incorporated before adding the next. Scrape down the sides of the bowl. Mix in the vanilla extract.
4. Combine Wet and Dry. With the mixer on low, add about one-third of the flour mixture, followed by half of the milk. Repeat, ending with the final third of the flour. Mix just until the last streaks of flour disappear. Pro Tip: Overmixing at this stage develops gluten and leads to tough cupcakes. A few small lumps are okay!
5. Create the Rainbow. Here’s the fun part! Divide the batter evenly among six small bowls. Using toothpicks, add a tiny dab of gel food coloring to each bowl—red, orange, yellow, green, blue, and purple. Stir each until the color is uniform and vibrant.
6. Layer the Colors. Spoon a small amount of each colored batter into the cupcake liners, layering them in rainbow order (I start with purple on the bottom and end with red on top). You don’t need to be perfect! A small spoon or cookie scoop works great. The layers will swirl beautifully as they bake. Fill each liner about ⅔ full.
7. Bake and Cool. Bake for 18-20 minutes, or until a toothpick inserted into the center comes out clean. Let the cupcakes cool in the pan for 5 minutes, then transfer them to a wire rack to cool completely before frosting. This is non-negotiable—warm cupcakes will melt your frosting!
8. Make the Frosting. While the cupcakes cool, beat the softened butter on medium speed until completely smooth and creamy, about 2 minutes. Gradually add the sifted confectioners’ sugar, one cup at a time, with the mixer on low. Once incorporated, add the vanilla, salt, and 3 tablespoons of cream. Beat on high speed for 2-3 minutes until very light and fluffy. Add the last tablespoon of cream if needed to reach your desired consistency.
9. Frost and Serve. Pipe or spread the fluffy frosting onto the completely cooled Lucky Rainbow Cupcakes. For an extra festive touch, sprinkle with gold sugar, rainbow sprinkles, or even a dusting of green sanding sugar for St. Patrick’s Day.
Nutritional Information
Per cupcake (with frosting, approximate): Calories: 420 | Fat: 22g | Saturated Fat: 14g | Carbohydrates: 55g | Sugar: 45g | Protein: 3g | Sodium: 85mg. While these are a celebratory treat, you can find balance by using them as a shared dessert or pairing with fresh fruit. The eggs and butter provide some protein and vitamin A, but let’s be honest—we’re here for the joy and the rainbow!
Equipment Needed
You don’t need any fancy gear to make these st patricks day baked treats. A regular kitchen setup works perfectly.
- 12-cup muffin tin
- Cupcake liners
- Large mixing bowl
- Medium mixing bowl
- Hand mixer or stand mixer
- 6 small bowls or ramekins for dividing batter
- Whisk
- Spatula
- Wire cooling rack
- Piping bag and tip (optional, but fun for swirls)
Why You’ll Love This Recipe
These Lucky Rainbow Cupcakes have earned a permanent spot in my recipe box for so many reasons.
- Pure Joy in Every Bite: They are guaranteed smile-makers. The reveal of the colorful swirl inside is a moment of magic for kids and adults alike.
- Surprisingly Simple: While they look impressive, the method is straightforward—mix, color, layer, bake. It’s a fantastic recipe to bake with little helpers.
- Incredibly Versatile: While perfect for St. Patrick’s Day, change the colors for any holiday (red and green for Christmas, pastels for Easter) or just for a birthday.
- Crowd-Pleasing Flavor: The vanilla base is a classic for a reason—it’s buttery, soft, and universally loved, making it a safer bet than chocolate for a party where you’re not sure of everyone’s preference.
- Make-Ahead Friendly: The cupcakes freeze beautifully, and the frosting can be made days ahead, making this one of those st patricks day treats easy to pull off for a busy day.
Healthier Alternatives for the Recipe

Want to lighten things up or accommodate dietary needs? Here are some easy tweaks that keep the spirit of these Lucky Rainbow Cupcakes alive.
- Gluten-Free: As mentioned, a quality 1:1 gluten-free flour blend works perfectly. You’ve just made gluten free st patricks day treats!
- Dairy-Free: Use vegan butter sticks and a non-dairy milk. For the frosting, ensure your vegan butter is at room temperature for best results.
- Reduced Sugar: You can reduce the sugar in the cupcake batter by ¼ cup, though it may slightly affect texture. For the frosting, try using half confectioners’ sugar and half powdered erythritol or monk fruit blend.
- Whole Wheat: Substitute up to half of the all-purpose flour with white whole wheat flour for added fiber.
Serving Suggestions
These cupcakes are a celebration all on their own, but you can build a whole themed spread around them!
- Create a Dessert Table: Pair them with other easy treats like my No-Bake Gingerbread Cheesecake Cups (use green food coloring!) or a batch of festive Oreo Balls dipped in green candy melts.
- Beverage Pairing: Serve with a glass of cold milk for the kids, or a hot cup of coffee or Irish cream latte for the adults. They’d also be delightful with my Christmas Chocolate Hot Cups for a cozy treat.
- Presentation: Arrange them on a tiered stand for a party, or simply pile them on a favorite platter. The vibrant colors do all the decorating work for you.
Common Mistakes to Avoid
A few small missteps can change your cupcake results. Here’s how to avoid them.
- Using Liquid Food Coloring: This adds too much moisture and can dilute the vibrant colors. Gel or paste food coloring is a must for these Lucky Rainbow Cupcakes.
- Filling Liners Too Full: If you overfill, the batter will spill over and you’ll lose the beautiful dome. ⅔ full is the sweet spot.
- Frosting Warm Cupcakes: This causes the frosting to slide right off and become a melty mess. Patience is key—let them cool completely.
- Overmixing the Batter: Once you add the flour, mix only until combined. Overworking the gluten leads to dense, tough cupcakes instead of light, tender ones.
- Hard, Cold Butter: For both the cake and frosting, your butter must be properly softened (able to hold an indent when pressed) to cream properly and create a light texture.
Storing Tips for the Recipe

Keeping your Lucky Rainbow Cupcakes fresh is easy.
- Room Temperature: Frosted cupcakes will keep in an airtight container at room temperature for 1-2 days.
- Refrigerator: If your kitchen is warm or you need them to last longer, store them in the fridge in an airtight container for up to 5 days. Let them sit at room temperature for 30 minutes before serving to soften the frosting.
- Freezer (Unfrosted): This is my favorite trick! Wrap cooled, unfrosted cupcakes individually in plastic wrap, then place in a freezer bag. Freeze for up to 3 months. Thaw overnight in the refrigerator or at room temperature for a few hours before frosting. It makes pulling together st patricks day baked treats a breeze.
- Freezing Frosting: You can also freeze the frosting in a sealed container for up to 2 months. Thaw in the refrigerator overnight, then let it come to room temperature and re-whip with your mixer for a minute to restore its fluffiness.
Conclusion
At the end of the day, baking is about so much more than just following a recipe. It’s about creating moments, sharing smiles, and making ordinary days feel a little brighter. These Lucky Rainbow Cupcakes do exactly that. They’re a simple project with a spectacular result, proving that you don’t need professional skills to make something that feels truly special. Whether you’re making them for a St. Patrick’s Day party, a classroom treat, or just because you need a dose of color, I hope this recipe brings as much joy to your kitchen as it does to mine.
I’d love to see your creations! If you make these, don’t forget to tag @Homestyletable on Pinterest so I can share in your rainbow celebration. And if you’re looking for more festive, feel-good desserts, try my Christmas Gooey Butter Cookies for another dose of buttery goodness, or the fun, interactive New Years Eve Cake Ball Drops. Happy baking.
FAQs about Lucky Rainbow Cupcakes
What makes a cupcake lucky?
The ‘lucky’ element usually comes from associating the rainbow theme with the luck of the Irish and St. Patrick’s Day. Sometimes, bakers will include a ‘pot of gold’ (usually gold sprinkles or candy) at the end of the rainbow for extra luck!
How do you make rainbow cupcakes from scratch?
To make rainbow cupcakes, divide your cupcake batter into several bowls, and color each bowl with a different food coloring. Then, layer the colored batters into the cupcake liners before baking. You can also swirl them together for a marbled effect.
What kind of frosting goes well with rainbow cupcakes?
Vanilla buttercream is a classic choice because it complements the colorful cake without overpowering it. Cream cheese frosting also pairs well, offering a slightly tangy contrast.
How can I decorate Lucky Rainbow Cupcakes?
Decorate with colorful sprinkles, edible glitter, rainbow candies, a ‘pot of gold’ made of gold sprinkles or candy, or piped frosting in rainbow colors. A small sugar rainbow topper is also a festive touch.
Are there healthier versions of rainbow cupcakes?
Yes, you can use natural food coloring, whole wheat flour, reduce the sugar content, or incorporate fruit purees for a slightly healthier version. You can also use healthier frosting options like Greek yogurt frosting.
How do I store Lucky Rainbow Cupcakes?
Store unfrosted cupcakes in an airtight container at room temperature for up to 2 days or in the refrigerator for up to a week. Frosted cupcakes should be stored in an airtight container in the refrigerator to prevent the frosting from melting.
💬 Lets Stay Connected!
For daily recipes, kitchen tips, and exclusive content, follow me on:
👉 Pinterest for visual inspiration & meal ideas