Free Bonus: Back to School?! Breakfast, Snack, and Easy Dinners for this Fall.

The Most Perfect Moist Chocolate Cake [+Video]

172 Reviews

Homemade Chocolate Cake like this is not easy to find. This is the Most Perfect Moist Chocolate Cake recipe, and that’s coming from an obsessed cake tester!

A big, tall slice of chocolate layer cake with chocolate frosting. Each layer is frosted with thick chocolate frosting and the slice is sitting on a white dessert plate.

Moist Chocolate Cake Recipe with Chocolate Frosting

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’re needing 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.)

Everyone I know loves a moist chocolate cake with cream cheese frosting, but no one has great luck with a homemade chocolate cake without just using a cake mix. I am crazy giddy to share all of my secrets! 

Don’t go crazy, but this is a chocolate cake recipe without butter. That’s for a very specific reason. As much as I thought that butter would be all the difference in flavor, it just wasn’t the truth. The flavor didn’t count enough for how much the cake lacked moisture. 

Apparently butter doesn’t make cakes moister, which makes sense. Butter has a high water content that evaporates as steam in the baking process so it can’t keep the moisture like an oil can. If you really want to use butter you can, just use equal amounts or half and half, but all oil did lead to a better chocolate layer cake!

A chocolate layer cake with chocolate frosting. Several pieces have been cut from the cake exposing the moist, chocolaty inside. Each layer is frosted with the same creamy chocolate frosting that frosts the whole cake.

Homemade Chocolate Cake Ingredients

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.

Here’s what you’ll need to make this moist chocolate cake recipe: 

  1. All-Purpose Flour: I’ve tested all sorts of flours but had the worst luck in a chocolate cake with cake flour.  
  2. Unsweetened Natural Cocoa Powder: Do not use dutch-process cocoa powder, but opt for an unsweetened cocoa powder, which will give a better rise. Try Hershey’s or a similar brand just in the grocery store. Not crazy trip to a gourmet store needed.
  3. Espresso Powder: Espresso powder is optional, but listen, as one who does not drink coffee for religious reasons I really do believe this makes a difference in the chocolate flavor.
  4. Baking Soda Baking Powder: Yes, use both!!! I’ve tried many baking powder only and baking soda only chocolate cake recipes, but it was only in using both that it worked out. 
  5. Salt: Salt balances the flavor of sweet and actually makes this homemade chocolate cake taste better!
  6. Oil: I do not believe in using butter in this cake batter as anything with cocoa powder dries out the baked goods.
  7. Eggs: Use room temperature eggs to not shock the batter and help it better emulsify. I almost always forget, so I set them in a bowl of warm water while I start the recipe.
  8. Buttermilk: We tried all sorts of liquids and found that part water and part buttermilk made for a better cake. The acidity broke up the chocolate and resulted in a super moist chocolate cake.
  9. Hot Water: Hot liquid blooms the cocoa powder’s flavor. It’s just like how I bloom spices in a pan when cooking. It totally makes a big difference in flavor. In addition, it activates the espresso and helps to dissolve the cocoa powder.

A homemade chocolate cake with chocolate frosting. Several pieces have been cut from the cake exposing the moist, chocolaty inside. Each layer is frosted with the same creamy chocolate frosting that frosts the whole cake.

How to Make Chocolate Cake From Scratch

When making a chocolate cake, please don’t make substitutions the first time, this really is best chocolate cake recipe, and you need to know how the cake is going to turn out before meddling. If you must, please see our suggestions below. 🙂

  1. Preheat your oven to be certain it is at the perfect temperature by the time the cake bakes.
  2. Spray the bottoms of two to three 9″cake pans and then line with precut parchment paper and spray again, including the sides this time. (Note that if you’re doing a three layer chocolate cake, each layer will be thinner).
  3. Prepare your dry ingredients by using a mesh sieve to remove any lumps.
  4. In a mixing bowl, beat together eggs, buttermilk, hot water, oil and vanilla until smooth. 
  5. Add dry ingredients, mixing again. 
  6. Divide evenly into pans and bake. 
  7. Allow to cool for 10-15 minutes and then turn out onto a wire cooling rack.

How to Tell When Cake is Done Baking

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!

Can You Make Chocolate Cake Ahead of Time?

Yes!! I do this seriously all the time! Make and cover a cooled homemade chocolate cake with plastic wrap, then let it sit on the counter for 2 days or in the freezer for up to 2 months.

A whole moist chocolate cake with fluffy, dark chocolate frosting. The cake is on a white cake plate.

How to Make Chocolate Frosting

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. 

Here’s how to make chocolate cake frosting yourself: 

  1. Start with equally soft cream cheese and butter. Cream together until smooth. 
  2. Beat in remaining ingredients. 
  3. Add milk or cream as needed to make it just enough spreadable that it can be decorated on the cake without losing any of that thick goodness. 

A slice of chocolate layer cake with chocolate frosting. Chocolate frosting is spread between each layer and on the top and sides of the cake. There is a cake plate with chocolate cake in the background.

Do I Have to Include Espresso Powder in the Batter?

YES! You saw me start to mention it in the ingredients list, but this is one of the most important parts of having a chocolate cake taste extra chocolate-y.

Almost every single chocolate cake you order somewhere probably has coffee in it and you didn’t know. It’s because it big time enhances the chocolate flavor.

I buy this Baking Espresso Powder in the baking section of my grocery store or lately I just Amazon it. Here are the top reasons I love baking with it: 

  • It doesn’t have bitterness of real coffee.
  • It’s easily stored in a convenient jar.
  • It has no coffee flavor.

What Can You Substitute for Buttermilk?

The best substitute for buttermilk is milk and vinegar or lemon juice. For each cup of buttermilk, use 1 tablespoon of white vinegar or lemon juice plus enough milk to measure 1 cup. Stir, then let stand for 5 minutes.

Alternately, if you have sour cream on hand you can actually use a combination of milk and sour cream to make homemade buttermilk — use 50% of each to equal the amount of buttermilk. Actually, sour cream makes for an even denser cake so it’s really not a bad sub at all!

Can You Use Unsweetened Bakers Chocolate Instead Of Cocoa?

Yes, 1 ounce of unsweetened bakers chocolate equals 3 Tablespoons of cocoa. You should melt the bakers chocolate and add it when you add the sugar and butter, or oil. 

A close-up of the top of a moist chocolate cake that is frosted with beautiful chocolate frosting.

How to Store Chocolate Cake

Only leave chocolate cake out if you cover it and for only 2 days. Refrigeration is absolutely unnecessary. 

The best way to store frosted cake that has been cut is actually to continue cutting into slices. Next, individually wrap each slice in plastic wrap and store in the fridge for up to 1 week.

Can You Freeze Frosted Cake?

Yes, frosted cake will keep in the freezer for up to 3 months. You should put the chocolate cake with chocolate frosting in the freezer uncovered, let it freeze completely, and then wrap in plastic wrap and foil.

How Long Will Chocolate Cake Last?

Fresh baked chocolate cake will keep for about 1 week in the refrigerator. It should be covered with foil or plastic wrap to keep it from drying out.

A chocolate layer cake with chocolate frosting.

Tips for Making a Moist 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. 

More Easy Cake Recipes: 

 
A slice of three-layered chocolate cake with chocolate frosting. Chocolate frosting is spread between each layer and on the top and sides of the cake. There is a cake plate with chocolate cake in the background.

The Most Perfect Moist Chocolate Cake

3.56 from 172 votes
Prep Time: 10 minutes
Cook Time: 35 minutes
Total Time: 45 minutes
Servings: 24
This is a perfectly moist chocolate cake recipe that has the BEST chocolate frosting I've ever had! So easy to make, and totally homemade!

Ingredients

Chocolate Cake:

  • 3 Cups All-Purpose Flour
  • 3 Cups Granulated Sugar
  • 1 1/2 Cups Unsweetened Cocoa Powder
  • 1 Tablespoon Baking Soda
  • 1 1/2 teaspoons Baking Powder
  • 1 1/2 teaspoons Salt
  • 4 large Eggs , room temperature
  • 1 1/2 Cups Buttermilk
  • 1 1/2 Cups Warm Water
  • 1 teaspoon Espresso Powder
  • 1/2 Cup Vegetable Oil
  • 1 Tablespoon Vanilla Extract

Chocolate Frosting:

  • 1 Cup Unsalted Butter , softened
  • 1 Pinch Salt
  • 12 oz. Cream Cheese
  • 1 1/4 Cup Unsweetened Cocoa Powder
  • 2 teaspoons Vanilla Extract
  • 7-8 Cups Powdered Sugar
  • 1-2 Tablespoons Whole Milk , more if needed

Instructions

For the Cake:

  • Preheat oven to 350 degrees F.
  • Butter three 9-inch round cake pans and dust with flour, dumping out excess. 
  • Mix flour, sugar, cocoa, baking soda, baking powder and salt in a bowl. 
  • In a standing mixer, mix the eggs, buttermilk, warm water, espresso powder, oil and vanilla until combined. 
  • Add the dry ingredients and mix until smooth. 
  • Divide batter evenly between three pans. * (see note)
  • Bake for 30-35 minutes, or until an inserted toothpick comes out clean.
  • Cool on wire racks, then after 20 minutes turn out to cool completely.
  • Frost and enjoy!

For the Frosting:

  • In a large bowl using a hand mixer, beat the butter and cream cheese until fluffy. 
  • Add in the cocoa powder, powdered sugar and vanilla extract, beating until smooth and adding 1 tablespoon at a time of milk if needed to make it spreadable.

Notes

*Note: it took me 3 heaping cups of batter per pan.
Cake will keep in the pantry for 5 days. Cover well.
Nutrition Facts
The Most Perfect Moist Chocolate Cake
Amount Per Serving (1 g)
Calories 491 Calories from Fat 180
% Daily Value*
Fat 20g31%
Saturated Fat 13g81%
Cholesterol 65mg22%
Sodium 428mg19%
Potassium 246mg7%
Carbohydrates 79g26%
Fiber 4g17%
Sugar 61g68%
Protein 6g12%
Vitamin A 491IU10%
Calcium 64mg6%
Iron 2mg11%
* Percent Daily Values are based on a 2000 calorie diet.

We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.

Oh, Sweet Basil on Instagram

Want more of our family, recipes, and all our shenanigans?

Check us out on Instagram and be sure to tag us @ohsweetbasil #ohsweetbasil for a chance to be featured!

Free Email Series Back to School?! Breakfast, Snack, and Easy Dinners for this Fall.

About the authors

carrian feik cheney oh sweet basil

Cade and Carrian have three children and love to spend time together whether it’s vacationing or snuggled up on the couch for a good movie.

And this family especially loves to eat.

They love everything from the keep you fit and healthy to the get out your sweat pants indulgent and everything in between.

But most of all, they love the memories made, shared and treasured and it’s all thanks to a meal shared together with loved ones.

Leave a comment

Recipe Rating




26 comments

  • I’ve been baking for over 50 years and have baked thousands and thousands of chocolate cakes. I’ve always been looking for a recipe to duplicate the best chocolate cake I ever had from a restaurant that is no longer in business. This is that cake. Trust me, this is the best chocolate cake you will ever make. I didn’t have espresso powder and used instant coffee. It was perfection!

    • Reply
    • Sherry!! You’ve made my day! Thank you so much! It dangerously delicious! Thank you for taking time to leave us a comment!

      • Reply
  • Hi Carrian,

    I live in Salt Lake City – will this cake recipe work at high altitude as written or do I need to make changes?

    Looks amazing and I want to try it! 🙂

    thank you!

    • Reply
    • Hey Deb! We are in Lehi and make it just as written. You should be good!

      • Reply
  • Why can’t I print the recipe using the ‘print recipe’ button. All that comes up is the shopping list. That is not the recipe. A recipe includes the directions.

    • Reply
    • There must be an issue with the link, I’ll look into it!!

      • Reply
  • I am trying to understand the size of the cake and what round pan sizes it would work with. Could I use three 8-inch rounds? Could I use only 2 8-inch rounds? Could I use only 2 9-inch rounds?

    • Reply
    • I use 3 9-inch pans. You can adjust the pan size but it will change the cook time a bit since the batter will be a bit thicker.

      • Reply
  • For this cake, what brand of all-purpose flour do you recommend? King Arthur’s all-purpose flour has a protein content of 11.7% and White Lily’s all-purpose flour has a protein content of 9%. That is a wide range for all-purpose.

    • Reply
  • Delicious recipe – the perfect density and not too sweet. I made 36 cupcakes instead of a cake, and only a half batch of frosting which was plenty. I don’t bake a lot, but I’ll come back to this recipe again.

    • Reply
    • Amazing! I’m so glad you liked it!!!

      • Reply
  • is it really EIGHT cups of powdered sugar or is that a typo? do you know roughly how much that would be in weight?

    • Reply
    • Yes 8 is correct!! Haha and I’m not sure what the weight would be.

      • Reply
  • Are dry ingredients sifted before or after measuring out?

    • Reply
    • Sift them before adding to the wet ingredients!

      • Reply
  • Can you put batter in one pan

    • Reply
  • Disappointed you don’t use weight for your measurements

    • Reply
    • Hey! Sorry to disappoint! Most of our viewers don’t have a scale available and it’s easier to do measurements. 🙂

      • Reply
      • 8 cups of 10x is 2 lbs., if you prefer to weigh, just google the conversion, either ounces or grams whichever you prefer.

  • What would be the best way to make this into some combination of a smaller cake and cupcakes to give to a friend? I have 6 inch cake pans and 9 inch cake pans. Could I do half the batter in the 6 inch cake pans with 2 layers and half in the cupcakes? If so would the baking time change? And if I need to give my friend the cupcakes a few days later do you recommend I store them in the fridge without the frosting until the day of? Thanks! Can’t wait to make this!

    • Reply
    • Yes that would work great! Cupcakes take about 15-18 minutes to cook! Let me know how they turn out!!

      • Reply
  • Can I make this in a 9x 13 pan?

    • Reply
    • Oh good question! I think it will be too much volume for a 9×13. You could fill a 9×13 about 2/3 full and then put the remaining in cupcakes or a smaller baking dish maybe.

      • Reply
  • I’ve baked many a cake, but this is the BEST cake I’ve ever made. Moist, rich with chocolate flavor and the frosting is a creamy, dreamy delight. Stop looking for chocolate cake recipes. You’re home.

    • Reply
  • Hi! Could I use strong brewed coffee instead of the water and espresso powder? Can’t wait to try this recipe!

    • Reply
    • Hi Cathy! Yes, that will work great! Enjoy!

      • Reply

Free Email Series Back to School?! Breakfast, Snack, and Easy Dinners for this Fall.