Yellow Cake with Chocolate Frosting
Few desserts have as much nostalgic appeal as classic yellow cake with chocolate frosting. This incredible homemade cake recipe is perfect for birthdays and celebrations of all kinds, and it’s a favorite with everyone!Â

You could say I’ve been developing this cake recipe for almost as long as I’ve had this website, over 15 years! I first shared a yellow cake with chocolate frosting when my oldest son turned one in 2013 (photos here!), but recently I’ve wanted to revisit the recipe and make it even better.
Because homemade vanilla cake is notoriously difficult to get just right, as it has a tendency to be too dry or bland, or both. I’ve baked more than a dozen versions of this cake during the last few years, and I’m proud to say I’ve finally nailed it! This is the BEST yellow cake recipe I’ve ever made. It has amazing texture, delicious flavor, and I just love it so much.
Keep reading to see how to make the most perfect yellow vanilla cake with the creamiest chocolate buttercream frosting. You can dress this cake up or down for any occasion, and it’s especially perfect for birthday celebrations!

Table of Contents
- Why you'll love this yellow cake recipe
- Ingredients you'll need
- Step by step instructions
- Tips for baking and assembling a perfect cake
- Make-ahead options
- Get the recipe
Why you’ll love this yellow cake recipe
- It’s super soft, light, and moist.
- It has great buttery vanilla flavor.
- It’s completely homemade (no box mix here), but still easy enough for anyone to make.
- It pairs great with just about any topping, but especially with my famous chocolate buttercream.
So how do you get both great flavor and texture? The secret is to use both butter and oil. Oil keeps the cake layers soft and moist, as it’s a liquid at room temperature. But butter has so much more flavor! So we use a combination for the best of both words.

Ingredients you’ll need
- Cake flour— Necessary for the best texture. Thankfully you can get it in most grocery stores!
- Granulated sugar
- Baking powder and baking soda
- Salted butter— Starting with salted butter boosts the flavor so much. Want to know how to make sure a dessert isn’t too sweet? Balance it out with salt!
- Vegetable oil— Or any neutral-flavored cooking oil like canola oil or grapeseed oil. We’ll only use a little bit!
- Whole eggs and egg yolks— using a combination adds richness, color and flavor.
- Buttermilk— Not only does it add flavor, but it also works to tenderize the cake.
- Vanilla extract
- Unsweetened chocolate— Ensures the frosting isn’t too sweet, though semi-sweet chocolate will work too (sometimes I forget to buy unsweetened chocolate so I make this swap a lot).
- Powdered sugar
- Heavy cream
- Salt
Step by step instructions
- Use the reverse creaming method to make the cake batter. It’s a little different than you may be use to, but it’s easy! And it helps keep the cake fluffy without drying out. First, you beat the dry ingredients with butter and some buttermilk, and then you slowly mix in the remaining wet ingredients.

- Bake cake layers. Divide the cake batter equally between two prepped 8 or 9-inch cake pans and bake in a 350°F oven until the cakes are puffed and slightly golden on the top, 32-35 minutes.

- Prepare frosting. Use an electric mixer to beat melted chocolate with butter, powdered sugar, vanilla and heavy cream to make a thick and fluffy frosting.

- Assemble the cake. Add a cake layer to a cake stand or plate and cover with 1-2 cups of frosting. Top with the second cake layer and cover with the remaining chocolate frosting. This cake is meant to be a bit casual, so don’t stress too much about what it looks like, though I do have some frosting tips here.
- Slice and enjoy! Serve this cake right away, or whenever you’re ready, though the cake will be at its best within 2 days of assembly. No need to store it in the fridge (unless chilling it will make it easier to serve outside, or your kitchen is very warm).

Tips for baking and assembling a perfect cake
- Always start with room temperature dairy and eggs. Pull the butter, buttermilk and eggs from the fridge 30-60 minutes before you plan to bake. This helps cakes have the best rise and softest texture (more info on why room temperature ingredients matter here).
- A digital kitchen scale is your best friend. Not only will you get the most accurate measurements for your ingredients, but it also reduces dirty dishes, and makes it simple to ensure your cake pans get the same amount of batter (meaning your cake layers are the same size!).
- Hoping for a deeply natural yellow color? The butter and eggs you use makes a difference! Use European-style butter like Kerrygold and super fresh eggs from a local market or neighbor, both of which naturally have more intense color than cheaper generic options.
- I prefer 8-inch cake pans for this recipe. Use 2 or 3 pans, depending on the look you want. You can use 9-inch pans, but know the cake layers will be much thinner.
- Top with a different frosting, if you want. Whipped vanilla buttercream frosting, chantilly cream frosting and cream cheese frosting would all be delicious flavor variations.
- Looking to use up the extra egg whites? Coconut macaroons, pavlova, white cake, and angel food cake are all recipes that require only egg whites. Egg whites will keep in the fridge for up to 1 week, or they can be frozen for several months and thawed when needed.
baking tip:How to prevent cake from sticking to the pan
- Line the bottoms of cake pans with parchment paper. You can trace and cut circles from sheets of parchment, or use pre-cut rounds.
- Grease with a baking-specific nonstick spray that contains flour (such as Baker’s Joy) OR grease pan completely with butter, then dust with flour.
- While I don’t like non-stick pans for traditional cakes (they tend to over-brown the edges), non-stick pans are great for other recipes like bundt cakes, cupcakes, loaf cakes, etc.

Make-ahead options
It’s easy to prep this cake in advance if you want! I often will split making a cake like this over 2 days, baking cakes on one day and then assembling the next. (And you can even prep farther in advance too.)
Prep cake layers in advance and keep in plastic wrap in the fridge for up to 2 days, and in the freezer (double wrapped) for up to 3 months. Assemble cake layers while cold from the fridge, and thaw frozen cakes in the fridge overnight still in their plastic wrap before using. See my tutorial on how to store cake layers for more detailed info.
Prep the frosting in advance and store at room temperature for several days, in the fridge for 1-2 weeks, or in the freezer for several months. For best results, beat frosting until smooth before using, adding a bit more cream if needed to get the right texture.
Get the recipe

Yellow Cake with Chocolate Frosting
Ingredients
For the yellow cake:
- 3 cups (375 grams) cake flour
- 2 cups (400 grams) granulated sugar
- 2 ½ teaspoons baking powder
- 1 teaspoon salt
- ¼ teaspoon baking soda
- ¾ cup (170 grams) salted butter , softened to room temperature
- ¼ cup (56 grams) vegetable oil (or other neutral-flavored oil)
- 1 ¼ cups (300 grams) buttermilk , at room temperature, divided
- 2 large whole eggs , at room temperature
- 4 large egg yolks , at room temperature
- 2 teaspoons pure vanilla extract
For the chocolate frosting:
- 6 oz (180 grams) unsweetened chocolate , chopped (semi-sweet chocolate will work too)
- 4 ½ cups (565 grams) powdered sugar
- 1 ½ cups (340 grams) butter , softened at room temperature
- 6 tablespoons (85 grams) half and half or heavy cream
- 1 teaspoon vanilla extract
- ¼ teaspoon salt
Instructions
To make the cake:
- Preheat oven to 350°F. Grease two 8 or 9-inch cake pans with nonstick baking spray or butter and flour, and line with parchment paper.
- In the bowl of a stand mixer fitted with a paddle attachment, combine the cake flour, sugar, baking powder, salt and baking soda. Add the butter, vegetable oil, and 1 cup of the buttermilk. Mix on low speed until moistened, then increase the speed to medium high and beat until light and creamy, about 4 minutes total. Stop and scrape the bowl down at least once.
- Whisk together the eggs, egg yolks, remaining ¼ cup of the buttermilk, and the vanilla extract in a bowl or liquid measuring cup.
- Add the egg mixture to the mixer in 3 additions, mixing only until incorporated and scraping the bowl down between each addition.
- Divide the batter between the prepared pans, about 1lb 8 oz/680 grams of batter in each pan. Bake for 32-35 minutes, or until tops are golden and slightly domed. When gently pressed with a finger, the tops of the cake should bounce back. Let cool in the pan for 5 minutes, then turn out onto a wire rack to cool completely.
To make the frosting:
- You can melt the chocolate in double boiler or in the microwave in 30 second bursts. Heat just until a few bits of chocolate remain, then whisk until smooth. Cool mostly to room temperature before using.
- Add powdered sugar, butter, cooled melted chocolate, cream/half and half, vanilla and salt in the bowl of an electric mixer and beat on medium high speed until combined and super creamy. You'll need to scrape down the bowl a few times to make sure it's smooth and uniform. If needed, add cream/half and half a little at a time to get the consistency you want.
- To assemble the cake, place one layer (flat side up) on a plate or cake stand. Cover with 1-2 cups of the chocolate frosting. Top with second cake layer and cover the top and sides of the cake with the frosting.
- Serve immediately or as desired, though the cake will be its best within 2 days of assembly.
Video
Notes
- Prep cake layers in advance and store wrapped in plastic wrap in the fridge for up to 2 days and in the freezer (double wrapped) for up to 3 months. Assemble cake layers while cold from the fridge, and thaw frozen cakes in the fridge overnight still in their plastic wrap before using. See my tutorial on how to store cake layers for more detailed info.
- Prep the frosting in advance and store at room temperature for several days, in the fridge for 1-2 weeks, or in the freezer for several months. For best results, beat frosting until smooth before using, adding a bit more cream if needed to get the right texture.
Note: A version of this recipe was originally published in April 2013. In May 2025 the recipe was significantly improved and updated. This recipe is completely my own creation, though I was influenced by yellow cake recipes from Bake from Scratch magazine and Sky High Cakes cookbook.







This is the exact recipe on Sweetapolita.com. Been waiting to try this cake. Think I’ll move it up on my to do list.
Yes! We both adapted it from the same cookbook. And it’s great, you’ll love it!
I baked this as cupcakes. I baked at 350 for 20 minutes & they were perfectly done. They were very tasty, but ended up a funny oval shape…every single one. This recipe probably lends itself better to cake rather than cupcakes. Don’t get me wrong, they were delicious. Plus, if you put enough of that delicious chocolate frosting on top you hardly notice the funny shape. Will definitely save this recipe for cake in the future & will keep searching for a good vanilla cupcake recipe.
hey! i’ve made this cake twice and its alright but a tad dry? any tips? am i doing something wrong?
As per Lisa Brooks above, the fine crumb texture of your cake is exactly what I have been trying to achieve, but your instructions of beating the dry ingredients for such a long time typically results in a cornbread like texture. But if you’re sure of it, I am willing to give it a try!!!
Hi Jack! The process of beating the dry ingredients along with the butter and sugar, then adding in the liquids is known as the Reverse Creaming Method and it is used a lot in the cookbook where this recipe comes from – Sky High Cakes. I’ve never had any issues with texture or crumb of this cake. Hope this information is helpful!
The cake was a huge hit! Everyone loved it and it tasted amazing! I loved how easy the frosting was to make. This is definitely going to be a “go to” recipe for me from now on. You can see a picture of the cake here:
For some odd reason it did not show the url so here it is again. This is an image of the Star Wars Angry Birds cake I made with this recipe. https://plus.google.com/photos/114504743158459766093/albums/6036146384754343905?authkey=CIfW7-LshZ3qTA
The cake looks AWESOME! Thanks so much for sharing!
I found your site through a Google search on how to make layer cakes. This recipe looked perfect for what I needed! I decided to adapt it slightly to make a marble cake and baked it in a 9×13 pan. I will have to slice it for the layers, something I am not that great at but will Google it. The theme will be Angry Birds Star Wars and I will use your chocolate frosting recipe! I am sure it will turn out amazing! Thanks for the great recipe and wonderful tips!
What a fun cake you have planned! I hope you enjoy it. Thank you for the kind comment! 🙂
This I like my nephew is turning one in three more weeks I will make this for him this is the big boy needs and I to love cake I hope to post the pictures of my big guy enjoying his own personal cake family of women and this is the first male in years this is show on my side of the family thanks for the recipe
In the photo did you double the recipe for the 3 layers or did you use the recipe as is?
I used the recipe as provided here. I like taller cakes, so I’ll often bake two layers and then cut them in half to make 4 layers. Since I also made a little smash cake with some of the batter, this time I opted to instead bake 3 separate 8-inch layers for the large cake. I hope that makes sense?
Thank you! =) I cannot wait to try out your cake
I made this cake last night, refrigerated the layers, then topped it with a marshmallow buttercream frosting tonight. I used your post about building a layer cake and baking it at 300 really made a difference for flat layers! I used 1/2 tsp of almond extract instead of vanilla. It all came out beautifully!!
Yay! So glad to hear you had such great success with my recipe and tips! The cake sounds fabulous. 🙂
Hey, i love the recipe i use it all the time..
do you have a recipe you use for chocolate cake?
or do you just add cocoa into this one?
Dear Annalise,
I just wanted to say thank you and congratulate you for such a wonderful blog. I was looking for directions on how to make a layer cake for my daughter’s first birthday and came across your post on how to build a layer cake. I knew I didn’t have to look any further. I was impressed by the quality of and amount of detail in your directions which clearly showed you were an expert worth trusting which such an important project 🙂 I followed your instructions and recipe for the vanilla cake with easy fudge frosting. It was a huge success. The cake tasted delicious and looked really nice (see link). My guests were very impressed and I was very proud. I don’t usually write comments or reviews but I just had to say something It was very important to me to make my baby girl a nice, delicious first birthday cake. Thank you so much for your help. Best, Ima.
Hi there! How many people does this cake serve. We are expecting a crowd this weekend and I am wondering if I should attempt to cakes.
Thanks!
I’d say you can get anywhere to 12-16 slices out of an 8 or 9-inch layer cake, depending on how big of slices you want.
Aww, happy belated birthday baby John! Children grow up super fast, but no worries, John will always be your baby boy. =)
it worked out very well. . . at least 2 out of 3 layers. The third I baked in a silicone pan, which didn’t want to release the cake (weird, opposite of what happens when I bake bread in it). I baked the layers on day 1, refrigerated for about 24 hours, then frosted on day 2. My friends were delighted with the cake, thanks again!
Made the cake – my first attempt at a cake not from a mix. Turned out marvelous! Cooled the layers overnight. Today will attempt icing, wish me luck . . .
Woohoo! And good luck with the frosting! I’m sure you’ll do great. 🙂