Whipped Cotton Candy Cake Recipe for Celebratory Parties

My cotton candy cake is far more exciting than a standard birthday cake. I layered cotton candy–flavored cake with swirled cotton candy buttercream to create a bright, unicorn-inspired centerpiece. Despite its picture-perfect appearance, this sweet, colorful cake is straightforward to make from scratch and simple to decorate.

Decorated cotton candy cake on cake stand.

Top Reader Review

I can’t believe the comments here— I followed the exact directions and my cake came out perfectly! I used gel food coloring.

Dana Pryor

Cotton Candy Birthday Cake

This colorful cotton candy cake captures the magic of childhood. Cotton candy flavoring infuses both the cake and the frosting, while the pink and blue swirls create a festive, whimsical look. It’s perfect for birthdays, baby showers, or any celebration that calls for a cheerful centerpiece.

The layered, swirled appearance is worth the little extra effort when you want to make an impression. I use a dab of blue and pink food coloring for the swirl effect and add cotton candy flavoring to both batter and buttercream for a balanced sweetness. For a dramatic finish, top the cake with small puffs of real cotton candy just before serving—keep them on until guests arrive so they don’t dissolve.

Cotton candy cake cut to show the pink and blue layers.

Below the recipe card you’ll find instructions for making this cake with boxed mix and tips for fixing common issues.

featured cotton candy cake

Cotton Candy Cake Recipe

Fun and colorful cotton candy cake that’s ideal for birthdays and showers. The cotton candy flavor makes it a standout celebration dessert.
Prep Time:
30 minutes mins
Cook Time:
20 minutes mins
Total Time:
50 minutes mins

Equipment

  • Kitchen Scale (optional)
  • 3 8-inch Round Cake Pans
  • Stand Mixer
  • Piping Tip Set (optional)
Serves 12 slices

Ingredients

For the Cake

  • 4 cups cake flour
  • 1 tablespoon baking powder
  • teaspoons kosher salt
  • 1 teaspoon baking soda
  • 1 cup unsalted butter room temperature (2 sticks)
  • 3 cups granulated sugar
  • 5 large eggs room temperature
  • cups milk room temperature*
  • teaspoons cotton candy flavoring
  • Blue and pink food coloring optional

For the Buttercream

  • 2 cups unsalted butter room temperature (4 sticks)
  • 7 cups powdered sugar
  • teaspoon kosher salt
  • ¾ teaspoon cotton candy flavoring
  • Pink and blue food coloring optional
US Customary | Metric

Instructions

Bake the Cakes:

  • Preheat oven to 350°F. Line three 8-inch cake pans with parchment and spray with nonstick spray. Set aside.
  • Whisk together flour, baking powder, salt, and baking soda in a large bowl. Set aside.
    dry ingredients for a cake in a white bowl.
  • In a stand mixer fitted with the paddle or whisk, beat butter and sugar on medium-high about 1 minute until combined and slightly fluffy.
    butter and sugar in the bowl of a stand mixer.
  • Add eggs, milk, and cotton candy flavoring. Beat on high for 1 minute to combine.
    eggs and milk added to cake batter in a stainless bowl.
  • Fold in the flour mixture until just incorporated. Divide batter into two bowls and tint one blue and one pink if desired.
    pink and blue cake batter in separate bowls.
  • Alternate spoonfuls of blue and pink batter into the pans and gently swirl. Take care not to over-swirl or the colors will mix and darken. Bake 20–23 minutes, or until a toothpick comes out clean or with moist crumbs. Cool completely on a rack.
    swirled pink and blue cake batter in a round cake pan.

Make the Buttercream:

  • While the cakes cool, prepare the frosting. In a stand mixer with the paddle attachment, combine butter, powdered sugar, salt, and cotton candy flavoring. Start on low for about 2 minutes so the powdered sugar doesn’t puff out, then increase to high and whip 4 minutes until smooth and fluffy.
    fluffy frosting in a stand mixer bowl.
  • Divide the frosting into three bowls. Tint one pink, one blue, and leave one white for a multi-colored buttercream.
    pink, blue, and white buttercream in bowls.

Decorate the Cake:

  • Place one cooled cake layer on a stand and spread about ¼ cup buttercream to the edges.
  • Top with the second layer, add more buttercream, then place the final layer on top.
  • Frost the top and sides, alternating white, blue, and pink to create a cotton candy effect.
  • For neat multi-colored swirls, place small amounts of blue and pink into a piping bag, add white, then pipe swirls around the cake in a clock pattern (12:00, 3:00, 6:00, 9:00) and continue until complete.
  • If desired, finish with small clouds or pieces of cotton candy just before serving. Slice and enjoy.

Notes

*Whole milk is recommended for best texture, but other milks will work.

**If you can’t find cotton candy flavoring locally, it’s commonly available from specialty flavor suppliers.

***Pink and blue food coloring make both the cake and frosting extra vibrant, but they’re optional.

Tips:

  • If you prefer a shortcut, use two boxes of white or yellow cake mix in place of the homemade cake ingredients (instructions below).
  • Always make sure the cakes are fully cooled before frosting, or the buttercream can melt.
  • Bake layers a day ahead and assemble the next day for easier decorating.
  • Check the expiration date on baking powder and baking soda to ensure proper rise.
  • Measure dry ingredients using the spoon-and-level method or a kitchen scale for consistency.
  • Use room-temperature dairy ingredients to avoid a lumpy batter.
  • If topping with cotton candy, add it right before serving to prevent it from dissolving in the frosting.

Storage: Store the cake in an airtight container at room temperature up to 2 days or refrigerate up to 4 days.

Nutrition Facts
Cotton Candy Cake Recipe
Amount Per Serving (1 slice)
Calories 1072Calories from Fat 450
% Daily Value*
Fat 50g77%
Saturated Fat 30g188%
Trans Fat 2g
Cholesterol 194mg65%
Sodium 512mg22%
Carbohydrates 152g51%
Sugar 120g133%
Protein 9g18%
Vitamin A 1576IU32%
Calcium 134mg13%
Iron 1mg6%
* Percent Daily Values are based on a 2000 calorie diet.
Author: Becky Hardin
Course: Cake, Dessert
Cuisine: American

How to Fix Common Mistakes

  • A Flat Cake: This can result from inactive leavening or under-baking. Use the listed amounts of baking powder and baking soda and check expiration dates. Bake until a toothpick comes out clean to prevent collapsing as it cools.
  • A Dry Cake: Over-mixing will make a cake dense and dry. Mix only until ingredients are combined and remove any large dry pockets without overworking the batter.
  • Buttercream Consistency: If the frosting is too thin, chill it 10–20 minutes and whip again, or add powdered sugar 1 tablespoon at a time. If it’s too thick, add milk 1 tablespoon at a time until it loosens.
overhead image of decorated cotton candy cake

How to Make Cotton Candy Cake with Cake Mix

If you’d rather use boxed cake mix, swap the homemade cake ingredients for two boxes of white or yellow cake mix (enough for three 8-inch pans). Prepare according to the package, then:

  1. Prepare batter per package directions.
  2. Stir in 1½ teaspoons cotton candy flavoring.
  3. Divide batter into two bowls and tint one blue and one pink, then swirl into pans as described above.
  4. Bake according to package instructions (or about 20–23 minutes), cool, then frost and decorate as directed.

How to Store

Store the decorated cake in a cake container or cloche, and keep slices in airtight containers. At room temperature it will keep up to 2 days; refrigerated, up to 4 days. If you top with real cotton candy, add it right before serving to preserve texture.

More Cake Recipes to Try!

Browse All Cakes
  • Cotton Candy Cupcakes (Made with Cake Mix!)

    Cotton Candy Cupcakes (Made with Cake Mix!)

  • Mango Cake

    Mango Cake

  • Doctored White Cake Mix (WASC Cake)

    Doctored White Cake Mix (WASC Cake)

  • Airplane Cake

    Airplane Cake