Chocolate Cake Recipe: Moist, Rich, Turns Out Right Every Time
To make chocolate cake, combine dry ingredients, whisk wet ingredients separately, mix together with hot coffee or water, then bake at 350°F for 30-35 minutes. The batter will look thin —? that's correct —? and the result is a moist, rich cake that sets up beautifully as it cools.
My friend's partner accidentally burned their own birthday cake the day before their surprise party. Not dramatically — it just overbaked slightly, dried out, and when the frosting went on, the whole thing crumbled in a way that made clear it was not going to hold through transport. It was 10pm. My friend called me, not because I was known for baking, but because I was known for being the person who would get in a car at 10pm.
I found a recipe online, read through it once, and committed. The biggest thing I learned from making a chocolate cake on an emergency timeline is that you do not rush the creaming stage. Butter and sugar creamed until genuinely pale and fluffy — not just combined, but transformed — is what gives the cake its texture. Short-cut that step and the crumb is dense and tight in a way that no amount of frosting will fix.
The hot coffee in the batter sounds wrong but it intensifies the chocolate flavor without adding any coffee taste. The buttermilk keeps the crumb moist. The Dutch-process cocoa gives it a deep, dark flavor that regular cocoa doesn't fully achieve. None of these things are complicated. They are just ingredients used correctly.
The cake made it to the party intact. Nobody knew about the previous cake until much later. The birthday person described it as the best chocolate cake they'd ever had, which is the kind of thing you get to say when you bake at 10pm on a Thursday for someone else's party. It was worth it.
Ingredients
- 2 cups (240g) all-purpose flour
- 2 cups (400g) granulated sugar
- 3/4 cup (75g) Dutch-process cocoa powder, sifted
- 2 teaspoons baking soda
- 1 teaspoon baking powder
- 1 teaspoon fine salt
- 2 large eggs, room temperature
- 1 cup (240ml) buttermilk, room temperature
- 1 cup (240ml) strong brewed coffee, hot
- 1/2 cup (120ml) vegetable oil
- 2 teaspoons pure vanilla extract
- FOR THE CHOCOLATE BUTTERCREAM:
- 1 1/2 cups (340g) unsalted butter, softened
- 3/4 cup (75g) Dutch-process cocoa powder, sifted
- 4 cups (480g) powdered sugar, sifted
- 1/3 cup (80ml) heavy cream
- 2 teaspoons pure vanilla extract
- 1/4 teaspoon fine salt
Instructions
- 1Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans generously with butter or nonstick spray, then line the bottoms with parchment paper circles. Grease the parchment too. Do not skip the parchment —? this is not a suggestion, it's a kindness to yourself.
- 2In a large bowl, whisk together the flour, sugar, sifted cocoa powder, baking soda, baking powder, and salt until fully combined and no cocoa lumps remain.
- 3In a separate bowl or large measuring cup, whisk together the eggs, buttermilk, vegetable oil, and vanilla extract until smooth.
- 4Pour the wet ingredients into the dry ingredients and stir until just combined. Then carefully pour in the hot coffee and mix until smooth. The batter will be very thin —? thinner than you expect and probably thinner than you're comfortable with. This is correct. Trust it.
- 5Divide the batter evenly between the two prepared pans. Each pan should receive roughly the same amount; a kitchen scale helps here if you want even layers.
- 6Bake for 30-35 minutes, until a toothpick inserted in the center comes out with just a few moist crumbs (not wet batter). The edges will begin to pull away from the sides of the pan.
- 7Cool the cakes in their pans on a wire rack for 15 minutes, then turn them out, peel off the parchment, and cool completely on the rack —? at least 1 hour —? before frosting. Frosting a warm cake is how things go wrong fast.
- 8MAKE THE FROSTING: Beat the softened butter on medium-high speed for 3-4 minutes until pale and fluffy. Add the sifted cocoa and mix on low until incorporated. Add the powdered sugar one cup at a time, alternating with splashes of heavy cream, mixing on low between additions. Add the vanilla and salt. Once everything is incorporated, beat on medium-high for 2 minutes until light and spreadable. If it's too thick, add cream one tablespoon at a time. If it's too loose, add a little more powdered sugar.
- 9Place one cake layer on your serving plate or cake board. Spread about 1 cup of frosting evenly across the top. Place the second layer on top, press gently, then frost the top and sides. Start with a thin crumb coat if you want clean edges —? refrigerate 20 minutes, then apply the final layer of frosting.
Pro Tips
- Room temperature eggs and buttermilk matter more than you think. Cold dairy tightens the batter unevenly and can affect the rise. Set them out 45 minutes before you start.
- Hot coffee does not make this taste like coffee —? it makes it taste more like chocolate. If you don't have coffee, use the same amount of very hot water. The coffee just deepens the cocoa, and the result is a significantly richer flavor.
- Do not open the oven before the 28-minute mark. The batter is thin enough that an early drop in temperature can collapse the center, and then you will have to eat your feelings along with a sunken cake, which is fine, but preventable.
Substitutions
Storage Instructions
Store frosted cake at room temperature under a cake dome or tightly covered for up to 3 days. Refrigerate after 3 days for up to 5 days total —? bring slices to room temperature before eating, because cold buttercream is not the same thing as good buttercream. Unfrosted cake layers can be wrapped tightly in plastic wrap and frozen for up to 3 months; thaw overnight in the refrigerator before frosting.
Make Ahead
Bake cake layers up to 2 days ahead, wrap each layer tightly in plastic wrap, and store at room temperature. Frosting can be made up to 3 days ahead and refrigerated in an airtight container; re-beat with a hand mixer for 1-2 minutes before using to restore its texture. A fully assembled and frosted cake can be refrigerated overnight —? bring to room temperature for at least 1 hour before serving.
Frequently Asked Questions
Why is my chocolate cake dry even though I followed the recipe?
The most common culprits are overbaking and measuring flour incorrectly. Spoon flour into your measuring cup and level it off —? don't scoop directly from the bag, which packs in 20-30% more flour than the recipe accounts for. Also pull the cake when a toothpick shows moist crumbs, not when it's completely clean. A clean toothpick usually means you've already gone a few minutes too far.
Can I make this as a sheet cake instead of layer cake?
Yes. Pour the batter into a greased 9x13-inch pan and bake at 350°F for 35-40 minutes, checking at 35. You'll get a slightly thicker single layer that's great for potlucks and events where you need to serve a crowd without the structural anxiety of stacking. Frost directly in the pan and cut into squares.
Can I make this chocolate cake without eggs?
Yes. Replace each egg with one flax egg (1 tablespoon ground flaxseed + 3 tablespoons water, rested 5 minutes) or with 1/4 cup unsweetened applesauce per egg. The texture will be slightly denser and the crumb won't be quite as open, but the flavor holds up well. Use dairy-free buttermilk and vegan butter in the frosting to make the full cake vegan.
Why does my frosting look greasy or separated?
Greasy buttercream almost always means the butter was too warm when you started. Butter should be softened but still cool —? around 65-68°F. If your frosting has separated, refrigerate the bowl for 10-15 minutes, then beat again on medium-high. It should come back together. If it's too soft to pipe, a short chill is the fix every time.
Can I make cupcakes with this batter?
Absolutely. Line a standard muffin tin with cupcake liners, fill each about 2/3 full, and bake at 350°F for 18-22 minutes. This recipe makes approximately 24 standard cupcakes. The thin batter will look alarming in the cups before baking. It sets up. Do not panic, do not add more flour, just bake them.
Does the coffee flavor come through in the finished cake?
No —? and this is the question I get most often from people who are skeptical. Hot coffee amplifies the flavor of the cocoa without making the cake taste like coffee. If you brew the coffee at normal strength, most tasters cannot identify it as an ingredient at all. It functions more like a flavor enhancer than a flavoring agent. Children and coffee-averse adults eat this happily.
How far in advance can I frost and assemble this cake?
A fully assembled cake can be refrigerated, loosely covered, for up to 24 hours before serving. Bring it to room temperature for at least an hour before you cut it —? cold frosting tastes waxy and the cake crumb is firmer. For a dinner party, assembling the day before and refrigerating overnight is genuinely the move; the layers settle and the frosting firms up beautifully.
My cake layers domed in the center —? how do I get flat layers for stacking?
Slight doming is normal and easy to fix. Once the layers are fully cooled, use a long serrated knife to level the top of each layer with a gentle sawing motion. Work slowly and keep your knife parallel to the counter. The scraps are yours to eat immediately, which is the only perk of uneven baking and you should claim it without guilt.