Six-Inch Rainbow Cake Recipe: Layered Color Magic in One Tin

Desserts

Six-Inch Rainbow Cake Recipe: Layered Color Magic in One Tin

This six-inch rainbow cake recipe delivers all the whimsical beauty of a layered cake—without the fuss of multiple pans. 🌈 The secret lies in a single 6-inch round cake pan where vibrant colored batters create stunning horizontal stripes when baked together, resulting in a showstopping dessert that's perfect for birthdays, celebrations, or just because. No frosting needed to impress—just slice and serve for a dessert that looks as magical as it tastes.

The technique is surprisingly simple: divide your batter into three portions, tint each with food coloring, and layer them carefully in the pan. Baking at 350°F for 25-30 minutes ensures even cooking while preserving those crisp color lines. The result is a moist, tender cake with vibrant stripes that pop against the golden crust—ideal for cutting into neat squares that reveal the rainbow effect with every bite.

What makes this recipe truly special is its versatility—serve it as-is for a clean, elegant dessert, or add a simple buttercream swirl between layers for extra flair. The cake's compact size also makes it perfect for small gatherings or as a stunning centerpiece that won't overwhelm. Each slice delivers that perfect balance of sweetness and texture, proving that big impact doesn't require big effort.

Whether you're a beginner or an experienced baker, this method guarantees foolproof results with minimal prep. The key is patience during the layering process and precise baking time. Once you master this technique, you'll never need another rainbow cake recipe—this one delivers every time. Let's get baking!

👨‍🍳
Difficulty
Easy
🔥
Calories
Med Cal

Ingredients for 6 inch rainbow cake

Rainbow magic starts with these simple yet vibrant ingredients—perfect for creating a showstopping cake in one pan!

Ingredient Amount Notes
All-Purpose Flour 🌾 1 ½ cups Sifted for smooth batter
Granulated Sugar 🍚 1 ½ cups White or light brown
Unsalted Butter 🧈 ¾ cup Softened to room temperature
Large Eggs 🥚 2 whole Room temperature
Vanilla Extract 🌿 1 tbsp Pure vanilla for best flavor
Baking Powder 🧂 1 ½ tsp Freshly measured
Salt 🧂 ½ tsp Fine sea salt
Whole Milk 🥛 ½ cup Room temperature
Rainbow Food Coloring 🌈 1 tbsp Gel-based for vibrant colors
Vegetable Oil 🫒 2 tbsp For greasing the pan
Powdered Sugar 🍚 ¼ cup Optional for dusting

The flour and sugar are your foundation—King Arthur or Bob's Red Mill flour gives the best texture, but any all-purpose works. Butter matters here: unsalted is a must—it keeps flavors pure. I always grab Land O'Lakes or Plugrá for consistent results. Eggs should be room temp for smooth batter, and farm-fresh from Trader Joe's adds that extra richness. Food coloring? Wilton or Americolor gel gives those vibrant stripes without making the batter runny. Pro tip: tint your batter in separate bowls—mixing colors in the pan ruins the effect.

No gel food coloring? Natural alternatives like turmeric (yellow), beet juice (pink), and spirulina (blue-green) work in a pinch, but expect muted tones. Short on butter? Coconut oil at the same amount keeps things vegan-friendly, though flavor differs slightly. Milk substitute? Almond or oat milk works 1:1, but whole milk gives the best crumb. Powdered sugar optional but worth it for that extra wow factor—Domino or C&H brands dissolve smoothly. Want to skip food coloring entirely? Layer different batters like chocolate and vanilla for a two-tone effect.

Batter keeps for 24 hours in the fridge if you're prepping ahead—just whisk again before baking. Colored batter stays vibrant for 3 days if stored airtight. The cake itself? Best served fresh—those stripes lose their pop after 2 days. Slice with a serrated knife dipped in hot water for clean rainbow lines. Leftovers? Store in layers with parchment between slices for up to 5 days. Freeze the whole cake (unfrosted) for 3 months—thaw at room temp before slicing.

❤️

Why You'll Love This Recipe

  • No Fuss Layers: I swear by the simplicity of this one—just mix the butter, sugar, and eggs until light, fold in vanilla, then alternate the batter with store-bought frosting in a 6-inch pan. No fancy piping bags or stressing over precision.
  • Butter-Sugar Magic: That creamy, tender crumb? Pure butter-and-sugar alchemy. The vanilla cuts through the richness just enough to make every bite feel like a little celebration—no artificial flavors here.
  • Party in a Pan: Serve it as a single slice for a quiet afternoon or stack three layers for a birthday bash. The small size means less waste, but the flavor still packs a punch—no sad leftovers here.
  • Budget Baking Wins: Flour, sugar, butter—these are pantry staples that won’t break the bank. I’ve made this cake for under $5 total, and it still tastes like something from a bakery. Leftovers? Reheat slices in the microwave for a quick treat.

Step-by-step instructions for layered rainbow cake in one tin

This magical cake comes together in a single pan—no fuss, just vibrant layers of color and perfect texture!

1

👨‍🍳 Step 1: Prep the Pan and Make the Base Batter

Preheat your oven to 350°F and grease a 6-inch round cake pan generously with 2 tablespoons vegetable oil, then line the bottom with parchment paper. This ensures easy release and prevents sticking—trust me, it makes all the difference with a colorful cake like this.

In a large bowl, whisk together the 1.5 cups granulated sugar and 1.5 cups all-purpose flour until combined. Add the 0.75 cup softened unsalted butter, 2 whole large eggs, and 1 tablespoon vanilla extract. Mix on medium speed until smooth and creamy. The batter should be thick but pourable—like a thick cake batter should be.

Stir in the 1.5 teaspoons baking powder and 0.5 teaspoon salt until just combined. This is your base batter—save a small bowl for later. Pour half of this batter into the prepared pan and spread it evenly. Bake for 10-12 minutes until the edges are set but the center still jiggles slightly when shaken.

2

🥘 Step 2: Create the Colorful Layers

While the first layer bakes, prepare your rainbow food coloring. Divide the remaining batter into 5 small bowls (about ¼ cup each) and tint each bowl with a different color from the 1 tablespoon rainbow food coloring. I like to use red, orange, yellow, green, and blue for a classic rainbow effect—just a few drops of gel coloring per bowl will give you vibrant hues without altering the batter's consistency.

Once the first layer is baked, remove it from the oven and let it cool for 2 minutes. Then, carefully spread one of the colored batters over the top, creating a thin, even layer. Return the pan to the oven and bake for another 8-10 minutes. Repeat this process with the remaining colored batters, adding one layer at a time and baking each for 8-10 minutes until set.

Here's the thing—don't overbake! You want each layer to be just firm enough to hold its shape but still slightly soft in the center. Overbaking will make the layers dry and crumbly, which ruins the fun of a rainbow cake.

3

⏰ Step 3: Finish Baking and Cool Completely

After the final colored layer is baked, let the cake cool in the pan for 10 minutes. Then, run a thin knife around the edges to loosen it from the pan. Flip the cake onto a wire rack and let it cool completely for at least 1 hour. Patience here is key—the cake needs time to set properly so the layers don't shift when you slice it.

While the cake cools, make a simple glaze by whisking together 0.25 cup powdered sugar with 1-2 tablespoons whole milk until smooth. This glaze adds a beautiful sheen and keeps the cake moist. Once the cake is fully cooled, drizzle the glaze over the top and let it set for 10 minutes before slicing.

4

🍽️ Step 4: Slice and Serve Your Rainbow Masterpiece

Use a sharp serrated knife to slice the cake into 8 even wedges. To get clean cuts, dip the knife in hot water between slices—this prevents the cake from crumbling. Each slice should reveal those beautiful, vibrant layers you worked so hard to create.

Serve immediately for the best texture and presentation. The cake will hold its colors beautifully and taste just as good as it looks—moist, tender, and perfectly sweet with a hint of vanilla. This is the kind of cake that makes every bite feel like a celebration!

👨‍🍳

Pro Tips For Making 6 Inch Rainbow Cake

  • Weigh Your Butter: I learned this the hard way—packing butter into measuring cups leaves air pockets, and your cake will be denser than a brick. Use a kitchen scale for 6-inch cakes; 227 grams (1 cup) of cold, cubed butter mixed properly gives you that tender crumb every time.
  • Chill the Dough: Skip the urge to dive straight into baking. After mixing your batter, pop it in the fridge for 20-30 minutes—yes, even if you're impatient. This lets the flour absorb moisture and prevents a cake that cracks like a dried riverbed when it bakes.
  • Room-Temp Eggs Matter: Crack those eggs straight from the fridge into a bowl first, then let them sit for 10 minutes before adding them to the butter-sugar mix. Cold eggs can curdle your batter faster than you can say "rainbow layers," and nobody wants a lumpy cake.
  • Layer Thin, Fill Generous: When assembling, spread your batter thin—about ¼-inch thick—so the colors pop and the cake doesn’t overflow like a toddler’s finger painting. Then, pipe or spoon your fillings (jam, cream, or whatever) right up to the edges before adding the next layer. The extra effort keeps every bite packed with flavor.

Dietary considerations for this 6 inch rainbow cake

Gluten-Free Magic

This recipe is totally adaptable for gluten-free bakers! Swap the all-purpose flour for a 1:1 gluten-free baking blend like King Arthur Measure for Measure or Bob's Red Mill 1-to-1. These blends mimic the texture of regular flour, so your rainbow layers stay intact. Just

Dairy-Free Delight

Skip the butter and milk without sacrificing flavor by using coconut oil (same amount) and unsweetened almond milk (1:1 ratio). The cake will still be moist and tender, though slightly richer in coconut flavor. For extra insurance, add 1 extra tablespoon of oil to compensate for the dairy-free swap. Trust me, your rainbow effect stays as vibrant as ever!

Egg-Free Options

For an egg-free version, replace the 2 eggs with 2 tablespoons of flaxseed meal mixed with 6 tablespoons of water (let it sit for 5 minutes to thicken). This creates a gel-like substitute that binds the batter just like eggs. If your batter seems too thick, add 1 extra tablespoon of milk to maintain the perfect pourable consistency for those clean rainbow layers.

Nut-Free Safety

This cake is naturally nut-free, but always double-check your food coloring and vanilla extract labels to ensure they're processed in nut-free facilities. For extra safety, use sunflower seed butter instead of regular butter if you're concerned about cross-contamination. The flavor stays delightfully neutral, so your rainbow effect remains the star of the show!

Sugar-Free Twist

Cut the sugar by half and replace the remaining ¾ cup with ¾ cup of granulated erythritol or monk fruit sweetener. The cake will still be tender, though slightly denser. To keep the moisture balanced, reduce the milk by 1 tablespoon. The rainbow colors stay just as bright, and the sweetness is perfectly controlled—ideal for those watching their sugar intake but still craving a celebration-worthy dessert. 💫

Nutrition facts

Servings 8
Amount Per Serving
Calories 320kcal
% Daily Value *
Total Fat 14g18%
Saturated Fat 9g45%
Cholesterol 85mg28%
Sodium 280mg12%
Total Carbohydrate 45g16%
Dietary Fiber 0g0%
Sugars 38g
Protein 4g8%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I use liquid food coloring instead of gel?

Liquid food coloring works, but you'll need to use less—about ½ teaspoon per bowl—since it's more concentrated. The downside? Liquid coloring can make your batter thinner, which may cause the layers to blend during baking. For crisp rainbow lines, gel coloring is your best bet!

2

How do I get perfectly even rainbow stripes?

Spread each colored layer with a spatula or offset spatula to create a thin, even coating. Pouring batter directly from the bowl often causes uneven distribution. Also, bake each layer for just 8-10 minutes—overbaking makes the cake too firm and ruins the clean lines. Patience is key!

3

Can I make this cake without an oven?

This recipe requires baking, but you can try a microwave method for a no-bake version. Mix 1 cup cake mix with ½ cup water, divide into colored layers in a microwave-safe dish, and bake in 30-second bursts on high until set. The texture won't be the same, but it's a fun alternative for emergencies!

4

Why did my cake layers separate when slicing?

This usually happens if the cake cooled too quickly or wasn't fully set before slicing. Always let it cool 1 hour completely before cutting. If layers still separate, try chilling the cake 30 minutes in the fridge before slicing for better stability. A damp towel over the cake while cooling also helps!

5

What's the best way to store leftover rainbow cake?

Wrap individual slices in plastic wrap and store at room temperature for 2 days. For longer storage, freeze slices (unfrosted) for up to 3 months. Thaw at room temperature—microwaving can make the cake dry. The colors stay vibrant if stored properly!

★★★★★4.9(2 reviews)
Categories Desserts