Zimt

How to Bake a Rainbow Cake – Step-by-Step Guide

· 6 min read · Cakes

In this article
  1. What You'll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Bake a rainbow cake by preparing separate colored batters, layering them in a round pan, and baking until the center reaches at least 200°F (93°C). The result is a vibrant, tiered dessert that looks as festive as it tastes.

What You'll Need

  • All‑purpose flour – 3 cups (360 g)
  • Granulated sugar – 2 cups (400 g)
  • Unsalted butter, softened – 1 cup (226 g)
  • Large eggs – 4 (use pasteurized eggs if you prefer not to bake raw batter)
  • Whole milk – 1 cup (240 ml)
  • Baking powder – 2 teaspoons
  • Salt – ½ teaspoon
  • Vanilla extract – 2 teaspoons
  • Food‑grade gel food coloring (red, orange, yellow, green, blue, purple) – about 1 ml each, adjust for desired intensity
  • 9‑inch (23 cm) round cake pan – preferably heavy‑bottomed or a springform pan
  • Parchment paper, butter, and flour for preparing the pan
  • Electric mixer (hand or stand)
  • Spatula, measuring cups and spoons, kitchen scale (optional but helpful)
  • Thermometer (instant‑read) to check internal temperature
  • Cooling rack

Step‑by‑Step

  1. Preheat and prepare the pan. Set the oven to 350°F (177°C). Grease the round pan with butter, dust with a thin layer of flour, and line the bottom with a circle of parchment paper. This prevents sticking and makes layer removal easier.
  2. Mix the dry ingredients. In a medium bowl whisk together the flour, baking powder, and salt. Set aside; this ensures even leavening and prevents lumps.
  3. Cream butter and sugar. Using an electric mixer on medium speed, beat the softened butter until pale and fluffy (about 2‑3 minutes). Gradually add the sugar and continue beating until the mixture is light and airy. This incorporates air for a tender crumb.
  4. Incorporate eggs and vanilla. Add the eggs one at a time, beating well after each addition. If you are using pasteurized eggs, the risk of salmonella is minimized, but the batter should still be fully cooked. Stir in the vanilla extract.
  5. Combine wet and dry components. Add the flour mixture to the butter‑egg mixture in three additions, alternating with the milk. Begin and end with the flour. Mix on low speed just until incorporated; over‑mixing develops gluten and makes the cake dense.
  6. Divide the batter. Transfer the batter to a large measuring cup or bowl. You will need six equal portions for the six rainbow colors. Use a kitchen scale for accuracy (each portion about 1/6 of the total weight, roughly 200 g).
  7. Color each portion. Add a few drops of gel food coloring to each portion. Start with a small amount and increase until the hue is vivid but not overly dark. Mix each colored batter briefly—just enough to distribute the color uniformly.
  8. Layer the colors. Place the first (usually the darkest, such as purple) batter into the prepared pan, spreading it evenly with a spatula. Gently tap the pan on the counter to release air bubbles. Repeat with the next color (blue), then green, yellow, orange, and finally red on top. Each layer should be about 1/2‑inch (1 cm) thick; if the batter is too thick, you can add a tablespoon of milk to ease spreading.
  9. Bake the cake. Insert the pan into the pre‑heated oven and bake for 45‑55 minutes, or until a toothpick inserted into the center comes out clean and the internal temperature reads 200°F (93°C). Rotate the pan halfway through for even browning.
  10. Cool the cake. Allow the cake to rest in the pan for 10 minutes. Then run a thin knife around the edges, remove the parchment, and invert the cake onto a cooling rack. Cool completely (at least 1 hour) before frosting. Cooling fully prevents cracks when you spread frosting.
  11. Frost and decorate. Use a buttercream, whipped cream, or ganache of your choice. Apply a thin crumb coat, chill for 15 minutes, then finish with a smooth outer layer. For extra flair, pipe rosettes or add edible glitter.
  12. Store safely. Keep the finished cake refrigerated, tightly wrapped, for up to 3 days. For longer storage, freeze the unfrosted layers wrapped in plastic and foil; they retain quality for up to 2 months. Thaw in the refrigerator before frosting.

Common Mistakes

  • Using liquid food coloring can thin the batter, leading to uneven layers. Gel or paste colors keep the batter consistency.
  • Over‑mixing after adding flour creates a tough crumb. Mix just until combined.
  • Skipping the parchment paper can cause the cake to stick, making layer separation difficult.
  • Not checking internal temperature; a cake that looks done on the surface may be undercooked inside, posing a food‑safety risk.
  • Layering too thickly; the batter may not rise evenly, resulting in a lopsided rainbow.

Tips

  • Measure ingredients by weight for consistency, especially flour and butter.
  • Use a kitchen scale to divide batter precisely; uneven portions cause thin or thick bands.
  • When spreading each layer, a small offset spatula works better than a full‑size one.
  • If you prefer a softer crumb, replace half the milk with buttermilk or add 1 tbsp of sour cream.
  • For a vegan version, substitute butter with plant‑based margarine, use flax‑egg replacer, and choose a dairy‑free milk.

Troubleshooting

  • Layers are mixing together. This usually means the batter was too warm or the pan was not level. Chill the batter for 15 minutes before coloring, and ensure the oven rack is centered.
  • Center is still raw after the suggested time. Increase baking time by 5‑10 minutes and cover the top loosely with foil to prevent over‑browning.
  • Cake collapses after removing from the oven. This indicates under‑baking or sudden temperature change. Let the cake cool gradually in the pan before inverting.
  • Colors appear dull. Use gel colors and add a tiny pinch of salt to each colored batter to brighten hues. Avoid over‑mixing, which can break down the color pigments.
  • Frosting slides off. Ensure the cake is completely cool. A crumb coat creates a dry surface that helps the final frosting adhere.

Frequently Asked Questions

Can I use a different pan size?

Yes. A 10‑inch pan will yield a taller cake with thinner layers; a 8‑inch pan will produce shorter, wider layers. Adjust baking time by ±5‑10 minutes and keep an eye on the internal temperature.

Do I have to use butter?

Butter gives the classic flavor and texture, but you can substitute an equal amount of vegetable oil or a plant‑based spread for a dairy‑free version. The crumb may be slightly softer.

Is it safe to eat the batter while mixing?

Raw batter contains untreated eggs and flour, which can harbor salmonella or E. coli. Use pasteurized eggs or an egg‑free recipe if you want to sample the batter safely.

How long does the cake stay fresh?

When stored in the refrigerator, a frosted rainbow cake stays fresh for 3 days. Unfrosted layers wrapped tightly can be frozen for up to 2 months.

Can I make the cake ahead of time?

Absolutely. Bake and cool the layers, then wrap each tightly in plastic wrap and foil. Freeze for up to two months, then thaw in the refrigerator before frosting.

What temperature should the oven be?

Set the oven to 350°F (177°C). If your oven runs hot, consider lowering to 325°F (163°C) and extending the bake time to avoid over‑browning.