This classic recipe pairs delicious moist chocolatey cake layers with a rich and silky chocolate buttercream. It’s the only chocolate cake recipe you will ever need!

There are few things more comforting in this world than good old chocolate cake. It is, in fact, one of my most favorite things to eat. The classic combo of chocolate + chocolate is truly the best.
I’m so excited to share my favorite homemade chocolate cake recipe with you. It is delicate yet sturdy, with a perfect crumb, and full of flavor. I’ve been using this one for years and I love it. The best part? It’s super easy to whip together and bakes up perfectly every time.
Whether you’re celebrating a special occasion or satisfying a chocolate craving, this recipe is all you need.

How to Make the Best Chocolate Cake
This recipe uses a simple mixing method and simple ingredients. You don’t have to worry about creaming butter and sugar or alternating flour and milk. You just:
- Combine the dry ingredients
- Combine the wet ingredients
- Mix both together and bake
You can make this cake either using a stand mixer or just by hand using a large bowl or two.
If you prefer, you can use hot coffee instead of hot water. It is commonly used in this type of recipe and helps enhance the chocolate flavor a bit. I’m usually too lazy to make coffee and I find the hot water version perfectly delicious. Alternatively, you can dissolve 1 Tbsp of instant espresso powder in the hot water.
Buttermilk is needed for this recipe and can’t be replaced with regular milk. If you don’t have buttermilk at home read through the FAQ section below on how to make your own.
Cake Tip!
The cake batter will be very thin and liquid. This is normal! The batter also rises a lot so be sure not to fill your pans more than half full or so.
This recipe is a crowd-pleaser and a fan favorite. It will go perfectly with almost any flavor of frosting. Today, I’ve paired it with a classic chocolate Swiss meringue buttercream.

Chocolate Swiss Meringue Buttercream
This chocolate buttercream recipe is pure heaven. It is seriously SO good that you’ll be eating it with a spoon. I’ve made chocolate Swiss meringue buttercream in the past, but have always struggled a bit getting it to look and taste very chocolatey. With American chocolate buttercream, it’s easier to achieve that fudgy flavor and color.
If you’d like to enhance the chocolate flavor even more you can add a bit of cocoa powder to the buttercream like I did here in my German Chocolate Cake. You can just add it 1 Tbsp at a time until you get the desired flavor or color.
If you want a darker chocolate frosting you can also add some chocolate brown color gel to it. I don’t find it necessary, but it’s an option.
If you prefer an easier frosting, I have a great recipe for an American-style easy chocolate buttercream that you can use instead. Or, if you want something even richer, you can pair it with a chocolate ganache frosting.
Whatever frosting you choose, I do recommend using high quality chocolate for the buttercream as it will really improve the flavor and texture.

Be sure to use the best quality chocolate you can get your hands on. This typically excludes anything you’d find in your local grocery store, but Lindt will do if you don’t have access to anything else. When I’m using chocolate in ganache or frosting, I like to use a high-quality semi sweet chocolate from Callebaut which is readily available to me.
A high-quality chocolate will really enhance the flavor and texture of your cakes, cookies, and frostings. Other brands I like to use are Valhrona, Cacao Barry, and Ghirardelli.

This deliciously moist chocolate cake recipe is a reader favorite and in my top 5 favorite cakes of all time. Perfect for the chocolate cake lover in your life. I am sure you will love it as much as I do!
Frequently Asked Questions
How can I convert this recipe?
- You can use this recipe to make a three-layer 6″ cake instead, but make sure your cake pans are 3″ tall. Or use this recipe here.
- To make cupcakes, all you need to do is reduce the baking time — start checking at 15mins or so. The recipe will make 18-24 cupcakes depending on size.
- For other conversions go here. Bake time may vary depending on pan size.
Can I make it in advance?
- The cooled cake layers can be baked ahead of time, double wrapped in plastic wrap, and frozen for up to 3 months. Take out 2-3 hours before assembly.
- The frosting can be placed in an airtight container and refrigerated for 1 week or frozen for 3 months. Bring to room temperature and rewhip before using.
- The finished cake (whole or sliced, stored airtight) can be frozen for up to 3 months.
Can I get the measurements by weight/grams?
- There is a Metric option in the recipe card. If you click it it will convert everything to grams.
- This conversion is done automatically and I cannot guarantee the accuracy but many readers have had success using the metric option for this recipe.
What if I don’t have Dutch-process cocoa powder?
- I like to use Dutch-process cocoa powder in all of my chocolate recipes, but most any kind of cocoa powder will work just fine.
- Dutch-process has had some of the acid stripped from it and yields a richer flavor overall. Again, it won’t make or break the recipe to use regular cocoa powder here.
What if I don’t have buttermilk?
- Buttermilk is not optional and cannot be swapped for milk as it will affect the overall result.
- For best results, use actual buttermilk, but if you don’t have any you can make your own at home by combining 1 cup of milk (whole milk ideally, but I often just use 1%) with 1 Tbsp of lemon juice or vinegar and letting it sit for 10mins.
Can I use hot coffee instead of hot water?
- You’ll often see this kind of chocolate cake recipe using hot coffee instead of hot water in the batter, and you can use either.
Does the sugar get mixed with the wet or dry ingredients?
- I combine the granulated sugar with the dry ingredients.
Tips for making this Homemade Chocolate Cake Recipe
- The cake batter will be very thin and liquid. This is normal! It also rises a lot so be sure not to fill your pans more than half full or so.
- If you’d prefer to use an American-style buttercream with this chocolate cake you can double my Easy Chocolate Buttercream Frosting recipe.
- I used a 1M tip to create the frosting effect on the side of the cake.
- Be sure to use room temperature ingredients unless specified.
- I like to prepare my cake pans using Homemade Cake Release and line with parchment paper.
- Be sure to check my Swiss Meringue Buttercream post for tips and troubleshooting.
- Learn how to keep your cakes moist using Simple Syrup.
- To help ensure your cake layers bake up nice and flat, check out my How to Bake Flat Cake Layers post!

Homemade Chocolate Cake Recipe
Ingredients
Chocolate Cake:
- 2 cups all-purpose flour
- 2 cups granulated sugar
- 3/4 cup Dutch-processed cocoa powder sifted
- 2 tsp baking soda
- 1 tsp baking powder
- 1 tsp salt
- 1/2 cup vegetable oil
- 1 cup buttermilk room temperature
- 1 cup hot water or hot coffee
- 2 large eggs room temperature
- 2 tsp vanilla extract
Chocolate Swiss Meringue Buttercream:
- 6 large egg whites
- 2 cups granulated sugar
- 2 cups unsalted butter room temperature
- 10 oz good quality dark chocolate chopped, melted, cooled
Assembly:
- chocolate curls or sprinkles
Instructions
Chocolate Cake:
- Preheat oven to 350F, grease two 8-inch cake pans and dust with cocoa powder. Line bottoms with parchment paper.
- Place all dry ingredients into the bowl of an electric mixer fitted with a paddle attachment. Stir to combine.
- In a medium bowl whisk all wet ingredients (pour hot water/coffee in slowly as not to cook the eggs).
- Add wet ingredients to dry and mix on medium for 2-3 mins. Batter will be very thin.
- Divide batter evenly in your prepared pans. I used a kitchen scale to ensure the batter is evenly distributed.
- Bake for 40-45 mins or until a cake tester comes out mostly clean.
- Cool 10 minutes in the pans then turn out onto a cooling rack to cool completely.
Chocolate Swiss Meringue Buttercream:
- Place egg whites and sugar into the bowl of a stand mixer, whisk until combined.*
- Place bowl over a double boiler on the stove and whisk constantly until the mixture is hot and no longer grainy to the touch (approx. 3mins). Or registers 160F on a candy thermometer.
- Place bowl on your stand mixer and whisk on med-high until the meringue is stiff and cooled (the bowl is no longer warm to the touch (approx. 5-10mins)).
- Switch to paddle attachment. Slowly add cubed butter and mix until smooth.**
- Add cooled melted chocolate and whip until smooth.
Assembly:
- Place a layer of cake on a cake stand or serving plate. Top with approx. 1 cup of buttercream and spread evenly. Place the second layer on top and do a thin crumb coat on the cake. Chill for 20mins.
- Place 1 cup of frosting on top and spread evenly. Smooth the sides and flatten the top, then use a large offset spatula to do a swirl pattern on top.
- Using a piping bag fitted with a 1M tip, pipe rows of frosting around the cake, starting at the bottom. Apply even pressure as you rotate your turntable. Continue working your way up the cake to the top, making sure the seams all align at the back.
- Decorate the top with chocolate curls, pearls, and flakes if desired.
karen lukacs says
I am making cupcakes for a club get together and would like to know if this recipe works well for cupcakes. I need 36 cupcakes – would doubling the recipe sound right? What would be your suggestion re time and temperature. Thanks!
Olivia says
Hi Karen! It should work fine for cupcakes! Converting pan sizes is always tricky. Here’s a site I use as a guideline: http://www.joyofbaking.com/PanSizes.html Temperature should stay the same — for time I would start checking at 15mins.
Sarah says
I’m making a black forest cake for an event. It’s something I’ve made before, but I wasn’t happy with the actual chocolate cake portion of that recipe. Would this be a good cake to make instead for something like that? I brush the layers with kirsch and coat it all in whipped cream. I just want to make sure the chocolate cake is a good supporting character and not overwhelming. Thank you!
Olivia says
Hi Sarah! What didn’t you like about the black forest cake? This is pretty much the same chocolate cake recipe.
Anna says
I have made your mocha chocolate cake the night before an event and have let it sit on the counter about an hour before I’ve served it. Do you recommend making this the night before as well? Iam just worried about the frosting.
I can’t wait to try this recipe!!
Olivia says
Hi Anna! The mocha cake has a similar style frosting to this one. You can make this one in advance too if you like!
Anna says
Oh my!! I made this cake last night. All I can say is amazing! Thanks for this recipe 😀
Olivia says
So happy to hear that you liked it, Anna!
Hannah says
Hey , if I wanted to make this recipe but with bigger tins for an event would I have to double the recipe,
And is this recipe okay for putting fondant on top
Thanks:)
Olivia says
Hi Hannah! What size tins are you wanting to use? Converting pan sizes is always tricky. Here’s a site I use as a guideline: http://www.joyofbaking.com/PanSizes.html It should work fine with fondant!
Serena says
Hello, I can’t seem to find the buttercream recipe in this chocolate cake recipe. Did I skip or something?
I read portions where it was mentioned but didn’t actually find it. A little help please.
Olivia says
Hi Serena! The buttercream recipe is listed right below the cake one in the same recipe card.
Brenda says
I learned about your blog through the Brown-Eyed Baker’s blog. After looking through several of your recipes, I decided to make this cake for my in-laws’ anniversary. This is the moistest chocolate cake I have ever made. I used your advice and cut strips of terry cloth towel, soaked it in water and wrapped them around my pans. My cakes came out completely level. Thanks for sharing an amazing recipe and helpful hint. I am looking forward to trying more of your recipes.
Olivia says
Hi Brenda! So happy to hear that your cakes baked flat and that you liked this recipe!! Thanks for the feedback, I can’t wait to hear what else you try!
Coleta Marie says
what does it mean to do a thin crumb coat
Olivia says
Hi Coleta! It’s a thin coat of frosting all around the cake to lock in any loose crumbs so that your final coat is crumb-free 🙂
Gino Missana says
Hi Olivia,
Many years ago I used to work at a restaurant that doesn’t exist before and they had this cake called a Belgian Layer cake that was a bit dense and somewhat dry but was full of chocolate flavour. I have tried to find something like this online but no luck. Have your heard of a drier, denser version of traditional chocolate layer cake like this?
Thank you,
Gino
Olivia says
Hi Gino! Hmmm, no that doesn’t sound familiar to me. I wonder if it was more of a brownie consistency?
Lily says
This is probably the best cake that I have ever tasted. I didn’t make the frosting (I didn’t have enough eggs) but the cake turned out amazingly.
Olivia says
So glad you liked it Lily! 🙂
Caitlin says
I made this cake for my son’s birthday last weekend. Ridiculously delicious! That frosting!!!! Everyone loved it. Will be my go to chocolate cake.
Olivia says
So happy to hear that everyone liked it!
Kimm says
I have to make a 2 tier wedding cake. Would this chocolate cake recipe be firm and dense enough for a wedding cake filled with strawberry mousse?
Olivia says
Hi Kimm! I find the cakes quite dense and moist, but maybe not necessarily firm. If stacked and supported properly I think it would work fine though!
Anna says
Just perfect!!! Thank you very much for sharing 😍
Olivia says
Thanks Anna!
Ambika Roy Johri says
Hi! That’s lovely cake. I desperately want to try this one… However, am allergic to eggs. Can u please help me with a replacement of eggs. I could alreadu see the use of buttermilk so i can increase its quantity or shall i replace it with something else. Could you please specify the role of eggs in this recipe. May be that could help me decide on an alternative to eggs. Hoping to hear soon.
Olivia says
Hi Ambika! I’ve never used an egg substitute so I don’t want to advise you wrong. I would look up egg substitutes for baking and see if there’s something you can try 🙂
Jessica Richmond says
I hesitate to give allergy advice, only report my experience. I am also allergic to eggs, but found out a few years ago that it’s actually only specifically chicken eggs. I tried duck eggs (keeping Benadryl and my epipen handy!) and found that I had no reaction. Experiment with this at your discretion!
Esha says
I made this cake today..and it was just WoW..
Thank you for sharing..
Olivia says
Hi Esha! So happy you liked it 🙂
kayle says
iḿ planning on making this cake with my cousin, just for fun. i was wondering about the metric measurements. the recipe calls for 64.5 g of cocoa powder. since my scale doesn’t have decimals can i be able to round it to 65 g. hopefully you i’m not confusing you with my question.
Olivia says
Hi Kayle! 65g would be totally fine. Let me know how you like it!
Cindy Rodriguez says
What a gorgeous cake! I love the piping of the frosting creating that texture. Must try this one!
Olivia says
Ah thanks so much Cindy! I’m really happy with how it turned out 🙂
Cathy says
Hello Liv I love to bake and have recently started a cake decorating class to add to my repertoire. I bought 9 x 3 round cake pans for my practice cakes. Do you have a tried and true temperature and time for this size pan? Since the pans are deeper I’m guessing they would bake a little longer. I’ve never used the baking strips and wonder if the 1,5” strip would work on the 3” pan.
Olivia says
Hi Cathy! The baking time would really just depend on how much batter you had in those pans. If you used this particular recipe for two 9″ pans, your layers would actually be thinner so you’d need to bake for less time. If that makes sense. I think the baking strips would work just fine on the pans you have!
Courtney says
I love this cake! I’ve made it a million times in your 3 layer 6” recipe. How much do I increase the ingredients to make it a 3 layer 8” cake?
Olivia says
Hi Courtney! So glad you like it!! I would 1.5x this recipe to get three 8″ layers. For ease, you can adjust the “servings” slider to 18 to get the amounts.
Courtney says
Thank you so much!
Tiffany says
I was on the lookout for a new chocolate cake recipie. While tasty, I haven’t been happy with how my other turned out.Yours was a very similar recipie but with increased amounts of the dry ingredients which gave me hope for something with a little more structure. Used this for a 3 layer, 9 in cake and the layers baked up so beautifully! 😍 Thank you!
Olivia says
Hi Tiffany! So happy to hear you liked it 🙂
Ana says
I saw this beautiful cake on your Instagram so I rushed over to check out the recipe! It’s gorgeous – another one of your masterpieces, Liv – love that decorating style! 🙂
Olivia says
Thanks so much Ana! I love the style too 🙂 xo
Anna says
Amazing!
i was in class when i was think of cake then i looked at it and hoped that i can make it and i tried it……IT WAS AMAZING!
Olivia says
Yay! So happy you loved it 🙂