Rainbow cupcakes

Make someone smile with these cheery rainbow cupcakes. The striped sponge and buttercream sprinkle topping are sure to brighten anyone’s day

  • Prep:25 mins
    Cook:25 mins
    plus cooling
  • Easy

Nutrition per serving

  • kcal 418
  • fat 23g
  • saturates 14g
  • carbs 50g
  • sugars 41g
  • fibre 0g
  • protein 3g
  • salt 0.4g


  • 110g unsalted butter, softened
  • ½ tsp vanilla extract
  • 110g caster sugar
  • 2 large eggs
  • 110g self-raising flour
  • red, blue and yellow gel food colouring
  • sprinkles (optional)
  • 150g butter, softened
  • 300g icing sugar
  • 3 tbsp milk


Use gel food colouring
Make sure you use gel food colouring or similar that keeps its colour when baked. Some liquid food colourings lose their vibrancy after being heated.


  1. Heat the oven to 180C/160C fan/gas 4 and fill a cupcake tray with 10 cases.

  2. Beat the butter, vanilla and caster sugar together with an electric whisk until pale and fluffy. Gradually whisk in the eggs, scraping down the sides of the bowl after each addition.

  3. Mix in the flour and a pinch of salt until just combined. Divide into five bowls and colour each a different shade with a drop of food colouring. We chose red, yellow, green, blue and purple.

  4. Starting with the end of the rainbow (in our case purple), evenly spread 1 tsp of the mixture into each cupcake case using a piping bag or the back of a teaspoon. Top with 1 tsp of the next colour and spread – be careful not to mix the colours together whilst bringing the mix all the way to the edge of the case. Repeat until all the colours are used up and you’re left with an even layer of red on the top.

  5. Bake for 15 mins, until a skewer inserted into the middle of each cake comes out clean. Leave to cool completely on a wire rack.

  6. To make the buttercream, beat the butter until very soft. Add the icing sugar, vanilla extract and a pinch of salt and whisk together until smooth (start off slowly to avoid an icing sugar cloud). Beat in the milk until combined.

  7. Pipe the buttercream on top of the cupcakes using a circular nozzle, or spread on with a palette knife. Top with sprinkles, if you like.

Suggested recipes from this collection...