This post may contain affiliate links. For more information, read my disclosure policy.
This is the BEST Yellow Cake Recipe! With moist and buttery layers, it’s perfect for a layer cake, a sheet cake or cupcakes! This easy cake recipe is homemade – you’ll never need to buy a box cake mix again, plus you can choose your favorite frosting – chocolate or vanilla!

Have you ever wanted to find a recipe for cake that also works for cupcakes? Well, look no further, because this is it!
I wanted to come up with one that would work for cupcakes and cake. I needed a recipe with a texture that is moist, light and airy, and wouldn’t make me miss my good old standby, the box mix. And guess what? THIS is the recipe I was looking for – and you have been too!
- It makes an 8-inch or 9-inch layer cake, 24 cupcakes or a sheet cake
- It holds up to stacking with a tender yet sturdy crumb and tastes like the perfect moist cake you expect from a yellow cake recipe.
If you’re ready to never have to buy a box cake mix again – this is the scratch cake recipe you need in your life!
How to make this Yellow Cake Recipe
- Instead of softened, I use melted butter. I find it keeps the cake moister than with softened butter, and it has more flavor than oil.
- Use baking powder to help the cake rise and be nice and fluffy. I always like to whisk my dry ingredients first: the baking powder with all-purpose flour, and salt.
- The main difference between cake flour and all-purpose is protein content: cake flour has about 8% and all-purpose is slightly higher. This makes for a bit denser of a cake (hence the extra baking powder and buttermilk in my recipe).
- I use buttermilk to add a little extra flavor, plus the acid in the buttermilk keeps the cake moist. You can also use regular whole milk or nondairy milk.
- Be sure to mix in the eggs one at a time, beating between each.
- It’s important to add the buttermilk alternately with the flour mixture so that you don’t over mix – just mix until the batter comes together.
SAVE THIS RECIPE
Frosting Choices
- Vanilla Buttercream Frosting – this is my favorite way to decorate this cake! I’m a vanilla girl at heart.
- Chocolate Buttercream Frosting – the classic birthday cake recipe!
- Cream Cheese Frosting – Who doesn’t love cream cheese icing?
- Peanut Butter Frosting – great for filling with a chocolate outside!
- Fudgy Chocolate Frosting – Another favorite chocolate frosting recipe, along with whipped chocolate ganache.
Substitutions
- You can make this cake with ANY kind of milk. I recommend using whole milk or full fat non-dairy milk – the more fat in the liquid the better the cake.
- You can substitute vegetable oil for the melted butter. This makes it easy to make dairy-free. I recommend adding a bit of butter extract for flavor, but it’s not required.
- To make a gluten free yellow cake, I have substituted Bob’s Red Mill 1:1 GF All-Purpose flour in this cake with success.
- You can swap cake flour for all-purpose flour 1:1 for an even lighter cake, however it won’t be as sturdy and might not hold up to lots of stacking.
Basic Yellow Cake Recipe
Recipe Video
Ingredients
For the Cake:
- ½ teaspoon salt
- 3 teaspoons baking powder
- 2 ½ cups (310g) all-purpose flour
- 1 cup (227g) unsalted butter, melted
- 1 ½ cups (297g) granulated sugar
- 4 large eggs
- 1 teaspoon (5 ml) vanilla extract
- 1 ¼ cups (296) ml buttermilk
For chocolate frosting:
- ½ cup (40g) unsweetened cocoa powder
- 3 ½ cups (396g) powdered sugar
- ¼ teaspoon salt
- 1 cup (226g) unsalted butter, softened
- 1 teaspoon vanilla extract
- 2-3 tablespoons (30-45ml) heavy whipping cream
For Vanilla Frosting
- 1 cup (227g) unsalted butter, softened
- 4 cups (452g) powdered sugar
- ½ teaspoon salt
- 1 teaspoon (5 ml) vanilla extract
- 2-3 tablespoons (30-45 ml) heavy whipping cream
Instructions
For the cake:
- Preheat oven to 350°F. Prepare cupcake pans with liners or grease and flour cake pan(s).
- Whisk salt, baking powder, and flour in a medium sized bowl. Set aside.
- Using a hand mixer, cream sugar into melted butter until smooth. Beat in eggs, one at a time, then mix in vanilla extract.
- Add dry ingredients alternately with the buttermilk, starting and ending with the flour, mixing gently between each addition. Mix until just combined. Be sure to scrape the sides of the bowl.
- Pour batter into prepared pans and bake as directed. Cool completely before removing and frosting.
- Bake Time: 24 cupcakes: 14-17 minutes // Two 9-inch round pans: 24-27 minutes // Two 8-inch round pans: 25-33 minutes // 9×13-inch pan: 30-40 minutes
For the frosting:
- If you're making chocolate frosting, first whisk powdered sugar, cocoa, and salt until no lumps remain. If making vanilla frosting, whisk powdered sugar with salt.
- Beat butter until smooth with a hand or a stand mixer. Note: if you’re using a hand mixer be sure to use a very large bowl to avoid wearing the powdered sugar.
- Add powdered sugar (or cocoa/powdered sugar mixture), one cup at a time, and beat on medium speed until crumbly. Mix vanilla..
- Add 1 tablespoon of heavy whipping cream at a time, mixing between each addition, until the frosting is smooth and the desirable consistency.
- Frost cake or cupcakes as desired.
Recipe Notes
- You can use a 9×13-inch pan, two 8-inch or 9-inch rounds, or make 24 cupcakes.
- Store cake on counter for up to 3 days. Cake can be frozen (with or without frosting) for up to 2 months. Be sure to wrap it well in plastic wrap or an airtight container.
Recipe Nutrition
Step-by-Step Photos
Reader Favorite Cake Recipes
- Do you love lemon cake? I have the perfect triple lemon cupcake recipe too!
- Not for humans, but pets love my dog cake recipe!
- Want an easy cake? Try my Oreo Mug Cake!
Can you use vanilla yogurt Greek instead of buttermilk?
You’ll want to use equal parts yogurt and milk to make the mixture not too thick.
I really wanted to like this recipe. I reviewed about five total and this lady seemed very nice. I made two 9โ cakes for a double layer bday cake for my son. I baked to the minimum time and it is very dry. Iโm so disappointed. Iโm sure it could have been tasty but the bake times are so far off. It was at least three min over baked. Maybe five. Skip this recipe and try another.
I’m sorry that happened – chances are your oven bakes differently than mine. I try to give a good range of times – but I know that my new oven cooks faster and hotter than my old one – so that could be the issue.
Where are the portions of ingredients?? You list the ingredients, but you donโt provide the measurements. At least Iโve sure as heck not found them anywhere in your very beleaguering article.
If you hit “jump to recipe” they’re in the recipe card and you can skip the beleaguering article.
LOL
How long do you bake in oven if you only want to make 1, 9- inch cake in a round pan ?
You would have to half the recipe, and it would take about the same time to bake.
How can I adapt this recipe for using 2 round 8 inch by 2 inch pans? Thanks
Make a few cupcakes – fill the 2 pans about half to 2/3 full and then make cupcakes with the rest of the batter.
Featured In
Rate This Recipe
Recipe Ratings without Comment