The Only Chocolate Cake Recipe You'll Ever Need
In this article
This is the chocolate cake you turn to for birthdays, last-minute cravings, and every celebration in between. It’s a classic American devil’s food cake: deeply chocolatey, moist, and tender, with a crumb that’s sturdy enough for stacking and frosting but light enough to feel indulgent. The secret is a combination of Dutch-processed cocoa and hot coffee, which intensifies the chocolate flavor without making the cake taste like coffee. This recipe yields a reliably perfect layer cake every time, and it’s simple enough for a beginner baker.
Serves 12 · Prep 25 min · Cook 30 min · Total 1 hr 55 min
Ingredients
- 2 cups (240 g) all-purpose flour
- 2 cups (400 g) granulated sugar
- 3/4 cup (75 g) Dutch-processed cocoa powder (or natural cocoa, see Tips)
- 2 teaspoons baking soda
- 1 teaspoon baking powder
- 1 teaspoon salt
- 1 cup (240 ml) buttermilk, at room temperature
- 1/2 cup (120 ml) vegetable oil
- 2 large eggs, at room temperature
- 2 teaspoons vanilla extract
- 1 cup (240 ml) hot coffee or hot water
Instructions
- Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line the bottoms with parchment paper.
- In a large mixing bowl, whisk together the flour, sugar, cocoa powder, baking soda, baking powder, and salt until well combined.
- Add the buttermilk, vegetable oil, eggs, and vanilla extract to the dry ingredients. Beat with an electric mixer on medium speed for 2 minutes, scraping down the sides as needed, until the batter is smooth and well combined.
- With the mixer on low speed, slowly pour in the hot coffee (or hot water). Mix just until incorporated; the batter will be very thin. This is normal.
- Divide the batter evenly between the prepared pans. Bake for 28–32 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs. The cakes should pull away from the sides of the pans.
- Let the cakes cool in the pans on a wire rack for 10 minutes. Then turn them out onto the rack to cool completely before frosting. This takes about 1 hour.
Tips
- Cocoa powder: Dutch-processed cocoa gives a deeper, less acidic chocolate flavor. If you only have natural cocoa, use it, but the cake will be slightly lighter in color and a bit more tangy. You can also replace the hot coffee with hot water if you prefer no coffee flavor at all.
- Room temperature ingredients: Make sure the buttermilk, eggs, and any other dairy are at room temperature before mixing. This helps the batter emulsify properly, resulting in a more even crumb.
- Don’t overmix: Once you add the hot liquid, mix just until combined. Overmixing can develop gluten, making the cake tough.
- Pans: For even baking, use light-colored metal pans. Dark pans absorb more heat and can cause the edges to overbrown. If using dark pans, reduce the oven temperature by 25°F (15°C).
Serving Suggestions
This cake is perfect with a classic chocolate buttercream, a simple vanilla buttercream, or a whipped cream frosting. For a more decadent dessert, serve slices with a scoop of vanilla ice cream or a drizzle of warm chocolate sauce. It also pairs beautifully with fresh raspberries or strawberries.
Variations
- Chocolate layer cake: Use this recipe to make a triple-layer cake by dividing the batter among three 8-inch pans and reducing the baking time to 22–25 minutes.
- Cupcakes: Fill 24 cupcake liners two-thirds full and bake at 350°F (175°C) for 18–20 minutes.
- Add-ins: Fold in 1 cup (170 g) of chocolate chips or chopped nuts after mixing in the hot liquid, if desired.
- Gluten-free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture will be slightly more delicate, so handle gently.
Storage and Reheating
Store unfrosted cake layers wrapped in plastic wrap at room temperature for up to 2 days, or freeze for up to 3 months. Frosted cake can be kept in an airtight container at room temperature for up to 3 days. To freeze a frosted cake, place it in the freezer unwrapped for 1 hour, then wrap tightly in plastic wrap and foil; freeze for up to 2 months. Thaw in the refrigerator overnight before serving. To reheat individual slices, microwave for 10–15 seconds to soften the crumb, or warm in a 300°F (150°C) oven for 5–8 minutes.
Frequently Asked Questions
Can I use regular cocoa powder instead of Dutch-processed? Yes, but the flavor will be less deep and the cake will be slightly more acidic. If you use natural cocoa, you can also reduce the baking soda to 1 1/2 teaspoons to balance the pH.
Why is the batter so thin? The hot liquid makes the batter very liquidy. This is intentional—it helps the cocoa bloom and creates a moist, tender crumb. Don’t be tempted to add more flour.
Can I make this cake without buttermilk? Yes, you can make a quick buttermilk substitute by adding 1 tablespoon of lemon juice or white vinegar to 1 cup of milk. Let it sit for 5 minutes before using. The cake will still be moist, but the flavor will be slightly different.
How do I know when the cake is done? Insert a toothpick into the center; it should come out clean or with a few moist crumbs. The edges should also be pulling away from the pan. Avoid overbaking, which dries out the cake.
Can I use this recipe for a sheet cake? Yes, pour the batter into a greased 9x13-inch pan and bake for 35–40 minutes. The cake will be slightly thicker than a layer cake, so adjust the time accordingly.
Why did my cake sink in the middle? This can happen if the oven temperature is too low, the batter is overmixed, or the cake is underbaked. Make sure your oven is properly calibrated and bake until the toothpick test is clean.