I love this recipe because it gives me everything I want in a classic yellow cake. The crumb turns out tender and fluffy, the flavor is rich without being heavy, and the batter comes together with everyday ingredients. I also like that the sour cream and buttermilk keep the cake soft and moist, while the extra egg yolks add a beautiful golden color and a fuller taste.
I keep coming back to this cake because it works so well for birthdays, casual gatherings, potlucks, and simple weekend baking. I also appreciate that the chocolate cream cheese frosting adds a slight tang that balances the sweetness of the cake. For me, it feels like the perfect mix of classic and homemade.
Ingredients
(Note: All ingredient amounts are listed in the recipe card below.)
For the cake:
1 1/2 cups (285g) granulated sugar ½ cup (118 ml) vegetable oil 2 tablespoons (28g) unsalted butter, melted 2 large eggs, at room temperature 2 large egg yolks, at room temperature 1 tablespoon (15ml) pure anilla extract ½ cup (120g) full-fat sour cream, at room temperature 2 ½ cups (350g) all-purpose flour, sifted 2 teaspoons (7.5g) baking powder 1 teaspoon (4g) baking soda 1 teaspoon (5g) salt 1 1/3 cup (315ml) buttermilk, at room temperature
For the frosting and topping
½ cup (1 stick) unsalted butter, cold 6 ounces cream cheese, cold ½ cup (55 g) cocoa powder 4 ½ cups (585g) powdered sugar 2 tablespoons (30ml) milk or heavy whipping cream 1 tablespoon (15ml) pure vanilla extract Sprinkles of choice
Directions
I start by preheating the oven to 350°F. In a large mixing bowl, I combine the sugar, vegetable oil, melted butter, eggs, egg yolks, and vanilla extract. I beat everything on medium speed for about 2 minutes, until the mixture looks lighter in color and well blended. Then I mix in the sour cream until everything is smooth.
In a separate bowl, I combine the flour, baking powder, baking soda, and salt, then sift them together. I add half of the dry ingredients and half of the buttermilk to the wet ingredients, mixing on low speed just until the flour begins to blend in. After that, I add the remaining dry ingredients and buttermilk and continue mixing until the batter is fully combined. I like to scrape down the bowl with a spatula and fold from the bottom up to make sure the batter is evenly mixed.
Next, I pour the batter into a 9-inch by 13-inch pan. I bake the cake at 350°F for 25 to 30 minutes. To check if it is done, I insert a toothpick into the center. When it comes out clean, I take the cake out and let it cool completely before frosting.
For the frosting, I cut the butter into 1-inch blocks and beat it for 3 to 4 minutes until softened. Then I add the cream cheese and beat the mixture for 2 to 3 minutes until it is fluffy and smooth, scraping down the bowl as needed. I add the cocoa powder and vanilla extract and beat until well combined.
Then I add the powdered sugar 2 cups at a time, followed by 1 tablespoon of milk or heavy whipping cream, beating for 60 to 90 seconds until smooth. I add the remaining powdered sugar and cream and continue beating for at least 2 minutes, until the frosting reaches the consistency I want. Once the cake is fully cooled, I spread the frosting over the top and finish it with sprinkles.
Servings and Timing
I get 15 slices from this recipe, which makes it great for sharing or serving at a small celebration. The prep time is 20 minutes, the cook time is 30 minutes, and the total time is 50 minutes.
Variations
I like to change this cake in small ways depending on the occasion. Sometimes I use rainbow sprinkles for a birthday look, and other times I use chocolate shavings for a more classic finish. I also enjoy swapping the chocolate cream cheese frosting for vanilla buttercream when I want a lighter flavor.
I sometimes bake the batter as cupcakes for easier serving, and I also like turning it into a layer cake for a more decorative presentation. When I want a little extra flavor, I add a touch of almond extract along with the vanilla. I also think this cake tastes great with a thin layer of jam between the cake and frosting for a slightly fruity twist.
Storage/Reheating
I store this cake covered in the refrigerator because of the cream cheese frosting. It stays best for about 4 to 5 days when kept in an airtight container or tightly covered pan. Before serving, I like to let a slice sit at room temperature for a little while so the cake and frosting can soften slightly.
I usually do not reheat a fully frosted slice, but if I want a softer texture, I let it come to room temperature naturally. If I need to freeze it, I wrap individual slices tightly and place them in a freezer-safe container. I thaw the slices in the refrigerator and then let them sit out briefly before serving.
FAQs
Can I make this cake ahead of time?
I can make this cake a day ahead and keep it covered in the refrigerator. I think the flavor and texture hold up very well, especially once the frosting has had time to settle.
Can I use only butter instead of vegetable oil?
I find that the vegetable oil helps keep the cake moist, while the butter adds flavor. I prefer using both as written for the best texture and taste.
Why does this recipe use extra egg yolks?
I like the extra egg yolks because they give the cake a richer flavor and a more tender crumb. They also help create that classic yellow color.
Can I use Greek yogurt instead of sour cream?
I can use full-fat plain Greek yogurt in place of sour cream if needed. I find that it gives a similar moisture and slight tang.
What size pan works best for this recipe?
I use a 9-inch by 13-inch pan for this recipe because that is what the batter is designed for. I can also divide it into other pans, but the baking time may need to change.
How do I know when the cake is done baking?
I check the center with a toothpick. When it comes out clean or with only a few soft crumbs, I know the cake is ready.
Can I make the frosting less sweet?
I like to reduce the sweetness a little by using the heavy cream option and making sure the cream cheese flavor comes through. The cocoa powder also helps balance the sugar.
Can I freeze the cake?
I can freeze the cake either frosted or unfrosted. I wrap it well and store it in a freezer-safe container, then thaw it in the refrigerator before serving.
What makes this cake so moist?
I get a very moist texture from the combination of vegetable oil, sour cream, buttermilk, and egg yolks. Those ingredients work together to keep the crumb soft and tender.
Can I turn this into cupcakes?
I can absolutely use this batter for cupcakes. I just divide the batter into lined muffin cups and bake until a toothpick comes out clean.
Conclusion
I love how this Classic Yellow Cake brings together everything I want in a simple homemade dessert. It is soft, rich, moist, and easy to make, and the chocolate cream cheese frosting gives it an extra layer of flavor that makes it stand out. I keep this recipe close whenever I want a dependable cake that feels timeless, comforting, and perfect for sharing.
A soft, moist classic yellow cake with a rich flavor and tender crumb, topped with a tangy chocolate cream cheese frosting and festive sprinkles.
Author:Amy
Prep Time:20 minutes
Cook Time:30 minutes
Total Time:50 minutes
Yield:15 servings
Category:Dessert
Method:Baking
Cuisine:American
Diet:Vegetarian
Ingredients
1 1/2 cups (285g) granulated sugar
1/2 cup (118 ml) vegetable oil
2 tablespoons (28g) unsalted butter, melted
2 large eggs, at room temperature
2 large egg yolks, at room temperature
1 tablespoon (15ml) pure vanilla extract
1/2 cup (120g) full-fat sour cream, at room temperature
2 1/2 cups (350g) all-purpose flour, sifted
2 teaspoons (7.5g) baking powder
1 teaspoon (4g) baking soda
1 teaspoon (5g) salt
1 1/3 cup (315ml) buttermilk, at room temperature
1/2 cup (1 stick) unsalted butter, cold (for frosting)
6 ounces cream cheese, cold
1/2 cup (55 g) cocoa powder
4 1/2 cups (585g) powdered sugar
2 tablespoons (30ml) milk or heavy whipping cream
1 tablespoon (15ml) pure vanilla extract (for frosting)
Sprinkles of choice
Instructions
Preheat the oven to 350°F (175°C).
In a large bowl, beat together sugar, vegetable oil, melted butter, eggs, egg yolks, and vanilla extract on medium speed for about 2 minutes until light and well blended. Mix in sour cream until smooth.
In a separate bowl, sift together flour, baking powder, baking soda, and salt.
Add half of the dry ingredients and half of the buttermilk to the wet mixture. Mix on low speed until just combined. Add the remaining dry ingredients and buttermilk and mix until fully combined. Scrape down the bowl and fold to ensure even mixing.
Pour the batter into a 9×13-inch pan and bake for 25 to 30 minutes, or until a toothpick inserted in the center comes out clean. Let cool completely.
For the frosting, beat the butter for 3 to 4 minutes until softened. Add cream cheese and beat for 2 to 3 minutes until smooth and fluffy.
Add cocoa powder and vanilla extract and mix until combined.
Add powdered sugar in batches, alternating with milk or cream, beating until smooth and desired consistency is reached.
Spread frosting over the cooled cake and top with sprinkles before serving.
Notes
Full-fat Greek yogurt can be used instead of sour cream.
Let the cake sit at room temperature before serving for best texture.
Store covered in the refrigerator for up to 5 days.
Can be made as cupcakes or layered cake; adjust baking time accordingly.
Add a touch of almond extract for extra flavor variation.