There is something undeniably magical about a classic vanilla cupcake topped with a cloud of buttercream and a handful of colorful sprinkles. Whether you are celebrating a birthday, hosting a bake sale, or simply craving a sweet treat, these moist vanilla cupcakes with rainbow sprinkles are the ultimate crowd-pleaser. They feature a tender, buttery crumb that stays soft for days, thanks to a few secret ingredients like sour cream and room-temperature butter. Every bite is filled with nostalgia and just the right amount of sweetness to make your day a little brighter.
Recipe Information
- Prep Time: 20 minutes
- Cook Time: 20 minutes
- Total Time: 40 minutes
- Servings: 12 cupcakes
- Difficulty: Easy
Nutrition values
- Calories: 315 kcal
- Protein: 3g
- Carbs: 42g
Why Make This Moist Vanilla Cupcakes with Rainbow Sprinkles
You should make these cupcakes because they strike the perfect balance between simple and spectacular. Unlike many store-bought versions that can be dry or overly sugary, this recipe produces a light, airy texture that melts in your mouth. The addition of rainbow sprinkles—often called “Funfetti”—adds a whimsical touch that appeals to both kids and adults. Plus, the recipe uses basic pantry staples, meaning you can whip up a batch whenever the craving strikes without a special trip to the grocery store.
Ingredients
For the Cupcakes:
- 1 ½ cups all-purpose flour
- 1 cup granulated sugar
- 1 ½ teaspoons baking powder
- ½ teaspoon salt
- ½ cup unsalted butter, softened to room temperature
- 1 large egg, room temperature
- ½ cup full-fat sour cream
- ½ cup whole milk, room temperature
- 2 teaspoons pure vanilla extract
- ½ cup rainbow sprinkles (jimmies work best)
For the Vanilla Buttercream:
- 1 cup unsalted butter, softened
- 3 cups powdered sugar, sifted
- 2 tablespoons heavy cream
- 1 teaspoon pure vanilla extract
- Extra rainbow sprinkles for garnish
Directions
Step 1: Preparation
Preheat your oven to 350°F (175°C). Line a standard 12-count muffin tin with paper liners. In a medium bowl, whisk together the all-purpose flour, baking powder, and salt. Set the dry ingredients aside.
Step 2: Creaming the Butter and Sugar
In a large mixing bowl or the bowl of a stand mixer, beat the softened butter and granulated sugar together on medium-high speed. Continue beating for about 2 to 3 minutes until the mixture appears light and fluffy. Scrape down the sides of the bowl as needed.
Step 3: Adding Wet Ingredients
Add the egg, sour cream, and vanilla extract to the butter mixture. Beat on medium speed until fully combined. Lower the mixer speed and gradually add half of the dry ingredients, followed by the milk, and then the remaining dry ingredients. Mix until just combined; do not overmix.
Step 4: Folding in the Sprinkles
Gently fold in the ½ cup of rainbow sprinkles using a rubber spatula. This prevents the colors from bleeding into the batter. Distribute the batter evenly among the 12 cupcake liners, filling each about two-thirds full.
Step 5: Baking and Cooling
Bake the cupcakes for 18 to 22 minutes, or until a toothpick inserted into the center comes out clean. Remove the tin from the oven and let the cupcakes cool for 5 minutes before transferring them to a wire rack to cool completely. They must be entirely cool before frosting.
Step 6: Frosting and Finishing
To make the frosting, beat the softened butter for 2 minutes until smooth. Gradually add the powdered sugar, heavy cream, and vanilla. Beat on high speed for 3 minutes until light and airy. Pipe the frosting onto the cooled cupcakes and immediately top with extra rainbow sprinkles.

Expert Tips for Perfect Moist Vanilla Cupcakes with Rainbow Sprinkles
Always use room-temperature ingredients. Cold eggs or milk can cause the batter to break or curdle, resulting in a dense cupcake. When choosing sprinkles, use “jimmies” (the long cylinders) rather than nonpareils (the tiny round balls) inside the batter. Nonpareils tend to bleed their color quickly, which can turn your batter gray or muddy. Finally, avoid overfilling the cupcake liners; filling them two-thirds full ensures they have a flat top perfect for frosting rather than a messy overflow.
Delicious Variations
- Chocolate Chip Surprise: Add ¼ cup of mini chocolate chips along with the sprinkles for extra texture.
- Lemon Vanilla: Add 1 tablespoon of fresh lemon zest to the batter for a bright, citrusy twist.
- Cream Cheese Frosting: Swap the buttercream for a tangy cream cheese frosting to cut through the sweetness.
- Gluten-Free: Use a high-quality 1:1 gluten-free flour blend to make these accessible for everyone.
Frequently Asked Questions
Can I use oil instead of butter?
Yes, you can substitute the butter with ½ cup of vegetable oil. The cupcakes will be even more moist but will have a slightly less “buttery” flavor.
How do I keep my sprinkles from sinking?
The batter in this recipe is thick enough to hold the sprinkles in place. However, tossing the sprinkles in a teaspoon of flour before folding them in can provide extra insurance against sinking.
How should I store these cupcakes?
Store the cupcakes in an airtight container at room temperature for up to 2 days. If you need to keep them longer, refrigerate them for up to 5 days, but bring them to room temperature before serving for the best texture.
Can I freeze these cupcakes?
Yes! You can freeze unfrosted cupcakes for up to 3 months. Wrap them individually in plastic wrap and place them in a freezer bag. Thaw at room temperature before frosting.
Why did my cupcakes sink in the middle?
Cupcakes usually sink if the oven door was opened too early or if the baking powder is expired. Ensure your leavening agents are fresh and keep the oven door closed until at least 15 minutes of baking have passed.
Conclusion
These moist vanilla cupcakes with rainbow sprinkles are a timeless treat that brings a smile to everyone’s face. By following these simple steps and using quality ingredients, you can create a bakery-style dessert right in your own kitchen. They are soft, colorful, and perfectly sweet. Give this recipe a try for your next celebration, and watch how quickly they disappear from the dessert table!

Moist Vanilla Cupcakes with Rainbow Sprinkles
5 Stars 4 Stars 3 Stars 2 Stars 1 Star
No reviews
- Total Time: 40 minutes
- Diet: Vegetarian
Ingredients
- 1 ½ cups all-purpose flour
- 1 cup granulated sugar
- 1 ½ teaspoons baking powder
- ½ teaspoon salt
- ½ cup unsalted butter, softened to room temperature
- 1 large egg, room temperature
- ½ cup full-fat sour cream
- ½ cup whole milk, room temperature
- 2 teaspoons pure vanilla extract
- ½ cup rainbow sprinkles (jimmies work best)
- 1 cup unsalted butter, softened
- 3 cups powdered sugar, sifted
- 2 tablespoons heavy cream
- 1 teaspoon pure vanilla extract
- Extra rainbow sprinkles for garnish
Instructions
- Preheat your oven to 350°F (175°C). Line a standard 12-count muffin tin with paper liners. In a medium bowl, whisk together the all-purpose flour, baking powder, and salt. Set the dry ingredients aside.
- In a large mixing bowl or the bowl of a stand mixer, beat the softened butter and granulated sugar together on medium-high speed. Continue beating for about 2 to 3 minutes until the mixture appears light and fluffy. Scrape down the sides of the bowl as needed.
- Add the egg, sour cream, and vanilla extract to the butter mixture. Beat on medium speed until fully combined. Lower the mixer speed and gradually add half of the dry ingredients, followed by the milk, and then the remaining dry ingredients. Mix until just combined; do not overmix.
- Gently fold in the ½ cup of rainbow sprinkles using a rubber spatula. This prevents the colors from bleeding into the batter. Distribute the batter evenly among the 12 cupcake liners, filling each about two-thirds full.
- Bake the cupcakes for 18 to 22 minutes, or until a toothpick inserted into the center comes out clean. Remove the tin from the oven and let the cupcakes cool for 5 minutes before transferring them to a wire rack to cool completely. They must be entirely cool before frosting.
- To make the frosting, beat the softened butter for 2 minutes until smooth. Gradually add the powdered sugar, heavy cream, and vanilla. Beat on high speed for 3 minutes until light and airy. Pipe the frosting onto the cooled cupcakes and immediately top with extra rainbow sprinkles.
- Cook Time: 40 minutes





