The Feast

Home cooking recipes for everyday dinners and easy entertaining

Rainbow Unicorn Cake: Step-by-Step Recipe

· 6 min read · Baking and Desserts

This guide shows you how to bake and assemble a show-stopping rainbow unicorn cake—a layered vanilla cake with vibrant rainbow colors, fluffy buttercream, and a simple unicorn horn and ears made from candy and frosting. You’ll need about 2 hours total (plus cooling time), and it’s perfect for birthdays or any celebration. No special pans are required; just two 8-inch round cake pans, gel food coloring, and a piping bag.

What You'll Need

  • 2 (8-inch) round cake pans
  • Your favorite vanilla cake recipe or boxed mix (enough for two 8-inch layers)
  • Gel food coloring in red, orange, yellow, green, blue, purple
  • 3 batches of vanilla buttercream frosting (about 6 cups total)
  • White fondant (or a store-bought sugar cone) for the horn
  • Pink or white candy melts for the ears
  • Black edible marker or small candies for eyes
  • Piping bags and tips (star tip, round tip)
  • Icing spatula, cake turntable (optional), toothpicks

Step-by-Step

  1. Bake the cake layers. Prepare your vanilla cake batter according to your recipe. Divide the batter evenly into six small bowls. Tint each bowl with a different gel color: red, orange, yellow, green, blue, purple. Stir until the color is fully incorporated—use more gel than you think; it fades when baked.
  2. Pour and bake. Grease and flour your two cake pans. Pour the colored batters into the pans in a rainbow pattern: spoon each color side by side, then gently tap the pans on the counter to level. Bake according to your recipe, typically 25-30 minutes at 350°F (175°C), until a toothpick comes out clean. Cool in pans for 10 minutes, then turn out onto a wire rack to cool completely.
  3. Make the buttercream. While the cakes cool, prepare your vanilla buttercream. You’ll need enough to frost the outside and pipe the mane—about 6 cups. Divide a small portion (about 1 cup) into six bowls and tint each with the same rainbow colors for the mane. Keep the rest white.
  4. Level the cakes. Once the cakes are completely cool, use a serrated knife to trim the tops so they are flat. If the layers are thick, you can slice each in half horizontally to make four thinner layers—this gives a more dramatic rainbow cross-section.
  5. Stack and crumb coat. Place one layer on your cake board or plate. Spread a thin layer of white buttercream on top, then add the next layer. Repeat until all layers are stacked. Apply a thin “crumb coat” of white buttercream all over the cake to seal in crumbs. Chill for 20 minutes.
  6. Frost the outside. Apply a smooth, even layer of white buttercream over the entire cake. Use a bench scraper or spatula to get it as smooth as possible. Chill again for 15 minutes.
  7. Make the unicorn horn. Roll out white fondant into a cone shape about 4 inches tall. Twist it to create a spiral pattern, or wrap a sugar cone in fondant. Insert a toothpick into the base of the horn to help it stay in place. Set aside to dry.
  8. Make the ears. Melt pink or white candy melts in the microwave in 20-second bursts. Drop spoonfuls onto a parchment-lined baking sheet, then shape into triangles with a damp finger. Let them harden completely.
  9. Pipe the mane. Load your rainbow-colored buttercreams into piping bags fitted with a star tip. Starting from the top of the cake, pipe a row of stars along the side, then continue downward in a flowing curve—alternate colors to create a rainbow mane. Pipe a small swirl on top of the cake where the horn will go.
  10. Assemble the face. Gently press the horn into the top of the cake at a slight angle. Press the ears on either side of the horn. Use a black edible marker to draw two closed eyes with lashes on the front of the cake, or pipe small dots with dark frosting.
  11. Finish and serve. Pipe a few small stars around the base of the horn for a tuft of hair. Refrigerate the cake for at least 30 minutes to set the frosting before serving. Slice with a sharp knife to reveal the rainbow interior.

Common Mistakes

  • Using liquid food coloring: Liquid colors are too watery and can thin your batter or frosting. Always use gel colors for vibrant, stable results.
  • Skipping the crumb coat: Without a thin layer of frosting to trap crumbs, your final coat will have brown specks throughout.
  • Frosting a warm cake: If the cake is even slightly warm, the buttercream will melt and slide off. Make sure the cake is completely cool to the touch.
  • Overfilling the cake pans: If you pour too much batter, the cake will dome and overflow. Fill pans only two-thirds full.

Tips

  • For a more intense rainbow inside, slice each 8-inch layer in half horizontally before stacking—you’ll get six thin layers instead of two thick ones.
  • Chill the cake between each major step (crumb coat, final coat, piping). This keeps the frosting firm and makes piping the mane much easier.
  • If you don’t have fondant, use a sugar cone (the kind for ice cream) as the horn—just frost it with white buttercream and sprinkle with edible glitter.
  • Use a star tip for the mane—it hides any uneven frosting and gives a fluffy, magical look.
  • Make the horn and ears a day ahead to let them dry completely; they’ll hold their shape better.

Troubleshooting

  • Cake layers are lopsided: Use a serrated knife to level them after baking. If they’re too uneven, you can also use a cake leveler tool.
  • Buttercream is too runny: Your butter was too soft or you added too much milk. Pop the frosting in the fridge for 10 minutes, then re-whip it. If it’s still runny, add more powdered sugar a tablespoon at a time.
  • Rainbow colors look muddy: You likely overmixed the batters after adding the colors. Gently fold the gel in just until streaks disappear. Also, use a separate spoon for each color to avoid cross-contamination.
  • Horn falls over: Insert a sturdy toothpick or skewer into the base of the horn and push it deep into the cake. You can also add a small dollop of frosting under the horn to help it stick.
  • Mane piping looks messy: Practice piping stars on a plate first. If the frosting is too stiff, add a teaspoon of milk; if too soft, chill it for 10 minutes.

Frequently Asked Questions

Can I use a boxed cake mix?

Yes, absolutely. Use a white or vanilla boxed mix and follow the same instructions for dividing and coloring the batter. Just make sure to bake according to the box directions.

How far in advance can I make this cake?

You can bake the cake layers up to 2 days ahead and store them wrapped in plastic wrap in the fridge. Frost the cake no more than 1 day ahead—keep it refrigerated and bring to room temperature before serving.

Can I freeze the finished cake?

Yes, you can freeze the unfrosted layers for up to 3 months. Once frosted, the cake can be frozen for up to 1 month, but the texture may change slightly. Thaw in the fridge overnight.

What if I don’t have gel food coloring?

You can use natural options like beet juice for pink, turmeric for yellow, and spirulina for green, but the colors will be less vivid and may affect the flavor. Gel is strongly recommended for best results.

How do I get clean slices?

Use a long, sharp knife dipped in hot water and wiped dry between cuts. This gives clean, neat slices without dragging the frosting.

Can I make this cake dairy-free or egg-free?

Yes, use your favorite dairy-free butter and milk substitutes, and a vegan cake recipe. The buttercream can be made with vegan butter. Just ensure all ingredients are at room temperature for proper creaming.

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