This cotton candy cake recipe layers soft vanilla cake in pink, blue, and white, then wraps it all in a fluffy cotton candy buttercream. It’s a colorful, easy cotton candy cake that works for birthdays, pastel-themed baby showers, or any event calling for sweet nostalgia.
The base starts with a straightforward white cake recipe using egg whites. That choice lets the food coloring stay vibrant, without yellowing from yolks. It also gives the batter a lighter texture, ideal for multiple layers.

Each layer holds its shape during baking, thanks to the ratio of flour to fat. 2½ cups of flour balances exactly with 1 cup butter and 1¾ cups sugar. That structure means the cake doesn’t sink or dome aggressively.
I went with three 8-inch pans to create defined layers without making the cake too tall. That size helps with decorating and serving, especially if it’s going to a cotton candy birthday party.
Ingredient Choices That Make the Difference
All-purpose flour works better here than cake flour. It holds the layers sturdier, especially when you’re stacking and frosting.
The butter must be room temperature, not melted. Creaming it properly with sugar creates the air pockets that give the cake height. Cold butter clumps. Melted butter flattens. Room temp? Just right.
Egg whites, not whole eggs, keep the cake color bright and the texture springy. That’s what makes it suitable for cotton candy cake decoration with soft pastels.
You’ll need a strong extract for flavor. I used LorAnn’s cotton candy flavoring. Start with 1½ teaspoons in the buttercream, then taste. A little goes far. You can add more for the filling if you want a stronger kick.
If you’re using real cotton candy as garnish, make sure to add it last minute. Moisture from the cake or air melts it fast.
Highlight on the Cotton Candy Buttercream
This frosting has to hold its shape, spread easily, and taste like cotton candy without overwhelming the cake. I chose a ratio of 1½ cups butter to 4½ cups powdered sugar. It’s firm enough for piping but not overly sweet.
Adding just 2 tablespoons of heavy cream loosens the mix for smoother spreading. Too much and it runs. Too little and it won’t whip to the right texture.
The cotton candy flavoring works best in the butter itself before the sugar goes in. That lets the flavor distribute evenly. Stir in the food coloring at the very end for better color control.
If you want a visual step-by-step for swirling color, my Cotton Candy Cupcakes use a similar tinting technique.
Visual Guide to Building the Layers

Start with your uncolored cake layer on the bottom.Spread a thin layer of your pink-blue marbled buttercream over it. Add the pink layer next, then the blue one on top.
Don’t skip the crumb coat. That initial thin frosting layer traps stray crumbs, and it makes the final coat much smoother. Chill it for 20 minutes before the final frosting.

For decoration, smooth pastel buttercream over the top and sides. I used light pink for the sides and blue for the top to echo the cake layers underneath. Then I added swirls of pink frosting along the top edge.
If you want another buttercream-based layer cake, this White Chocolate Coconut Cake follows a similar pastel technique.
How to Know the Cake Is Ready
Each layer should spring back when lightly pressed in the center.If your toothpick comes out clean or with one or two crumbs, pull it.
Don’t rely only on time. My oven needed the full 28 minutes. Yours may finish closer to 25. Look for golden edges and a flat surface, not a wet center.
Too pale and it’s underdone. Too brown and the edges will dry. Aim for just-golden tops with a pale body.
Variations You Can Try
For a Rainbow Cotton Candy Cake, divide the batter into five bowls and use yellow, purple, and green along with pink and blue.
To add crunch, fold in ½ cup rainbow sprinkles into each layer for a funfetti version.
Try a whipped cream-based frosting with 1½ cups heavy cream, 2 tbsp powdered sugar, and ½ tsp cotton candy extract if you prefer something lighter.
You can also top the whole thing with pink meringue kisses for texture.
Storage Notes and Freezer Instructions

This cake stores well in the fridge for up to 4 days. Cover it lightly with plastic wrap or a cake dome to protect the frosting.
At room temperature, it holds for 1 day if your kitchen stays cool. For freezing, wrap unfrosted layers tightly in plastic, then foil. Freeze for up to 2 months. Thaw overnight in the fridge. Frosting doesn’t freeze as well, so make it fresh when ready to assemble.
Practical Tips from Testing
Use gel coloring, not liquid. Liquid food dye can throw off the batter consistency.
Whip the buttercream for a full 3 minutes before adding sugar. That step makes it fluffy and easier to spread.
Always level your layers with a serrated knife before stacking. Even ¼ inch of dome can make the whole cake lean. Use a turntable while frosting. It saves time and creates clean edges.
Serving Suggestions for Cotton Candy Cakes
Slice and serve with a scoop of strawberry ice cream. Add mini flags or paper pinwheels for a birthday party.
Place a puff of real cotton candy on each slice before serving. Dust the top with edible glitter or pastel sprinkles. Layer with a stripe of raspberry jam between the cake and filling.
Save This Recipe & Share Your Twist
Pin this easy cotton candy cake for your next celebration. Let me know in the comments if you tried a rainbow version or a different frosting style. I’d love to hear how it turned out.
Cotton Candy Cake Recipe
Try this cotton candy cake recipe for a light, sweet treat that’s perfect for celebrations. With playful cotton candy cake decoration and colorful layers, it fits any festive table. Great for a cotton candy birthday party, this dessert brings together bright colors and nostalgic flavor. Learn how to make a cotton candy cake at home using simple ingredients. Whether you’re going for a rainbow cotton candy cake or need fun cotton candy cake ideas, this DIY recipe adds charm to your dessert lineup.
Ingredients
- FOR THE CAKE LAYERS
- 2 ½ cups (310g) all-purpose flour
- 1 tbsp baking powder
- ½ tsp salt
- 1 cup (226g) unsalted butter, room temperature
- 1 ¾ cups (350g) granulated sugar
- 4 large egg whites
- 1 tbsp vanilla extract
- 1 cup (240ml) whole milk
- Pink food coloring
- Blue food coloring
- FOR THE COTTON CANDY BUTTERCREAM
- 1 ½ cups (340g) unsalted butter, room temperature
- 4 ½ cups (540g) powdered sugar, sifted
- 2–3 tbsp whole milk or heavy cream
- 1 ½ tsp cotton candy flavoring (such as LorAnn oils)
- Pink and blue food coloring
- Pinch of salt
- FOR THE FILLING BETWEEN LAYERS
- ½ cup buttercream (reserved from above)
- 1 tsp extra cotton candy flavoring (optional)
- A touch of extra food coloring for vibrant swirls
Instructions
- PREHEAT AND PREP: Preheat the oven to 350°F (175°C). Grease and line three 8-inch round cake pans with parchment paper to ensure easy release.
- MAKE THE CAKE BATTER: In a medium bowl, whisk together the flour, baking powder, and salt. In a large mixing bowl, cream the butter and sugar together on medium-high speed for 3–4 minutes, until pale and fluffy. Add the egg whites one at a time, beating well after each addition. Stir in the vanilla extract. Add the dry ingredients in three additions, alternating with the milk, starting and ending with the flour mixture. Mix just until combined without overmixing.
- DIVIDE AND COLOR: Divide the batter evenly into three bowls. Leave one bowl uncolored, tint one with pink food coloring, and the last with blue. Stir each just enough to evenly distribute the color. Pour each batter into a separate prepared pan and smooth the tops.
- BAKE: Bake the layers for 25–28 minutes, or until a toothpick inserted in the center comes out clean. Allow the cakes to cool in the pans for 10 minutes before inverting onto wire racks to cool completely.
- MAKE THE COTTON CANDY BUTTERCREAM: In a stand mixer fitted with a paddle attachment, beat the butter on medium-high speed for 2–3 minutes until smooth and light. Gradually add the sifted powdered sugar in batches, mixing well between each addition. Add the milk, cotton candy flavoring, and a pinch of salt. Continue beating until smooth and spreadable. Tint portions of the buttercream with pink and blue food coloring for decorating later. Reserve ½ cup of plain buttercream for the filling.
- PREPARE THE FILLING: Take the reserved ½ cup of buttercream and stir in additional cotton candy flavoring, if desired. Divide into two small bowls and tint one pink and one blue. Gently swirl the two colors together without fully blending to create a marbled effect.
- ASSEMBLE THE CAKE: Place the uncolored (white) cake layer on a cake board or stand. Spread a thin layer of the marbled cotton candy filling evenly over the top. Add the pink cake layer and repeat with the filling. Top with the blue layer. Apply a thin crumb coat of plain buttercream over the entire cake to seal in crumbs, then chill for 20 minutes to set.
- DECORATE: Once chilled, apply the final layer of frosting using the pastel-tinted buttercream. Smooth light blue frosting over the top and light pink around the sides for a soft gradient. Pipe swirls or dollops of pink frosting along the top edge for a finished look. For extra decoration, add edible glitter or small tufts of cotton candy just before serving.
Notes
Use gel food coloring for more vibrant colors without affecting the texture of the batter or frosting. Cotton candy flavoring is highly concentrated—start with less and taste before adding more. Assemble and frost the cake just before serving if using real cotton candy as garnish, as it melts quickly when exposed to moisture.
Nutrition Information
Yield
14Serving Size
1Amount Per Serving Calories 406Total Fat 18gSaturated Fat 11gUnsaturated Fat 7gCholesterol 47mgSodium 212mgCarbohydrates 57gFiber 0gSugar 42gProtein 4g
