Cotton Candy Cupcakes are a fun, colorful dessert that combines the soft, fluffy texture of classic vanilla cupcakes with the nostalgic sweetness of cotton candy. These cupcakes are made completely from scratch and flavored using real cotton candy, which melts into the batter and frosting to create that unmistakable carnival taste. With pink and blue swirls inside the cupcakes and a matching buttercream on top, they are perfect for birthdays, baby showers, or any celebration that calls for something playful and eye-catching.
Recipe Overview
- Yield: 12–14 cupcakes
- Prep time: 30 minutes
- Bake time: 16–18 minutes
- Cooling & decorating: 30–40 minutes
Ingredients
For the Cotton Candy Cupcakes
- 1 ⅔ cups all-purpose flour
- 1 ½ teaspoons baking powder
- ½ teaspoon baking soda
- ¼ teaspoon salt
- ½ cup unsalted butter, softened
- 1 ¼ cups granulated sugar
- 3 large egg whites, room temperature
- ⅓ cup vegetable oil
- 1 ½ teaspoons cotton candy extract
- 1 cup buttermilk, room temperature
- ½ cup pink cotton candy
- ½ cup blue cotton candy
- Pink gel food coloring
- Blue gel food coloring
For the Cotton Candy Buttercream
- 1 cup unsalted butter, softened
- 1 cup shortening
- ¼ teaspoon salt
- 8 cups powdered sugar, sifted
- ½ cup heavy whipping cream
- 1 teaspoon cotton candy extract
- ½ cup pink cotton candy
- ½ cup blue cotton candy
- Pink gel food coloring
- Blue gel food coloring
Optional Decoration
- Extra cotton candy (add just before serving)

Step-by-Step Instructions
Step 1: Prepare the Oven and Pan
Preheat your oven to 350°F (177°C). Line a 12-cup muffin pan with cupcake liners and set aside.
Step 2: Mix the Dry Ingredients
In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set this mixture aside.
Step 3: Cream the Butter and Sugar
In a large mixing bowl, beat the softened butter and granulated sugar together until the mixture becomes pale, light, and fluffy. This step is important for achieving soft cupcakes, so mix for about 3–4 minutes.
Step 4: Add Egg Whites, Oil, and Flavoring
Add the egg whites one at a time, mixing well after each addition. Pour in the vegetable oil and cotton candy extract and mix until fully combined.
Step 5: Alternate Dry Ingredients and Buttermilk
Add the dry ingredients in three additions, alternating with the buttermilk in two additions. Start and end with the dry ingredients. Mix gently and stop as soon as the batter is smooth to avoid overmixing.
Step 6: Divide and Color the Batter
Divide the batter evenly into two bowls.
- In the first bowl, gently fold in ½ cup pink cotton candy and a few drops of pink gel food coloring.
- In the second bowl, gently fold in ½ cup blue cotton candy and a few drops of blue gel food coloring.
The cotton candy will dissolve into the batter, adding both flavor and color.
Step 7: Fill the Cupcake Liners
To create a marbled effect:
- Add 1 tablespoon of pink batter to each liner.
- Add 1 tablespoon of blue batter on top.
- Repeat once more with both colors until liners are about ⅔ full.
Step 8: Bake and Cool
Bake the cupcakes for 16–18 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.
Making the Cotton Candy Buttercream
Step 1: Beat Butter and Shortening
In a large bowl, beat the butter, shortening, and salt until very light and fluffy. This should take about 5–6 minutes.
Step 2: Add Sugar, Cream, and Extract
Gradually add half of the powdered sugar, mixing on low speed. Pour in the heavy cream and cotton candy extract and mix until smooth.
Step 3: Finish the Buttercream
Add the remaining powdered sugar gradually. Once fully incorporated, increase the mixer speed and whip until the frosting is fluffy and smooth.
Step 4: Divide and Color the Frosting
Divide the frosting into two bowls.
- In one bowl, mix in ½ cup pink cotton candy and pink gel coloring.
- In the other bowl, mix in ½ cup blue cotton candy and blue gel coloring.
Mix until the cotton candy dissolves and the frosting is evenly colored.

Frosting the Cupcakes
To create a pink-and-blue swirl:
- Place pink frosting on one side of a piping bag and blue frosting on the other side, then pipe swirls onto each cupcake.
Alternatively, you can frost each cupcake half pink and half blue using a spatula for a simpler look.
Decoration Tip
If you choose to decorate with cotton candy, add it right before serving. Cotton candy melts quickly when exposed to moisture and will dissolve if left on the frosting too long.
Storage
Store unfrosted or frosted cupcakes (without cotton candy topping) in an airtight container at room temperature for up to one day or in the refrigerator for up to three days. Always add cotton candy decorations just before serving.
Final Notes
These Cotton Candy Cupcakes are soft, colorful, and full of nostalgic flavor. Using real cotton candy gives them a unique sweetness that makes them stand out from standard cupcakes. They are guaranteed to bring smiles and make any dessert table feel festive and fun.