Go Back Email Link
a slice of yellow layer cake on a plate
Print Recipe
4.84 from 125 ratings

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!
Prep Time10 minutes
Cook Time35 minutes
Additional Time30 minutes
Total Time1 hour 15 minutes
Course: Cakes
Cuisine: American
Servings: 24
Calories: 781kcal

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 (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 or vanilla bean paste 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 (4 sticks) unsalted butter, room temperature 452g
  • 1 tsp vanilla extract or vanilla bean paste 4g
  • 1/2 tsp fine salt 3g
  • 6 cups powdered sugar 750g
  • 1/2 cup unsweetened cocoa powder, sifted 50g
  • 2/3 cup heavy whipping cream, room temperature 180g

Cake Decoration

  • 1/2 cup dark chocolate chips 85g
  • 1/4 cup heavy whipping cream, room temperature 60g
  • 1/2 cup rainbow sprinkles 90g

Recommended Tools

Instructions

Yellow Cake Layers

  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • If desired, gently fold 1/2 cup rainbow sprinkles into the batter.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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

  • 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.
  • 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.
  • Mix in 1 tsp of vanilla extract and 1/2 tsp salt on a low speed.
  • 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.
  • 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.
  • 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

  • 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.
  • 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.
  • 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.
  • 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.
  • 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!

Video

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

Serving: 1 | Calories: 781kcal | Carbohydrates: 101g | Protein: 5g | Fat: 41g | Saturated Fat: 19g | Polyunsaturated Fat: 19g | Cholesterol: 135mg | Sodium: 338mg | Fiber: 1g | Sugar: 79g