Zimt

Easy Rainbow Cake Recipe for Pride Month and Any Day

· 5 min read · Cakes

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions

This easy rainbow cake is a festive, crowd-pleasing layer cake made from one simple vanilla batter, divided and tinted into six bright colors. It works because it uses a sturdy butter cake that holds its shape when stacked, and a straightforward cream cheese frosting that pairs perfectly with the sweet, tender crumb. Whether you're celebrating Pride Month, a birthday, or just want a showstopper dessert, this cake delivers big color with minimal fuss.

Ingredients

  • 3 cups (360 g) all-purpose flour
  • 1 tablespoon baking powder
  • 1/2 teaspoon salt
  • 1 cup (2 sticks, 226 g) unsalted butter, softened
  • 2 cups (400 g) granulated sugar
  • 4 large eggs, room temperature
  • 1 cup (240 ml) whole milk, room temperature
  • 2 teaspoons vanilla extract
  • Gel food coloring: red, orange, yellow, green, blue, purple (or your preferred rainbow colors)
  • For the frosting: 1 cup (2 sticks, 226 g) unsalted butter, softened
  • 8 oz (226 g) cream cheese, softened
  • 4 cups (480 g) powdered sugar, sifted
  • 2 teaspoons vanilla extract
  • Pinch of salt

Instructions

  1. Preheat your oven to 350°F (175°C). Grease and flour three 8-inch round cake pans, or line the bottoms with parchment paper.
  2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
  3. In a large bowl, beat the softened butter and sugar together with an electric mixer on medium speed until light and fluffy, about 3 minutes. Scrape down the sides as needed.
  4. Add the eggs one at a time, beating well after each addition. Beat in the vanilla extract.
  5. With the mixer on low speed, add the flour mixture in three additions, alternating with the milk in two additions, starting and ending with the flour. Mix just until combined—do not overmix.
  6. Divide the batter evenly into six small bowls (about 1 cup each). Add a different gel food coloring to each bowl, using a toothpick or the tip of a knife to add color gradually until you reach the desired intensity. Stir each until the color is uniform.
  7. Pour each colored batter into a separate prepared pan. If you only have three pans, you will bake in two batches. (Wash and re-grease the pans for the second batch.)
  8. Bake for 20–25 minutes, or until a toothpick inserted into the center comes out clean. The layers should be lightly golden on top. Let cool in the pans for 10 minutes, then turn out onto a wire rack to cool completely.
  9. While the layers cool, make the frosting: In a large bowl, beat the softened butter and cream cheese together until smooth and creamy, about 2 minutes. Add the powdered sugar one cup at a time, beating on low speed to avoid a sugar cloud. Add the vanilla and salt, then beat on medium-high for 2–3 minutes until fluffy.
  10. Once the cake layers are completely cool, place one layer on a serving plate. Spread a layer of frosting (about 1/3 cup) evenly on top. Repeat with the remaining layers, stacking them in rainbow order (red, orange, yellow, green, blue, purple) or any order you like.
  11. Frost the top and sides of the cake with the remaining frosting. Use an offset spatula to smooth it, creating a rustic or fully covered look. If desired, decorate with rainbow sprinkles.
  12. Chill the cake for at least 30 minutes before slicing to help it set. Slice and serve.

Tips

  • Use gel food coloring: Gel colors are more concentrated than liquid drops, so you get vibrant colors without thinning the batter. Start with a small amount and add more until you like the shade.
  • Don't overmix the batter: Overmixing develops gluten, which can make the cake tough. Mix just until the flour is incorporated.
  • Level the layers: If the tops of your baked layers are domed, use a serrated knife to level them before stacking. This ensures the cake sits flat and looks neat.
  • Room temperature ingredients: Butter, eggs, and milk should be at room temperature for a smooth, even batter. Cold ingredients can cause the batter to curdle or bake unevenly.

Serving Suggestions

Serve this rainbow cake at room temperature for the best flavor and texture. It's perfect for Pride Month parties, birthday celebrations, baby showers, or any event where you want a cheerful centerpiece. Pair it with a scoop of vanilla ice cream or a glass of cold milk. For extra flair, top with fresh berries or edible flowers.

Variations

  • Different colors: Swap the rainbow hues for pastel shades, monochrome colors, or your favorite team's colors.
  • Citrus twist: Add 1 tablespoon of lemon or orange zest to the batter for a bright, fruity flavor.
  • Chocolate layers: Replace 1/4 cup of the flour with cocoa powder for a chocolate version, and reduce the milk by 2 tablespoons.
  • Frosting swap: Use a classic vanilla buttercream instead of cream cheese frosting if you prefer a sweeter, firmer finish.
  • Gluten-free: Substitute a 1:1 gluten-free all-purpose flour blend. The texture may be slightly denser but still delicious.

Storage and Reheating

Store the frosted cake in an airtight container in the refrigerator for up to 5 days. Let it sit at room temperature for 30–60 minutes before serving to soften. You can also freeze unfrosted layers (wrapped tightly in plastic wrap and foil) for up to 3 months; thaw overnight in the fridge before frosting. Frosted cake can be frozen for up to 1 month, but the texture may change slightly. To reheat individual slices, microwave for 10–15 seconds until just warm—this enhances the buttery flavor.

Frequently Asked Questions

Can I use liquid food coloring instead of gel?

Yes, but you'll need more drops to achieve vibrant colors, and the extra liquid can slightly thin the batter. Gel is recommended for best results.

Why did my cake layers come out uneven?

Uneven layers usually result from overfilling the pans or oven hot spots. Use a kitchen scale to divide the batter evenly, and rotate the pans halfway through baking.

Can I make this cake in advance?

Absolutely. Bake the layers up to 2 days ahead and store them wrapped in plastic at room temperature, or freeze them for longer. Frost the cake the day you plan to serve it for the freshest look.

Do I need to chill the cake before frosting?

It's not mandatory, but chilling the layers for 30 minutes makes them less crumbly and easier to handle. A chilled cake also holds up better when you're stacking multiple layers.

Can I use a boxed cake mix for this recipe?

Yes, you can prepare a white or vanilla boxed mix according to package instructions, then divide and color the batter as directed. Just skip the homemade batter steps.

How do I get clean slices?

Use a sharp, thin-bladed knife and wipe it clean between cuts. For the neatest slices, chill the cake for at least 1 hour before cutting.