Start with a laugh, not a lecture: who doesn’t want a cupcake that doubles as a tiny party and a treasure chest? I fell hard for these Rainbow Pot of Gold Cupcakes after a chaotic St. Patrick’s Day bake-off that involved three kids, two glitter explosions, and a stubborn piping bag. Spoiler: they saved the day.
I’ll show you the star ingredient that makes the rainbow pop, walk you through the exact ingredients and method, and share tips that keep your frosting looking like a pro didn’t bail on you halfway through. Hungry for color and a little drama? You’re in the right place. Also, FYI, this recipe pairs oddly well with leftover comfort food reads like this crockpot creamy ranch chicken if you plan a full cozy meal—don’t judge my food pairing logic.

Why You’ll Love This Recipe
- Visually stunning: These cupcakes look like a tiny rainbow folded into frosting. Guests will gasp, then ask for seconds.
- Kid-approved (and adult-bribable): The colors sell themselves. You get cooperation from picky eaters—sometimes.
- Easy to scale: Bake a dozen or a crowd’s worth without losing your mind.
- Flexible flavor: The cake base stays moist and chocolatey while the rainbow frosting steals the show.
- Makes great leftovers: Snackable, Instagrammable, and still delicious the next day.
Ingredients You’ll Need
- 1 3/4 cups all-purpose flour
- 1 1/2 teaspoons baking powder
- 1/2 teaspoon baking soda
- 1/4 teaspoon salt
- 1/2 cup unsweetened cocoa powder
- 1 cup granulated sugar
- 1/2 cup brown sugar
- 1/2 cup vegetable oil
- 2 large eggs
- 1 teaspoon vanilla extract
- 1 cup buttermilk
- Rainbow food coloring
- Buttercream frosting (for top)
(Yes, the cocoa turns these into mini chocolate clouds. Trust me.)
How to Make (Step-by-Step)
1. Preheat & prep
Preheat the oven to 350°F (175°C) and line your cupcake pan with liners. I always set a timer so I don’t wander off and accidentally invent charcoal cupcakes. You’ll thank me later.
2. Combine dry ingredients
In a bowl, combine flour, baking powder, baking soda, salt, and cocoa powder. Whisk them so your batter doesn’t surprise you with lumps.
3. Mix wet ingredients
In another bowl, mix granulated sugar, brown sugar, and vegetable oil. Add the eggs and vanilla, and whisk until everything looks cozy and smooth.
4. Merge dry and wet
Gradually add the dry ingredients to the wet mixture, alternating with buttermilk. Start and end with dry. Keep the mixing gentle; over-mixing ruins texture.
5. Fill liners
Fill cupcake liners about 2/3 full with batter. I use an ice cream scoop to keep the portions even and the cupcakes happy.
6. Bake
Bake for 18–20 minutes or until a toothpick comes out clean. Let the cupcakes cool completely before frosting. If you rush, your frosting will melt and you’ll cry a little. Avoid that.
7. Tint the frosting
For the frosting, divide buttercream into small bowls and tint each with a different color of rainbow food coloring. Use gel colors for vibrancy without watering down texture.
8. Load the piping bag
Using a piping bag, layer the colors in the nozzle to create a rainbow effect. Pressure and patience make the swirl glorious, so don’t squeeze like you’re trying to squirt toothpaste from a rock.
9. Decorate with gold
Decorate with gold sprinkles for the “pot of gold” effect. Use edible gold pearls or metallic sugar for maximum treasure vibes.
10. Enjoy
Serve and watch faces light up. Eat one immediately; I won’t tell.
Pro Tips for the Best Results
- Use gel food coloring for brighter hues without thinning your buttercream.
- Room-temperature eggs and buttermilk blend better and give a tender crumb.
- Sift the cocoa and flour to avoid clumpy batter.
- Don’t overfill liners—cupcakes puff then collapse if they go too high.
- Chill buttercream briefly if it feels too soft to pipe; a quick 10-minute chill helps.
- Work fast when piping multi-color rosettes so the colors stay distinct.
- Test one cupcake first to ensure bake time and color layering meet your expectations.
Fun Variations & Topping Ideas
Variations:
- Add rainbow sprinkles into the batter for a surprise confetti bite.
- Swap vegetable oil for melted butter for richer flavor.
- Make them vanilla by removing cocoa and adding an extra 1/4 cup flour plus an extra 1/4 cup milk.
Toppings:
- Gold sugar pearls for fancy treasure vibes.
- Mini marshmallows to mimic clouds at the rainbow base.
- Edible glitter when you want to be extra—no judgement.
- Chocolate coins to really drive home the “pot of gold” joke.
Storing and Reheating
Store cupcakes in an airtight container at room temperature for up to 2 days. Refrigerate for up to 5 days, but bring to room temperature before serving for best texture. Reheat (if you must) by placing a cupcake in the microwave for 7–10 seconds to soften the frosting—don’t nuke like you hate it. If you froze them, thaw overnight in the fridge then bring to room temp before frosting.
Leftover ideas
- Turn surplus cupcakes into an easy trifle: layer crushed cupcakes, a few spoons of pudding, whipped cream, and chopped fruit.
- Crumble them over vanilla ice cream for an instant sundae.
- Use leftover frosting to frost a simple sheet cake next day—fewer dishes, same applause.
Frequently Asked Questions (FAQ)
How many cupcakes does this recipe make?
This batter makes about 12 standard cupcakes. Want more? Double the batch and recruit a willing friend for cleanup.
Can I make this gluten-free?
Yes. Substitute a 1:1 gluten-free flour and add a teaspoon of xanthan gum if your blend lacks it. Texture changes slightly but flavor stays delightful.
Can I use store-bought frosting?
Absolutely. Use store-bought buttercream for speed. I prefer homemade, but I won’t judge you for saving time—life happens.
What if my frosting colors bleed together?
Chill the frosting briefly between layers and use gel colors. Also, pipe slower to keep bands distinct.
Can I make these in advance?
Bake the cupcakes a day ahead, store them unfrosted, and frost the morning you serve to keep everything fresh.
Conclusion
These Rainbow Pot of Gold Cupcakes deliver on looks, taste, and the kind of kitchen bragging rights you actually deserve. I love how simple tweaks—gel colors, a careful pipe, and a handful of gold sprinkles—turn basic cupcakes into a celebration. Try this recipe for your next party or cozy baking day, and don’t be shy about sharing the results below; I want to see your rainbow attempts and the glorious mess that followed.
If you want a cute variation and more decorating ideas, check out this fun take on themed cupcakes at Pot of Gold St Patrick’s Day Cupcakes – Sugar and Soul.
Please leave a comment and rating if you try the recipe—I’ll read every one and probably try your tweak next time. Happy baking, and may your frosting never melt at the wrong moment. 😉


Rainbow Pot of Gold Cupcakes
Ingredients
Dry Ingredients
- 1 3/4 cups all-purpose flour
- 1 1/2 teaspoons baking powder
- 1/2 teaspoon baking soda
- 1/4 teaspoon salt
- 1/2 cup unsweetened cocoa powder Black cocoa for a darker cupcake can be used.
Wet Ingredients
- 1 cup granulated sugar
- 1/2 cup brown sugar
- 1/2 cup vegetable oil Can be swapped for melted butter for richer flavor.
- 2 large eggs Use room temperature for best mixing.
- 1 teaspoon vanilla extract
- 1 cup buttermilk Room temperature buttermilk blends better.
- Rainbow food coloring Gel colors recommended for vibrancy.
- Buttercream frosting (for top) Homemade or store-bought.
Instructions
Preparation
- Preheat the oven to 350°F (175°C) and line your cupcake pan with liners.
- In a bowl, combine flour, baking powder, baking soda, salt, and cocoa powder. Whisk them together.
Mixing Ingredients
- In another bowl, mix granulated sugar, brown sugar, and vegetable oil. Add the eggs and vanilla, and whisk until smooth.
- Gradually add the dry ingredients to the wet mixture, alternating with buttermilk, starting and ending with dry ingredients.
- Fill cupcake liners about 2/3 full with batter.
Baking
- Bake for 18-20 minutes or until a toothpick comes out clean. Let the cupcakes cool completely before frosting.
Frosting
- Divide buttercream into small bowls and tint each with different colors of rainbow food coloring.
- Layer the colors in a piping bag to create a rainbow effect and decorate with gold sprinkles for a ‘pot of gold’ look.
- Enjoy your cupcakes!