This post may contain references to products from one or more of our advertisers. Oh Sweet Basil may receive compensation when you click on links to such products.
This is the best Homemade chocolate cake recipe! Cake like this is rare to find. This perfectly Moist Chocolate Cake recipe is rich, decadent, and truly irresistible! Tested and approved by a cake fanatic (Me!)

Table of Contents
You all know how I work. It’s why we have the best Traeger Ribs, Buttermilk Pancakes, and Banana Bread recipes among a gazillion others. I get all sucked into finding the best of the best for a specific recipe, and I can’t let it go until I’ve achieved it.
And friends, I’ve discovered which chocolate cake is best. If you need chocolate cake for a birthday or a family celebration, you just step right up. (Who am I kidding? Just make it because you are surviving the crazy these days.)

Creating the Best Chocolate Cake
Everyone I know loves a moist chocolate cake with cream cheese frosting or buttercream frosting, but most people struggle to make a homemade version without reaching for a cake mix. I’m absolutely giddy to share all my secrets, along with the full list of ingredients that make this the best from-scratch chocolate cake.
Here’s the twist: this is a chocolate cake recipe without butter, and that’s intentional! As much as I thought butter would enhance the flavor of the chocolate, it just didn’t. The cake lost too much moisture. Butter has a high water content that evaporates as steam during baking, so it can’t lock in moisture the way oil can. Using oil instead creates a softer crumb and keeps the cake tender and moist. If you prefer, you can swap in equal amounts of butter, or even go half and half, but all oil gave me the richest flavor and the most luscious chocolate layer cake.

Ingredients for The Best Chocolate Cake Recipe
As I already mentioned, the moistness of this homemade chocolate cake is thanks in part to the oil used in the batter. Our other secret? Buttermilk! Yep, this is a buttermilk chocolate cake.
Any time a recipe calls for buttermilk, it makes me think it’s going to be a fancy recipe. But in reality, this chocolate cake from scratch couldn’t be simpler to make.
Chocolate Cake Ingredients:
- All-purpose flour: reliable structure for the cake
- Unsweetened natural cocoa powder: better rise than Dutch-process
- Espresso powder: optional, but enhances chocolate flavor
- Baking soda & baking powder: both needed for the right lift
- Salt: balances sweetness and boosts flavor
- Oil: keeps the cake moist (better than butter)
- Eggs: room temperature helps the batter mix smoothly
- Buttermilk: adds moisture and tenderness
- Hot water: blooms cocoa for deeper flavor
Frosting Ingredients:
- Unsalted butter: base for a rich, creamy texture
- Cream cheese: adds tang and stability
- Unsweetened cocoa powder: deep chocolate flavor
- Powdered sugar: sweetness and structure
- Vanilla extract: enhances flavor
- Whole milk: thins to a spreadable consistency
- Salt: balances sweetness

Pro Tip: When you make this chocolate cake for the first time, try it exactly as written. It’s truly the best chocolate cake recipe, and baking it as is ensures you’ll know how it’s meant to turn out before experimenting. If you’d like to tweak it later, we’ve included some substitution ideas below.
For step-by-step instructions and measurements, see the recipe card below.
Substitutes

- For each cup of buttermilk, mix 1 tablespoon of vinegar or lemon juice with enough milk to make 1 cup. Stir and let sit 5 minutes.
- You can also use half milk and half sour cream in place of buttermilk. Sour cream adds density, so it’s actually a great swap.
- For chocolate, 1 ounce unsweetened baker’s chocolate equals 3 tablespoons cocoa. Melt it and add to the sugar and butter (or oil).
How to Make The Best Chocolate Cake
Chocolate Cake Steps
Okay, it’s time to bake the best chocolate cake recipe! Here we go!
- Preheat: Set oven to 350 degrees F before baking.
- Prepare pans: Spray bottoms of 2-3 9-inch cake pans, line with precut parchment paper, and spray sides.
- Sift: Remove lumps from dry ingredients with a mesh sieve.
- Mix: Beat eggs, buttermilk, hot water, oil, and vanilla using a hand or stand mixer on medium speed until smooth.
- Combine: Add dry ingredients and mix until incorporated.
- Divide & bake: Pour the chocolate cake batter evenly into pans and bake.
- Cool: Let cakes rest 10-15 minutes on the counter, then turn onto a wire rack.
Unlike brownies, you can use the toothpick trick for cake. Just insert a toothpick into the very center of the cake, and if it comes out clean, it’s time to pull the cake!

Chocolate Frosting Steps
The secret to a good chocolate frosting is actually, in my expert opinion, to use both butter and cream cheese. Each doesn’t hold up to the chocolate enough, but together, man, it’s good! All rich and creamy, totally dreamy.
- Soften: Bring butter and cream cheese to room temperature.
- Cream: Beat butter and cream cheese together until smooth.
- Add: Mix in cocoa, sugar, vanilla, and salt.
- Adjust: Add milk as needed for a spreadable, but thick consistency.
- Frost: Spread evenly on cooled cake layers and decorate as desired.
Once frosted, your chocolate cake is ready to impress! Rich, creamy, and utterly irresistible! Every bite is pure chocolate bliss.

Do You Have to Use Coffee for This Recipe?
You might have noticed coffee or espresso powder in the ingredients list, and it’s actually one of the secrets to making your chocolate cake taste extra chocolate-y. Almost every chocolate cake uses a little coffee to enhance the chocolate flavor, even if you can’t taste it.
I don’t drink coffee for religious reasons, but I still add just a tiny bit of Baking Espresso Powder, and it really does deepen the chocolate flavor. Here’s why I love it:
- No bitterness like regular coffee
- Conveniently stored in a jar
- Adds richness and depth without tasting like coffee
Tips for A Perfect Chocolate Cake

- Always start by sifting your dry ingredients for a cake. This is especially important when making chocolate cake from scratch, as the cocoa powder often has lumps and you want a perfect cake texture.
- Please note that cake flour will not work in this recipe. Cake flour is too fine and cannot hold up the chocolate cake. All-purpose flour is a must here.
- When making the chocolate cake frosting, it’s important that you use real butter and full-fat cream cheese. You need the fat in both to create a fluffy, rich frosting. I’m not sure how the chocolate frosting will turn out if you use margarine and/or low-fat cream cheese.

How to Store Chocolate Cake
Chocolate cake will stay fresh at room temperature for up to 2 days if it’s covered. After that, it should be refrigerated to maintain its texture and flavor. A whole cake can be stored in the fridge for up to 1 week when covered with foil, plastic wrap, or placed in an airtight container. For cut and frosted cake, the best method is to slice it with a sharp knife, wrap each piece individually in plastic wrap, and place in the refrigerator. This keeps the slices moist and makes them easy to grab whenever you want a piece.
For longer storage, chocolate cake freezes beautifully. Frosted cake can be kept in the freezer for up to 3 months. First, place the cake in the freezer uncovered until it’s completely solid, then wrap it tightly in plastic wrap followed by a layer of aluminum foil to prevent freezer burn. When you’re ready to enjoy it, just thaw the cake at room temperature and serve.

Whether it’s a holiday, birthday, or just a Tuesday, this chocolate cake makes every moment feel special!
More Easy Cake Recipes:
- Our Favorite Cake Recipes!
- Flourless Chocolate Cake
- Cinnamon Roll Sheet Cake
- Easy Carrot Cake
- Banana Cake Recipe with Cream Cheese Frosting






Just baked it! Followed exact recipe and wouldn’t change a thing! Hubby approved and I will have this on regular rotation! Thanks for sharing!
Yay! Thank you so much for the feedback!
What is the temp and baking time for a bundt cake?
Hello! You’ll probably have a little too much batter, so don’t over fill the bundt pan. Any extra batter can be made into cupcakes. A bundt cake will take a little longer to bake than the 9 inch rounds. Bake for 50-60 minutes depending on the size of your bundt pan. Start checking it at 50 minutes and you’ll want a toothpick to come out the cake with just a few moist crumbs. Enjoy!!
I’ve made this cake a few times now and we love it! Thanks for the recipe:)
Thank you so much Nancy!
I love love love your recipes, never failed me yet I’m going to try this for my dad’s bday next weekend. I was hoping to make the cake 2 days before and then frost it on his actual bday. Should I freeze the rounds, or just leave them in the fridge before hand? Any tips would be great!
Hi Kat! I would freeze them for sure. Wrap them well in plastic wrap. They will be easier to frost when they are frozen too! Enjoy!
Ok! I made this, froze it as recommended. I did try making the frosting with 4 cups of powdered sugar first because I hate overly sweet things. I ended up adding 3 more to equal 7 cups as called for- the cocoa powder needed a counteract for the bitterness.
My dad loved it, said I should become a baker (I won’t but that was sweet) My sister took home extra (3 slices), my brother who admittedly doesn’t usually like chocolate took home a giant slice. This was a big hit- thank you so much for perfecting this!!! Can’t wait to savor what is left 🙂
Hi Kat! You have made my day! Thank you so much for taking time to leave us feedback and I’m so glad this cake was hit with your family!
7-8 cups of powdered sugar in the frostng, would that be too sweet?
I find that it needs it to balance out the bitterness of the cocoa powder, but you could try the recipe with less and then add more until it is the sweetness you desire.
Our new go to cake recipe! Incredibly delicious and a fan favorite!
Thank you so much Kelly! It is a favorite in our house!
I bought what I thought was butter, but I think it may be margarine (the label is quite vague), and I was wondering if i could substitute the butter for margarine?
Hello! You can but it will definitely change the texture of the cake. It will be less tender.
Hello there,
This sounds like a wonderful cake recipe. I just can’t wait to make it.
Can this be baked in a bundt pan. If it can would the time on the baking change?
Hi Vicki! You’re going to love this cake! It can definitely be made in bundt pan. You’ll probably have a little too much batter, so don’t over fill the bundt pan. Any extra batter can be made into cupcakes. A bundt cake will take a little longer to bake than the 9 inch rounds. Bake for 50-60 minutes depending on the size of your bundt pan. Start checking it at 50 minutes and you’ll want a toothpick to come out the cake with just a few moist crumbs. Enjoy!!
I wanted to make the cake chocolate orange flavored, so I added zest from a few oranges, plus the warmed orange juice, and some water, to total the amount is required water.
I can’t taste any orange, the chocolate overpowers everything.
Any suggestions?
Hi George! You could try adding orange extract to the cake. I haven’t tried adding orange to this recipe, so I can’t say for sure.
Hi…
The only espresso powder I could find locally was an instant espresso powder from walmart. Would that be ok? If not, there are so many on Amazon can you recommend one. I usually use coffee, but would love to try your recipe. I use homemade chocolate cakes to make ice cream cakes, so they have to be moist!
Also, I only have 8×8 square pans. I don’t guess there’s any way to adjust the recipe is there? Thanks.
Hi Pam! The type of espresso powder I prefer is an instant espresso powder so I’m sure what you bought will work great. This is the brand I use: https://www.amazon.com/gp/product/B01MV9H44J/ref=as_li_qf_asin_il_tl?ie=UTF8&tag=ohsweetbasil-20&creative=9325&linkCode=as2&creativeASIN=B01MV9H44J&linkId=836fa7db6d8eedcd80443dab77ecdaae.
The 8×8 square pans will work just fine. It can also be baked as a 9×13. Enjoy!