Best Chocolate Cake Recipe

You know that moment when you take a bite of chocolate cake and your eyes close involuntarily?

That’s what this recipe does.

This isn’t a dry, crumbly, “good enough for a birthday” chocolate cake. This is the one people ask you to bring to every gathering. The one where someone gets quiet mid-bite, then asks for the recipe. It’s deeply moist, intensely chocolatey, and covered in a fudgy ganache frosting that you’ll probably want to eat with a spoon.

And honestly? It’s not even that complicated to make.


I spent way too long chasing down the perfect chocolate cake recipe — testing versions that were too dense, too sweet, or missing that rich depth of flavor. Then I landed on this one and stopped looking entirely.

The secret (which I’ll get to in the Pro Tips section below) involves hot coffee and buttermilk, and together they do something to the chocolate that is genuinely hard to explain until you try it.

Keep reading. It’s going to be worth it. ☕


What You’ll Need

For the Cake

IngredientAmount
All-purpose flour2 cups (250g)
Granulated sugar2 cups (400g)
Unsweetened cocoa powder (Dutch-processed)¾ cup (75g)
Baking soda2 tsp
Baking powder1 tsp
Fine sea salt1 tsp
Large eggs2
Buttermilk1 cup (240ml)
Neutral oil (vegetable or canola)1 cup (240ml)
Pure vanilla extract2 tsp
Hot brewed coffee1 cup (240ml)

For the Chocolate Ganache Frosting

IngredientAmount
Heavy cream1 cup (240ml)
Semi-sweet chocolate chips or chopped chocolate2 cups (340g)
Unsalted butter2 tbsp
Powdered sugar, sifted1 cup (120g)
Pinch of sea salt

Tools You’ll Need

  • Two 9-inch round cake pans
  • Electric hand mixer or stand mixer
  • Large mixing bowl
  • Medium saucepan (for ganache)
  • Whisk
  • Rubber spatula
  • Measuring cups and spoons
  • Kitchen scale (strongly recommended for accuracy)
  • Wire cooling rack
  • Offset spatula or butter knife (for frosting)
  • Parchment paper

Pro Tips

These are the things I wish someone had told me before I made this the first time.

  1. Don’t skip the hot coffee. I know it sounds strange. You won’t taste the coffee in the final cake at all — it just deepens the chocolate flavor in a way that nothing else can replicate. If you absolutely can’t use coffee, use hot water, but the flavor won’t be as rich.
  2. Dutch-process cocoa is non-negotiable for this recipe. Natural cocoa will give you a lighter, slightly bitter result. Dutch-process gives you that dark, deeply chocolatey flavor that makes this cake stand out. They’re not interchangeable here.
  3. Bring your eggs and buttermilk to room temperature first. Cold ingredients don’t incorporate as smoothly into batter. Pull them out 30 minutes before you start mixing and your batter will thank you.
  4. Let the ganache cool to the right consistency before frosting. Too warm and it slides right off. You want it thick enough to hold its shape but still spreadable — about 20-30 minutes at room temperature after making it.
  5. Grease and line your pans. Both grease and parchment paper. I’ve made the mistake of skipping one or the other. Just do both and you won’t have a cake tragedy on your hands.

Substitutions and Variations

No buttermilk? Make your own: add 1 tablespoon of white vinegar or lemon juice to 1 cup of regular milk, stir, and let it sit for 5 minutes. Works perfectly.

Egg-free version: Replace each egg with a flax egg (1 tbsp ground flaxseed + 3 tbsp water, rested for 5 minutes).

Gluten-free: A 1:1 gluten-free baking flour swap works well here, though the texture will be slightly denser.

Want a different frosting? A classic buttercream works great too, but the ganache is what takes this cake from “really good” to “I need another slice immediately.”

Sheet cake version: Pour all the batter into a greased 9×13 pan and bake for 35-40 minutes. Great for feeding a crowd with much less effort.

Cupcakes: Same batter, fill liners 2/3 full, bake at 350°F for 18-20 minutes. Makes about 24.


Make-Ahead Tips

The unfrosted cake layers can be wrapped tightly in plastic wrap and stored at room temperature for up to 2 days, or frozen for up to 2 months. Thaw overnight in the fridge before frosting.

The ganache frosting can be made up to a week ahead and stored in the fridge. Gently warm it in 15-second microwave bursts, stirring between each, until it returns to a spreadable consistency.

Fully assembled cake keeps covered at room temperature for up to 3 days. In the fridge, it’ll last 5 days — just let individual slices come to room temperature before eating, because cold cake doesn’t hit the same way.


Instructions

Step 1: Prep everything first.

Preheat your oven to 350°F (175°C). Grease two 9-inch round cake pans, line the bottoms with parchment paper, then grease the parchment too. Brew your coffee and set it aside.

Step 2: Mix the dry ingredients.

In a large bowl, whisk together the flour, sugar, cocoa powder, baking soda, baking powder, and salt. Make sure everything is evenly combined before adding anything wet.

Step 3: Add the wet ingredients.

Add the eggs, buttermilk, oil, and vanilla extract directly into the dry ingredients. Mix with your electric mixer on medium speed for about 2 minutes until smooth.

Step 4: Add the hot coffee.

Reduce mixer speed to low and slowly pour in the hot coffee. The batter will look very thin at this point — that’s exactly right. Don’t panic.

Step 5: Bake.

Divide the batter evenly between your two prepared pans. Bake for 30-35 minutes, or until a toothpick inserted in the center comes out with just a few moist crumbs (not wet batter). Start checking at the 28-minute mark.

Step 6: Cool completely.

Let the cakes cool in their pans for 10 minutes, then flip them onto a wire cooling rack. They must be completely cool before frosting. Completely. A warm cake will turn your ganache into a puddle.

Step 7: Make the ganache frosting.

Heat the heavy cream in a saucepan over medium heat until it just starts to simmer (don’t boil it). Pour it over the chocolate chips in a heatproof bowl. Let it sit for 2 minutes without stirring, then whisk until smooth. Add the butter and stir until melted. Whisk in the powdered sugar and a pinch of salt. Let it cool at room temperature for 20-30 minutes until thick but spreadable.

Step 8: Frost the cake.

Place the first layer on your serving plate or cake stand. Spread about 1/3 of the ganache over the top. Place the second layer on top. Use the remaining ganache to cover the top and sides of the cake. An offset spatula makes this much easier, but a regular butter knife works too.

Let it set for at least 15 minutes before slicing.


Nutritional Breakdown (Per Slice, Based on 12 Slices)

NutrientAmount
Calories~520 kcal
Total Fat28g
Saturated Fat10g
Carbohydrates65g
Sugar48g
Protein6g
Fiber3g
Sodium310mg

Note: These are estimates and will vary based on specific ingredients used.


Meal Pairing Suggestions

This cake pairs really well with:

  • A scoop of vanilla bean ice cream (the cold contrast against the rich cake is something else)
  • Fresh raspberries or strawberries on the side
  • A cup of coffee or espresso
  • Cold milk, obviously

Leftovers and Storage

Room temperature: Keep the cake covered with a cake dome or plastic wrap for up to 3 days.

Refrigerator: Store covered for up to 5 days. The ganache will firm up in the cold — let slices sit out for 15-20 minutes before eating.

Freezer: Wrap individual slices in plastic wrap, then foil, and freeze for up to 3 months. Thaw overnight in the fridge or on the counter for a couple of hours.

Pro tip: Stick a toothpick in the top of the frosted cake before covering it with plastic wrap so the wrap doesn’t stick to the frosting and pull it off.


FAQ

Can I use a box of instant coffee instead of brewed coffee?

Yes! Dissolve 1-2 teaspoons of instant coffee in 1 cup of hot water and use that. Works perfectly.

My ganache got too thick. What do I do?

Gently rewarm it in the microwave in 10-second bursts, stirring between each, until it loosens up. Add a splash of warm cream if needed.

Can I make this as a single-layer cake?

You can bake it in a 9×13 pan instead. Just adjust the baking time to 35-40 minutes and check with a toothpick.

Why does my cake sink in the middle?

This usually happens if the oven temperature is off (oven thermometers are cheap and genuinely useful) or if the cake was underbaked. Make sure the toothpick comes out mostly clean before pulling it from the oven.

Can I halve the recipe?

Yes, halve every ingredient and bake in one 9-inch pan. Check for doneness around the 25-minute mark.

Is this cake very sweet?

It’s rich and deeply chocolatey, but not cloyingly sweet. The Dutch-process cocoa and the coffee both balance the sugar really well.


Wrapping Up

If you’ve been looking for the chocolate cake recipe to keep for the rest of your life, this is it.

It’s moist in a way that lasts for days. The ganache is fudgy without being too heavy. And the whole thing comes together faster than you’d expect.

Make it for a birthday. Make it for a Tuesday. Make it just because you want a really excellent slice of chocolate cake, which is a completely valid reason.

Then drop a comment below and tell me how it went! Did you try any of the variations? Did anyone beg you for the recipe? I want to hear everything. 🍫

Leave a Comment