This triple layer chocolate cake uses oil, sour cream, and coffee for layers that stay moist for five days, comes together in one bowl with no creaming or tempering, and works with gluten-free and dairy-free swaps. It's topped with dark chocolate cream cheese frosting for a rich, not-too-sweet finish.

The Best Chocolate Cake Recipe (Moist, Rich & Made From Scratch)
This chocolate cake is built on a high-moisture, oil-based batter with sour cream and freshly brewed coffee, which creates layers that are deeply chocolatey, soft, and stable enough to stack without crumbling. It's topped with a rich, not-too-sweet dark chocolate cream cheese frosting that uses both butter and cream cheese for a truffle-like finish, and finished with delicate shaved chocolate on top for a cake that looks bakery-level but comes together at home.
If you're looking for other ways to use chocolate in layer cakes, try Chocolate Strawberry Cake for a fruit-forward pairing, Chocolate Zucchini Cake for a moist snacking cake, or Chocolate Loaf Cake for a simpler breakfast type option.
Why You'll Love This Recipe
- Oil-based batter with sour cream - Creates a tender texture that stays moist for days without feeling heavy or greasy; oil distributes moisture more evenly than butter in high-cocoa cakes.
- Freshly brewed coffee in the batter - Enhances the cocoa flavor rather than adding a coffee taste; the cake tastes more chocolatey, not coffee-forward.
- Dark chocolate cream cheese frosting - Uses cream cheese and dark cocoa powder for a frosting that's rich, tangy, and less sweet than traditional buttercream; it spreads easily and holds its shape when chilled.
- Shaved chocolate finish - Adds texture and visual elegance without extra effort; the same technique works on No Bake Chocolate Pudding Pie and other chocolate desserts.
New to layer cakes? Start with my step‑by‑step Layer Cake Guide, How to Stack Cake Layers Like a Pro, How to Crumb Coat a Cake, What Is a Cake Dam for all the basics.

So what makes this the ultimate chocolate cake?
- It's a one-bowl wonder that comes together with a whisk - no stand mixer required for the batter (although you can use one if you have it).
- There is also one game-changing secret ingredient most people overlook: sour cream. Keep reading, because this tiny detail makes all the difference.
- What makes it exceptional is the combination of oil (not butter) in the batter and hot coffee (to amplify the chocolate flavor) both of which work together to create a cake that stays moist and rich long after it's baked.

Chocolate Cake Ingredients
To print ingredient list with measurements & instructions, head over to recipe card below.
The Cake Batter
- All-purpose flour: Measure it carefully (spoon and level, or use a kitchen scale) to avoid a dry, dense cake. Avoid adding additional flour.
- Granulated sugar: It plays a direct role in keeping the cake moist after baking.
- Unsweetened cocoa powder: Use natural unsweetened cocoa powder in the cake for proper interaction with the baking soda. Natural cocoa is acidic and reacts with baking soda to provide lift and prevent density. Dutch-processed cocoa is not recommended in the cake batter unless the leavening is adjusted.
- Baking soda and baking powder: Together, these two leavening agents give the cake its rise. Always check the expiration date - old leavening agents won't perform.
- Salt:Enhances and balances all the other flavors. Without it, the chocolate would taste flat.
- Eggs: Bind the ingredients together and contribute to structure. Room-temperature eggs blend more smoothly into the batter, preventing uneven mixing.
- Sour cream (or whole milk swap): Full-fat sour cream provides acidity for proper leavening while contributing fat and structure, resulting in a slightly tighter, cleaner crumb that slices beautifully. Be sure sour cream is at room temperature to avoid a lumpy batter.
- Vegetable oil: This is the secret to a moist chocolate cake that doesn't dry out. Unlike butter, oil stays liquid at room temperature, which keeps the cake soft even after it's cooled or been stored for a day or two.
- Vanilla extract: Or use vanilla paste.
- Hot brewed coffee: This is the most important step most recipes skip. Hot liquid "blooms" the cocoa powder, unlocking its full flavor potential and producing a far richer chocolate taste. Hot coffee takes this even further by amplifying the chocolate without adding a coffee flavor to the final cake.
The Chocolate Cream Cheese Frosting
- Unsalted butter (room temperature) - The base of a silky buttercream. Softened butter beats smoothly and holds air for a light, fluffy texture.
- Unsweetened cocoa powder: Dark cocoa powder is used in the frosting for a richer color and deeper flavor. Because dark cocoa is more drying than natural cocoa, milk is added to achieve a smooth, spreadable consistency.
- Powdered (confectioners') sugar: Dissolves effortlessly into the butter, thickening and sweetening the frosting simultaneously. It's what creates that signature fluffy texture.
- Cream Cheese plus some Milk: The key to the frosting that's creamy and not too sugary.
- Salt and vanilla extract :Balance the sweetness and add depth to the finished frosting.
The Toppings
Chocolate curls: Use 2 squares of dark chocolate and shave them with a vegetable peeler.

How to Make Chocolate Cake
This is an overview with step-by-step photos. Full ingredients, measurements & instructions are in the recipe card below.
1. Combine Dry Ingredients: In a large bowl, whisk together flour, sugar, cocoa powder, baking soda, baking powder, and salt.


2. Mix Wet Ingredients In the bowl of a stand mixer fitted with the whisk attachment, whisk together eggs, sour cream, vegetable oil, vanilla, and coffee until smooth.
3. Combine Dry into Wet Ingredients: With the mixer running on its lowest speed gradually add the flour mixture. Mix until combined and lump-free. The batter will be thin, which is fine.


4. Add Batter to 3 9-inch Pans: Divide the cake batter evenly between the prepared pans. The batter will be thin before baking, this is intentional and results in a tender, even crumb. Don't be alarmed!!!

5. Bake for 28-35 minutes, or until a toothpick inserted into the center comes out clean or the internal temperature reaches 205-210°F. Cool in pans for 15 minutes, then turn out onto wire racks to cool completely.

How to Make Chocolate Frosting
1. Beat Butter: In the bowl of a stand mixer fitted with the paddle attachment, beat the butter until smooth and creamy, about 2-3 minutes.
2. Add the cream cheese and beat until fully incorporated and smooth then add the dark cocoa powder, vanilla, and salt and mix until uniform in color.


3. Gradually add the powdered sugar and beat until combined. Add the milk and beat again until smooth and spreadable. The frosting should be creamy and silky but thick enough to hold soft peaks.

How to Assemble the Chocolate Cake (3 Layers)
1. Place one cake layer onto a serving plate. Spread approximately ¾ cup frosting evenly over the top then repeat with the second layer.

2. Place final layer on top, then pile the rest of the frosting on to the top layer and use an offset spatula to spread the frosting in an even layer across the top of the cake. Use the spatula to make swirls in the top of the cake.
The remaining frosting will fall down the sides of the cake - smooth it out as evenly as you can using an offset spatula. It doesn't need to be neat; an abundant, rustic-style frosting works beautifully on this cake.

3. Top the cake with chocolate curls made with a vegetable peeler.

4. Chill for 30-45 minutes before slicing. For neat slices run a sharp knife under hot water, repeating and wiping clean after each cut.


Chocolate Cake
CLICK on STARS to REVIEW the RECIPE, then CLICK OK
Equipment
- 3 9-inch round cake pans
- parchment paper
Ingredients
Chocolate Cake
- 3 cups all-purpose flour
- 3 cups granulated sugar
- 1 cup unsweetened natural cocoa powder
- 1 tablespoon baking soda
- 1½ teaspoon baking powder
- 1 teaspoon fine salt
- 4 large eggs room temperature
- 1 cup full-fat sour cream room temperature
- 1 cup freshly brewed coffee
- ½ cup vegetable oil
- 2 teaspoon vanilla extract
Dark Chocolate Cream Cheese Frosting
- 1½ cups unsalted butter soft
- 8 oz full-fat cream cheese soft
- ¾ cup dark cocoa powder
- 2 teaspoon vanilla extract
- pinch salt
- 3½ cups powdered sugar
- 3 tablespoon milk
To Decorate
- chocolate curls from 2 squares dark chocolate (shaved with a vegetable peeler)
Instructions
Prep Work
- Preheat oven to 325°F. Grease and line three 9-inch round cake pans with parchment paper.
Mix Dry Ingredients
- In a large bowl, whisk together flour, sugar, cocoa powder, baking soda, baking powder, and salt.
Mix Wet Ingredients
- In the bowl of a stand mixer fitted with the whisk attachment, whisk together eggs, sour cream, vegetable oil, vanilla, and coffee until smooth.
Combine Both
- With the mixer running on its lowest speed gradually add the flour mixture. Mix until combined and lump-free. The batter will be thin, which is fine.
Divide Batter and Bake
- Divide the cake batter evenly between the prepared pans.
- Bake for 28-35 minutes, or until a toothpick inserted into the center comes out clean or the internal temperature reaches 205-210°F.
- Cool in pans for 15 minutes, then turn out onto wire racks to cool completely.
Make Chocolate Frosting
- In the bowl of a stand mixer fitted with the paddle attachment, beat the butter until smooth and creamy, about 2-3 minutes.
- Add the cream cheese and beat until fully incorporated and smooth then add the dark cocoa powder, vanilla, and salt and mix until uniform in color.
- Gradually add the powdered sugar and beat until combined. Add the milk and beat again until smooth and spreadable. The frosting should be creamy and silky but thick enough to hold soft peaks.
Assemble the Cake
- Place one cake layer onto a serving plate. Spread approximately ¾ cup frosting evenly over the top then repeat with the second layer.
- Place final layer on top then pile the rest of the frosting on to the top layer and use an offset spatula to spread the frosting in an even layer across the top of the cake. Use the spatula to make swirls in the top of the cake.
- The remaining frosting will fall down the sides of the cake - smooth it out as evenly as you can using an offset spatula. It doesn't need to be neat; an abundant, rustic-style frosting works beautifully on this cake.
Top with Chocolate Shavings
- Top the cake with chocolate curls made with a vegetable peeler.
Chill Before Slicing
- Chill for 30-45 minutes before slicing.
- For neat slices run a sharp knife under hot water, repeating and wiping clean after each cut.
Tips for Perfectly Even and Stable Chocolate Cake
- Weighing the batter ensures even layers.
- Do not underbake, as this can cause sinking once cooled.
- Allow cakes to cool completely before frosting. For clean stacking and slicing, wrap layers and chill for at least 1 hour before assembling. Chilled layers are firmer and easier to handle.
- Chill the assembled cake before slicing for the cleanest cuts.
What is the Correct Temperature to Bake This Cake
Bake at 325°F for a level rise and even structure. Higher temperatures can cause doming and cracking.
How Do I know When Cakes are Done
- The center springs back lightly
- A toothpick comes out clean
- Internal temperature reaches 205-210°F
Can I make this as a single-layer cake?
Yes. Pour all the batter into one 9×13-inch pan and bake for 40-45 minutes for a sheet cake version.
Why did my cake sink in the middle?
Sinking is typically caused by underbaking, opening the oven door too early, or too much leavening.
Make sure your oven is fully preheated, don't open the door until at least 30 minutes into the bake, and always measure leavening agents carefully.

Can I Use Less Sugar in the Frosting?
This chocolate frosting already uses reduced powdered sugar compared to traditional buttercream. The result is:
- Less sweet
- Creamier
- Softer in structure
Because of the lower sugar content, the frosting will not crust and remains silky. If you want frosting to crust, add ½ cup to 1 cup more of powdered sugar.
If frosting feels too soft, chill briefly before spreading. If too firm after chilling, allow it to sit at room temperature for 10-15 minutes before working.

Substitutions and Variations
Coffee => Water: Freshly brewed coffee enhances the chocolate flavor without making the cake taste like coffee. It deepens the cocoa notes and improves overall richness. If you are sensitive to caffeine, hot water may be substituted if needed, but coffee is strongly ecommended for the best flavor.
Gluten-Free Chocolate Cake
Simply swap the all-purpose flour for an equal amount of gluten-free flour. One thing to keep in mind though: if your gluten-free flour blend doesn't already contain xanthan gum, you'll want to add a little. Xanthan gum acts as a binder and helps hold everything together, so your cake stays moist and doesn't crumble. Without it, gluten-free bakes can turn out a little dry and fall apart on you! The good news is that most store-bought gluten-free flour blends (like Bob's Red Mill 1-to-1 or King Arthur Measure for Measure) already include xanthan gum.
Dairy-Free Chocolate Cake
For a dairy-free version, I've had great results using coconut milk in place of the sour cream in the batter and coconut cream for the frosting. I also made frosting made from coconut oil in Chocolate Zucchini Cake.
Storage and Leftovers
- Refrigerator: Store cake covered in the refrigerator for up to 4 days. Because the frosting contains cream cheese, refrigeration is required. For best texture, allow slices to sit at room temperature for 20-30 minutes before serving.
- Freezer: Unfrosted cake layers may be wrapped tightly and frozen for up to 2 months. Thaw overnight in the refrigerator before assembling. Frosted cake may also be frozen. Chill until firm, then wrap well and freeze up to 1 month. Thaw overnight in the refrigerator.
More Layer Cakes You'll Love
- Berry Chantilly Cake
- Chocolate Strawberry Cake (3 Layers, From Scratch)
- Moist Lemon Blueberry Layer Cake with Lemon Buttercream
- Raspberry White Chocolate Layer Cake
- Lemon Raspberry Cake with Freeze-Dried Raspberry Buttercream
- The Vanilla Blueberry Layer Cake I'm Bringing to Every Summer Celebration





Mary says
The best scratch chocolate cake I’ve made.
Olya Shepard says
Thank you Mary!