This post may contain affiliate links. For more information, read my disclosure policy.
Stop reaching for that box mix: this is the BEST Yellow Cake Recipe you will ever make from scratch! It is a simple, no-fuss recipe that results in buttery, moist layers with a tender crumb that is perfect for any occasion. Whether you’re making a birthday layer cake, a quick sheet cake, or a batch of 24 cupcakes, this versatile cake is as easy as it is delicious.

This easy yellow cake recipe yields two 8-inch or 9-inch rounds, a 9×13-inch sheet cake, or 24 cupcakes. It uses a base of melted unsalted butter, buttermilk, and three large eggs to create a moist, buttery texture from scratch. The thick batter is perfect for stacking with chocolate or vanilla buttercream frosting.
I wanted to come up with a cake recipe 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.
- I’ve made this recipe so many times I’ve lost count and it’s the perfect base for any frosting or filling.
The secret to this yellow cake’s incredible texture is the use of melted butter and buttermilk. Most traditional recipes require you to cream softened butter for several minutes, but I’ve found that starting with melted butter leads to an even moister cake that holds up perfectly to stacking and frosting. This is the only scratch cake recipe you need to finally replace the box mix for good.

Yellow Cake Ingredients
- Starting with melted butter rather than softened butter changes the cake’s final structure. Melted butter creates a more cohesive batter that coats the flour particles, resulting in a denser, moister crumb that mimics the beloved texture of a box mix while keeping the rich flavor of real butter.
- 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. However, for a one-bowl recipe you can skip this step and just add the ingredients as you go.
- This recipe was written for all purpose flour. 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).
- Buttermilk is a key ingredient because its acidity breaks down the long strands of gluten in the flour. This ensures the cake stays light and airy rather than tough or rubbery, and provides that classic, slightly tangy depth of flavor found in professional bakery cakes.
- You can also use regular whole milk or nondairy milk in place of the buttermilk.
Click to see the recipe card below for full ingredients & instructions. See below the recipe card for even more information: process shots, variations, FAQ and more.


SAVE THIS RECIPE
Dorothy’s Expert Yellow Cake Tips
- Be sure to mix in the eggs one at a time, beating between each.
- To achieve a sturdy yet tender crumb, always add your dry ingredients and buttermilk alternately to the wet ingredients. This folding method prevents over-mixing, which is the most common cause of dry, hole-filled cakes.
- Do not over bake the cake! Cake is done when a toothpick comes out clean with just a few moist crumbs.
- If making a layer cake, I suggest using bake even strips to keep your layers from doming, making stacking much easier.

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
How to make Yellow Cake Step by Step




- If you don’t mind using an extra bowl, whisk dry ingredients together (flour, baking powder, salt.)
- Mix sugar into melted butter with a hand mixer or stand mixer fitted with the paddle attachment.
- Add eggs one at a time and vanilla and mix until smooth.
- Add buttermilk and flour mixture alternately, mixing only until moistened.

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.
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.
FAQs
Yes! This recipe is specifically designed to work for both cakes and cupcakes, yielding exactly 24 standard-sized cupcakes.
While buttermilk provides the best flavor and texture, you can substitute it with any regular or non-dairy milk if needed.
You can store the frosted or unfrosted cake on the counter for up to 3 days, or freeze it for up to 2 months if wrapped well in plastic wrap.
This classic base pairs perfectly with both chocolate and vanilla buttercream, but its sturdy crumb also supports heavier cream cheese or peanut butter frostings.
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!















This seems to be the PERFECT Yellow Cake recipe I have been looking for. I am going to use 3 10″ inch pans. What would you recommend as far as how much of the batter to make? 1.5 times or two times? the cooking times?
Thank you so much in advance for your help!!
I would double it just in case!
Can I use this recipe in a 12” springform cake pan?
I’ve never baked a cake in a springform pan – I worry that the seam will cause leakage.
You asked about what frosting to put on your cake. I make up to 100 cakes per week for area resort and restaurant dessert carts, the army base, the college, brides (about 40 wedding cake tiers per weekend), and private clients – and I’ve never (in over 50 years) had an order for a yellow cake. I’m going to give your recipe a try, using all egg whites for a white cake, which I do get orders for. They usually have Champagne Mousse Fillings and Champagne Mock Whip Frosting; Raspberry Fillings and Framboise Mock Whip Frosting; Strawberry Daiquiri Mousse Fillings and Strawberry Daiquiri Mock Whip Frosting; Lemon Curd Fillings and Limoncello Mock Whip Frosting; or other combinations of fillings and frostings. All our brides, and most private clients, order only Mock Whip Frostings since they are so delish, soft, fluffy, not icky sweet, and the texture of whipped cream. Occasionally, a client will order a Vanilla Buttercream, and then I make Rose’s Vanilla Buttercream. None of our frostings have milk or cream, so they are shelf-stable for several days at room temp.
Very Good.
Featured In
Rate This Recipe
Recipe Ratings without Comment