Cotton Candy Cupcakes From Scratch: Full Recipe
In this article
These cotton candy cupcakes taste just like the spun sugar treat — light, sweet, and slightly fruity — with a fluffy vanilla-almond base, a pink-and-blue swirled frosting, and a cotton candy garnish on top. You don't need any special equipment beyond a stand or hand mixer, and the whole process takes about 2 hours from start to finish. The key is using cotton candy flavoring (or a mix of vanilla and almond extract) and coloring the batter and frosting in pastel pink and blue.
What You'll Need
- For the cupcakes: 1 ½ cups (190g) all-purpose flour, 1 ½ tsp baking powder, ¼ tsp salt, ½ cup (1 stick) unsalted butter, softened, ¾ cup (150g) granulated sugar, 2 large eggs (room temperature), 1 tsp vanilla extract, ½ tsp almond extract, ½ cup whole milk (room temperature), pink and blue gel food coloring
- For the frosting: 1 cup (2 sticks) unsalted butter, softened, 3 cups (360g) powdered sugar, 2 tbsp heavy cream (or milk), 1 tsp vanilla extract, ¼ tsp cotton candy flavoring (or ¼ tsp almond extract), pink and blue gel food coloring
- Optional garnish: small cotton candy tufts (plain or blue/pink)
- Muffin tin, paper liners, piping bag with a large star tip (or zip-top bag with a corner snipped), two small bowls for coloring frosting
Step-by-Step
- Prep the oven and pan: Preheat your oven to 350°F (175°C). Line a 12-cup muffin tin with paper liners. Set aside.
- Mix dry ingredients: In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
- Cream butter and sugar: In a large bowl, beat the softened butter and sugar with an electric mixer on medium speed until light and fluffy, about 2–3 minutes. Scrape down the sides as needed.
- Add eggs and flavorings: Beat in the eggs one at a time, mixing well after each. Add the vanilla extract and almond extract (or cotton candy flavoring) and beat until combined.
- Alternate dry and wet: With the mixer on low, add the dry ingredients in three additions, alternating with the milk in two additions, starting and ending with the dry. Mix just until no streaks of flour remain — do not overmix.
- Color the batter: Divide the batter evenly into two bowls. Add a few drops of pink gel food coloring to one bowl and blue to the other. Stir each gently until the color is uniform.
- Fill the liners: Using a small cookie scoop or spoon, drop a spoonful of pink batter into each liner, then a spoonful of blue batter on top. Do not fill more than ⅔ full. Use a toothpick to gently swirl the colors together if you like.
- Bake: Bake for 18–22 minutes, or until a toothpick inserted into the center comes out clean. The tops should spring back when lightly pressed.
- Cool completely: Let the cupcakes cool in the pan for 5 minutes, then transfer to a wire rack to cool completely before frosting. This is crucial — warm cupcakes will melt the frosting.
- Make the frosting: In a large bowl, beat the softened butter on medium speed until smooth and creamy, about 1 minute. Gradually add the powdered sugar, 1 cup at a time, beating well after each addition. Add the heavy cream, vanilla, and cotton candy flavoring (or almond extract). Beat on high for 2–3 minutes until light and fluffy.
- Color the frosting: Divide the frosting into two bowls. Tint one with pink gel food coloring and the other with blue. Stir each until the color is even.
- Pipe the frosting: Fit a piping bag with a large star tip. Spoon the pink frosting into one side of the bag and the blue frosting into the other side (or use two bags and pipe side by side). Pipe a swirl onto each cupcake, starting from the outside edge and working inward.
- Garnish and serve: Top each frosted cupcake with a small tuft of cotton candy just before serving. If you add it too early, the cotton candy will melt from the moisture in the frosting. Store any unfrosted cupcakes in an airtight container at room temperature for up to 3 days; frosted cupcakes are best eaten within 24 hours.
Common Mistakes
- Overmixing the batter: This develops gluten and makes cupcakes tough and dense. Mix only until the flour is just incorporated.
- Frosting warm cupcakes: The frosting will slide off and melt. Always wait until cupcakes are completely cool.
- Adding cotton candy too early: The sugar in cotton candy absorbs moisture from the frosting and turns into a sticky puddle. Add it just before serving.
- Using water-based food coloring: Liquid food colors can thin the batter and frosting, making them runny. Gel colors give vibrant pastel shades without changing consistency.
- Skipping the almond extract: Cotton candy flavor is essentially a mix of vanilla and a fruity note. Almond extract mimics that “blue” flavor. If you omit it, the cupcakes just taste like vanilla.
Tips
- For a stronger cotton candy taste, use a dedicated cotton candy flavoring (found in baking supply stores or online). Start with ¼ tsp and adjust to taste.
- Use gel food coloring — a little goes a long way. For pastel colors, start with a tiny dab on a toothpick and add more until you reach the desired shade.
- To get a clean two-tone swirl in the frosting, lay a piece of plastic wrap in the piping bag, spread the two colors side by side on it, then roll it up and snip the tip. This creates a striped effect.
- If you don't have cotton candy on hand, you can sprinkle the frosted cupcakes with coarse sanding sugar in pink and blue for a similar look.
- Make sure your butter and eggs are at room temperature for a smooth, even batter and a fluffy frosting.
Troubleshooting
- Cupcakes are dry: You likely overbaked them. Check at 18 minutes and remove as soon as the toothpick comes out clean. Also, measure flour by spooning it into the cup and leveling off, not scooping.
- Cupcakes sink in the middle: This can happen if the oven door is opened too early or if the batter was overmixed. Keep the oven closed until the minimum baking time has passed.
- Frosting is too thin: Add more powdered sugar, a tablespoon at a time, until it holds its shape. If it's too thick, add a teaspoon of cream.
- Colors bleed into each other: This is normal if you swirl the batter too much. For distinct layers, spoon the batters without mixing.
- Cotton candy melts right away: Wait until the very last minute to add it. You can also keep the frosted cupcakes in the fridge for 10 minutes before garnishing to set the frosting slightly.
Frequently Asked Questions
Can I use a boxed cake mix instead?
Yes, you can use a white or vanilla boxed mix and follow the same coloring and frosting steps. Just bake according to the package directions.
What does cotton candy flavoring taste like?
It's a sweet, fruity flavor that mixes vanilla with a hint of berry or bubblegum. If you don't have it, a combination of vanilla and almond extract works well.
Can I make these cupcakes dairy-free?
Yes. Substitute the butter with a plant-based butter stick, use almond or oat milk instead of whole milk, and use a dairy-free heavy cream alternative. The texture will be slightly different but still good.
How long do these cupcakes stay fresh?
Unfrosted cupcakes keep in an airtight container at room temperature for up to 3 days. Frosted cupcakes are best within 24 hours, especially if topped with cotton candy.
Can I freeze the cupcakes?
Yes, you can freeze unfrosted cupcakes for up to 2 months. Wrap them tightly in plastic wrap and then foil. Thaw at room temperature before frosting.
Why did my frosting turn out grainy?
Grainy frosting usually means the powdered sugar wasn't fully incorporated. Beat the frosting on high for an extra 2–3 minutes, and make sure your butter is properly softened before starting.