Zimt

Rainbow Cake Recipe 3 Layers – Bright, Fluffy & Fun

· 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

A rainbow cake dazzles any celebration with its vivid layers and soft crumb. This three‑layer version uses a single vanilla batter split into six colors, then stacked with a silky buttercream that keeps the texture light and the flavors neutral.

Ingredients

  • 2 ½ cups (312 g) all‑purpose flour
  • 2 tsp baking powder
  • ½ tsp baking soda
  • ¼ tsp salt
  • 1 cup (226 g) unsalted butter, softened
  • 1 ½ cups (300 g) granulated sugar
  • 4 large eggs, room temperature
  • 2 tsp pure vanilla extract
  • 1 cup (240 ml) whole milk, room temperature
  • Food‑grade gel or powder colors: red, orange, yellow, green, blue, purple (about ½ tsp each)
  • For the buttercream frosting:
    • 1 cup (226 g) unsalted butter, softened
    • 3‑4 cups (360‑480 g) confectioners’ sugar, sifted
    • 2 tbsp heavy cream or milk
    • 1 tsp pure vanilla extract
    • Pinch of salt

Instructions

  1. Pre‑heat the oven to 350 °F (177 °C). Grease three 8‑inch (20 cm) round cake pans, line the bottoms with parchment circles, and set aside.
  2. In a medium bowl whisk together the flour, baking powder, baking soda, and salt. This ensures even leavening and prevents pockets of unmixed powder.
  3. In a large bowl beat the softened butter and sugar on medium‑high speed for 3‑4 minutes, until the mixture is pale, fluffy, and has increased in volume. Scrape down the sides once or twice.
  4. Add the eggs one at a time, beating well after each addition. Then stir in the vanilla extract.
  5. With the mixer on low, alternately add the dry ingredients and the milk, beginning and ending with the dry mixture. Mix just until incorporated; over‑mixing can develop gluten and make the crumb dense.
  6. Divide the batter evenly into six separate bowls (approximately 1 cup per bowl). Add a different color to each bowl, mixing gently until the hue is uniform. If the color is too faint, add a few more drops of gel; if too dark, fold in a tablespoon of uncolored batter.
  7. Starting with the red batter, spoon an even layer into the bottom of one prepared pan, spreading to the edges with a spatula. Tap the pan lightly on the counter to release air bubbles.
  8. Repeat the layering process, alternating colors in the order of the rainbow (red, orange, yellow, green, blue, purple) until all six layers are in the pan. The final layer should be purple.
  9. Bake for 20‑25 minutes, or until a toothpick inserted into the center comes out clean and the top springs back. The internal temperature should read about 200 °F (93 °C) when measured with an instant‑read thermometer.
  10. Allow the cake to cool in the pan for 10 minutes, then run a thin knife around the edge, invert onto a wire rack, and peel off the parchment. Cool completely before frosting.
  11. While the cake cools, prepare the buttercream: beat the softened butter on medium speed until creamy, about 2 minutes.
  12. Gradually add the sifted confectioners’ sugar, one cup at a time, beating on low to avoid a sugar cloud. After each addition, increase speed to medium and beat until smooth.
  13. Pour in the cream, vanilla, and pinch of salt. Beat on high for 3‑4 minutes until the frosting is light, fluffy, and holds soft peaks.
  14. Level the cooled cake by slicing off the dome of each layer with a long serrated knife, creating three even discs.
  15. Place the first layer on a serving plate, spread a thin “crumb coat” of buttercream over the top, then chill for 10 minutes to set the crumb coat.
  16. Apply a generous layer of buttercream on top of the crumb‑coated layer, then place the second cake disc. Repeat the crumb‑coat, chill, and final frosting step for the third layer.
  17. Use the remaining buttercream to frost the sides and top of the assembled cake. Smooth with an offset spatula or create swirls for a decorative finish.
  18. Refrigerate the finished cake for at least 30 minutes before slicing. This firms the buttercream and makes cutting clean.

Tips

  • Color intensity: Gel colors give vivid shades without altering batter consistency. Powdered colors can be mixed with a teaspoon of cornstarch to prevent clumping.
  • Even layers: Use a kitchen scale to portion each color batter (about 150 g per layer) for uniform thickness.
  • Prevent soggy bottoms: Place a sheet of parchment between the cake and the pan before greasing, or use a silicone baking mat.
  • Buttercream stability: If the kitchen is warm, increase the cream to 3 tbsp or add a tablespoon of melted (cooled) shortening to keep the frosting from softening.

Serving Suggestions

Serve the rainbow cake at room temperature for the softest bite. Pair it with a dollop of lightly sweetened whipped cream or a scoop of vanilla ice cream for extra indulgence. For a festive touch, garnish the top with edible glitter, fresh berries, or small candy flowers.

Variations

Replace the vanilla batter with chocolate or red‑velvet for a contrasting flavor while keeping the colorful layers. Swap the buttercream for a Swiss‑malted milk chocolate ganache for a richer finish. For a dairy‑free version, use a plant‑based butter and coconut‑based frosting, ensuring the milk substitute is full‑fat coconut milk.

Storage and Reheating

Store the assembled cake in an airtight container in the refrigerator for up to 4 days. For longer storage, wrap the cake tightly in plastic wrap, then foil, and freeze for up to 2 months. Thaw frozen cake in the refrigerator overnight, then bring to room temperature for 30 minutes before serving. If the buttercream becomes too soft after thawing, re‑chill for 15 minutes and re‑smooth with a spatula.

Frequently Asked Questions

Can I use a different pan size?

Yes. If you use a 9‑inch (23 cm) pan, increase the batter by about 25 % and bake 3‑5 minutes longer. For a smaller 6‑inch pan, reduce the batter by one‑third and check for doneness at 15 minutes.

Do I need to bake the layers separately?

No. Baking the six colored layers together in one pan creates a seamless rainbow when sliced. This method saves time and reduces the risk of uneven layers that can occur when baking each color individually.

How do I know when the cake is fully baked?

Insert a thin toothpick or cake tester into the center; it should emerge clean or with just a few crumbs. An internal temperature of 200 °F (93 °C) measured at the thickest point also indicates doneness.

Is raw egg safe in this recipe?

The eggs are fully cooked during baking, reaching a temperature well above the safety threshold for Salmonella. Do not taste the batter before it is baked.

Can I make the cake gluten‑free?

Replace the all‑purpose flour with a 1‑to‑1 gluten‑free blend that contains xanthan gum. The texture will be comparable, but be sure to sift the blend with the leavening agents to avoid clumps.