The Best Chocolate Cake (Moist Chocolate Cake with Coffee)
There are chocolate cakes… and then there’s this chocolate cake.
If you’ve ever had a slice that’s deeply chocolatey, incredibly moist, and somehow still light enough to go back for a second piece—this is that cake.
It’s the kind of recipe that feels simple when you make it, but tastes like something you’d get from a really good bakery.
And the secret? A few small things that make a big difference—like using Dutch-processed cocoa powder and adding freshly brewed coffee to bring out the chocolate flavor (don’t worry, you won’t taste the coffee at all).
As a French-trained pastry chef, I always come back to recipes like this. Classic technique, simple ingredients, and just enough intention behind each step to make it really, really good.
Ingredients for Chocolate Layer Cake
This cake comes together with pantry staples, but each ingredient plays an important role in creating that soft, rich texture.
For the Cake:
Freshly brewed coffee: Enhances the chocolate flavor without tasting like coffee.
Unsalted butter: Adds richness and keeps the crumb tender. Using melted butter makes this cake extra soft and easy to mix.
Granulated sugar: Provides sweetness and structure.
Dark brown sugar: Adds moisture and a deeper, almost caramel-like flavor.
All-purpose flour: Gives the cake structure while still keeping it light.
Dutch-processed cocoa powder: This is key for a deeper, smoother chocolate flavor.
Baking soda + baking powder: Work together for a balanced rise.
Salt: Enhances all the flavors—don’t skip it.
Sour cream or Greek yogurt: This is what makes the cake incredibly moist and soft.
Eggs: Bind everything together and give structure.
Vanilla extract: Adds warmth and rounds out the flavor.
Freshly brewed coffee: Enhances the chocolate flavor without tasting like coffee.

How to Make Chocolate Layer Cake
This is a very straightforward cake to make—no complicated steps or special equipment required.
Step One:
Preheat your oven to 350°F (175°C). Line two 8-inch (20 cm) cake pans with parchment paper and grease the bottoms and sides.
Step Two:
Melt the butter and let it cool so it’s no longer hot.
Step Three:
In a large bowl, whisk together the flour, cocoa powder, sugars, baking soda, baking powder, and salt.
Step Four:
Add the sour cream, eggs, vanilla, and melted butter. Mix until combined.
Step Five:
Pour in the hot, freshly brewed coffee and whisk until smooth.
Step Six:
Divide the batter evenly between the pans.
Step Seven:
Bake for 30–35 minutes, until the cakes spring back when lightly touched.
Step Eight:
Let the cakes cool completely before removing from the pans. Slice each layer in half to create four layers, then fill and frost as desired.

What Frosting to Use for This Chocolate Cake
This cake pairs perfectly with a rich, smooth chocolate frosting. I almost always use my go-to recipe here: Chocolate Ganache Frosting Recipe
It’s creamy, not overly sweet, and spreads beautifully between layers.
If you want to switch things up, you could also use:
- Swiss meringue buttercream (silky and less sweet, but more technical)
- Whipped chocolate ganache (for something lighter and less sweet)
- Cream cheese frosting (for a slight tangy contrast)
Extra Tips for the Best Chocolate Cake
- Use Dutch-processed cocoa powder
It gives a deeper, more balanced chocolate flavor compared to natural cocoa. - You won’t taste the coffee
It simply enhances the chocolate and makes the cake taste richer. - Crumb coat your cake
Do a very thin layer of frosting first, chill, then finish with your final layer for a clean look. - Freeze the layers if needed
Once cooled, wrap tightly and freeze for up to 2 months. You can frost them straight from frozen. - Don’t overmix
Once everything is combined, stop mixing to keep the cake soft and tender.
How to Build a Layer Cake (Simple Method)
If you’re newer to layer cakes, here’s an easy approach:
- Level your cake layers if needed
- Add an even layer of frosting between each layer
- Apply a thin crumb coat and chill
- Finish with your final layer of frosting
This keeps everything stable and gives you a clean finish without stress.

Why Add Coffee to Chocolate Cake?
This is one of those little tricks that makes a big difference.
Adding freshly brewed coffee to chocolate cake doesn’t make it taste like coffee—instead, it enhances the chocolate flavor and makes it taste deeper and more rich.
Think of it like adding salt to caramel. You don’t taste the salt, but without it, something feels missing.
The coffee brings out the natural complexity of the cocoa and gives you that bakery-style chocolate flavor.
If you’re hesitant, I promise—you won’t taste it in the final cake.
How to Get a Moist Chocolate Cake Every Time
If you’ve ever ended up with a dry chocolate cake, it usually comes down to a few small things.
Here’s what makes the biggest difference:
- Use both brown sugar and granulated sugar – The brown sugar adds moisture and keeps the cake softer for longer.
- Don’t overbake- Chocolate cakes can go from perfect to dry quickly. Pull them out as soon as they spring back to the touch.
- Use sour cream or yogurt – This is one of the key ingredients that keeps the cake soft and moist.
- Measure your flour correctly – Too much flour = a dry, dense cake. Spoon it into your measuring cup and level it off, or even better, use a scale for super precise measurements.
- Don’t overmix the batter – Once everything is combined, stop mixing. Overmixing can make the cake tougher.

My Favorite Tools for Perfect Cake Layers
USA Pans – ensure even baking and easy release.
Offset Spatula – for those swoopy buttercream finishes.
Cake Turntable – for smooth, professional frosting results.
Make Your Own Chocolate Layer Cake
This is one of those recipes that becomes a go-to.
It’s perfect for birthdays, celebrations, or just when you want a really good slice of chocolate cake that actually delivers on flavor and texture.
If you make it, I’d love to see! Tag me on Instagram or TikTok so I can see your version.
The Best Chocolate Layered Cake
A rich, moist chocolate cake layered with silky frosting for a perfectly decadent, melt-in-your-mouth treat.
Ingredients
(makes one 8" four layer cake)- 2 sticks (1 cup, 228g) unsalted butter, melted, cooled
- 2 cups (250g) all purpose flour
- ¾ cup (66g) Dutch processed cocoa powder
- 1 cup (200g) granulated sugar
- 1 cup (220g) dark brown sugar
- 2 tsp baking soda
- 1 tsp baking powder
- ½ tsp salt
- 1 cup (240g) sour cream or Greek yogurt
- 3 large eggs, room temp
- 1 tbsp vanilla extract
- 1 cup (240ml) freshly brewed coffee
Instructions
Preheat your oven to 350F (175C).
Line the bottom of two 8” (20cm) cake pans with parchment and grease the bottom and sides. (You can also use 9” pans but they will be thinner layers).
If you haven’t already, melt the butter. Set it aside to cool.
In a large bowl, whisk together the flour, cocoa powder, sugars, baking soda, baking powder and salt. Add in the sour cream, eggs, vanilla, and the melted butter (barely warm or cool).
Whisk to combine. Then add in the hot, freshly brewed coffee.
Divide between the two pans and bake until springing back to the touch, about 30-35 minutes.
Let cool in the pans, then turn out and cut each layer in half. Fill each with icing and ice the outside!






Hey Molly, I wanna make a mini version of this cake and cut one thicker 6 inch cake into three layers. Could I just cut the recipe in half? Would it bake okay in a 6inch pan with being a little thicker?
Hi! Yes you could cut it in half. It would definitely be a smaller cake! Let me know how it goes, happy baking!
What icing do you use for this cake in particular?? The icing looks amazing
Definitely the Chocolate Ganache Frosting—it’s the one used here! Just scroll up a little to the photo with the spatula and frosting, and you’ll see the recipe linked right below! Enjoy!
Today is Kingsday in Holland so I’m making this for my family!!!
There is always time for a chocolate cake😍😍😍
Perfect way to celebrate! Kingsday + chocolate cake is a royal combo! 👑🍫
Can I use oil instead of butter
Yep! You can swap the butter for oil 1:1
I can’t wait to make this delicious cake. You don’t need a special occasion to make a chocolate cake with chocolate buttercream frosting.
Exactly—every day is the perfect excuse for chocolate cake!