2 Layer Chocolate Cake Recipe for Any Occasion
In this article
This 2 layer chocolate cake is a moist, rich, and deeply chocolatey classic that works for birthdays, anniversaries, or just a weekend treat. The buttermilk and oil keep the crumb tender, while the cocoa powder and hot coffee intensify the chocolate flavor without making it taste like coffee. It’s a straightforward recipe that yields a bakery-style cake with a smooth, fudgy frosting.
Ingredients
- 1 ¾ cups (220g) all-purpose flour
- ¾ cup (65g) unsweetened cocoa powder (natural or Dutch-processed)
- 2 cups (400g) granulated sugar
- 1 ½ teaspoons baking powder
- 1 ½ teaspoons baking soda
- 1 teaspoon salt
- 2 large eggs, at room temperature
- 1 cup (240ml) buttermilk, at room temperature
- ½ cup (120ml) vegetable oil (or canola oil)
- 2 teaspoons vanilla extract
- 1 cup (240ml) hot coffee (or hot water)
For the chocolate buttercream:
- 1 cup (226g) unsalted butter, softened
- 3 cups (360g) powdered sugar, sifted
- ¾ cup (65g) unsweetened cocoa powder, sifted
- ¼ cup (60ml) heavy cream (or milk)
- 2 teaspoons vanilla extract
- Pinch of salt
Instructions
- Preheat and prep: Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans, line the bottoms with parchment paper, and dust the sides with cocoa powder (or flour).
- Mix dry ingredients: In a large bowl, whisk together the flour, cocoa powder, sugar, baking powder, baking soda, and salt until well combined.
- Add wet ingredients: Add the eggs, buttermilk, oil, and vanilla extract to the dry mixture. Beat on medium speed (or whisk vigorously) for about 2 minutes until smooth. The batter will be thick.
- Add hot coffee: Reduce speed to low and slowly pour in the hot coffee (or water). Mix until just combined – the batter will be thin. That’s normal.
- Bake: Divide the batter evenly between the prepared pans. Bake for 30–35 minutes, or until a toothpick inserted in the center comes out clean. The cakes should pull away slightly from the pan edges.
- Cool: Let the cakes cool in the pans for 15 minutes, then turn them out onto a wire rack to cool completely. This is crucial – frosting a warm cake will melt the frosting.
- Make the frosting: While the cakes cool, beat the softened butter on medium speed until creamy (about 2 minutes). Add the powdered sugar and cocoa powder gradually, beating on low to avoid a cloud of sugar. Add the heavy cream, vanilla, and salt. Increase speed to high and beat for 2–3 minutes until light and fluffy. If it’s too stiff, add a little more cream; if too thin, add more powdered sugar.
- Assemble: Place one cake layer on a serving plate. Spread about 1 cup of frosting on top. Place the second layer on top. Frost the top and sides with the remaining frosting. Use an offset spatula for a smooth finish, or leave swirls for a rustic look.
- Serve: Slice and serve at room temperature. For cleaner slices, chill the cake for 15–20 minutes before cutting.
Tips
- Buttermilk substitute: If you don’t have buttermilk, add 1 tablespoon of lemon juice or white vinegar to 1 cup of milk, stir, and let sit for 5 minutes.
- Don’t overmix: Once you add the hot coffee, mix only until the batter is smooth. Overmixing can develop gluten and make the cake tough.
- Room temperature ingredients: Eggs and buttermilk should be at room temperature to emulsify properly. Cold ingredients can cause the batter to curdle.
- Check for doneness: Ovens vary; start checking at 25 minutes. The cake is done when a toothpick comes out with a few moist crumbs, not wet batter.
Serving Suggestions
Serve this cake as is, or dress it up with fresh berries, a dusting of powdered sugar, or a scoop of vanilla ice cream. It also pairs beautifully with a glass of cold milk or a cup of espresso. For a festive touch, top with chocolate shavings, sprinkles, or edible flowers.
Variations
- Mocha cake: Replace the hot coffee with strong brewed espresso for a more pronounced coffee flavor.
- Peanut butter frosting: Swap the chocolate buttercream for a peanut butter buttercream (beat ½ cup peanut butter into the butter before adding sugar).
- Gluten-free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture may be slightly denser but still delicious.
- Layer twist: Add a layer of raspberry jam or chocolate ganache between the cake layers for extra richness.
Storage and Reheating
Room temperature: Store the frosted cake in an airtight container at room temperature for up to 3 days. Keep it away from direct sunlight and heat.
Refrigerator: You can refrigerate the cake for up to a week, but bring it to room temperature before serving – cold cake tastes less flavorful and the frosting becomes firm.
Freezer: Wrap unfrosted cake layers tightly in plastic wrap and then foil. Freeze for up to 3 months. Thaw overnight in the refrigerator, then bring to room temperature before frosting. Frosted cake can also be frozen (unwrapped first, then wrapped after frozen) for up to 2 months.
Reheating: To refresh a slice, microwave for 10–15 seconds. For a whole cake, warm in a 300°F (150°C) oven for 5–10 minutes, but this may melt the frosting, so it’s best for unfrosted portions.
Frequently Asked Questions
Can I use hot water instead of coffee?
Yes, hot water works perfectly. The coffee enhances the chocolate flavor, but water will still give a moist, rich cake. If using water, you might add 1 teaspoon of instant espresso powder (optional) for depth.
Why did my cake sink in the middle?
This can happen if the oven door is opened too early, if the cake is underbaked, or if the batter was overmixed. Make sure your oven is at the correct temperature and avoid opening it until at least 25 minutes of baking.
Can I make this cake in advance?
Absolutely. You can bake the cake layers a day ahead, wrap them tightly in plastic wrap, and store at room temperature. Frost them the next day. The frosted cake can also be made a day ahead and refrigerated.
How do I get clean slices?
Chill the cake for 20–30 minutes before slicing. Use a long, sharp knife and wipe it clean between cuts. Dip the knife in hot water and dry it for even cleaner slices.
Can I use Dutch-processed cocoa?
Yes, but note that Dutch-processed cocoa is less acidic. Since this recipe uses baking soda (which needs acid), you may need to add a little extra acid (like ½ teaspoon of vinegar) to the batter if you use Dutch-processed cocoa. For simplicity, natural cocoa is recommended.
Why is my frosting grainy?
Grainy frosting usually happens when the powdered sugar isn’t sifted or when the butter is too cold. Always sift the sugar and cocoa, and ensure the butter is softened to room temperature before beating.