Yellow Butter Cake With Chocolate Frosting Recipe
Yellow butter cake with chocolate frosting is a soft, buttery layer cake with a rich cocoa frosting that suits birthdays, potlucks and weekend baking. It's the classic party cake: tender crumb, sweet vanilla flavor and a fudgy topping that pairs with a glass of milk or a scoop of vanilla ice cream. The whole thing, frosting included, takes about 1 hr 15 min from bowl to table.
What Yellow Cake Is
Yellow cake gets its color and flavor from butter, whole eggs and extra egg yolks. It sits between a light white cake and a dense pound cake: sturdy enough to stack and frost, tender enough to cut with a fork. Chocolate frosting is the traditional partner because the bittersweet cocoa balances the sweet crumb.
Serves 12 · Prep 30 min · Cook 35 min · Total 1 hr 15 min
Ingredients
Cake
- 2½ cups (315 g) all-purpose flour
- 2½ tsp baking powder
- ½ tsp salt
- 1 cup (226 g) unsalted butter, softened
- 1¾ cups (350 g) granulated sugar
- 3 large eggs plus 2 large egg yolks, room temperature
- 1 tbsp vanilla extract
- 1 cup (240 ml) whole milk, room temperature
Chocolate Frosting
- ¾ cup (85 g) unsweetened cocoa powder
- 3 cups (360 g) powdered sugar
- ½ cup (113 g) unsalted butter, softened
- ⅓ cup (80 ml) whole milk, plus more as needed
- 2 tsp vanilla extract
- Pinch of salt
Instructions
- Preheat the oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans, line the bottoms with parchment, and dust with flour.
- Whisk the flour, baking powder and salt together in a bowl.
- Beat the butter and sugar on medium speed for 2-3 minutes, until pale and fluffy.
- Add the eggs and yolks one at a time, beating after each, then beat in the vanilla. Scrape the bowl.
- Add the flour mixture in three additions, alternating with the milk, starting and ending with flour. Mix on low just until combined; do not overbeat.
- Divide the batter between the pans and smooth the tops. Tap each pan on the counter once to release large air bubbles.
- Bake at 350°F (175°C) for 30-35 minutes, until a toothpick in the center comes out clean and the cake springs back when lightly pressed.
- Cool in the pans for 10 minutes, then turn out onto a rack to cool completely, about 45 minutes to 1 hour. Frosting a warm cake melts it.
- For the frosting, beat the butter until smooth, then beat in the cocoa, powdered sugar, milk, vanilla and salt for 2-3 minutes, until spreadable. Add milk 1 tbsp at a time if it's too thick.
- Place one layer on a plate, spread with about ¾ cup (about 150 g) frosting, top with the second layer, then frost the top and sides.
Swaps and Equipment
Cake flour: swap in equal weight for a finer, softer crumb. Buttermilk: replace the milk 1:1 for a slight tang and taller rise. Salted butter: fine in both cake and frosting; drop the added salt. Dairy-free: use plant butter and unsweetened oat milk cup for cup; the crumb is slightly denser, so check labels if allergies are a concern. Milk chocolate frosting: use ½ cup (50 g) cocoa plus 1 cup (170 g) melted milk chocolate for a milder, sweeter frosting.
A stand mixer or hand mixer makes creaming easier, but a sturdy whisk and 3-4 minutes of vigorous beating works. No parchment? Grease and flour the pans thoroughly. For cupcakes, fill 24 lined cups two-thirds full and bake at 350°F (175°C) for 18-22 minutes.
Keeping Cake Fresh
Cover the frosted cake and keep it at cool room temperature for 1-2 days, or refrigerate for up to 5 days; bring slices to room temperature before serving so the frosting softens. Unfrosted layers wrap well in plastic and freeze for up to 3 months; thaw overnight in the refrigerator. A sliced cake dries out fast, so press plastic wrap against the cut face. Refrigerate within 2 hours if your kitchen is above 90°F (32°C) or the cake is filled with custard or cream.