Learn how to make a fun Rainbow Cake that actually looks like a rainbow with this doable method anyone can do—even novice bakers! This method is a super fun way to make a kids birthday cake to delight the kids…especially the rainbow-lovers.

rainbow cake with candleson cake stand

Rainbow Cake

My middle kiddo has loved rainbows for as long as I can remember, and for her fifth birthday, requested a Rainbow Cake. And after looking online and finding a lot of cakes with rainbow layers, but none that actually looked like a rainbow—which is what she wanted—we came up with this easy method.

To make this cake, you simply bake a round cake, and cut it in half. Then you use frosting to sandwich the halves to make your rainbow cake. Best of all? The cake is so fun that it doesn’t even matter if the rainbow colors look perfect…or anything but!

This is (for sure) one of my most elaborate recipes, but while there are a bunch of steps, nothing is hard. And the pay off at the end is so worth it!

Ingredients You Need

To make this cake (and the frosting) you’ll need:

ingredients-in-rainbow-cake

TIP: Then for the frosting and decorating, you’ll need cCream cheese, powdered sugar, ffood coloring, and marshmallows.

Step-by-Step Instructions

Here’s a look at what you’ll need to do to make this cake.

how-to-make-rainbow-cake-step-by-step
  1. Beat the butter and sugar with a hand-held electric mixer.
  2. Add in the eggs and beat to combine.
  3. Add in the milk, flour, and other dry ingredients and mix gently to combine.
  4. Gently fold in the sprinkles. Add batter to pan.
  5. Bake.
  6. Let cool fully.

TIP: I usually make the cake the day before I plan to serve this to cut down on how much work I need to do on any one day.

How to Assemble the Cake

Once you have the cake made, you’ll need to make the frosting and put the cake together. Here’s how. Scroll down to the bottom of the post for the full info.

  1. Beat the frosting together.
  2. Divide into bowls.
  3. Add food coloring.
  4. Carefully cut the cake in half.
  5. Use one color (I used red) to stick the two halves together, then cover the top.
  6. Add the remaining colors, one at a time. Cut the marshmallows in half and add to the bottom of the front and sides.

TIP: This does not have to be perfect. It’s so fun regardless!

slice-of-rainbow-cake-on-purple-plate

Frequently Asked Questions

Can I use purchased frosting?

Sure! Just choose a few colors. That would be an easy way to make this easier.

What kind of knife did you use for frosting the rainbow?

I used a small cake icing spatula. I find the smallest size to be easiest to manage. A small butter knife could work too.

Can I use natural food coloring?

Sure, you can use whichever type you prefer. I like the ones from India Tree.

child with rainbow birthday cake
Rainbow Cake in real life for my daughter’s birthday.

How to Store

  • This cake is best on the day it’s assembled Cover any leftovers with plastic wrap and store at room temperature for up to 2 days or in the fridge for 3-5.
  • You can bake the cake the day before you plan to serve it. Let it cool fully on the wire rack, then place onto a plate lined with parchment paper and cover tightly with plastic wrap to make sure it stays fresh. (Or line a large airtight container with parchment paper and cover.) Store at room temperature.

Best Tips for Success


I’d love to hear your feedback if you try this recipe, so please comment below!

Want to save this recipe?
Just enter your email and get it sent to your inbox! Plus you’ll get new recipes from us every week!
Please enable JavaScript in your browser to complete this form.
rainbow-cake-with-candles-on-cakestand

Favorite Rainbow Cake (for Kids Birthdays)

This recipe delivers a cake that actually looks like a rainbow, which will delight kids and adults on birthdays or for a special occasion. This cake is best on the day it’s made.
5 from 6 votes
Prep Time 30 minutes
Cook Time 24 minutes
Total Time 54 minutes
Cuisine American
Course Dessert
Calories 441kcal
Servings 12

Ingredients

Cake

  • ½ cup unsalted butter (1 stick, softened at room temperature)
  • ½ cup sugar
  • 2 large eggs (at room temperature if possible)
  • 2 teaspoons vanilla extract
  • ½ cup whole milk (at room temperature if possible)
  • 1 ¼ cups all-purpose flour
  • 1 ¼ teaspoon baking powder
  • ¼ teaspoon salt
  • 1 tablespoons nonpariel style sprinkles (optional)

Frosting

  • 1 cup unsalted butter (2 sticks, softened at room temperature)
  • 12 ounces cream cheese (softened at room temperature; 1 ½ standard size packages)
  • 1/2-1 cup powdered sugar
  • 1 teaspoon vanilla extract
  • 5 colors food coloring
  • 12-16 regular size marshmallows
Save this recipe?
Enter your email to save this recipe in your inbox!
Please enable JavaScript in your browser to complete this form.

Instructions

To make the cake:

  • Preheat the oven to 350 degrees F and grease a 9-inch round cake pan with nonstick spray very well. (I use Classic Pam.)
  • Add the butter and sugar to a medium bowl. Beat with a hand-held electric mixer on medium-high speed until light, fluffy, and thick or about 3-5 minutes. 
  • Add in the eggs one at a time, beating in between to fully incorporate each egg.
  • Add in the vanilla.
  • Add the baking powder, salt, and half of the flour to the bowl. Beat on the lowest speed. Add half of the milk. Beat on the lowest speed. Add the remaining flour and milk and beat on the lowest speed to just combine the batter. Gently fold in the sprinkles if using.
  • Add the batter to the prepared cake pan.
  • Bake for 24-26 minutes or until just golden brown around the edges and a cake tester inserted into the center comes out clean.
  • Remove from the oven. Run a knife around the edges, and invert carefully onto a wire rack to cool completely. 

To make the frosting:

  • Add the butter, cream cheese, ½ cup powdered sugar, and vanilla to a large bowl. Beat with a hand-held electric mixer, starting on slow (to prevent the powdered sugar from flying all over!) and working up to high for 30-60 seconds or until well mixed and fluffy. Taste and add more powdered sugar as you like. (I usually use 1 cup.)
  • Place 1 ¼ cups of the frosting into a medium bowl. Add 1-2 drops food coloring (this is the top of the rainbow—I used red food coloring here) and stir to combine.
  • Divide the remaining frosting into 4 small bowls. Add 1-2 drops of the remaining colors of food coloring to each and stir to combine.

To assemble the cake:

  • Carefully place the cake onto a cutting board. Use a serrated knife to cut in half.
  • Use the red frosting to coat the middle of one half. Sandwich the other half on and place, cut side down and standing upright, onto a cake stand or platter.
  • Use the remaining red frosting to coat the top edge of the cake, hiding the seam.
  • Working your way down from the top edge of the cake, add each color of the rainbow. (It’s okay if it’s not perfect!)
  • Cut each marshmallow in half with scissors and place the sticky side onto the base of the sides as clouds.
  • Slice to serve.

Notes

  • This cake is best on the day it’s assembled Cover any leftovers with plastic wrap and store at room temperature for up to 2 days or in the fridge for 3-5.
  • You can bake the cake the day before you plan to serve it. Let it cool fully on the wire rack, then place onto a plate lined with parchment paper and cover tightly with plastic wrap to make sure it stays fresh. (Or line a large airtight container with parchment paper and cover.) Store at room temperature.
  • I used gel food coloring from Wilton for bright colors. Any will work.
  • I like these plant-based food colorings.
  • A small cake icing spatula is a good tool for adding the frosting, though a butter knife can also work.
  • Place candles on top for a birthday cake.
  • You may have a little of each frosting color left over.
  • Make the cake chocolate using my Healthy Chocolate Cake recipe.

Nutrition

Serving: 1slice, Calories: 441kcal, Carbohydrates: 31g, Protein: 5g, Fat: 34g, Saturated Fat: 20g, Polyunsaturated Fat: 1g, Monounsaturated Fat: 9g, Trans Fat: 1g, Cholesterol: 120mg, Sodium: 208mg, Potassium: 85mg, Fiber: 1g, Sugar: 19g, Vitamin A: 1145IU, Calcium: 77mg, Iron: 1mg
Tried this recipe?Rate in the comments and tag @yummytoddlerfood on IG!

This post was first published May 2021.

Related Products

Share it with the world

Pin

Filed Under

5 from 6 votes (1 rating without comment)

Leave a comment

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

How many stars would you give this recipe?




All comments are subject to our Terms of Use.

Comments

  1. 5 stars
    As always, Amy’s recipes turn out wonderful and are a huge hit. I used this recipe to make my daughters birthday cake for a rainbow themed birthday party. We did the icing a little differently and used pipping bags to add the rainbow colours, But it all turned out great, and tasted super delicious. Thank you!

  2. I would love to make it for my 3 year old but I am coeliac and want to be able to eat too. Do you have any tips to make it gluten free? Should I just swap to gf flour? Or almond meal?

    Thank you

  3. My toddler wants this cake for her 3rd birthday, but would love it to be strawberry flavored! Is there any way I can add a strawberry reduction to the batter by altering other ingredients? I’d like to avoid just using strawberry flavoring.

    1. You could grind up freeze-dried strawberries into a powder and add 1 cup to the batter without any other alternations (I think!). That lends great flavor to pancakes so I am thinking it would also work well here. Or maybe strawberry jam between the layers?

  4. That’s lovely. Would definitely try it 🙂 Your kid looks beautiful She is super excited aboout this cake idea 🙂 Hugs to her. Thank you for the recipe.

  5. I used a little dab of.icing to the marshmallows to pile them on top of one another to create a more realistic cloud form….looked amazing…I still used a cake plate n managed to hang them over the edge of the plate so it seemed like they were floating..

  6. 5 stars
    This is so great, thank you! I recently did an exhaustive-feeling search for rainbow cakes and I agree, it is so hard to find ones that aren’t a hidden reveal in the cake interior. Thanks for coming up with a simple way to make the rainbow obvious. One tip: adding the powdered sugar gradually and beating a lot in between keeps the frosting consistency spreadable and helps get away with the lower sugar amount, which is great! Still plenty sweet!