Yellow Cake with Chocolate Frosting
This moist yellow cake with chocolate frosting is the perfect birthday cake recipe. Silky buttercream and tender crumb make it irresistible. Get the recipe!
Consider Hershey’s Perfectly Chocolate Cake with Chocolate Frosting, Chocolate Zucchini Cake, or Chocolate Chip Cookie Bark for your next meal.
Why This Yellow Cake with Chocolate Frosting Is My Go-To Birthday Cake Recipe
This yellow cake with chocolate frosting is the epitome of a birthday cake recipe: tender, moist, and generously slathered with silky chocolate buttercream. I first baked it for my son’s birthday and it was an instant hit. The secret? Extra egg yolks give it a custard-like richness, while sour cream keeps every crumb incredibly soft.
What Makes This Moist Yellow Cake So Special
- Buttery, tender crumb that stays moist for days thanks to the combination of oil and sour cream.
- Silky chocolate buttercream frosting made from a ganache base, it’s smooth, not overly sweet, and pairs perfectly with the rich cake.
- Easy to decorate and customize, making it the perfect celebration cake for any occasion.
Key Ingredients for a Moist Yellow Cake
- Cake flour: Its low protein content keeps the cake tender and light. If you don’t have cake flour, you can make a substitute: for each cup, remove 2 tbsp of all-purpose flour and add 2 tbsp cornstarch.
- Sour cream: Adds moisture and a subtle tang that enhances the buttery flavor. Full-fat sour cream works best.
- Semi-sweet or dark chocolate chips: For the ganache, use good-quality chocolate for the smoothest, richest frosting. Chips are fine, but a chopped chocolate bar melts more evenly.
Essential Equipment for This Birthday Cake Recipe
- Stand mixer with paddle attachment (or hand mixer) for creaming butter and whipping frosting
- Three 8-inch round cake pans, light-colored metal pans promote even baking
- Parchment paper rounds for lining pan bottoms
- Cooling racks to let layers cool completely before frosting
- Microwave-safe bowl for melting ganache
Helpful Tips for Making Yellow Cake with Chocolate Frosting
Before you start, bring all cold ingredients to room temperature: butter, eggs, sour cream, and even the cake flour (if stored in the fridge). This ensures a smooth, emulsified batter. Measure your flour by spooning it into the measuring cup and leveling with a knife, scooping directly compacts the flour and can make the cake dry. When you add the dry and wet ingredients alternately, start and end with dry; this prevents the batter from curdling.
For the frosting, make sure your butter is soft but not melted. Beat it for a full 3-5 minutes until light and fluffy before adding the ganache. If your butter is too cold, the frosting will look curdled; just keep beating until it comes together.
Pro Tips for the Best Yellow Cake with Chocolate Buttercream Frosting
For the fluffiest cake, use cake flour, its lower protein content minimizes gluten development. Make sure your butter, eggs, and sour cream are at room temperature so they emulsify properly. When you add the eggs, beat on medium-high for a full 2 minutes after the last egg goes in; this aerates the batter and builds structure. Check for doneness at 25 minutes, a toothpick with a few moist crumbs means it’s done. Overbaking dries out the cake.
For the buttercream, don’t skip cooling the ganache slightly before adding it to the butter. If the ganache is too warm, it will melt the butter and make the frosting runny. If your final buttercream seems too soft, refrigerate it for 15-20 minutes before piping or spreading.
Yellow Cake Variations to Customize Your Birthday Cake
Swap the chocolate buttercream for a cream cheese frosting if you prefer tangy sweetness. Add a teaspoon of lemon zest to the batter for a citrusy twist. For a simpler version, bake the batter as cupcakes, reduce baking time to 18-20 minutes. You can also fill the cake layers with raspberry jam or strawberry compote for a fruity contrast.
Serving Ideas for Classic Yellow Cake
This cake is delicious on its own, but a scoop of vanilla ice cream or a dollop of whipped cream takes it over the top. For a birthday party, add sprinkles or fresh berries on top. A glass of cold milk or a cup of coffee balances the richness nicely.
How to Store Leftover Yellow Cake
Store frosted cake in an airtight cake carrier at room temperature for up to 3 days. If your kitchen is warm, refrigerate it for up to 5 days but let it sit at room temperature for 30 minutes before serving to soften the buttercream. Unfrosted cake layers can be wrapped in plastic and kept at room temperature for 2 days or refrigerated for up to a week.
How to Freeze Yellow Cake for Later
Unfrosted cake layers freeze beautifully. Wrap each cooled layer tightly in plastic wrap, then in foil, and freeze for up to 3 months. Thaw in the refrigerator overnight before frosting. If the cake is already frosted, freeze it uncovered for an hour until the frosting hardens, then wrap and freeze for up to 1 month. Thaw in the fridge and bring to room temperature before serving.
Frequently Asked Questions About Yellow Cake with Chocolate Frosting
Can I use all-purpose flour instead of cake flour?
Yes, but the cake will be slightly denser. To approximate cake flour, measure 1 cup all-purpose flour, remove 2 tablespoons, and add 2 tablespoons cornstarch. Sift together before using.
Why is my yellow cake dry?
Overbaking is the most common cause. Start checking at 25 minutes and remove when a toothpick comes out with a few moist crumbs. Also, measure flour correctly by spooning it into the cup and leveling.
Can I make this recipe gluten-free?
You can try a 1:1 gluten-free flour blend that contains xanthan gum, but the texture may be slightly different. I haven’t tested it with gluten-free flour.
How far ahead can I make the cake?
You can bake the cake layers a day ahead and store them wrapped at room temperature. The frosting can be made 3 days ahead and refrigerated; bring to room temperature and re-whip before using.
Can I use milk chocolate chips instead of semi-sweet?
Yes, but the frosting will be sweeter. Semi-sweet or dark chocolate balances the sweet cake better.
Recipe
Yellow Cake with Chocolate Frosting

This classic yellow cake is tender, moist, and covered with silky-smooth chocolate frosting! The perfect cake for birthdays or any celebration!
Ingredients
cake
- 3 cup cake flour
- 2 tsp baking powder
- 1 tsp salt
- 1 cup unsalted butter, at room temperature
- 1.75 cup granulated sugar
- 0.333 cup grapeseed oil
- 5 large eggs, at room temperature
- 2 egg yolks, at room temperature
- 1 tsp pure vanilla extract
- 1 tsp butter extract
- 1 cup sour cream, at room temperature
frosting
- 2 cup unsalted butter, slightly cold
- 5 cup confectioner's sugar, measured then sifted
- 1 tbsp pure vanilla extract
- 1 cup semi-sweet or dark chocolate chips
- 0.25 cup heavy whipping cream
- 1 pinch salt
Instructions
- 1
For the Cake: Preheat the oven to 325 degrees F. Spray three 8-inch round cake pans with nonstick cooking spray, line the bottom of the pans with parchment paper and spray again. Set aside.
- 2
In a medium bowl, whisk together flour, baking powder, and salt. Set aside.
- 3
Using a stand mixer fitted with the paddle attachment, beat butter, oil, and sugar on medium-high speed for 3 minutes until light in color and fluffy in texture.
- 4
With the mixer on medium speed, add eggs, one at a time, scraping down the bowl between additions. Continue to beat on medium-high speed for 2 minutes until smooth. Add the vanilla and butter extract; stir to combine.
- 5
With the mixer on low speed, add in intervals, blending after each addition: ⅓ dry ingredients, ½ sour cream, ⅓ dry ingredients, ½ sour cream, ⅓ dry ingredients.
- 6
Scrape down the bowl and mix for another 20 to 30 seconds.
- 7
Divide the batter evenly among the prepared pans (18 to 19 ounces in each). Bake for 25 to 30 minutes, or until a toothpick inserted in the center of the cake comes out with a just a few moist crumbs on it.
- 8
Remove the cake pans from the oven and let the layers cool in pans for 15 minutes before inverting onto cooling racks to cool completely.
- 9
For the Chocolate Frosting: In a microwave safe bowl, heat cream for 1 minute. Pour hot cream over the chocolate chips and stir until smooth. If needed, heat the mixture for an additional 20 to 30 seconds and stir again. Cool slightly.
- 10
Using a stand mixer fitted with the paddle attachment, beat butter on medium-high speed for 3 to 5 minutes. Scrape down the bowl with a spatula.
- 11
With the mixer on medium speed, gradually add ganache to butter and mix until smooth. Scrape down the bowl and mix again for 30 seconds.
- 12
With the mixer on low speed, gradually add powdered sugar, mixing to combine after each addition. Add vanilla and salt. Stir to combine.
- 13
Turn the mixture to medium-high speed and beat for an additional 3 to 5 minutes, scraping down the bowl at least twice during the process. The buttercream should be lighter in color and silky-smooth. If the buttercream is too soft, refrigerate it for 15 to 20 minutes before using.
- 14
To Assemble the Cake: Place the first cake layer, top side up, centered on your cake board or cake plate. Evenly spread 1 cup
Nutrition (per serving)
Calorie breakdown
How this was calculated — 17 of 17 ingredients matched
Nutrition information is automatically calculated from USDA FoodData Central, so should only be used as an approximation. Actual values may vary depending on the ingredients, brands, and preparation methods used.
Open in analyzerKeyword: cake, dessert, Oven Baked, vegetarian
This post may contain affiliate links. Read our disclosure policy.
Share this recipe
You Might Also Like
View All →About the Author
NutriforksNutriForks is a home-cooking site built around two simple ideas: recipes should actually work, and you should know what’s in them. Every recipe pairs clear, tested instructions with a full nutrition breakdown, so healthy, everyday cooking is genuinely easy.







