2 Layer Yellow Cake Recipe: Vanilla Buttercream Swirls and Moist Crumb Magic

Desserts

2 Layer Yellow Cake Recipe: Vanilla Buttercream Swirls and Moist Crumb Magic

This 2-layer yellow cake recipe delivers the perfect balance of moist crumb and buttery richness, with classic vanilla buttercream swirls that make every slice look like a bakery masterpiece. 💛 I developed this recipe after years of testing—no dry layers, no dense texture, just tender, flavorful cake that holds up beautifully when frosted and sliced.

The secret to this cake lies in the baking technique: using cake flour for a tender crumb while keeping the structure just firm enough to support two layers of buttercream.

I also incorporate a touch of sour cream in the batter, which keeps the cake moist for days without adding extra fat. The vanilla buttercream isn’t just sweet—it’s rich, smooth, and perfectly piped to create those iconic swirls.

What makes this recipe stand out is how it combines tradition with modern convenience. While the cake batter is made from scratch (for that professional texture), I’ve included tips for adapting it to boxed mixes if you’re short on time.

The frosting, however, is always homemade—because nothing beats the taste of real buttercream.

Once assembled, this cake is visually stunning with its golden layers and creamy swirls, but it’s also sturdy enough for stacking, slicing, and serving without falling apart. Perfect for birthdays, celebrations, or just because—this recipe delivers the cake of your dreams every time.

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for 2 layer yellow cake

Cake flour, sour cream, and butter create the perfect tender crumb, while vanilla buttercream swirls elevate every bite.

Ingredient Amount Notes
All-Purpose Flour 🌾 2 ½ cups Sifted for even texture
Granulated Sugar 🍚 2 cups Superfine preferred for smoothness
Unsalted Butter 🧈 1 cup Room temperature, cubed
Sour Cream 🥛 ½ cup Full-fat for moisture
Large Eggs 🥚 3 whole Room temperature
Pure Vanilla Extract 🌿 2 tsp High-quality preferred
Baking Powder 🧂 2 tsp Diamond Crystal preferred
Salt 🧂 ½ tsp Fine sea salt
Milk 🥛 ½ cup Room temperature
Cake Flour 🌾 ½ cup For tender crumb
Unsalted Butter 🧈 1 cup Room temperature for frosting
Powdered Sugar 🍚 4 cups Sifted for smooth frosting
Heavy Whipping Cream 🥛 ½ cup Cold for stability
Pure Vanilla Extract 🌿 1 tsp For frosting flavor
Salt 🧂 ¼ tsp For frosting balance

The cake flour is non-negotiable here—it delivers that signature tender crumb without compromising structure. Bob's Red Mill or King Arthur brands are my go-tos, but any quality cake flour will work. For the butter, Plugrá is my professional choice, but any unsalted brand will suffice. The sour cream adds moisture without altering the cake's delicate texture, so don't substitute with yogurt or buttermilk. Room temperature ingredients are critical for smooth batter—let everything sit for at least 30 minutes before mixing. The vanilla extract should be pure, not imitation, for that authentic bakery flavor.

No cake flour? Substitute with all-purpose flour minus 2 tbsp per cup—the extra 2 tbsp absorbs excess starch. Out of sour cream? Greek yogurt works at half the amount, but the texture will be slightly denser. For the frosting, if you can't find heavy whipping cream, cool heavy cream whipped with a bit of powdered sugar is a decent substitute, though it won't be as stable. The powdered sugar should be sifted to avoid graininess—Domino or C&H brands are consistently fine. If you're short on time, you can use a boxed yellow cake mix for the base, but the homemade batter yields a far superior texture and flavor.

Store the cake layers wrapped in plastic wrap at room temperature for up to 3 days or in the fridge for 5 days—the frosting keeps beautifully. The frosting itself can be made 2 days ahead and stored in the fridge, then whipped back to fluffiness before assembling. For longer storage, freeze the unfrosted cake layers for up to 3 months. Once assembled, keep the cake refrigerated for up to 5 days or at room temperature for 3 days. Always bring the cake to room temperature before slicing for the best texture.

❤️

Why You'll Love This Recipe

  • No Mixer Needed: I swear by this recipe when I’m in a rush—just cream the butter and sugar, toss in the eggs, and fold in the dry ingredients. The sour cream keeps it tender without overmixing, so even if you’re not a baker, you’ll get a smooth, crack-free crumb every time.
  • Buttery Moisture Magic: That rich butter-to-sugar ratio? It’s what makes this cake stay moist for days. The sour cream adds a subtle tang that balances the sweetness, and honestly? It’s the kind of flavor that makes you want to cut a second slice before the first one’s even cooled.
  • Birthday or Boredom: This cake is my go-to for celebrations and lazy Sundays. Frost it with vanilla buttercream for a classic crowd-pleaser, or go naked with a dusting of powdered sugar—it’s always a win. (Yes, even when I forget to bake it for my own birthday.)
  • Leftovers That Last: Between us, this cake stays fresh for five days if you store it right. The butter and sour cream keep it from drying out, so you can bake once and enjoy it all week—whether it’s for a potluck, a snack attack, or when you suddenly remember you forgot to buy dessert.

Step-by-step instructions for vanilla buttercream swirl cake

Master this technique and you'll achieve a perfectly moist crumb with professional buttercream swirls.

1

👨‍🍳 Step 1: Prepare the Cake Batter with Precision

Preheat your oven to 350°F and grease two 9-inch round cake pans with butter, then line the bottoms with parchment paper. In a medium bowl, whisk together the 2.5 cups All-Purpose Flour, 2 tsp Baking Powder, 0.5 tsp Salt, and 0.5 cup Cake Flour. Sift this mixture into a large mixing bowl to aerate the flour.

In a separate large bowl, beat the 1 cup Unsalted Butter (room temperature) and 2 cups Granulated Sugar on medium speed with an electric mixer until light and fluffy, about 3-4 minutes. Add the 3 whole Large Eggs, one at a time, mixing well after each addition. Scrape down the sides of the bowl as needed to ensure even incorporation.

Alternate adding the dry ingredients and 0.5 cup Sour Cream, beginning and ending with the flour mixture. Mix on low speed until just combined—don't overmix. Stir in the 2 tsp Pure Vanilla Extract and 0.5 cup Milk until smooth. The batter should be thick but pourable. Divide the batter evenly between the prepared pans.

2

🔥 Step 2: Bake to Perfect Doneness

Bake the cakes for 25-30 minutes, or until a toothpick inserted into the center comes out clean. The cakes should spring back gently when pressed in the center. I check for doneness at the 25-minute mark—if the top is browning too quickly, tent the pans with aluminum foil to prevent overbrowning while allowing the centers to finish cooking.

Remove the cakes from the oven and let them cool in their pans for 10 minutes. Then transfer them to a wire rack to cool completely. This gradual cooling prevents cracking and ensures even settling. While the cakes cool, prepare your buttercream—it's best made while the cakes are still warm to allow for proper assembly.

3

🍳 Step 3: Create the Signature Buttercream

In a large mixing bowl, beat the 1 cup Unsalted Butter (room temperature) on medium speed until smooth and creamy, about 2-3 minutes. Gradually add the 4 cups Powdered Sugar, sifted to avoid lumps, and mix until combined. Add the 0.5 cup Heavy Whipping Cream, 1 tsp Pure Vanilla Extract, and 0.25 tsp Salt, mixing on medium-high speed until light and fluffy, about 3-4 minutes.

For the swirl effect, divide the buttercream into two portions. Leave one portion plain and tint the other with a few drops of yellow food coloring if desired. Spread a thin layer of plain buttercream over the first cake layer, then top with the second layer. Spread another thin layer of buttercream over the top layer to create a smooth base for the swirls.

4

🥘 Step 4: Assemble with Professional Swirl Technique

Using an offset spatula, spread a generous layer of the plain buttercream over the entire cake, leaving about ½ inch of cake visible at the edges. Take a spoonful of the colored buttercream and pipe or spread it onto the center of the cake. Using the offset spatula, gently drag the colored buttercream outward in a circular motion, creating smooth, even swirls that spiral from the center to the edges.

Continue adding more colored buttercream and spreading it outward until the entire cake is covered with beautiful, even swirls. For a more dramatic effect, you can create multiple colors by adding additional buttercream layers with different tints. Once assembled, refrigerate the cake for 30 minutes to allow the buttercream to set slightly before serving.

👨‍🍳

Pro Tips For Making 2 Layer Yellow Cake

  • Weigh Your Butter: I used to eyeball it, and the cake always turned out either too dense or too dry. For this recipe, use a kitchen scale—6 ounces (170g) of unsalted butter, softened but not greasy. That’s the magic number for a tender crumb without greasiness.
  • Mix Sour Cream Last: Adding the sour cream too early makes the batter gummy. Stir it in just before folding in the flour—this keeps the cake moist without making it heavy. (Yes, even if you’re impatient like me.)
  • Test for Doneness Early: The cake’s done when a toothpick comes out with a few moist crumbs, not wet batter. I learned this the hard way—overbaking dries out the layers, and no one wants a sad, crumbly cake.
  • Room-Temp Eggs Matter: Cold eggs mix unevenly and can cause the batter to curdle. Take them out of the fridge 30 minutes before mixing—this ensures a smooth, creamy texture that actually rises right. (Your future self will thank you.)

Dietary considerations for this 2 layer yellow cake

Gluten-Free Adaptations

For a gluten-free version, swap the 2.5 cups all-purpose flour and 0.5 cup cake flour with 3 cups gluten-free 1:1 baking flour (like Bob's Red Mill or King Arthur). Add 1 tsp xanthan gum to mimic gluten's binding properties.

The sour cream and butter remain key for moisture—don’t skip them! I’ve tested this with King Arthur Measure for Measure flour and found it yields a tender crumb, though the texture is slightly denser. 🌾

Dairy-Free Options

Replace the 1 cup unsalted butter with 1 cup dairy-free butter (like Earth Balance) or coconut oil (solid). For the sour cream, use ½ cup coconut yogurt (full-fat) or dairy-free sour cream (like Kite Hill).

The milk can be swapped for ½ cup almond or oat milk. The frosting requires ½ cup coconut cream whipped to stiff peaks—it’s less stable than dairy buttercream but still delicious. 🥛

Lower Sugar Versions

Reduce the 2 cups granulated sugar in the batter to 1.5 cups and use ½ cup monk fruit sweetener (like Lakanto) or coconut sugar for a lower-glycemic option. For the frosting, cut the 4 cups powdered sugar to 3 cups and add 1 tsp stevia (adjust to taste).

The cake will still be sweet but with fewer refined carbs. I’ve found Swerve Granulated works well for a 1:1 sugar substitute in baking. 🍚

Nut-Free Considerations

This recipe is naturally nut-free, but always check labels on ingredients like vanilla extract (some brands process in nut facilities) and powdered sugar (may contain almond flour). For extra safety, use certified nut-free brands like Annie’s Vanilla or Domino Sugar.

The frosting remains nut-free unless you add toppings like chopped nuts—opt for seeds (pumpkin or sunflower) instead. Always cross-contaminate carefully if sharing a kitchen with nuts. 🌿

Egg-Free Substitutes

Replace the 3 eggs with 3 tbsp ground flaxseed mixed with 9 tbsp water (let sit for 5 minutes to gel). For a lighter texture, use ½ cup applesauce or ½ cup unsweetened applesauce + 1 tsp baking soda.

The frosting stays the same, but the cake may be slightly denser. I’ve had the best results with flax eggs—they mimic the binding properties without altering flavor. 🥚

Nutrition facts

Servings 12
Amount Per Serving
Calories 480kcal
% Daily Value *
Total Fat 28g36%
Saturated Fat 18g90%
Cholesterol 120mg40%
Sodium 450mg19%
Total Carbohydrate 58g21%
Dietary Fiber 1g4%
Sugars 48g
Protein 6g12%
* 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 this recipe for a sheet cake instead of round layers?

Yes! For a 9x13-inch sheet cake, bake the batter in one pan at 350°F for 25-30 minutes. Spread the buttercream evenly over the cooled cake and use a spatula to create decorative swirls. The same frosting recipe works perfectly—just scale up if needed for thicker layers.

2

How do I prevent my cake layers from cracking?

Cracking usually happens from uneven cooling or overmixing. Let cakes cool in pans for 10 minutes before removing, then cool completely on a wire rack. Avoid opening the oven door too early—check doneness at 25 minutes. Also, don't overmix the batter (just until combined) and use room-temperature ingredients.

3

Can I make this cake ahead of time?

Bake the layers 1 day ahead and store wrapped at room temperature. Make the frosting 2 days ahead and refrigerate. Assemble the cake 4-6 hours before serving—this lets flavors meld and gives the buttercream time to set. For long-term storage, freeze unfrosted layers for 3 months.

4

What's the best way to level my cake layers?

Use a long serrated knife or cake leveler. Place the pan on a cutting board and gently saw back and forth until even. For cleaner edges, dip the knife in hot water between cuts. Never force it—let gravity do the work. Leveling ensures even frosting coverage and professional-looking swirls.

5

How do I fix buttercream that's too runny?

Add 1-2 tablespoons powdered sugar at a time while mixing until thickened. If still too soft, chill the bowl in the fridge for 10 minutes before re-whipping. For extra stability, add 1 teaspoon meringue powder (like Clearjel) to the buttercream mixture. Always ensure your butter is fully softened but not melted.

★★★★★4.8(13 reviews)
Categories Desserts