4th of July Tie-Dye Cake (and Cupcakes!)

How to make festive, colorful tie-dye homemade vanilla cakes and cupcakes for any occasion. These are always, always a huge hit!

slice of red, white, and blue tie-dye cake topped with vanilla frosting and sprinkles on a white plate with a fork

 Tie-Dye Cakes, Rainbow Cakes, Swirly Color Cakes, whatever you want to call them… I love them all! And they are super easy to make, too.

Dazzle your guests with this colorful dessert on any occasion.

red, white, and blue tie-dye cake topped with vanilla frosting and sprinkles on a white cake stand

Let me show you the cake and also walk you through the steps.

Make your 1-layer sprinkle cake batter (leave out the sprinkles in the batter).

Divide the batter into three different bowls. Drop food coloring of choice into each bowl. The white batter has no food coloring. Drop spoonfuls of batter into baking pan. It doesn’t have to be perfect or pretty:

red, white, and blue tie-dye cake batter in a cake pan before baking

Bake the cake. Frost the cake. Sprinkle the cake. Cut the cake. Look at the pretty colors!

Devour the cake. –> That’s the best part.

slice of red, white, and blue tie-dye cake topped with vanilla frosting and sprinkles on a white plate

For more delicious inspiration, see this list of 25+ 4th of July desserts!

Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
slice of red, white, and blue tie-dye cake topped with vanilla frosting and sprinkles on a white plate with a fork

How to Make a Tie-Dye Cake

4.3 from 3 reviews
  • Author: Sally
  • Prep Time: 30 minutes
  • Cook Time: 45 minutes
  • Total Time: 3 hours
  • Yield: serves 10
  • Category: Cake
  • Method: Baking
  • Cuisine: American
Save Recipe

Description

How to make festive, colorful tie-dye homemade vanilla cakes and cupcakes for any occasion. These are always, always a huge hit!


Ingredients


Instructions

  1. Preheat oven to 350ยฐF (177ยฐC). Grease one 9-inch round cake pan (or 9-inch springform pan), line with a parchment paper round, then grease the parchment paper. Parchment paper helps the cakes seamlessly release from the pans. (If it’s helpful, see this parchment paper rounds for cakes video & post.)
  2. Make the cake batter according to my directions (see link in the ingredient list). Divide the white batter into three separate bowls. Grab your food coloring and dye your batters any color you choose. I used 10 drops of red, 10 drops of blue, and left the third bowl plain. Place a separate spoon in each bowl. Scoop large spoonfuls of each batter and layer them into prepared baking pan. It does not have to be pretty. The colors will create a tie-dye effect. See photo above for how my cake looked prior to baking.
  3. Bake for 20 minutes. Cover loosely with aluminum foil (loosely to avoid the top from sticking to the foil). Bake for 13-17 more minutes or until a toothpick inserted in the center comes out clean. Allow to cool.
  4. Make the frosting according to my directions (see link for frosting in ingredient list). Frost cooled cake and decorate as desired. Cake stays fresh covered at room temperature or in the refrigerator for 5 days.

Notes

  1. Special Tools (affiliate links):ย 9-inch Round Cake Pan | Glass Mixing Bowls | Gel Food Coloring
  2. Layer Cake: You could: (1) Bake the cake as indicated and slice the cake horizontally to create two layers. Double the frosting if desired. (2) Double the cake recipe and bake in two separate 9-inch cake pans for 1 extra tall layer cake. Double the frosting recipe as well.

I know what you’re thinking. Can I do this with cupcakes?

red, white, and blue tie-dye cupcakes topped with vanilla frosting and sprinkles

Make the batter for very vanilla cupcakes. Divide the batter into three bowls. Use a few drops of food coloring to dye your batters. Layer the batter into the cupcake liners and bake. Frost with my vanilla frosting. That’s it!

red, white, and blue tie-dye cupcake batter in a cupcake pan before baking
sally mckenney headshot purple shirt.
About the Author

Sally McKenney

Sally McKenney is a baker, food photographer, and New York Times best-selling author. Her kitchen-tested recipes and step-by-step tutorials have given millions of readers the knowledge and confidence to bake from scratch. Sallyโ€™s work has been featured on TODAY, Good Morning America, Taste of Home, People, and more.

Read More

Reader Comments and Reviews

  1. Tasha S says:
    July 4, 2025

    Hey Sally and team!
    I love the colors, but the colors that I used turned out turquoise blue, coral pink, and yellowish cake (instead of white). Iโ€™m doing this today for the 4th of July and now Iโ€™m wondering if itโ€™s because I used gel colors, or the colors were expired, or maybe one of my ingredients made it turn. Such as, I used unsweetened vanilla almond milk and 5% Greek Fage plain yogurt. Iโ€™m sure theyโ€™ll taste great though!!
    Thank you in advance!

  2. Judy says:
    June 28, 2025

    Hi Cara – what was your bake time for the 9×13 cake?
    Thanks – Judy

  3. Cara says:
    July 4, 2024

    Made it with the kids for the 4th. Doubled the recipe and made it in a 9×13 pan. Looked super cute, but might try this with a different white cake recipe of Sally’s we liked better flavor wise. Very excited how good the colors looked and will try this for other holidays.


    1. Carol says:
      July 2, 2025

      Did you get the cook time for the 9×13?

      1. Lexi @ Sally's Baking says:
        July 2, 2025

        Hi Carol, for a 9×13-inch cake, we’d follow our vanilla sheet cake recipe and then divide the batter and color as directed for the tie-dye cake. Enjoy!

  4. Snibb says:
    July 4, 2024

    Tasted very good. But, the blue turned green and the white turned yellow? What?

    1. Snibb says:
      July 4, 2024

      But when I cut into it the colors were perfect. I don’t get how that happened. Very tasty and festive cake.

  5. Janice says:
    June 26, 2024

    Is it really sufficient to just spray the pan with non-stick spray alone, rather than using spray plus parchment paper or greasing and flouring? I’ve never used just spray before when baking a cake, feel a little nervous about it and need confirmation/reassurance.

    1. Lexi @ Sally's Baking says:
      June 27, 2024

      Hi Janice, a parchment paper round is recommended here as well. We just updated the directions to include that information. Hope you enjoy the cake!

  6. Pepper says:
    July 3, 2023

    If I make cupcakes, is the bake time and tinfoil the same as what the cake recipe calls for? Thanks!

    1. Lexi @ Sally's Baking says:
      July 3, 2023

      Hi Pepper, you can make the batter from and follow the baking directions for very vanilla cupcakes. Enjoy!

  7. Jade says:
    July 1, 2023

    Do you make a vanilla cake for the Tie-Dye Cake or do you make the sprinkle cake?

    1. Sally @ Sally's Baking says:
      July 1, 2023

      You can use either. For a 1-layer vanilla cake, use this sprinkle cake recipe and leave out the sprinkles.

  8. Jade says:
    June 30, 2023

    For the Tie -Dye-Cake. Can you replace the butter milk with whole milk?

    1. Trina @ Sally's Baking says:
      June 30, 2023

      Hi Jade! The 1 layer cake linked in the recipe calls for whole milk already. No need to substitute!

  9. Trina says:
    July 27, 2022

    Made these cupcakes for the 4th of July and loved them! Biting into them was fun because every one was a little different.

  10. Annie says:
    July 1, 2022

    Would this technique work with the Simply Perfect Vanilla Cupcake recipe?

    1. Lexi @ Sally's Baking says:
      July 1, 2022

      Absolutely!

  11. Megan says:
    May 20, 2022

    Hi Sally! I love your vanilla cake and would to give this a try as a birthday cake! I used a few more colors in my test run and my colors got muddy. Any suggestions for why this happened? Could my ingredients be too warm or is it a problem with my coloring (Americolor)?

    Thank you!

    1. Beth @ Sally's Baking says:
      May 22, 2022

      Hi Megan, sorry to hear your colors ran together too much! Happy to help troubleshoot. It could be that you’re just using too many colors–maybe scale back to just three or four? You could also try using gel food color instead of liquid drops, and see if that makes the colors swirl a bit better without mixing together too much. Best of luck with your next attempt!

  12. Lauryn says:
    September 29, 2021

    Could this work with Halloween colors purples, greens, oranges and white?

    1. Lexi @ Sally's Baking says:
      September 29, 2021

      Definitely!

  13. Dawn D. says:
    July 4, 2016

    How fun! These cupcakes would be great for a summer birthday party, too, not just for the Fourth!

  14. Amanda says:
    February 5, 2016

    Hello Sally. I make a lot of your recipes but I have never commented. The recipes are wonderful and I love the detailed instruction. I made this cake for my daughter whom is turning 8 today. I actually made it with both my daughters last night as they wanted to have a piece for breakfast and in their lunches today. It is the best vanilla cake I have tasted. Our whole family enjoyed it and the birthday girl loved selecting the colors. She chose Barbie pink, light blue and yellow. She thought it looked like the 1980s and it did! Thank you for all the great recipes and info!

  15. jami says:
    July 2, 2015

    Sally,ย 

    Can I bake the tye dye cupcakes in a mini muffin pan or will the colors not work out in such a tiny space??

    1. Sally @ Sally's Baking says:
      July 3, 2015

      Definitely!

  16. Jessie says:
    July 15, 2014

    Hi Sally!

    Would I need to change the baking time if I am planning to double the recipe and make a layer cake? I’m using this for my twins’ Cat in the Hat themed 1st birthday!!

    1. Sally @ Sally's Baking says:
      July 15, 2014

      No need to change the baking time – just bake two separate cakes. I find that doubling the recipe actually makes a little more than you need for 2 cake pans. Fill them halfway with batter and then use extra batter to make cupcakes.

  17. Anne says:
    July 8, 2013

    Hi Sally,
    I made this cake for my niece’s 4th of July birthday celebration. It was a HUGE hit. Seriously….the cake was light and moist and it was super cool when you cut into it.

    I also made your raspberry/chocolate skyhigh muffins and the strawberry cheesecake bars (except I made them with raspberry jam. Everything was awesome. Thank you for sharing your recipes. You are my go to website for baking ideas!

  18. Margaux says:
    July 1, 2013

    Do you think this technique would work with your Cake Batter Blondies? I bought some Fourth of July Funfetti cake mix to make those for work, but I might see if I can try this out and make them even more festive. Also, what kind of food coloring do you use? I tried making a red cake for the Fourth last year and it came out super pink.

    1. Sally @ Sally's Baking says:
      July 1, 2013

      I’m unsure – I’ve never tried it before. But I can’t see why not. I used store brand food coloring – liquid. I had to use a lot of drops to get it red.