Yellow Cake with Chocolate Frosting

Soft, buttery, and incredibly moist, this is the ultimate classic yellow cake recipe with a tender, bakery-style crumb. After extensive recipe testing, I discovered the perfect balance comes from cake flour, extra egg yolks, and a blend of sour cream, whole milk, and just a touch of oil for lasting moisture and rich flavor. Finish it with my ultra-fluffy chocolate buttercream for a celebratory birthday cake that disappears fast and has everyone going back for seconds!

Follow along for step-by-step photos, expert tips, and variations.

up close of yellow cake recipe with three tiers of cake frosted with chocolate frosting


 

Why this Yellow Cake Recipe Works

After testing multiple variations—including cake flour vs. all-purpose flour and adjusting butter, oil, etc.—I refined every detail to land on what I truly consider the perfect, ultra-moist, classic yellow cake. Here’s why it’s the best:

  • Ultra-moist: The combo of butter, sour cream, whole milk, and just two tablespoons of oil delivers long-lasting moisture; in testing, milk was superior to buttermilk when combined with sour cream to achieve a tighter bakery-style crumb.
  • Buttery vanilla flavor: This recipe uses extra butter for rich, bakery-style buttery depth and a full tablespoon of vanilla for a bold, warm flavor.
  • Fluffy but structured: Whipped butter and sugar (instead of melted butter), plus eggs and egg yolks, give a beautiful rise and a fluffy yet velvety texture.
  • Perfectly soft, bakery-style crumb: In testing, cake flour was the clear winner over all-purpose flour for achieving an ultra-soft, tender, light crumb rather than a dense one.
  • Soft for days: Just two tablespoons of oil keeps the cake tender and moist long after baking, while letting rich butter remain the primary fat for unbeatable flavor.
  • BEST Chocolate Frosting that my husband agrees makes the cake! It’s fluffy, creamy, rich and silky, with deep chocolate flavor—you’ll be eating it with a spoon! 
top of yellow cake recipe decorated with sprinkles on a cake pedestal
ingredient icon

Yellow Cake Ingredients

Let’s take a closer look at some key ingredients you’ll need to make this recipe (measurements in the printable recipe card at the bottom of the post):

  • Cake flour is a finely milled, low-protein flour that’s lighter and softer than traditional all-purpose flour, which means it produces less gluten and bakes into an exceptionally tender, delicate crumb.
  • You can find cake flour in most major grocery stores in the baking aisle (look for brands like Swans Down used in this recipe), or easily order it online from retailers like Amazon or Walmart if it’s not available locally.
  • Softened butter traps air when beaten with sugar, giving the cake its light, fluffy structure. Unlike melted butter or oil, which mainly add moisture and can create a denser texture, softened butter builds volume and stability while still delivering rich, buttery flavor.
  • Whole eggs + extra yolks: The combination of whole eggs for structure and extra yolks for richness creates a perfectly balanced cake that’s both fluffy and tender, with a richer flavor, softer crumb, and more moist, bakery-style texture.
  • Sour cream adds rich moisture and a subtle tang, creating a tender, velvety crumb because its higher fat content helps limit gluten development and retain moisture, while its thick consistency slows water loss during baking—resulting in a softer crumb that stays moist longer.
  • Don’t substitute yogurtas it is leaner and more acidic, which can result in a slightly drier or tighter crumb and a sharper flavor that doesn’t deliver the same rich, bakery-style texture.
  • Whole milk or 2% milk: Adds moisture and helps create a smooth, cohesive batter while contributing just enough fat to keep the cake soft and tender.
  • Vegetable oil: Just two tablespoons of oil add lasting moisture by keeping the crumb soft and tender even after baking and chilling. Unlike butter, which firms up as it cools, oil stays liquid at room temperature, helping prevent dryness and keeping the cupcakes moist for days.
Top view of yellow cake ingredients: cake flour, milk, butter, vegetable oil, baking soda, baking powder, salt, eggs, vanilla

How to MAke Yellow Cake From Scratch

Let’s take a closer look at how to make this recipe with step-by-step photos (full recipe in the printable recipe card at the bottom of the post):

  • Step 1: Dry Ingredients. Whisk the cake flour (measure correctly! See Notes), baking powder, baking soda, and salt together in a large mixing bowl. 
  • Step 2: Cream Butter and Sugar. Using a stand mixer fitted with the paddle attachment (or a handheld mixer), beat the butter and sugar on medium-high speed for 3-5 minutes (no less!), until very creamy and fluffy.
  • Step 3: Add Wet Ingredients. Add the sour cream, vegetable oil, and vanilla extract, and beat on medium-high until combined, about 30 seconds. Mix in the eggs and the egg yolks, one at a time, blending each fully into the batter before adding the next to prevent an “eggy” taste.
  • Step 4: Alternate Ingredients. With the mixer on low, add the flour mixture in three additions, alternating with the milk (begin and end with dry ingredients).
a collage showing how to make yellow cake by 1. mixing cake flour, salt, baking powder and baking soda together, 2. creaming the butter and sugar together with a mixer, 3. beating in the sour cream, vegetable oil, and vanilla extract, 4. beating in the eggs and egg yolks, 5. adding the dry ingredients alternating with the mil, 6. mixing until combined
  • Step 5: Bake. Divide batter among the prepared cake pans. Bake in a preheated oven for 18-24 minutes for 8-inch pans and 25-31 minutes for 9-inch pans, until a toothpick inserted into the center comes out with just a few moist crumbs.
  • Step 6: Cool. Cool the cakes in the pans for 10 minutes, then invert onto wire racks to cool completely before frosting.
showing how to make yellow cake from scratch by baking in three 8-inch pans, then cooling

CHOCOLATE FROSTING

  • Step 7: Sift. Sift the powdered sugar, cocoa powder, and salt into a large mixing bowl, then whisk to combine.
  • Step 8: Cream the Butter. In the bowl of a stand mixer fitted with the paddle attachment, beat the butter on high until smooth and fluffy.
  • Step 9: Combine. With the mixer on low, gradually add the sugar/cocoa mixture until mostly incorporated, then slowly add the cream and vanilla. 
  • Step 10: Make it Fluffy. Increase the speed to medium-high and beat for a full 2 minutes-no less!
a collage showing how to make chocolate frosting recipe by 1. sifting the cocoa powder and powdered sugar together, 2. whisking the cocoa powder and powdered sugar together, 3. creaming the butter until fluffy, 4. adding the cocoa/powdered sugar mixture, 5. adding the heavy creamy, 6. beating in the heavy cream
  • Step 11: Frost Cake. Place one cake layer on a serving plate, cut side up. Evenly frost with a cup of frosting. Top with the 2nd cake layer, cut side up, and evenly frost with another cup of frosting. Top with the third cake layer, cut side down. Spread the frosting evenly over the top and sides of the cake, and decorate/pipe the top as desired.
showing how to make yellow cake by frosting the cake with chocolate frosting
  • Step 12: Serve. Time permitting, refrigerate for 30 minutes before slicing for prettier, cleaner slices, then let it come to room temperature for serving.
showing how to make yellow cake by slicing with a clean knife to serve

Homemade Yellow Cake Tips

Measure flour correctly: It’s best to weigh it on a kitchen scale to avoid dense, dry cupcakes. If you don’t have one, then fluff the flour in the container with a spoon to loosen it, then gently spoon it into the measuring cup without packing it down, then level it.
Use room-temperature ingredients: Eggs, butter, sour cream, and milk must be at room temperature so everything blends smoothly and easily, resulting in a uniform, tender crumb.
Don’t overmix the batter: Once you add the flour, stop as soon as it’s combined to avoid a dense or tough texture, and give the batter a final few stirs by hand.
Don’t overbake: Check for doneness at the early end of the cooking window and pull the cake out when a toothpick comes out with a few moist crumbs.

Best Yellow Cake variations

Sheet Cake: Pour the batter into a greased 9×13-inch pan and bake at 350°F for 30–40 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs.
Cupcakes: Bake in lined muffin tins for 18–22 minutes.
Finishing: Skip the frosting and dust with powdered sugar, or dress it up with fresh berries, strawberry sauce, caramel, or chocolate ganache.
•Yellow cake with Vanilla Frosting: Use a double batch of my vanilla cream cheese frosting recipe.
•Almond twist: Add ½–1 teaspoon almond extract alongside vanilla.
•Lemon yellow cake: Add 1–2 tablespoons lemon zest for a bright citrus flavor.
Raspberry or Raspberry Jam: Layer the cakes with fresh raspberries or raspberry jam for a fruity burst.

pulling out a slice of yellow cake from scratch showing the fluffy cake
best yellow cake recipe on a pedestal showing the fluffy layers and rich chocolate frosting

WANT TO TRY THIS yellow Cake RECIPE?

PIN IT to your recipe BOARD TO SAVE FOR LATER!

FIND ME ON PINTEREST FOR MORE GREAT RECIPES!  I AM ALWAYS PINNING :)!

©Carlsbad Cravings by CarlsbadCravings.com

a slice of homemade yellow cake on a plate with a fork taking a bite showing how moist and tender it is
up close of yellow cake recipe with three tiers of cake frosted with chocolate frosting

Homemade Yellow Cake

Soft, buttery, and incredibly moist, this is the ultimate classic yellow cake recipe with a tender, bakery-style crumb. Finish it with my ultra-fluffy chocolate buttercream for a celebratory birthday cake that disappears fast and has everyone going back for seconds! See the post for step-by-step photos, expert tips, and variations.
Servings: 12 servings
Total Time: 2 hours 25 minutes
Prep Time: 1 hour
Cook Time: 25 minutes
Cooling 1 hour

Save This Recipe To Your Recipe Box

You can now create an account on our site and save your favorite recipes all in one place!

Ingredients

  • cups/280g cake flour (measured correctly! See Notes)
  • 2 teaspoons baking powder
  • 1/2 teaspoon baking soda
  • 1 teaspoon salt
  • 16 tablespoons unsalted butter, room temperature
  • cups granulated sugar
  • 3/4 cup full fat sour cream, room temperature
  • 2 tablespoons vegetable oil
  • 1 tablespoon vanilla extract
  • 2 large eggs, room temperature
  • 2 large egg yolks, room temperature
  • 1 cup 2% or whole milk, room temperature

FROSTING

  • cups (3 sticks) unsalted butter, room temperature
  • 24 oz./6 cups / 680g powdered sugar
  • 3/4 cup/64g unsweetened cocoa powder
  • 1/4 teaspoon salt, plus a pinch
  • 7-8 tablespoons heavy cream
  • 1 tablespoon vanilla extract

Instructions

CAKE

  • Prep: Preheat the oven to 350°F. Line three 8-inch cake pans with parchment paper, or I love these round silicone nonstick baking mats. Lightly grease the pans with nonstick cooking spray. (You may also use two 9-inch cake pans.)
  • Dry Ingredients: Whisk the cake flour (measure correctly! See Notes), baking powder, baking soda, and salt together in a large mixing bowl. Set aside.
  • Cream Butter and Sugar: Using a stand mixer fitted with the paddle attachment (or a handheld mixer), beat the butter and sugar on medium-high speed for 3-5 minutes (no less!), until very creamy and fluffy, occasionally scraping down the bowl.
  • Add Wet Ingredients: Scrape down the bowl. Add the sour cream, vegetable oil, and vanilla extract, and beat on medium-high until combined, about 30 seconds. Mix in the eggs and the egg yolks, one at a time, blending each fully into the batter before adding the next to prevent an “eggy” taste.
  • Alternate Ingredients: With the mixer on low, add the flour mixture in three additions, alternating with the milk (begin and end with dry ingredients). Stop mixing when a few steaks of flour remain, then stir the rest by hand. There should be some small lumps—do not overmix.
  • Bake: Divide batter among the prepared cake pans (I use a kitchen scale). Bake at 350°F for 18-24 minutes for 8-inch pans and 25-31 minutes for 9-inch pans, or until a toothpick inserted into the center comes out with a few moist crumbs.
  • Cool: Cool the cakes in the pans for 10 minutes, then invert onto wire racks to cool completely before frosting.

Chocolate Frosting

  • Sift: Sift the powdered sugar, cocoa powder, and salt into a very large mixing bowl, then whisk to combine.
  • Cream Butter: In the bowl of a stand mixer fitted with the paddle attachment, beat the butter on high until smooth and fluffy, about 60 seconds.
  • Combine: With the mixer on low, gradually add the sugar/cocoa mixture to the butter until mostly incorporated, then slowly add the cream and vanilla. Scrape down the sides of the bowl.
  • Make it Fluffy: Increase the speed to medium-high and beat for a full 2 minutes-no less! If the frosting is too thin, add 1-2 more Tablespoons of powdered sugar. If it’s too thick, add 1- 2 more Tablespoons of cream. Taste the frosting and add a pinch more salt if it’s too sweet.

ASSEMBLE AND FROST

  • Level Cakes: The cakes must be completely cool before continuing. Using a serrated knife, level the top of each cake.
  • Layer Cakes: Place one cake layer on a serving plate, cut side up. Evenly frost with a cup of frosting. Top with the 2nd cake layer, cut side up, and evenly frost with another cup of frosting. Top with the third cake layer, cut side down.
  • Frost: Spread the frosting evenly over the top and sides of the cake, and decorate/pipe the top as desired.
  • Serve: Time permitting, refrigerate for 30 minutes before slicing for prettier, cleaner slices, then let it come to room temperature for serving. Enjoy!

Notes

  • Measure flour correctly: It’s best to weigh it on a kitchen scale to avoid dense, dry cupcakes. If you don’t have one, then fluff the flour in the container with a spoon to loosen it, then gently spoon it into the measuring cup without packing it down, then level it.
  • Use room-temperature ingredients: Eggs, butter, sour cream, and milk must be at room temperature so everything blends smoothly and easily, resulting in a uniform, tender crumb.
  • The butter should not be greasy or melty. It should only give slightly when pressed with your finger, AKA 67°F. (Never microwave!)
  • The milk and sour cream can be microwaved for 20ish seconds to bring them to room temperature.
  • Place eggs in a bowl of warm (not hot) water for 10 minutes to quickly bring them to room temperature.

Did You Make This Recipe?

Tag @CarlsbadCravings and Use #CarlsbadCravngs

Leave a Review, I Always Love Hearing From You!

Reader Interactions

leave a review

Rate This Recipe:




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