Classic Yellow Cake with Chocolate Icing

This is the official birthday cake at our farmhouse, and for good reason. It delivers that classic flavor combo we all remember, but thanks to the buttermilk, it stays incredibly moist and tender. With some rainbow sprinkles and a candle or two, it’s the perfect way to celebrate from scratch.

Sliced yellow cake showing moist layers and thick chocolate frosting filling.

Not to insult the cake portion, which is moist and perfect, but the real star of this recipe is the frosting, which starts as a rich ganache before being whipped into fluffy perfection. It isn’t gritty or overly sweet like a standard buttercream; it’s smooth, fudgy, and holds its shape beautifully. If you want a bakery-quality finish without the price tag, this is exactly how you get it.

what You’ll Need

Equipment

  • 2 (8-inch) round cake pans: Using the correct pan size is crucial for the baking time listed.
  • stand mixer or hand mixer
  • parchment paper: This is a non-negotiable for me
  • offset spatula: This helps get a smooth, professional finish on the frosting.
ingredients for cake laid out on marble counter.

Ingredients

Scaling it up: If you need a 4-layer cake or two sheet cakes, I recommend making two separate batches. A double batch fits very tightly in a standard home mixer and tends to make a mess! But if you have a large mixer, go for it.

For the Yellow Cake

  • 2 ½ cups cake flour (300 grams) – Cake flour is key for that light, tender crumb. If you are in a pinch, you can use all-purpose flour, but replace 2 tablespoons of the flour with cornstarch for every cup used.
  • 2 teaspoons baking powder
  • ¾ teaspoon salt – If you use salted butter, reduce this to ½ teaspoon.
  • ½ teaspoon baking soda
  • 1 ½ cups granulated sugar
  • 12 tablespoons unsalted butter, softened – This equals 1 ½ sticks.
  • 4 eggs – It is best if these are at room temperature.
  • 1 cup buttermilk – Room temperature is best. If you don’t have buttermilk, mix 1 cup of whole milk with 2 tablespoons of white vinegar and let it sit for 5 minutes.
  • 2 teaspoons vanilla extract

For the Whipped Chocolate Frosting

  • 8 ounces semi-sweet chocolate
  • 8 ounces milk chocolate – I use a mix for a balanced flavor, but you can use all of one type if you prefer.
  • 8 tablespoons unsalted butter, softened – 1 stick.
  • ½ cup granulated sugar
  • 1 teaspoon vanilla extract
  • Pinch of salt
  • 1 ½ cups heavy cream

Instructions

Don’t Want a Layer cake?

9×13 sheet cake: This batter fits perfectly in a standard rectangular pan. Increase the baking time to 30–35 minutes. You will have a very generous amount of frosting, so feel free to pile it high!

Cupcakes: This recipe yields about 24 standard cupcakes. Reduce the baking time to 18–20 minutes and check early so they stay moist.

Prep Your Pans

First things first: do not skip the parchment paper. I know it’s an extra step, but for a layer cake, it is the only way to guarantee your cakes don’t stick. Grease your 8-inch pans, place a parchment circle in the bottom, and grease the parchment, too. This ensures the cakes pop right out with perfect edges.

Cream the Butter and Sugar

In your stand mixer, beat the softened butter and sugar together on medium-high speed. You aren’t just mixing them; you are looking to aerate the butter. Let this run for a full 3 to 4 minutes.

fluffy butter and sugar

You want the mixture to look pale (almost white!) and significantly fluffier than when you started. This air is what gives the cake its lift, so don’t rush it!

Add the Eggs

Turn the mixer down and add the eggs one at a time. Between each egg, mix for about 20-30 seconds.

eggs partially added to mixing bowl.

Adding the eggs, the batter might look slightly curdled or grainy. This is totally normal and will smooth out as soon as we add the flour.

Alternate Wet and Dry Ingredients

This is the most “technical” part of the cake, but it’s easy. We add the dry ingredients (flour mixture) and wet ingredients (buttermilk/vanilla) in alternating batches.

3 process images showing finished batter at end.
  1. Add 1/3 of the flour. Mix on low until just combined.
  2. Add 1/2 of the buttermilk mixture. Mix on low.
  3. Repeat until everything is added, starting and ending with the flour.

Once the flour hits the bowl, mix as little as possible. Over-mixing develops gluten, which makes the cake tough. As soon as the white streaks of flour disappear, stop the mixer.

Bake and Cool

Divide the batter evenly between your two pans and smooth the tops with a spatula. Bake at 350°F for about 25 minutes. A toothpick inserted in the center should come out clean or with just a few moist crumbs.

cake pans before and after baking.

Let them cool in the pans for 10 minutes, then flip them onto a wire rack to cool completely. If the cake is even slightly warm, your frosting will slide right off.

Make the Chocolate Base

This frosting starts as a ganache. Heat your heavy cream and sugar in a saucepan until the sugar dissolves and the cream is steamy. Put your chocolate in the mixer bowl and pour the hot cream right over it.

cream and sugar in saucepan then poured over chocolate.

Let it sit for a minute to soften the chocolate, then stir until it’s a smooth, glossy liquid.

Chill and Whip

This is the trickiest part of the recipe but makes the best frosting. You need to cool that chocolate mixture down to about 70 degrees.

whipped ganache on whisk attachment.

Once it’s at the right temperature, use the whisk attachment. Add the softened butter in tablespoon-sized chunks while mixing. Finally, turn the speed up to high and whip it for 2-3 minutes. It will transform from a dark liquid into a fluffy, lighter-colored frosting that spreads like a dream.

It should feel neutral to the touch, neither warm nor cold. If it’s too warm, the butter will melt and the frosting will be runny. If it’s too cold, the butter won’t incorporate.

Assembly

Place one cake round on a serving plate. Spread about 1 ½ cups of frosting evenly over the top.

Place the second cake round on top. Coat the top and sides of the entire cake with the remaining frosting.

Refrigerate until set. Allow the cake to sit at room temperature for 30-45 minutes before serving for the best texture.

Storage Instructions

frosting and sprinkled cake
  • Refrigerate: Keep the cake in an airtight container in the refrigerator for up to 4 days.
  • Before serving: This is crucial—let the cake or slices sit at room temperature for 30 minutes before eating. The frosting firms up in the fridge, so bringing it to room temp ensures that silky, whipped texture returns.
  • Make Ahead: You can bake the layers 1–2 days in advance. Let them cool completely, wrap them tightly in plastic wrap, and store them at room temperature (if using the next day) or in the fridge.
  • Freezing: Wrap unfrosted layers in plastic wrap followed by foil. They freeze perfectly for up to 2 months. Thaw in the fridge overnight before frosting.

In Case You’re Wondering

Why is my frosting not whipping up?

It likely wasn’t cool enough (around 70°F) before you started adding the butter. Pop the bowl in the fridge for 10–15 minutes to let it firm up slightly, then try whipping again

Can I use chocolate chips instead of baking bars for the frosting? 

No, I’m sorry! Chocolate chips contain stabilizers that help them hold their shape, which can make your frosting grainy or waxy.

Why did my cake sink in the middle?

This usually happens if the oven door was opened too early or the center wasn’t fully set. Resist the urge to peek until the timer goes off, or until you can smell the cake filling the kitchen.

Printable Recipe

round cake cut to reveal layers.

Yellow Cake with Chocolate Frosting

Katie Shaw
The birthday cake your mom made, or at least she should have. It uses cake flour and buttermilk to create a moist, tender crumb that stays fresh for days. The frosting is a simple whipped ganache that is rich and silky without being gritty or overly sweet. I
No ratings yet
Prep Time 20 minutes
Cook Time 25 minutes
Total Time 45 minutes

Equipment

Ingredients
  

Cake

  • 2 ½ cups cake flour (300 grams) see notes for substitute
  • 2 teaspoons baking powder
  • ¾ teaspoon salt
  • ½ teaspoon baking soda
  • 1 ½ cups granulated sugar divided
  • 12 tablespoons unsalted butter, softened
  • 4 large eggs room temperature
  • 1 cup buttermilk room temperature
  • 2 teaspoons vanilla extract divided

Frosting

  • 8 ounces semi-sweet chocolate chopped
  • ½ cup granulated sugar
  • 8 tablespoons unsalted butter, softened
  • 8 ounces milk chocolate chopped
  • 1 ½ cups heavy cream
  • pinch salt
  • 1 teaspoon vanilla

Save This Recipe

I’ll send you a link so you can find it later.

You'll join my email list which you will love. And if you don't, unsubscribe in one click. ❤️

Instructions
 

Make Cake

  • Prep. Preheat oven to 350 degrees. Grease two 8-inch round cake pans and line the bottoms with parchment paper.
  • Dry ingredients. In a medium bowl, sift together the cake flour, baking powder, salt, and baking soda.
  • Cream butter and sugar. In the bowl of a stand mixer, cream 12 tablespoons of softened butter and 1 ½ cups sugar on medium-high speed for 3-4 minutes until pale and fluffy.
  • Add Eggs. Add the eggs one at a time, mixing well after each addition.
  • Add dry ingredients and milk. Reduce speed to low. Add one-third of the flour mixture, then half of the buttermilk and 2 teaspoons vanilla. Repeat, ending with the flour mixture. Mix until just combined; do not overmix.
  • Bake. Divide batter evenly between pans. Bake for 25 minutes or until a toothpick comes out clean. Cool in pans for 10 minutes, then invert onto a wire rack to cool completely.

Make Frosting

  • Heat frosting mixture. For the frosting: Heat heavy cream and ½ cup sugar in a saucepan until sugar dissolves and cream is steamy. Pour over the chocolate in a mixer bowl. Let sit 2 minutes, then stir until smooth.
  • Cook and whip Cool the chocolate mixture to 70 degrees (cool to the touch). Using the whisk attachment, whip on medium speed while adding the remaining 8 tablespoons of butter in chunks. Increase to high and whip until light and fluffy (2-3 minutes). Stir in 1 teaspoon vanilla.
  • Assemble. Frost the cooled cakes. Refrigerate to set, but allow to sit at room temperature for 30 minutes before serving.

Notes

Store in the refrigerator for up to 4 days. Allow to come to room temperature before serving for the best texture.
If you don’t have cake flour, measure 2 1/2 cups All-Purpose flour, remove 5 tablespoons of flour, and replace it with 5 tablespoons of cornstarch. 
Nutrition info is for 1/12 of the cake and frosting.

Nutrition

Calories: 736kcalCarbohydrates: 76gProtein: 9gFat: 46gSaturated Fat: 28gPolyunsaturated Fat: 2gMonounsaturated Fat: 13gTrans Fat: 1gCholesterol: 149mgSodium: 470mgPotassium: 274mgFiber: 3gSugar: 52gVitamin A: 1153IUVitamin C: 0.2mgCalcium: 117mgIron: 2mg
Did you make this?Let me know how it went!
Signature

Loved It? Share it!

Leave a Reply

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

Recipe Rating