Easy Rainbow Cake

This easy rainbow cake is the ultimate celebration cake! Made with a box cake mix and a simple layering technique, it’s perfect for any occasion from birthdays to St. Patrick’s Day. Top it with vanilla frosting and sprinkles for a cake that’s as delicious as it is beautiful!

Slices of rainbow cake with vanilla frosting and rainbow sprinkles on a cake serving plate.

Making a rainbow cake is surprisingly easy! I first shared this recipe back in 2015, and I’ve made it countless times since. With six stunning colors of the rainbow, a moist, fluffy texture, and my super-simple layering technique, this vibrantly colored cake is guaranteed to brighten up any celebration. No special baking skills required—just a little food coloring and a bundt pan!

To keep things as easy as possible, I doctor up a trusty ol’ store-bought cake mix, but you can absolutely use your favorite homemade vanilla cake recipe instead. So, grab your bundt pan and get ready to create a showstopping dessert that’s as fun to make as it is to eat!

Ingredients

Rainbow cake ingredients: A box of white cake mix, vegetable oil, eggs, food coloring and water.
  • Cake mix: To keep this rainbow cake quick and easy, I use a box of cake mix. My go-to brands are Betty Crocker and Duncan Hines—both bake up light, fluffy and perfectly moist. Either white cake mix or yellow cake mix works well here, but if you want the most vibrant rainbow colors, I recommend white!
  • Eggs, water and vegetable oil: The essentials for making a soft and moist cake.
  • Food coloring: For bold, vibrant rainbow layers, I highly recommend gel food coloring over liquid food coloring. My go-to brand is AmeriColor, but Wilton and Chefmaster are also great options. You’ll need red, orange, yellow, green, blue and purple.

See the recipe card for full information on ingredients and quantities.

How to Make a Rainbow Cake

Cake mix batter in a large bowl with tubes of gel food coloring nearby.
  1. Make the cake batter. In a large mixing bowl, stir together the cake mix, eggs, water and vegetable oil until smooth.
Six bowls containing cake batter.
  1. Evenly divide the batter into six small bowls.
Adding food coloring to small bowls containing cake batter.
  1. Dye each batter with food coloring to make red, orange, yellow, green, blue and purple batters.
Six bowls containing cake batter dyed the colors of the rainbow: red, orange, yellow, green, blue and purple.
  1. Mix just until the colors are incorporated.
  1. Now it’s time to layer the batter in your bundt pan! Grease your pan with cooking spray. Pour the red batter into the bundt pan first, then carefully layer the orange, yellow, green, blue and purple on top. Don’t stir—this creates the beautiful layered effect.

  1. Bake in a 350°F oven for 33 to 36 minutes, or until a toothpick inserted into the center comes out clean. Remove the cake from the oven and let it cool completely before inverting onto a serving plate and decorating. 

This rainbow bundt cake is a stunner all on its own, and I’ve served it plenty of times as a naked cake (no frosting needed!), but when I want to take it over the top (and style it like my photos), I pipe on a simple vanilla buttercream frosting—just enough to highlight those vibrant layers. If you’re in a hurry, a store-bought vanilla frosting works great, too.

And of course, no rainbow birthday cake is complete without a shower of rainbow sprinkles. Making this for St. Patty’s Day? A few milk chocolate coins make the perfect festive touch!

Piping vanilla frosting onto a rainbow cake on a wire cooling rack.

Tips for Success

  • Don’t overmix after adding food coloring. Over-mixing the batter can lead to the development of too much gluten, which can make the cake tough, dry and dense.
  • Don’t swirl or mix the batters together. Instead, gently pour each color on top of the last. This layering technique creates those beautiful, distinct rainbow layers once sliced!
  • Cool before inverting. Flipping the cake out too soon can lead to a crumbly disaster. Let it cool for at least 10-15 minutes before inverting onto a plate. Patience = perfection.
  • Let the cake cool completely before frosting. This prevents the frosting from melting.
  • Make it ahead. Hosting a party? Bake the cake a day in advance, wrap it tightly and frost it just before serving. The colors stay vibrant, and you’ll have one less thing to worry about on party day!

Storage Instructions

If unfrosted or lightly frosted, store the cake in an airtight container at room temperature for up to 2 days. Keep it in a cool, dry place away from direct sunlight. For longer storage, or cakes with lots of frosting, I recommend storing them in the refrigerator for up to 5 days.

Can I Freeze This Cake?

Absolutely! Wrap the unfrosted rainbow cake tightly in plastic wrap, then in foil and freeze for up to 3 months. When ready to serve, thaw in the fridge overnight, then bring to room temperature before frosting and decorating.

Rainbow cake topped with vanilla frosting, rainbow sprinkles and milk chocolate coins on a round cake platter.

If you loved this easy rainbow cake, you have to check out my rainbow cupcakes with buttercream frosting! They’re just as colorful and fun but in perfectly portioned cupcake form. Happy baking!

Craving more? Subscribe to Just a Taste to get new recipes, meal plans and a newsletter delivered straight to your inbox! And stay in touch on Facebook, TikTok, Pinterest and Instagram for all of the latest updates.
Dessert

Easy Rainbow Cake Recipe

This Easy Rainbow Cake is a show-stopping dessert made with a simple layering technique and vibrant rainbow colors. Perfect for birthdays, St. Patrick’s Day or any festive celebration!
Author: Kelly Senyei
No ratings yet
Slices of rainbow cake with vanilla frosting and rainbow sprinkles on a cake serving plate.
Prep Time 15 minutes
Cook Time 36 minutes
Total Time 51 minutes
Servings 10 servings

Equipment

  • 8-cup bundt pan

Ingredients 

  • Cooking spray
  • 1 (15.25-oz.) box white or yellow cake mix
  • 3 large eggs
  • 1 cup water
  • 1/2 cup vegetable oil
  • Food coloring (red, orange, yellow, green, blue and purple)
  • Vanilla frosting, for decorating
  • Sprinkles, for decorating

Instructions 

  • Preheat the oven to 350°F. Grease an 8-cup bundt pan with cooking spray.
  • In a large bowl, stir together the cake mix, eggs, water and vegetable oil.
  • Divide the batter evenly into six small bowls. Using the food coloring, dye each of the bowls of batter a different color.
  • Pour the red batter into the bundt pan, then top it with the orange, yellow, green, blue and purple.
  • Bake the cake until a toothpick inserted comes out clean (or according to package instructions), 33 to 36 minutes.
  • Remove the cake from the oven and let it cool completely before inverting onto a serving plate. 
  • Frost the completely cooled cake then decorate with sprinkles. Slice and serve. 

Video

How to Make an Easy Rainbow Cake

Kick up the color of dessert with this simple tutorial for how to make a rainbow cake. SUBSCRIBE: bit.ly/JustaTasteYouTube

Kelly’s Notes

  • ★ Did you make this recipe? Don’t forget to give it a star rating below!

Nutrition

Calories: 276kcal, Carbohydrates: 35g, Protein: 3g, Fat: 14g, Saturated Fat: 3g, Polyunsaturated Fat: 7g, Monounsaturated Fat: 3g, Trans Fat: 0.3g, Cholesterol: 49mg, Sodium: 320mg, Potassium: 45mg, Fiber: 0.5g, Sugar: 18g, Vitamin A: 71IU, Calcium: 103mg, Iron: 1mg

Shoutout

Did you try this recipe?

Share it with the world! Mention @justataste or tag #justatasterecipes!

This post may contain affiliate links.


Feeling social?

Share this recipe!

Categories

Related Recipes

Check out more crave-worthy favorites

Kelly Senyei holding a copy of The Secret Ingredient Cookbook

love the recipes on just a taste?

Check out my cookbook!

Order your copy of The Secret Ingredient Cookbook featuring 125 brand-new family-friendly recipes with surprisingly tasty twists!

Join the Conversation

Rate and Comment

Your email address will not be published. Required fields are marked *

Recipe Rating




Comments

  1. Jean says:

    For the rainbow cake, Can I use a regular round cake pan

    1. Kelly Senyei says:

      Hi Jean! You’ll need two 8″ or 9″ round cake pans. Follow the bake time suggestions on the box for the pan size you use. :)

  2. Emily Gibson says:

    Looks great! I want to make this in our baking club at an assisted living facility I work at. Is there a typed-out recipe for this cake so I can print for participants to read/follow?

  3. CakenGifts.in says:

    This Rainbow cake recipe is very best. This cake is looking designer cake and very attractive cake. I will sure make this cake for my son’s birthday. Thanks for sharing this nice cake article.

    1. Kelly Senyei says:

      You are so welcome. Enjoy!

  4. Joy Howell says:

    I think I’ll try the rainbow cake in pastel colors for Easter looks yummy

    1. Kelly Senyei says:

      Love that idea, Joy!

  5. Veronica says:

    I will try soon ! Look amazing! !

    1. Kelly Senyei says:

      Enjoy, Veronica!

  6. Rebecca says:

    Is there a printable recipe for the rainbow cake?

  7. Linda Lee says:

    I love the recipes.

    1. Kelly Senyei says:

      Thanks so much, Linda!

  8. Cocepcion Edullantas says:

    your paged is amazing full of yummy food. i wish to have the recipe of rainbow cake. thank you.

  9. Riham says:

    Hi! Great idea but if I may ask How many boxes of Betty Crocker should we use plz?

    1. Kelly Senyei says:

      Hi there! It’s just one box of cake mix.

  10. muna ahmed says:

    Your tips are very easy and i enjoyed it.could you kindly tell me is it advisable to bake a cake with selfrising flour or better to use the natural way.

    1. Kelly Senyei says:

      Hi there! It totally depends on the recipe as to which type of flour to use.

  11. Jen says:

    Great video! I just made a rainbow cake tonight. My red and orange layers blended together and created a very thin layer around the cake, but the other colours worked perfectly. Any tips for getting the red and orange to stay where they should be? PS I topped this with a chocolate glaze and rainbow sprinkles!

    1. Kelly Senyei says:

      Thanks, Jen! Did you pour the orange directly on top of the red?

  12. Peggy says:

    what brand is the cake mix? I never heard of white cake mix.

    1. Kelly Senyei says:

      Hi Peggy! It’s the white cake mix from Betty Crocker :)

  13. Laurie says:

    Do you use all of the cake batter per layer? Also, how many drops of food coloring do you use?

    1. Kelly Senyei says:

      Hi Laurie – Per the video, you divide the cake batter into 6 bowls then each portion is poured inside. The amount of food coloring to use depends on how vibrant you want the colors to be.

  14. Priscilla Barron says:

    Looks like there is room to double the recipe – can you tell me what I would increase the baking time to when recipe is doubled?

    1. Kelly Senyei says:

      Hi Priscilla – There actually isn’t enough room, as the cake rises significantly when it bakes. Adding a second recipe of batter to the pan would cause it to overflow while baking.

  15. Cathleen @ A Taste Of Madness says:

    This is so gorgeous!! I seriously need to try something rainbow sometime soon!

    1. Kelly Senyei says:

      Thanks so much, Cathleen!

  16. June @ How to Philosophize with Cake says:

    What a gorgeous cake! Love the video, interesting to see how it all comes together so beautifully :)