Two-Layer Chocolate Birthday Cake with Chocolate Frosting

A classic two-layer chocolate cake designed for celebrations, featuring deep cocoa flavor enhanced by espresso powder and balanced acidity from sour cream. The tender crumb comes from oil and eggs, while the silky chocolate frosting combines butter, cocoa, and melted bittersweet chocolate for professional results. This version prioritizes ease—both layers bake simultaneously in standard pans and cool together before assembly. The frosting uses a food processor for smooth texture without hand-mixing, making it accessible for home bakers of varying skill levels. Perfect for birthdays, special occasions, or whenever you need an impressive dessert that tastes homemade. The espresso powder deepens chocolate flavor without adding coffee taste, while corn syrup creates shine and prevents graininess in the frosting.
Ingredients
- 1 ½ cups all-purpose flourcake flour0.9:1texture
lighter, more tender crumb
- ½ cup cocoa powder
- 1 ¼ teaspoons baking soda
- ¼ teaspoon salt
- 1 ¼ cups granulated sugar
- 1 ¼ cups sour cream
- ⅝ cup vegetable oil
- 2 large eggs
- 1 teaspoon pure vanilla extract
- 1 teaspoon instant espresso powder
- 20 tablespoons unsalted butter, softened
- 1 cup confectioners sugar
- ¾ cup plus 1 tablespoon cocoa powder
- salt
- ⅝ cup light corn syrup
- 10 ounces bittersweet chocolate, melted and cooled
Instructions
- 1
Adjust oven rack to middle position and preheat to 350°F. Line bottoms of two 9-inch cake pans with parchment paper and lightly coat inside with nonstick cooking spray.
- 2
In a large bowl, sift flour, cocoa powder, baking soda, and salt together and whisk to combine; set aside.
- 3
In a medium bowl, whisk together sugar, sour cream, oil, eggs, vanilla extract, and espresso powder until smooth.
- 4
Whisk wet ingredients into dry ingredients until smooth. Divide batter evenly between prepared pans and smooth cake tops with rubber spatula.
- 5
Bake until cake is just firm and a toothpick inserted into center comes out with just a few moist crumbs attached, 22 to 25 minutes.
- 6
Let cakes cool in pans for 15 minutes. Remove cakes from pans, discard parchment, and let cool completely on wire rack, about 1 hour.
- 7
For frosting: in a food processor, process butter, confectioners sugar, cocoa powder, and salt until combined and smooth, about 30 seconds, scraping down sides of bowl as necessary.
- 8
Add corn syrup and vanilla to processor and process until smooth, about 30 seconds, scraping down sides of bowl as necessary.
- 9
Add melted and cooled chocolate to processor and process until smooth and creamy, about 30 seconds.
- 10
Place one cake, top side up, on a serving platter or cake pedestal. Using offset spatula, spread about 1 cup frosting over top of cake layer.
- 11
Center second cake, bottom side up, on top, and press lightly to adhere.
- 12
Spread remaining frosting evenly over top and sides of assembled cake.
- 13
Decorate by using the back of a soup spoon to make decorative swirls on the cake or decorate as desired. Serve.
Tips
Use instant espresso powder even if you dislike coffee; it amplifies chocolate flavor without adding coffee taste. Bloom it briefly in the wet mixture before combining with dry ingredients for maximum effect.
Process frosting in 30-second intervals and scrape bowl sides between pulses to ensure even texture and prevent butter streaks. Overprocessing creates a broken, separated frosting.
Cool cakes completely before frosting assembly. Warm cakes cause frosting to melt and slide; cold cakes provide stable surface for even, clean frosting application.
Good to Know
Store covered at room temperature up to 2 days, or refrigerated up to 5 days. Frosting firms slightly when chilled.
Bake cake layers 1 day ahead; wrap unfrosted layers separately. Make frosting same day as assembly for best texture.
Serve at room temperature with milk, coffee, or tea. Slice with a thin, hot knife for clean cuts.
Common Mistakes
Do not overbake the cakes to avoid dry texture; remove when toothpick shows just a few moist crumbs.
Do not frost warm cakes to avoid melting and sliding frosting.
Do not skip the pinch of salt in frosting to avoid one-dimensional sweetness.
Substitutions
Dairy-Free Swaps
General Alternatives
FAQ
Can I make this cake the day before serving?
Yes. Bake and cool cake layers completely, wrap in plastic, store at room temperature overnight. Make frosting the day of assembly for best results. Assemble and frost up to 8 hours before serving.
What if I don't have instant espresso powder?
Substitute with finely ground espresso coffee or omit entirely for straightforward chocolate flavor. Do not use instant coffee granules, which create grittiness.
Can I freeze this cake?
Yes. Wrap unfrosted cake layers tightly in plastic wrap, freeze up to 3 months. Thaw at room temperature 2-3 hours before frosting. Freeze frosted assembled cake up to 1 month; thaw in refrigerator overnight.