cotton candy cake layers

Featured in: Sweet Treats for Every Occasion

This playful dessert features soft, tender layers infused with cotton candy flavor and swirled with pastel shades of pink, blue, and purple. Each layer is sandwiched and topped with airy cotton candy buttercream for a sweet finish. Perfect for parties, the cake showcases both striking visuals and nostalgic carnival flavors that delight kids and adults alike. Decorating with extra color and playful touches provides a whimsical centerpiece for your next celebration.

Tags: #halal #vegetarian #kid-friendly #north-american #baked #medium #dessert #over-30-minutes #family-friendly #spring

sana kitchen chef
By Sana Sana
Updated on Sun, 03 Aug 2025 13:26:08 GMT
A slice of a rainbow cake with white frosting. Pin it
A slice of a rainbow cake with white frosting. | recipebyme.com

Few cakes spark more smiles than this airy and whimsical cotton candy cake. It is a showstopper for birthday parties and special occasions when you want something colorful and fun. I reach for this recipe when my family craves a treat that is sweet and dreamy but also as light as a cloud. The combination of pastel swirls and melt-in-your-mouth cotton candy frosting brings pure delight every time.

My kids once asked for “the magical cake that tastes like the fair” and this was it. It is now a family tradition for every birthday and gets more creative each year.

Ingredients

  • All-purpose flour: creates a tender structure and soft crumb in the cake
  • Baking powder: ensures the cake rises to a perfect fluffy height
  • Salt: balances the sweetness and enhances the cotton candy flavor
  • Unsalted butter: brings richness and a silky cake texture choose high quality for best results
  • Granulated sugar: gives sweetness and a velvety cake crumb
  • Large eggs: help bind everything together and provide structure use room temperature eggs if possible
  • Cotton candy flavoring: delivers that distinct nostalgic taste use sparingly for best balance
  • Whole milk: adds moisture for a soft delicate crumb whole milk gives the best texture
  • Food coloring: brings playfulness and lets you design your dream cake gel colors create the brightest hues
  • Powdered sugar: sweetens and thickens the buttercream
  • Milk or heavy cream: helps create a light fluffy buttercream texture
  • Cotton candy flavoring source: you can find cotton candy flavoring online or at some baking supply stores
  • Food coloring ideas: you can go classic with pink and blue or experiment with any pastel shades that inspire you

Instructions

Preheat and Prepare Pans:
Heat oven to 350 F or 175 C. Grease your cake pans well and line them with parchment for effortless release. This will help maintain the cake’s delicate shape
Mix Dry Ingredients:
In a medium bowl whisk flour baking powder and salt together until evenly distributed. This ensures a consistent rise and balanced flavor in your cake layers
Cream Butter and Sugar:
In a large mixing bowl beat butter until soft then add sugar gradually and continue beating until the mixture is very light and fluffy. This builds the foundation for the cake’s airy texture
Incorporate Eggs and Flavor:
Add eggs one by one fully blending each before adding the next. Mix in the cotton candy flavoring. Be sure to scrape down the bowl as you go for even distribution
Combine Wet and Dry Ingredients:
Add a third of the dry mixture to the wet mixture and mix just until combined. Add in half the milk and continue alternating flour and milk ending with flour. This process ensures a smooth tender batter without overmixing
Color and Marble the Batter:
Divide the batter evenly into separate bowls. Tint each with food coloring of your choice then spoon the batters into the pans in alternating dollops. Use a clean skewer to make gentle swirls for a beautiful marbled effect
Bake:
Place pans in the oven and bake for about 35 minutes or until a toothpick comes out clean from the center. Cool cakes in the pans for 10 minutes then transfer to a wire rack to finish cooling
Prepare Cotton Candy Buttercream:
Beat the butter until silky and smooth then gradually add powdered sugar mixing well after each addition. Mix in cotton candy flavoring. Adjust consistency with milk or cream so it spreads easily and stays fluffy
Assemble and Decorate:
Place one cake layer on your serving plate and spread generously with buttercream. Add the next layer and repeat. Cover the whole cake with a thin crumb coat then finish with a final layer of frosting. Decorate with additional colors or edible glitter for magic
A slice of rainbow cake on a plate.
A slice of rainbow cake on a plate. | recipebyme.com

My favorite part of this recipe is swirling the colors and seeing the smiles when the cake is cut. Every time I serve it at a gathering my nieces try to guess which color will be the biggest slice and it always becomes a playful moment at the table.

Storage Tips

Wrap leftover cake layers tightly in plastic wrap and keep them at room temperature for up to three days. For longer storage freeze the unfrosted layers for up to two months. Fully decorated cake can be stored in the fridge for up to four days just let it come to room temperature before serving for best flavor and texture.

Ingredient Substitutions

If you cannot find cotton candy flavoring try a few drops of vanilla extract with a pinch of raspberry or strawberry extract for a close approximation. Almond milk can work if you are avoiding dairy but whole milk yields the softest crumb. Gel food coloring will give you the best vibrant results but liquid coloring works in a pinch just add it slowly to avoid thinning your batter.

Serving Suggestions

Serve slices with a cloud of real cotton candy on top for extra fun or scatter pastel sprinkles and edible glitter for eye-catching sparkle. Small cupcake versions are always a hit with kids’ parties. This cake works beautifully as a showpiece for any celebration that needs a little magic and color.

Cultural and Seasonal Adaptations

Cotton candy cakes have become a playful staple at modern birthday parties inspired by childhood carnival memories. After Easter you can use leftover pastel candies for decoration. In summer swap in fresh berries for a pop of color and a slightly tart balance to the sweetness.

Success Stories

One year my daughter’s friends asked for a cotton candy cake at every single playdate. I even had neighbors request the recipe for their own celebrations. It is the kind of cake that turns any ordinary afternoon into something extraordinary.

Freezer Meal Conversion

Simply bake the cake layers ahead of time then wrap and freeze. When you need a cake in a hurry thaw layers at room temperature assemble with fresh buttercream and decorate as desired. This is a game changer for busy weeks with back-to-back celebrations.

A slice of rainbow cake on a white plate.
A slice of rainbow cake on a white plate. | recipebyme.com

This cake makes every celebration extra special. The swirls and flavors will enchant both kids and adults.

Recipe FAQs

→ How do I achieve vibrant colors in the layers?

Divide the batter into separate bowls, use gel food coloring, and swirl gently with a skewer before baking.

→ Can I use store-bought cotton candy flavoring?

Yes, cotton candy flavoring is recommended for both the cake and buttercream to impart a classic sweet taste.

→ Is it necessary to use room temperature ingredients?

Room temperature butter, eggs, and milk blend more easily, leading to a smoother, fluffier texture.

→ How can I prevent the cake from drying out?

Don't overbake and ensure cakes cool slightly before removing from the pans to keep moisture locked in.

→ What’s the best way to decorate for a whimsical look?

Frost the cake with brightly colored buttercream and personalize with sprinkles or edible glitter for extra flair.

→ Can I make the layers ahead of time?

Yes, bake layers a day in advance, wrap tightly, and frost after they cool completely for best results.

cotton candy cake layers

Fluffy white layers swirled with color and cotton candy flavor, finished with smooth buttercream frosting.

Prep Time
35 min
Cook Time
35 min
Total Time
70 min
By Sana: Sana

Category: Desserts & Sweets

Skill Level: Medium

Cuisine: American

Yield: 12 Servings (One 2-layer 9-inch cake)

Dietary Categories: Vegetarian

Ingredients

→ For the Cake

01 2 1/4 cups all-purpose flour
02 2 1/4 teaspoons baking powder
03 3/4 teaspoon salt
04 3/4 cup unsalted butter, at room temperature
05 1 1/2 cups granulated sugar
06 3 large eggs, at room temperature
07 1 1/2 teaspoons cotton candy flavoring
08 1 cup whole milk, at room temperature
09 Pink, blue, purple, and yellow food coloring

→ For the Cotton Candy Buttercream

10 1 cup unsalted butter, at room temperature
11 4 cups powdered sugar
12 1/2 teaspoon cotton candy flavoring
13 2 to 3 tablespoons milk or heavy cream, for desired consistency
14 Food coloring, optional for decoration

Steps

Step 01

Preheat oven to 350°F (175°C). Grease and line cake pans with parchment paper for easy release.

Step 02

In a mixing bowl, thoroughly whisk together all-purpose flour, baking powder, and salt.

Step 03

In a large bowl, beat unsalted butter and granulated sugar until light and fluffy. Add eggs one at a time, ensuring each is fully incorporated. Mix in cotton candy flavoring.

Step 04

Alternately add the dry flour mixture and milk to the creamed butter, beginning and ending with the dry mix. Mix until just combined.

Step 05

Divide the batter evenly into separate bowls. Tint each portion with pink, blue, purple, or yellow food coloring. Spoon colored batters into prepared pans and create swirls using a skewer or knife.

Step 06

Bake in the preheated oven for about 35 minutes, or until a toothpick inserted into the center comes out clean. Allow cakes to cool in pans for 10 minutes, then carefully transfer to a wire rack to cool completely.

Step 07

Beat unsalted butter until smooth and creamy. Gradually incorporate powdered sugar and cotton candy flavoring. Adjust texture by adding milk or heavy cream until a spreadable consistency is achieved. Add food coloring if desired.

Step 08

Layer fully cooled cakes with buttercream, smoothing an even layer between each. Apply a thin crumb coat around the exterior, then finish with a thick layer of remaining buttercream. Decorate as desired.

Notes

  1. Allow cakes to cool completely before frosting to prevent buttercream from melting.

Required Equipment

  • Stand mixer or hand mixer
  • Mixing bowls
  • Wire rack
  • Offset spatula
  • Cake pans
  • Parchment paper

Allergen Information

Check each ingredient for potential allergens and consult a healthcare professional if needed.
  • Contains wheat, dairy, and eggs.

Nutritional Info (per serving)

This data is provided as a guide and doesn't replace medical advice.
  • Calories: 480
  • Fats: 23 g
  • Carbohydrates: 68 g
  • Proteins: 4 g