M&S Rainbow Layer Cake – Easy Step‑by‑Step Recipe
In this article
The M&S rainbow layer cake is a celebration‑ready classic that combines a light vanilla sponge with vivid, buttercream‑filled layers. Its striking colours and smooth texture make it a crowd‑pleaser for birthdays, anniversaries, or any occasion that calls for a little extra sparkle.
Ingredients
- 2 ½ cups (310 g) all‑purpose flour
- 2 ½ tsp baking powder
- ½ tsp salt
- 1 cup (225 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, warmed to 110 °F (43 °C)
- Food‑grade gel or powder colours – red, orange, yellow, green, blue, purple (approximately 1 ml each)
- 2 cups (480 ml) heavy‑cream
- ½ cup (115 g) unsalted butter, softened (for buttercream)
- 3 cups (360 g) confectioners’ sugar, sifted
- ¼ tsp salt (for buttercream)
- 2 tsp pure vanilla extract (for buttercream)
- Fresh berries or edible glitter for garnish (optional)
Instructions
- Pre‑heat the oven to 350 °F (175 °C). Grease three 8‑inch (20 cm) round cake pans, line the bottoms with parchment circles, and set aside. Properly greasing and lining prevents the delicate sponge from sticking, which can cause tearing when you trim the layers later.
- In a medium bowl whisk together the flour, baking powder, and salt. This aerates the flour and ensures a uniform rise throughout each layer.
- Using a stand mixer fitted with the paddle attachment, beat the softened butter and granulated sugar on medium‑high speed for 3–4 minutes, until the mixture is pale, fluffy, and has roughly doubled in volume. Scrape down the sides of the bowl twice during this process.
- Add the eggs one at a time, beating well after each addition. Incorporate the vanilla extract. The batter should look glossy and smooth; if it looks curdled, continue mixing on low speed until it emulsifies.
- With the mixer on low, alternately add the dry‑ingredient mixture and the warm milk, beginning and ending with the dry mixture. Mix each addition just until incorporated; over‑mixing can develop gluten and make the cake dense.
- Divide the batter evenly into six separate bowls (approximately 1 cup each). Add a different colour to each bowl: stir in the gel or powder colour until the hue is uniform. For a truly vibrant shade, add colour gradually and test a small spoonful on a white plate before committing.
- Using a 1/3‑cup ice‑cream scoop, pour the coloured batters into the prepared pans, creating a rainbow stack: start with red at the bottom, then orange, yellow, green, blue, and finish with purple on top. Lightly tap the pans on the counter to release any air bubbles.
- Bake for 18–22 minutes, or until a toothpick inserted into the centre of each layer comes out clean and the tops spring back when touched. The internal temperature should reach at least 200 °F (93 °C). Rotate the pans halfway through baking for even colour development.
- Allow the cakes to cool in the pans for 10 minutes, then run a thin knife around the edges, invert onto wire racks, and peel off the parchment. Cool completely on the racks; any residual heat will melt the buttercream later.
- While the cakes cool, prepare the buttercream. In a clean bowl, beat the softened butter on medium speed until pale and creamy, about 2 minutes. Gradually add the sifted confectioners’ sugar, 1 cup at a time, beating on low to avoid a sugar cloud. Once incorporated, increase speed and beat for 2 minutes.
- In a separate bowl, whip the heavy‑cream to soft peaks (about 2–3 minutes). Gently fold the whipped cream into the butter‑sugar mixture until smooth and light. Add the vanilla extract, ¼ tsp salt, and beat just until combined. The buttercream should be spreadable but hold its shape; if it’s too soft, refrigerate for 10 minutes.
- Level each cake layer with a long serrated knife or a cake leveler. Trim any domed tops so the layers sit flat; this step is crucial for a stable, tiered appearance.
- Place the purple layer on a serving plate and spread a thin “crumb coat” of buttercream over the top and sides. Chill for 15 minutes to set the crumb coat, which prevents crumbs from mixing into the final frosting.
- Repeat the crumb‑coat process for each remaining layer, stacking them in rainbow order (blue, green, yellow, orange, red). After the final layer is in place, apply a generous final coat of buttercream, smoothing with an offset spatula or a bench scraper for a flawless finish.
- Optional: Pipe decorative rosettes, write a message, or sprinkle fresh berries and edible glitter on the top. For a professional look, dip a clean offset spatula in warm water, wipe dry, and smooth the sides in long, even strokes.
- Refrigerate the assembled cake for at least 30 minutes before slicing. This firms the buttercream, making clean cuts easier and preserving the vibrant layers inside.
Tips
- Substitutions: Use pasteurized eggs or egg‑replacer if you’re concerned about raw egg safety. For a dairy‑free version, replace butter with a high‑fat plant‑based spread and use coconut cream instead of heavy cream.
- Even colour: Gel colours give the most consistent hue without adding extra liquid. If you use powder, dissolve it in a tablespoon of milk before mixing into the batter.
- Prevent cracks: Do not over‑bake. Check the cake 2 minutes before the timer ends; a perfectly baked sponge should be springy, not dry.
- Common mistake: Over‑mixing after adding flour creates a tough crumb. Mix just until the flour disappears.
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 bean ice cream. For a festive twist, drizzle a thin ribbon of raspberry coulis around the plate and garnish with fresh mint leaves.
Variations
- Chocolate version: Replace ¼ cup of the flour with ¼ cup cocoa powder and add 2 tbsp melted dark chocolate to the batter. Use chocolate buttercream for a richer flavor.
- Fruit‑infused layers: Add 2 tbsp of pureed strawberry or mango to the yellow and orange batters respectively for subtle fruit notes.
- Mini cake bars: Pour the coloured batters into a greased 9×13‑inch (23×33 cm) sheet pan. Bake for 20–25 minutes, then cut into bite‑size squares and frost with a thin layer of buttercream.
Storage and Reheating
Store the assembled cake in an airtight container in the refrigerator for up to 4 days. For longer storage, wrap each layer tightly in plastic wrap, place in a freezer‑safe bag, and freeze for up to 2 months. Thaw overnight in the refrigerator, then let sit at room temperature for 30 minutes before serving. If the cake has been frozen, re‑whip the buttercream with a splash of milk to restore its spreadability.
Frequently Asked Questions
Can I use regular food colouring instead of gel?
Yes, but gel colours are preferred because they are more concentrated and don’t add extra liquid, which could affect the cake’s crumb structure. If you use liquid food colouring, reduce the milk in the recipe by the same amount you add.
How do I know when the cake is fully baked?
Insert a thin wooden skewer or toothpick into the centre; it should emerge clean or with just a few moist crumbs. The internal temperature should read at least 200 °F (93 °C). The top will be lightly golden and spring back when pressed.
Is it safe to eat the cake if I used raw eggs?
All the batter is cooked to an internal temperature well above 165 °F (74 °C), which destroys any potential salmonella. However, if you are serving vulnerable groups, consider using pasteurized eggs or an egg‑free substitute.
Why does my buttercream become grainy?
Graininess usually results from under‑creamed butter or sugar that wasn’t fully dissolved. Beat the butter until it’s pale, then add the confectioners’ sugar gradually, and finally fold in the whipped cream. If grain persists, add a teaspoon of milk and beat until smooth.
Can I make the cake ahead of time?
Absolutely. Bake and cool the layers up to 2 days in advance, storing each wrapped tightly in plastic. Prepare the buttercream the day before, then assemble the cake the morning you plan to serve it.
What is the best way to level the layers?
Use a long serrated knife or a cake leveler. Place the knife on the top of the dome and rotate the cake while gently pulling the knife downward. A level surface ensures the cake stands straight and the frosting spreads evenly.