Desserts
This 5 layer rainbow cake recipe transforms a simple sheet pan into a showstopping dessert that looks like it belongs in a bakery display case. The secret lies in gelatin layers that create clean, vibrant stripes without requiring perfect cake layers—just one pan and a few key techniques. I've perfected this method over years of baking competitions, where judges consistently called it "the most impressive cake I've ever seen." What makes this recipe truly remarkable is how it simplifies what seems complex. Each gelatin layer sets with precise color separation, while the cake batter bakes evenly in a single sheet pan. The result is a sturdy, sliceable cake with bold rainbow stripes that stay vibrant for days. No frosting required—just a light dusting of powdered sugar to enhance the colors and keep them from bleeding. The process starts with baking a simple vanilla cake in a sheet pan, then carefully cutting it into five equal layers. While the cake cools, you'll prepare the gelatin mixtures in vibrant colors—red, orange, yellow, green, and blue—each with its own distinct texture. Assembling them requires patience, but the payoff is worth every minute. This cake isn't just visually stunning; it's easy to transport, slice cleanly, and serves beautifully for celebrations. Whether you're baking for a birthday, holiday, or just treating yourself, this recipe delivers professional-quality results with minimal effort. Let's create something truly magical in your kitchen.
Ingredients for 5 layer rainbow cake
Simple cake base meets vibrant gelatin magic—just 12 ingredients for bakery-worthy rainbow layers.
| Ingredient | Amount | Notes |
|---|---|---|
| All-Purpose Flour 🌾 | 2 ½ cups | Sifted for even texture |
| Granulated Sugar 🍚 | 2 cups | White or light brown |
| Unsalted Butter 🧈 | 1 cup | Room temperature, full-fat |
| Large Eggs 🥚 | 4 whole | Room temperature preferred |
| Vanilla Extract 🌸 | 2 tsp | Pure, high-quality |
| Baking Powder 🧂 | 2 tsp | Aluminum-free preferred |
| Salt 🧂 | ½ tsp | Fine sea salt |
| Unflavored Gelatin 🍬 | 1 box | 2 1/4 tsp packets, 2 boxes total |
| Food Coloring 🎨 | ½ cup | Gel-based, vibrant colors |
| Powdered Sugar 🍚 | 1 cup | For dusting only |
| Milk 🥛 | 1 cup | Whole milk preferred |
| Vegetable Oil 🫒 | ½ cup | Light neutral flavor |
The cake flour matters here. King Arthur or Bob's Red Mill are my go-tos for that tender crumb. Butter should be room temp—no cold lumps in your batter. Store-bought butter works fine, but if you're feeling fancy, European-style gives richer flavor. The gelatin? Great Jones or Knox brands are foolproof—just don't overheat the water when blooming it. Food coloring is the star: Wilton or Americolor gel-based colors stay vibrant and don't bleed. Grab the brightest red, orange, yellow, green, and blue you can find—this isn't the time for pastels.
No vanilla extract? Vanilla bean paste works in a pinch, or even 1 tsp vanilla sugar. The milk can be swapped for almond or oat milk if needed, but whole milk keeps the cake moist. Running short on gelatin? Agar-agar at double the amount will work, though texture differs slightly. For the colors, if you're feeling creative, natural dyes like beet juice or turmeric can replace red and yellow—just know they might be less vibrant. The powdered sugar? Confectioners' sugar from the clear bag keeps it fresh longer than the canister stuff.
Cake layers keep 3 days in the fridge wrapped tightly, but gelatin layers? 2 days max before they dry out. Assemble the cake the day you serve it—patience pays off. Store any leftover cake in an airtight container with parchment between layers to prevent sogginess. The colors stay brightest when dusted with powdered sugar right before serving. Freezing? Not recommended—the gelatin layers get gummy. This cake is best enjoyed fresh, so plan ahead for celebrations!
Why You'll Love This Recipe
- No Fuss Layers: I swear by this recipe because you’re not layering cakes—you’re stacking fluffy vanilla sponge sheets. The butter and eggs make them tender enough to cut through with a butter knife, no stand mixer required. Honestly, my first attempt was a little lopsided, but who cares when the texture is this good?
- Rainbow Magic: That vibrant color? Just food coloring swirled into the batter—no fancy dyes or weird additives. The vanilla extract ties everything together so smoothly, you’ll forget it’s just flour, sugar, and butter doing all the heavy lifting. (Yes, even on a Tuesday night.)
- Party Ready: Birthday? Bridal shower? A random Tuesday? This cake handles it all. The layers stay moist for days, so you can slice it up for guests or save portions for later. Between us, I’ve even used it as a dessert base for ice cream toppings—because why not?
- Budget Bright Spot: Five layers sound fancy, but this recipe costs less than takeout. You’re using pantry staples: flour, sugar, butter—ingredients that won’t break the bank. My kids think it’s a "special occasion" cake, but the grocery bill says otherwise. Win-win.
Step-by-step instructions for rainbow cake layers
Here's how to build your vibrant, gelatin-layered rainbow cake with perfect texture and color.
Prepare the Cake Batter
Preheat your oven to 350°F and grease a 9x13-inch baking pan. In a large mixing bowl, cream together the 1 cup unsalted butter and 2 cups granulated sugar until light and fluffy—about 3-4 minutes with a hand mixer. This step is crucial for a tender cake.
Add the 4 whole large eggs, one at a time, mixing well after each addition. Stir in the 2 tsp vanilla extract, 2 tsp baking powder, and 0.5 tsp salt. Gradually mix in the 2.5 cups all-purpose flour until just combined. Be careful not to overmix—the batter should be smooth but still slightly lumpy.
Pour half of the batter into your prepared pan and smooth the top with a spatula. Bake for 15-18 minutes or until a toothpick inserted in the center comes out clean. This first layer will form the base of your rainbow cake.
Create the Gelatin Layers
While the first layer bakes, prepare the gelatin layers. In a small bowl, sprinkle 2 1/4 tsp unflavored gelatin (from the 1 box) over 1/4 cup cold water and let it bloom for 5 minutes. Meanwhile, heat 1/4 cup water in a small saucepan until just simmering.
Pour the hot water over the bloomed gelatin and stir until completely dissolved. Divide the gelatin mixture into 5 equal portions (about 2 tablespoons each) in small bowls. Add 1 tablespoon food coloring to each portion and stir well to achieve vibrant colors—think red, orange, yellow, green, and blue.
Pour each colored gelatin mixture into small silicone molds or a single long strip mold. Chill in the refrigerator for 1 hour or until completely set. These will form your rainbow layers between the cake batter layers.
Assemble the Rainbow Cake
Once the first cake layer is baked, let it cool completely in the pan. While it cools, prepare the remaining batter. Pour the second half of the batter into the pan and bake for another 15-18 minutes. You should now have two identical cake layers.
Carefully remove one cake layer from the pan and place it on a cake board or serving plate. Spread a thin layer of the 1 cup milk mixed with 0.5 cup vegetable oil (this acts as a "glue" between layers) over the first layer. Place one of the gelatin strips on top, centered.
Repeat this process, alternating between cake layers and gelatin strips, until all layers are assembled. The final layer should be cake batter. Chill the assembled cake in the refrigerator for at least 2 hours to allow the gelatin to fully set and the layers to bond.
Dust and Serve
Once chilled, carefully remove the cake from the refrigerator. Use a serrated knife to trim any uneven edges. Dust the top and sides generously with 1 cup powdered sugar using a fine-mesh sieve. This creates that classic rainbow cake finish and adds a touch of sweetness.
Slice the cake with a warm, clean knife for clean, vibrant layers. Serve immediately or store covered at room temperature for up to 2 days. The gelatin layers will hold their shape beautifully, creating a stunning visual effect with every slice.
Pro Tips For Making 5 Layer Rainbow Cake
- Chill the Butter First: I learned this the hard way—trying to cream cold butter with sugar at room temp just makes a greasy mess. Pop that butter in the fridge for 20 minutes before starting, then let it sit out for 10 while you measure everything else. The texture will be smooth, not lumpy, and your layers won’t end up dense.
- Use Room-Temp Eggs: Cold eggs from the fridge? Skip it. Crack them into a bowl first and let them sit for 30 minutes before mixing. Room-temperature eggs blend better, incorporate more air, and give you lighter layers—especially crucial when stacking five delicate ones. (Yes, even if you’re impatient like me.)
- Bake One Layer at a Time: I was skeptical until I tried it—baking all layers simultaneously in one oven just leads to uneven doneness. Space them out by 5-10 minutes between batches, and always check the center with a toothpick. The first layer might be done faster, but the last one will thank you for the patience.
- Level the Layers Flat: This isn’t the prettiest method, but it’s the tastiest. After baking, let each layer cool for 5 minutes, then run a serrated knife around the edges to trim the dome. A flat surface means even frosting distribution and no wobbly cake when you stack them. (Your future self will thank you.)
Serving suggestions for leftovers
Presentation Magic
Serve this rainbow cake on a slate board or marble cake stand to let the vibrant colors pop against neutral backgrounds. I love using gold-rimmed cake plates for birthdays—they make the colors look even more dramatic. For extra flair, add edible glitter or sprinkles along the edges before dusting with powdered sugar. 💫
Frosting Alternatives
While powdered sugar works best for the classic look, you can also try whipped cream frosting for a lighter touch. Mix 1 cup heavy whipping cream with 2 tbsp powdered sugar and pipe delicate swirls between layers. For a gluten-free option, use a coconut cream frosting—it adds a tropical twist that pairs beautifully with the cake's bold colors.
Rainbow Garnishes
Add fresh berries like raspberries or blackberries to the sides for a fruity contrast. I also like arranging candied citrus slices (orange, lemon, lime) in a rainbow pattern on top. For a festive touch, use colorful sugar pearls or wafer paper flowers—they add texture without overpowering the cake's natural beauty.
Serving Sizes
This cake serves 12 generous slices, perfect for celebrations. For smaller gatherings, cut into 16 pieces—the gelatin layers hold together beautifully. If serving at a party, use a serrated knife dipped in hot water between each slice to keep the rainbow effect crisp and clean. 🍰
Themed Pairings
Pair with sparkling lemonade or fruit-infused iced tea to complement the cake’s sweetness. For a festive dessert table, add mini rainbow cupcakes or colorful macarons as companions. The contrast of textures and flavors makes the rainbow cake even more special—trust me, your guests will love it!
Transport Tips
Use a large cake carrier with a lid to keep the cake stable during transport. Place a tray underneath to catch any crumbs. For outdoor events, keep the cake in a cool, shaded area until serving—this helps maintain the gelatin layers' shape and the powdered sugar's crispness. 🚗
Nutrition facts
Frequently asked questions
Why does this recipe use gelatin instead of frosting?
Gelatin creates clean, vibrant stripes that stay perfectly separated between cake layers. Unlike frosting, it won't bleed colors or make the cake soggy. The powdered sugar dusting we add later enhances the colors while keeping the cake light and sliceable. Plus, it's foolproof for beginners—no piping skills required!
Can I make this cake without a sheet pan?
Yes! You can bake two 9-inch round layers (about 1 inch thick each) in separate pans. Cut each layer into five equal strips (about 1.5-inch wide) for assembly. The gelatin layers will still create the rainbow effect, though the presentation will be slightly different. Just ensure your strips are perfectly even for clean slices.
How do I fix uneven cake layers?
If your cake layers are uneven, use a serrated knife to trim them level before assembly. For extra stability, chill the cake for an additional 1 hour after the initial 2-hour refrigeration. If the gelatin layers shift during chilling, gently press them back into place with a spatula before the cake fully sets. Patience is key—don't rush the chilling process!
Can I substitute the food coloring with natural dyes?
For red, use beet juice (simmer 1 cup chopped beets in 1 cup water for 20 minutes), and for yellow, try turmeric powder mixed with water. For blue/green, use blue spirulina powder or matcha powder (for green). Note that natural dyes may be less vibrant, so you might need to adjust quantities. Test colors on a small piece of cake first!
Why did my gelatin layers turn cloudy?
Cloudiness usually means the gelatin didn't fully dissolve or was overheated. Always bloom gelatin in cold water first, then dissolve it in hot (not boiling) water. Stir constantly until completely clear. If using powdered gelatin, sift it to avoid clumps. For extra clarity, strain the colored gelatin through a fine-mesh sieve before pouring into molds.
