Skip to Content

Best Yellow Cake Recipe

This is my go-to yellow layer cake recipe! It makes soft, tender, yellow cake layers that are frosted with irresistible chocolate buttercream!

a slice of yellow layer cake on a plate

How to Make This Yellow Layer Cake

Let’s walk through each step together to make sure this cake turns out as amazing as possible! I’ve also included a video tutorial of the process below.

I figured it might be helpful to know what tools I use so I’ve shared a list below. Not all of these are mandatory, but they make the process a lot easier.

If you don’t have all these things on hand, feel free to improvise and work with what you have.

Step 1: Bake the Yellow Cake Layers

Make the cake layers first following the recipe card at the bottom of this post.

image of yellow cake batter being mixed in a stand mixer

Divide the batter evenly between the prepared cake pans and bake for 34-36 minutes or until a toothpick comes out with a few moist crumbs.

Remove the cake layers from the oven and let them cool in the pans for about 30 minutes. Or if you’re in a rush, place the pans directly in the freezer to accelerate the cooling process.

Then gently run an offset spatula around the rim of the cake pans to loosen them and flip them onto wire racks to finish cooling.

These layers bake up pretty flat but I still recommend leveling them with a serrated knife to make them easier to stack and frost.

I also like to trim away the caramelization around the sides of the layers. This is totally optional though! If you’re making these in advance, you can wrap and freeze them at this point.

Step 2: Make the Chocolate Buttercream Frosting

While the cake layers bake and cool, make the chocolate buttercream frosting.

I like to use an American buttercream base to make this frosting because I think it’s the easiest to make and I love eating it. However, it is quite sweet!

image of chocolate buttercream being mixed in a stand mixer

If you want to use a less sweet frosting base, I’d recommend making adding the melted chocolate and cocoa powder to a batch of my Swiss meringue buttercream or 1.5 batches of my hybrid buttercream.

If you’re short on time or want to work ahead, this frosting can be made in advance and kept in the fridge for up to a month or in the freezer for 3 months.

Step 3: Stack and Frost the Cake Layers

Then it’s time to assemble this cake! Stack and frost cake layers on a greaseproof cake board or flat plate. Use a dab of buttercream to help stick the first cake layer to the board.

Spread an even layer of buttercream on top of each cake layer with a large offset spatula. Repeat with the remaining cake layers.

image of yellow cake layers being stacked and filled with chocolate buttercream

Once the cake layers are stacked, smooth any overhanging frosting and chill the cake in the freezer for 15 minutes.

This will help the frosting between the layers firm up and reduce crumbing as you frost the cake.

Step 4: Cover the Cake in a Thick Layer of Frosting

Once the cake is chilled, cover it with the remaining chocolate buttercream. Use a large offset spatula or the back of a spoon to create a textured look around the cake.

image of chocolate buttercream being spread around a yellow layer cake with a large offset spatula

Then add on some chocolate swirls and gently press rainbow sprinkles in clusters around the cake, then enjoy!

image of sprinkles being pressed gently into the side of a yellow cake that's been frosted with chocolate buttercream

Substitutions and Swaps – Yellow Cake Layers

This recipe uses quite a few ingredients and I know you might not have them all on hand. Or if you have food allergies or restrictions, I’ve got you covered.

Below are some swaps and substitutions that can be made in this cake recipe.

  • Cake Flour – This recipe turns out best with cake flour, but you can use a gluten-free flour blend or AP flour if that’s what you have on hand.
  • Granulated Sugar – I do not recommend changing the type or reducing the amount of sugar in the cake batter by much because it will change the texture of the cake layers. If you really want to reduce the sugar, you can decrease it by 1/2 cup. However, I’d recommend just using a less sweet frosting base to cut down on the sweetness of the cake if that’s what you’re after.
  • Unsalted Butter – If you only have salted butter on hand, you can use it in place of the unsalted butter in this recipe. Just be sure to omit the salt that this cake recipe calls for. You can also use vegan butter in its place (and also omit the salt)!
  • Large Eggs – I like to use brown eggs in this recipe because the yolks are a deeper yellow color and naturally give the batter a nice yellow color. If you can’t find brown eggs, white eggs will work too.
  • Buttermilk – You can also use full-fat yogurt, whole milk, sour cream, or an alternative yogurt or milk (almond, soy, oat) if you’re dairy-free.
  • Vegetable Oil – Any flavorless oil will work in this recipe. Canola or even sunflower oil would work great!
  • Rainbow Sprinkles – These are totally optional, but I love to add some rainbow jimmies into the batter to give it a fun pop of color.
image of a slice of yellow cake that's been cut into to show it's tender crumb and chocolate buttercream

Substitutions and Swaps – Buttercream Frosting

  • Unsalted Butter – If you only have salted butter on hand, you can use it in place of the unsalted butter. Just be sure to omit the salt that this frosting recipe calls for. You can also use vegan butter in its place (and omit the salt)!
  • Heavy Cream – Whole milk or alternative milk (soy, almond, oat) will work fine in this frosting recipe if that’s what you have on hand.
  • Cocoa Powder – I like to use regular, unsweetened baking cocoa in this recipe, but you can also use Dutch-processed or dark cocoa powder if needed.
  • Chocolate Chips – Milk, semi-sweet, or dark chocolate chips can be used to make this frosting.
image of chocolate buttercream that's been stirred in a large glass mixing bowl with a red spatula to make it smooth

Making This Yellow Cake in Different Sizes

I used 4, 7-inch cake pans to make this cake, but this recipe can be used to make different-sized cakes.

image of a yellow cake frosted with chocolate buttercream that's been decorated with fun candles and has had happy birthday written on top of it with frosting

You can make three, 8-inch or four, 6-inch cake layers with one batch of batter. Bake the cake layers at 350 F / 175 C for 34-38 minutes or until a toothpick comes out with a few moist crumbs.

If you want to make a yellow sheet cake, I recommend using my yellow sheet cake recipe.

You can also make cupcakes using this recipe. Fill the liners 3/4 full and bake them at 350 F / 175 C for 18-21 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs.

Tips for Making the Best Yellow Cake

  • Ingredients at room temp mix together better! Set out any cold ingredients ahead of time.
  • Properly measure the flour (spoon into the cup measure, then level). Or better yet, use a kitchen scale to measure your dry ingredients.
  • Use a scale to weigh the cake pans as you fill them. It will make the cake layers bake up to the same height and bake more evenly.
  • Level the room temperature or thawed cake layers with a serrated knife to make them easier to stack.
  • Make sure the buttercream is the right consistency. This will help give the cake proper structure and make it easier to decorate.
  • Chill the cake layers in the freezer for about 20 minutes before assembling the cake. It makes them so much easier to stack and frost!
  • If your cake layers turn out less than perfect, read my cake troubleshooting guide to see where things might’ve gone awry.
image of a cute yellow birthday cake that's been frosted with chocolate buttercream and decorated with fun candles

Making This Yellow Cake in Advance

I highly recommend making these cake layers in advance and freezing themIt breaks the process up and makes it more approachable.

You can also make the frosting ahead of time or save any leftover frosting! It can be stored in an airtight container in the fridge for up to 2 weeks, or in the freezer for up to a month.

Be sure to give it a good stir once it thaws to get the consistency nice and smooth again.

image of a yellow layer cake that's been frosted with chocolate buttercream and decorated with cute sprinkles

A decorated cake can last in the fridge for up to a week, or in the freezer for up to a month. The buttercream locks in all the moisture, keeping the cake fresh and delicious!

If you cut into the cake and have leftovers, use any remaining frosting to cover the cut section to keep it moist and store it in the fridge for up to a week.

image of a yellow cake that's been cut into to show it's tender cake layers and chocolate buttercream filling

Let Me Know What You Think!

If you make this yellow cake recipe, I’d love to hear what you think of it! Let me know by leaving a rating and comment below.

And don’t forget to tag me @chelsweets use #chelsweets if you share on social media so that I can see your amazing creations.

Other Recipes You Might Like:

Yield: 24

Best Yellow Cake Recipe

a slice of yellow layer cake on a plate

This is my go-to yellow layer cake recipe! It makes soft, tender, yellow cake layers that are frosted with irresistible chocolate buttercream!

Prep Time 10 minutes
Cook Time 35 minutes
Additional Time 30 minutes
Total Time 1 hour 15 minutes

Ingredients

Yellow Cake Ingredients

  • 3 cups cake flour (360g)
  • 3 cups granulated sugar (600g)
  • 2 1/2 tsp baking powder (10g)
  • 1 tsp fine salt (6g)
  • 1 cup or 2 sticks unsalted butter, room temperature (226g)
  • 5 large brown eggs, room temperature (280g)
  • 1 1/2 cups buttermilk, room temperature (360g)
  • 2 Tbsp vegetable or canola oil (30g)
  • 2 tsp vanilla extract (8g)
  • 1/2 cup rainbow sprinkles - optional (90g)

Chocolate Buttercream Frosting

  • 1 1/3 cups milk or dark chocolate chips, melted and cooled (230g)
  • 2 cups or 4 sticks unsalted butter, room temperature (452g)
  • 1 tsp vanilla extract (4g)
  • 1/2 tsp fine salt (3g)
  • 6 cups powdered sugar (750g)
  • 1/2 cup unsweetened baking cocoa powder (50g)
  • 2/3 cup heavy cream (180g)

Cake Decoration

  • 1/2 cup dark chocolate chips (85g)
  • 1/4 cup heavy cream (60g)
  • 1/2 cup rainbow sprinkles (90g)

Recommended Tools

Instructions

Yellow Cake Layers

  1. Preheat the oven to 350°F / 175°C. Line four, 7-inch, or three 8-inch pans with parchment rounds and grease with non-stick baking spray or homemade cake pan release. I used 7-inch cake pans.
  2. Mix 3 cups cake flour, 3 cups sugar, 2 1/2 tsp baking powder, and 1 tsp salt together in a stand mixer with a paddle attachment or hand mixer until fully combined.
  3. Gradually mix 1 cup of room-temperature butter into the dry ingredients on a low speed. Continue to mix until no large chunks of butter remain, and the mixture looks like moist sand.
  4. Mix in 5 large eggs, one at a time, on medium speed until incorporated. Scrape the sides and bottom of the bowl as needed with a rubber spatula.
  5. Then mix in 1 1/2 cups buttermilk, 2 Tbsp vegetable oil, and 2 tsp vanilla extract on a low speed until fully incorporated. Scrape down the sides of the bowl with a rubber spatula one more time, then beat on a medium speed for about 30 seconds to make sure everything is properly mixed together. This also helps lighten the texture of the cake layers.
  6. If desired, gently fold 1/2 cup rainbow sprinkles into the batter.
  7. Divide the batter evenly between the cake pans (450g per pan if you make 4 layers, 600g per pan if you make 3 layers). Bake for 34-36 minutes or until a toothpick comes out with a few moist crumbs. Rotate the pans halfway through to help them bake evenly.
  8. Let the pans cool for 10 minutes, then run a small offset spatula around the perimeter of the pan to separate the cake from the pan.
  9. Place the cake layers into the freezer for 30 minutes to accelerate the cooling process. Once the layers are fully cooled, carefully flip the pans, and remove the layers.
  10. These cake layers bake up pretty flat, but I like to use a serrated knife to level the tops and remove any caramelization around the sides of the layers. This step is optional but makes the cake a lot easier to frost. You can also trim the layers, then wrap and freeze them if you're making them in advance.
  11. If you make these cake layers in advance and freeze them, let them thaw for about 15 minutes before making the cake. The cake layers should still be slightly cold to the touch, which will make it easier to assemble the cake.

Chocolate Buttercream Frosting

  1. While the cake layers bake and cool, make the chocolate buttercream frosting. Start by melting 1 1/3 cups of dark or milk chocolate with either a microwave or double boiler. Set aside to cool.
  2. In the bowl of a stand mixer or a large bowl, beat 2 cups of unsalted butter on medium speed for 30 seconds with a stand mixer and paddle attachment or hand mixer until smooth.
  3. Mix in 1 tsp of vanilla extract and 1/2 tsp salt on a low speed.
  4. Gradually mix in 6 cups of powdered sugar, 1/2 cup of cocoa powder, and 2/3 cup of heavy cream on a low speed until combined. Use a rubber spatula to scrape the sides and bottom of the bowl as needed.
  5. The chocolate melted in step 1 should have cooled off a bit by now, and should still be fluid but not hot to the touch. Pour the chocolate into the buttercream and mix on a low speed until combined.
  6. Then stir by hand with a rubber spatula for a couple of minutes to get the frosting SUPER smooth. If the frosting seems too thick, add in additional cream (1 Tbsp at a time). If the frosting seems too thin, add more powdered sugar (a quarter of a cup at a time).

Assembling this Yellow Cake

  1. Stack and frost the cake layers on a greaseproof cake board or flat plate using a dab of frosting to help stick the first cake layer in place.
  2. Spread an even layer of chocolate buttercream on top of the cake layer with a large offset spatula. Top with the next cake layer and repeat until all the cake layers are stacked.
  3. Once the cake layers are stacked, smooth any overhanging frosting and chill the cake in the freezer for 15 minutes. This will help the frosting between the layers firm up and reduce crumbing as you frost the cake.
  4. Once the cake is chilled, cover it with the remaining chocolate buttercream. Use a large offset spatula or the back of a spoon to create a textured look around the cake.
  5. Add 1/2 cup of dark chocolate and 1/4 cup of heavy cream into a heat-proof bowl. Heat in the microwave for 30-45 seconds, then stir until the chocolate is fully melted and the mixture is combined. Use the back of a spoon or offset spatula to make chocolate swirls in the frosting. Gently press rainbow sprinkles in clusters around the cake, then enjoy!

Notes

If you need to make any substitutions or swaps in this recipe, please see the section in the post above on ingredient substitutions.

Recipe Variations

One batch of cake batter makes about 1800 grams or 10 cups. If you plan to use four circular cake pans, add 450 grams of batter into each pan. If you make 3 layers, add 600 grams to each pan.

If you want to make a yellow sheet cake, I recommend using my yellow sheet cake recipe.

You can also make cupcakes using this recipe. Fill the liners 3/4 full and bake them at 350 F / 175 C for 17-20 minutes, or until a toothpick inserted in the center comes out with a few moist crumbs.

Tips for Making the Best Yellow Layer Cake

  • Ingredients at room temp mix together better! Set out any cold ingredients ahead of time.
  • Properly measure the cake flour (spoon into the cup measure, then level). Or better yet, use a kitchen scale to measure your dry ingredients.
  • Use a scale to weigh your cake pans as you fill them. It will make the cake layers bake up to the same height and bake more evenly.
  • Level the room temperature or thawed cake layers with a serrated knife to make them easier to stack.
  • Make sure the buttercream is the right consistency. This will help give the cake proper structure and make it easier to decorate.
  • Chill the cake layers in the freezer for about 20 minutes before assembling the cake. It makes them so much easier to stack and frost!
  • If your cake layers turn out less than perfect, read my cake troubleshooting guide to see where things might've gone awry.

Making This Yellow Layer Cake in Advance & Storage Tips

Make these cake layers in advance and freeze them. It breaks the process up and makes it more approachable.

You can also make the frosting can also be made ahead of time or you can save any leftover frosting! It can be stored in an airtight container in the fridge for up to a month, or in the freezer for up to 3 months.

Be sure to give it a good stir once it thaws to get the consistency nice and smooth again.

A frosted cake can last in the fridge for up to a week, or in the freezer for up to a month. The buttercream locks in all the moisture, keeping the cake fresh and delicious!

If you cut into the cake and have leftovers, use any remaining frosting to cover the cut section to keep it moist and store it in the fridge for up to a week.

Nutrition Information

Yield

24

Serving Size

1

Amount Per Serving Calories 781Total Fat 41gSaturated Fat 19gTrans Fat 0gUnsaturated Fat 19gCholesterol 135mgSodium 338mgCarbohydrates 101gFiber 1gSugar 79gProtein 5g

Linda kraner

Sunday 3rd of September 2023

How??much batter needed for one layer 12 inch round cake!? Thank you linda

Linda kraner

Monday 28th of August 2023

I cannot wait to make your yellow cake , chocolate cake and vanilla bean cake. What is the correct temp for baking? 350 or 325? Plus. Can u make a spice cake using your yellow cake recipe and can u make a strawberry cake or cupcakes from your vanilla bean cake? Thank you so much.

Via

Tuesday 18th of July 2023

I wish i could submit a photo. The dark chocolate swirls didnt stand out on the chocolate frosting at all. Wonder what happened. But this is by far the mosy delicious yellow cake and most divine chocolate frosting i have ever made. Thank you for the recipe.??

Chelsweets

Sunday 23rd of July 2023

Hi Via,

So happy to hear you loved this recipe!! But that is a bummer about the swirls! I have to use a pretty high % dark chocolate to get the swirls to show, usually anything about 70% works for me. Do you know what type of chocolate you used for the swirls? Hopefully we'll be able to figure it out together!

Katrina Johnson

Friday 5th of May 2023

Hey Chelsey! Just wondering, can I substitute all purpose flour instead of using cake flour? I know there will be a slight texture difference but I'm wondering if it would be that big of a difference?

Chelsweets

Monday 8th of May 2023

Hi Katrina,

Great question! You can substitute it, but the texture of the layers will be way different! I like my yellow cake to be super soft and the cake flour helps achieve that texture. It'll still taste great with AP flour, but the texture will be less soft. Hope that helps, happy baking!

Tammi

Tuesday 25th of April 2023

Can this yellow cake recipe be used for yellow cupcakes?

Chelsweets

Sunday 30th of April 2023

Hi Tammi,

Great question! You can use this recipe to make yellow cupcakes. Bake them at 350F / 175C for 17-20 minutes. One batch of batter will make about 3 dozen cupcakes (yield will vary based on the size of your liners). Hope that helps, happy baking!

Skip to Recipe