Amazon Cyber Monday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Rainbow Vertical Cake Recipe: How to Make Stripes

This rainbow vertical cake is a showstopper with colorful stripes running through each slice, perfect for birthdays and celebrations. It uses a simple vanilla cake batter divided into six colors, then layered in a loaf pan to create the vertical effect. The key is a sturdy, evenly baking cake and a little patience when assembling the colored batters.

Ingredients

  • 2 1/2 cups (300 g) all-purpose flour
  • 2 1/2 teaspoons baking powder
  • 1/2 teaspoon salt
  • 3/4 cup (170 g) unsalted butter, softened
  • 1 1/2 cups (300 g) granulated sugar
  • 3 large eggs, room temperature
  • 1 tablespoon vanilla extract
  • 1 cup (240 ml) whole milk, room temperature
  • Gel food coloring: red, orange, yellow, green, blue, purple
  • For the frosting: 1 cup (226 g) unsalted butter, softened
  • 3 cups (360 g) powdered sugar
  • 2 tablespoons heavy cream or milk
  • 1 teaspoon vanilla extract

Instructions

  1. Preheat your oven to 350°F (175°C). Grease a 9×5-inch loaf pan and line it with parchment paper, leaving overhang on two long sides for easy lifting.
  2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
  3. In a large bowl, beat the butter and sugar with an electric mixer on medium speed until light and fluffy, about 3 minutes. Add the eggs one at a time, beating well after each addition, then beat in the vanilla.
  4. With the mixer on low, add the flour mixture in three additions, alternating with the milk, starting and ending with the flour. Mix just until combined; do not overmix.
  5. Divide the batter evenly among six small bowls. You should have about 1/2 cup (120 ml) of batter per bowl. Add a different gel food coloring to each bowl, using a toothpick or the tip of a knife to add color until you reach the desired intensity. Stir each until the color is uniform.
  6. Line up the six bowls in this order: red, orange, yellow, green, blue, purple. Using a spoon or a piping bag, spoon or pipe a layer of red batter along the bottom of the prepared loaf pan, spreading it to the edges. Then add a layer of orange directly on top, followed by yellow, green, blue, and purple. Do not stir or mix the layers—just let them sit on top of each other.
  7. Bake for 50–60 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs and the top springs back when lightly pressed. If the top browns too quickly, tent loosely with foil after 30 minutes.
  8. Let the cake cool in the pan for 15 minutes, then lift it out using the parchment overhang and transfer to a wire rack to cool completely.
  9. To make the frosting: beat the butter until creamy, then gradually add the powdered sugar, beating until smooth. Add the cream and vanilla, and beat on high for 2 minutes until fluffy.
  10. Once the cake is completely cool, spread the frosting over the top and sides. Slice vertically to reveal the rainbow stripes.

Tips

  • Use gel food coloring instead of liquid drops. Liquid coloring can thin the batter and make colors less vibrant. Gel gives bright, saturated hues without changing the batter consistency.
  • Measure the batter into six equal portions for even stripes. If you have a kitchen scale, weigh the total batter and divide by six; otherwise, use a 1/2-cup measure and level each scoop.
  • When layering the batters, use a spoon to gently place each color on top, spreading it slightly to the edges. Avoid pressing down, which can mix the layers and muddy the stripes.
  • If the cake domes in the center, trim the top with a serrated knife before frosting to get a flat surface for even slices.

Serving Suggestions

Serve this cake at room temperature for the best flavor and texture. It pairs well with a glass of cold milk, coffee, or a scoop of vanilla ice cream. For a birthday, top with rainbow sprinkles or a few fresh berries. The vertical stripes look stunning when the cake is sliced at the table, so bring the whole loaf out before cutting.

Variations

  • Swap the vanilla extract for almond or lemon extract for a different flavor base.
  • Use a cream cheese frosting instead of buttercream: beat 8 oz (226 g) softened cream cheese with 1/2 cup (113 g) butter, then add 3 cups (360 g) powdered sugar and 1 teaspoon vanilla.
  • Make it a chocolate rainbow cake by replacing 1/2 cup (60 g) of the flour with unsweetened cocoa powder.
  • For a gluten-free version, use a 1:1 gluten-free all-purpose flour blend that contains xanthan gum.

Storage and Reheating

Store the frosted cake in an airtight container at room temperature for up to 2 days, or in the refrigerator for up to 5 days. If refrigerated, let it sit at room temperature for 30 minutes before serving. You can also freeze the unfrosted cake (wrapped tightly in plastic wrap and foil) for up to 3 months; thaw overnight in the refrigerator before frosting. To reheat individual slices, microwave for 10–15 seconds to soften the crumb, though the frosting will melt if heated too long.

Frequently Asked Questions

Why did my stripes come out wavy or mixed? This usually happens if the batter is too thin or if you press down when layering. Make sure you use gel coloring and don’t overmix the batter. Also, spoon the batter gently instead of pouring it all at once.

Can I use a different pan size? Yes, but the baking time will change. An 8×4-inch loaf pan will make a taller cake and need 5–10 minutes more; a 9×13-inch pan will make a thin sheet cake that bakes in about 25–30 minutes. Always check for doneness with a toothpick.

Why did my cake sink in the middle? This can happen if the batter is overmixed or if the oven door is opened too early. Be sure to measure ingredients correctly and avoid opening the oven for the first 30 minutes of baking.

Can I make this cake ahead of time? Absolutely. You can bake the cake a day ahead, wrap it tightly, and frost it the next day. Or freeze the unfrosted cake for up to 3 months.

Do I have to use six colors? No, you can use fewer colors—just divide the batter into as many bowls as you like. For a simpler version, use three colors (red, white, blue) for a patriotic theme.

Why is my cake dry? Overbaking is the most common cause. Start checking at 50 minutes, and remember that the internal temperature of a fully baked cake should be about 210°F (99°C). Also, make sure your butter and eggs are at room temperature for proper creaming.

Rainbow Vertical Cake Recipe: How to Make Stripes
Scroll to top