Easy Gluten-Free Exploding Rainbow Cake

Easy Gluten-Free Exploding Rainbow Cake
Make an easy gluten-free exploding rainbow cake with six colorful vanilla layers, fluffy buttercream, and a hidden sprinkle-filled center.
Gluten-free rainbow layer cake cut open to reveal a surprise center filled with colorful candy and sprinkles.

Colorful, festive, and filled with a sweet surprise, this Easy Gluten-Free Exploding Rainbow Cake Recipe features six vibrant vanilla cake layers, fluffy buttercream frosting, and a hidden center filled with rainbow sprinkles or colorful candy. When the first slice is removed, the filling tumbles out for an exciting exploding rainbow effect.

This celebration cake is perfect for birthdays, graduations, Pride events, baby showers, family gatherings, and holiday dessert tables. Each gluten-free cake layer has a moist, tender crumb and rich vanilla flavor. The creamy vanilla buttercream provides enough structure to stack the layers while adding a smooth, sweet finish.

Choose between the homemade gluten-free flour blend and the Measure for Measure flour variation. The batter can be colored with gel food coloring, fruit and vegetable juices, or powdered natural colors. Whichever option you choose, check every packaged ingredient for appropriate gluten-free labeling before preparing the cake.

Gluten-free rainbow layer cake cut open to reveal a surprise center filled with colorful candy and sprinkles.

Easy Gluten-Free Exploding Rainbow Cake

Author: Leslie
No ratings yet
Share
Prep 45 minutes
Bake Time 20 minutes
Total 3 hours 5 minutes
Make an easy gluten-free exploding rainbow cake with six colorful vanilla layers, fluffy buttercream, and a hidden sprinkle-filled center.
Servings 12 slices
Course Dessert
Cuisine American

Ingredients

Option 1: Homemade Gluten-Free Flour Blend Cake
  • 1/2 cup plus 1 tablespoon sweet rice flour
  • 1/2 cup white rice flour
  • 1/2 cup plus 1 tablespoon tapioca flour
  • 1/4 cup brown rice flour
  • 3/4 teaspoon xanthan gum
  • 1 teaspoon baking powder
  • 1/2 teaspoon baking soda
  • 1/2 teaspoon kosher salt
  • 1 stick unsalted butter at room temperature, or 1/2 cup neutral oil
  • 1 cup granulated sugar
  • 4 large eggs
  • 2 teaspoons pure vanilla extract
  • 1/2 cup buttermilk at room temperature
  • 8 ounces sour cream at room temperature
Option 2: Measure for Measure Flour Cake
  • 2 cups gluten-free Measure for Measure flour
  • 3/4 teaspoon table salt
  • 1 1/2 teaspoons baking powder
  • 1/2 teaspoon baking soda
  • 3/4 cup plus 2 tablespoons milk
  • 1/2 cup butter softened
  • 1 large egg
  • 1 cup granulated sugar
  • 1 tablespoon pure vanilla extract
For the Buttercream Frosting
  • 4 1/2 cups confectioners’ sugar
  • 2 sticks unsalted butter softened
  • 1 stick salted butter softened
  • 3 to 4 tablespoons heavy cream
  • 1 1/2 teaspoons pure vanilla extract
Gel Food Coloring Option
  • 1/2 teaspoon super red gel food coloring
  • 1/4 teaspoon lemon yellow gel food coloring
  • 1/4 teaspoon leaf green gel food coloring
  • 1/4 teaspoon royal blue gel food coloring
  • 1/2 teaspoon violet gel food coloring
  • 1/4 teaspoon orange gel food coloring
Natural Dye Option 1
  • Red: 1 to 2 tablespoons beet juice
  • Orange: 1 tablespoon carrot juice
  • Yellow: 1 egg yolk
  • Green: 1 tablespoon spinach juice
  • Blue: 1 tablespoon or more blueberry juice
  • Purple: 1 tablespoon or more blackberry juice
Natural Dye Option 2
  • Red: 1/2 teaspoon red yeast rice powder plus 1/2 teaspoon beet powder
  • Orange: 1/4 teaspoon red yeast rice powder plus 3/4 teaspoon golden berry powder
  • Yellow: 1 teaspoon golden berry powder
  • Green: 1 teaspoon matcha powder
  • Blue: 2 teaspoons butterfly pea powder
  • Purple: 1 teaspoon purple sweet potato powder
For the Surprise Filling
  • 1 to 1 1/2 cups rainbow sprinkles
  • or
  • 1 to 1 1/2 cups candy-coated chocolates
  • or
  • 1 to 1 1/2 cups colorful gluten-free candies
Optional Decorations
  • Rainbow sprinkles
  • Colored buttercream swirls
  • Edible glitter
  • Candy pearls
  • Mini marshmallows
  • Colorful cake toppers

Equipment

  • Parchment paper
  • Cake pans
  • Mixing bowls
  • Whisk
  • Spatula
  • Wire cooling rack
  • Cookie cutter
  • Sharp knife

Instructions

  1. Option 1: Homemade Gluten-Free Flour Blend Cake
Prepare the Oven and Cake Pans
  1. Preheat the oven to 350°F. Grease six 6-inch round cake pans and line the bottoms with parchment paper.
Combine the Dry Ingredients
  1. In a medium bowl, whisk together the sweet rice flour, white rice flour, tapioca flour, brown rice flour, xanthan gum, baking powder, baking soda, and kosher salt. Continue whisking until the ingredients are evenly distributed.
Cream the Butter and Sugar
  1. Place the room-temperature butter and granulated sugar in a large mixing bowl. Beat for 3 to 5 minutes, or until the mixture is pale and fluffy. If using neutral oil instead of butter, mix the oil and sugar until thoroughly combined.
Add the Eggs and Vanilla
  1. Add the eggs one at a time, beating well after each addition. Mix in the vanilla extract.
Finish the Cake Batter
  1. Add the flour mixture in three additions, alternating with the buttermilk. Mix just until combined after each addition. Fold in the sour cream until the batter is smooth and creamy. Avoid overmixing.
Color the Batter
  1. Divide the batter evenly among six bowls. Add a different food coloring or natural dye to each bowl, creating red, orange, yellow, green, blue, and purple batters. Stir each portion carefully until the color is evenly incorporated.
Bake the Cake Layers
  1. Transfer each colored batter to a prepared cake pan. Gently tap the pans against the counter to release large air bubbles.
  2. Bake for 18 to 22 minutes, or until a toothpick inserted into the center of each cake comes out clean.
Cool the Cake Layers
  1. Allow the cakes to cool in their pans for 10 minutes. Carefully turn them out onto cooling racks and remove the parchment paper. Let the layers cool completely before assembling the cake.
  2. Option 2: Measure for Measure Flour Cake
Prepare the Oven and Cake Pans
  1. Preheat the oven to 350°F. Grease six 6-inch round cake pans or coat them with nonstick spray.
  2. Line the bottoms with parchment paper.
Cream the Butter and Sugar
  1. Beat the softened butter and granulated sugar in a large mixing bowl until light and fluffy.
Add the Egg and Vanilla
  1. Mix in the egg and vanilla extract until completely incorporated.
Combine the Dry Ingredients
  1. In a separate bowl, whisk together the Measure for Measure flour, table salt, baking powder, and baking soda.
Finish the Batter
  1. Add the dry ingredients to the butter mixture in several additions, alternating with the milk. Mix just until the batter is smooth and fully combined.
Color and Bake the Layers
  1. Divide the batter evenly among six bowls. Color each portion with a different gel food coloring or natural dye.
  2. Transfer the colored batters to the prepared pans. Bake for 18 to 22 minutes, or until a toothpick inserted into the center comes out clean.
Cool the Cakes
  1. Cool the cake layers completely before frosting and assembling them.
  2. Prepare the Buttercream Frosting
Beat the Butter
  1. Place the softened salted and unsalted butter in a large mixing bowl. Beat until smooth and creamy.
Add the Sugar
  1. Gradually add the confectioners’ sugar, approximately 1 cup at a time. Mix well after each addition.
Finish the Buttercream
  1. Add the vanilla extract. Beat in the heavy cream 1 tablespoon at a time until the frosting reaches a smooth, spreadable consistency.
  2. Continue whipping the buttercream for 3 to 5 minutes, or until it is light and fluffy. If desired, divide some of the frosting among several bowls and tint each portion a different rainbow color.
  3. Build the Surprise Center
Prepare the Bottom Layer
  1. Choose one cake layer for the base and leave it intact. Place it on a cake stand or serving plate.
  2. Spread an even layer of buttercream over the top.
Cut the Center Layers
  1. Use a round cookie cutter, biscuit cutter, or small bowl as a guide to remove the center from four cake layers. Leave the sixth and final cake layer intact for the top.
Stack the Hollow Layers
  1. Place one hollow cake layer over the base. Spread buttercream over the cake without filling the opening in the center.
  2. Continue stacking and frosting the remaining hollow layers. Carefully align the openings to create a tunnel through the middle of the cake.
Add the Surprise Filling
  1. Fill the center cavity with rainbow sprinkles, candy-coated chocolates, or colorful gluten-free candies. Fill the opening nearly to the top without packing or overfilling it.
Add the Top Layer
  1. Place the final uncut cake layer over the filled center. Check that the cake is straight and that the layers are evenly aligned.
  2. Frost and Decorate the Cake
Apply the Crumb Coat
  1. Spread a thin layer of buttercream over the top and sides of the assembled cake. This crumb coat traps loose crumbs and creates a smooth foundation for the final frosting.
  2. Refrigerate the cake for 15 to 20 minutes, or until the crumb coat is firm.
Add the Final Frosting
  1. Cover the chilled cake with the remaining buttercream. Smooth the top and sides with an offset spatula or cake scraper.
Decorate the Cake
  1. Decorate with rainbow sprinkles, colored buttercream swirls, edible glitter, candy pearls, mini marshmallows, or colorful cake toppers.
  2. For a dramatic finish, divide additional frosting among six bowls and tint each portion a different rainbow color. Pipe the colored frosting around the top edge of the cake.
Slice and Serve
  1. Present the cake whole before slicing so everyone can enjoy the colorful exterior. Cut into the center with a sharp knife and remove the first slice carefully to reveal the hidden filling.

Notes

Use either cake formula to prepare the six layers. Do not combine the two formulas in one batch.
The Measure for Measure flour must be specifically labeled gluten-free. Different flour blends can absorb liquid differently, so the texture may vary if another blend is substituted.
For the brightest rainbow layers, use concentrated gel food coloring. Gel colors add vivid color without introducing as much extra liquid as conventional liquid food coloring.
Natural colors may produce softer or more muted shades. Fruit and vegetable juices can also add moisture to the batter, so introduce them carefully.
Let every cake layer cool completely before stacking. Warm cake can soften the buttercream and cause the tall cake to shift.
If the tops of the layers are domed, level them gently with a serrated knife before assembling the cake. Even layers will produce a straighter, more stable finished cake.
When cutting the hollow centers, use the same cutter for all four middle layers. Align the openings carefully so the filling remains contained until the cake is sliced.
Do not cut the bottom or top cake layers. These intact layers seal the surprise filling inside the cake.
Check the labels on sprinkles, candy-coated chocolates, edible glitter, candy pearls, food coloring, cake toppers, nonstick spray, confectioners’ sugar, and other packaged ingredients. Products and manufacturing practices can vary, and not every decorating ingredient is gluten-free.
When preparing this cake for someone with celiac disease or gluten sensitivity, clean all tools and work surfaces thoroughly and prevent cross-contact with gluten-containing ingredients.
Store the assembled cake covered in the refrigerator. Allow it to sit briefly at room temperature before serving so the buttercream can soften.

Tried this recipe?

Let us know how it was!

Rate and Review This Recipe

Your email address will not be published. Required fields are marked *

Recipe Rating




Originally published April 2026 Updated December 2026 Reviewed by Culibloom

Reading Time 8 min

Search Website