I’ve made a lot of chocolate cakes.
Dry ones. Sad ones. One that sank so badly in the middle my husband asked if I’d baked a bowl on purpose.
This is not that cake.
This is the one I pull out when I want people to ask for the recipe before they’ve even finished their slice. It’s rich, it’s moist (sorry, I know some people hate that word), and it comes together with stuff you probably already have in your kitchen.
Here’s a fun fact before we get into it: the deepest, darkest chocolate cakes actually get part of their color and flavor from a splash of hot coffee. You won’t taste coffee at all. You’ll just wonder why this cake tastes so much more chocolatey than every other one you’ve made. 🍫
Let’s get baking.
What You’ll Need
For the cake:
- 2 cups granulated sugar
- 1¾ cups all-purpose flour
- ¾ cup unsweetened cocoa powder
- 1½ tsp baking powder
- 1½ tsp baking soda
- 1 tsp salt
- 2 large eggs
- 1 cup buttermilk
- 1 cup hot coffee (brewed, not instant granules)
- ½ cup vegetable oil
- 2 tsp vanilla extract
For the frosting:
- 1 cup unsalted butter, softened
- 1⅓ cups cocoa powder
- 5 cups powdered sugar
- ⅔ cup milk (or heavy cream for extra richness)
- 2 tsp vanilla extract
- Pinch of salt
Tools You’ll Need
- Two 9-inch round cake pans
- Mixing bowls (one large, one medium)
- Electric mixer (hand or stand)
- Whisk
- Rubber spatula
- Cooling racks
- Parchment paper
Pro Tips
1. Don’t skip the coffee. It’s the one ingredient people want to swap out, and it’s the one you shouldn’t. It deepens the chocolate flavor without making the cake taste like a latte. Promise.
2. Room temperature eggs matter more than you’d think. Cold eggs straight from the fridge don’t blend as smoothly into the batter, which can leave you with a slightly uneven crumb. Set them out 30 minutes before you start.
3. Line your pans, even if they’re nonstick. This cake is soft and a little delicate once it’s baked. A parchment circle at the bottom guarantees a clean release every time.
4. Let the cakes cool completely before frosting. I know it’s tempting to rush this part. But warm cake plus frosting equals a melty mess sliding off the sides.
5. Beat the frosting longer than feels necessary. An extra two to three minutes of mixing makes it noticeably fluffier and lighter in color. It’s a small step that makes a big difference.
How to Make It
- Preheat your oven to 350°F. Grease and line two 9-inch round pans with parchment paper.
- Whisk the dry ingredients. In a large bowl, combine the sugar, flour, cocoa powder, baking powder, baking soda, and salt.
- Add the wet ingredients. Mix in the eggs, buttermilk, oil, and vanilla until combined.
- Pour in the hot coffee last. The batter will look thin. That’s exactly what you want.
- Divide the batter evenly between your two pans.
- Bake for 30 to 35 minutes, or until a toothpick inserted in the center comes out clean.
- Cool in the pans for about 10 minutes, then transfer to a cooling rack to cool completely.
- Make the frosting. Beat the softened butter until creamy, then add cocoa powder and mix well.
- Alternate adding powdered sugar and milk, a little at a time, until smooth.
- Mix in vanilla and salt, then beat for a few extra minutes until light and fluffy.
- Frost the first layer, stack the second on top, then frost the top and sides.
Substitutions and Variations
Not everyone keeps buttermilk on hand, and that’s okay. Here’s how to work around a few common swaps:
| Original | Substitute | Notes |
|---|---|---|
| Buttermilk | 1 cup milk + 1 tbsp vinegar or lemon juice | Let sit 5 minutes before using |
| Vegetable oil | Melted coconut oil | Adds a very slight coconut note |
| Coffee | Hot water | Cake will taste slightly less rich |
| Butter frosting | Cream cheese frosting | Great if you want more tang |
Want to switch it up even more? Try adding a teaspoon of espresso powder into the frosting for a mocha twist, or fold in a handful of mini chocolate chips before baking for extra texture in every bite.
Make Ahead Tips
You can bake the cake layers up to two days ahead. Wrap them tightly in plastic wrap once fully cooled and keep them at room temperature.
Want to go further out? The unfrosted layers freeze beautifully for up to three months. Just thaw them on the counter before frosting.
A Few Extra Details
Nutrition (per slice, based on 12 slices): Roughly 480 calories, 22g fat, 68g carbs, 5g protein. This will vary slightly depending on your exact ingredients.
Diet swaps:
- Gluten-free: Swap the all-purpose flour for a 1:1 gluten-free baking blend.
- Dairy-free: Use plant-based butter, a dairy-free milk with a splash of vinegar in place of buttermilk, and dairy-free milk in the frosting.
Pairing suggestions: A scoop of vanilla ice cream, a glass of cold milk, or if you’re feeling fancy, a small glass of port wine.
Time-saving tip: Make the frosting while the cakes are baking. By the time they’re cooled, your frosting is ready to go.
Leftovers and Storage

This cake stays good at room temperature, covered, for about 2 days.
For longer storage, keep it in the fridge for up to 5 days. Just let slices sit out for 20 minutes before serving so the frosting softens back up.
You can also freeze individual slices, wrapped tightly, for up to 2 months.
FAQ
Can I make this into cupcakes instead? Yes. Fill liners about two-thirds full and bake for 18 to 20 minutes.
Why did my cake sink in the middle? This usually happens from underbaking or opening the oven door too early. Give it the full bake time and resist peeking for the first 25 minutes.
Can I use this frosting on other cakes? Absolutely. It works beautifully on vanilla cake, brownies, or even as a filling for cookies.
Do I have to use two pans? You can use one 9×13 pan instead. Just increase the bake time to about 35 to 40 minutes.
Wrapping Up
This is the cake I make for birthdays, bad days, and every excuse in between.
It’s simple enough for a first attempt, but rich enough that no one will guess that.
Give it a try this week, and when you do, come back and tell me how it turned out. I’d love to hear what you paired it with, or if you tried one of the variations above.