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.
Caryn says
Is this recipe correct? 2 cups of flour and 2 cups of liquids (with the other ingredients, of course)??? It was thin like chocolate milk. I poured the batter into a sheet pan, so maybe that’s what went wrong. But the cake would NEVER cook with so much liquid and I ended up throwing the entire cake in the garbage. I’ve never had to throw away cake before, but this was unsalvageable in any form – I couldn’t even use it for cake pops. I have made a few of your cakes before, always with stellar results. So I am completely perplexed as to how I screwed this up.
Olivia says
Hi Caryn! The batter is supposed to be very thin and liquid. I mention this multiple times in the post. It also rises a lot and should double in size. I haven’t baked it in a sheet pan myself but it sounds like maybe it needed more time in the oven?
Gabriella says
I made this recipe and love it, huge hit with the family.
I was wondering if I were to double the measurements do I need bigger baking pans like 9in or 10in
Olivia says
Hi Gabriella! Yes you definitely need bigger pans if you double. Or more pans. Converting pan sizes is always tricky. Here are some sites I use as a guideline:
http://www.joyofbaking.com/PanSizes.html
https://www.cookipedia.co.uk/recipes_wiki/Cake_tin_conversion_charts
Justine Ronald says
Hello! I’ve made this chocolate cake recipe before and it was phenomenal! But I can’t remember what I used for the temperature, what should it be in degrees Celsius?
Olivia says
Hi Justine! 350F is about 175C.
Justine Ronald says
Thank you so much!!!!
Krista says
Excited to make this! Does it matter if I use bar chocolate or chips for the frosting?
Olivia says
Hi Krista! Either will work but I do recommend high quality chocolate for it 🙂
Krista says
Great thank you! I was going to use Ghirardelli bittersweet and it came in both chips and bar (I use the bar for your ganaches) so wanted to double check. Thank you so much!
Olivia says
Those will be perfect 🙂
Mary-Jane says
Hi Olivia 🙂 I’m looking at making this cake for my birthday next week. The recipe states to use granulated sugar, is that the same as UK granulated sugar or should I use caster sugar (slightly finer than our granulated sugar but not as fine as powdered sugar) thanks!
Olivia says
Hi Mary-Jane! You can use caster sugar. Happy early birthday to you!
Alyssa says
Hello
I want to make a 3 layer cake using 9 in cake pans.
would I just double the recipe to get 3 really nice tall layers?
(I want to use this recipe to make a german chocolate cake would it be able to hold the weight of the coconut filling?)
Olivia says
Hi Alyssa! Converting pan sizes is always tricky. Here are some sites I use as a guideline:
http://www.joyofbaking.com/PanSizes.html
https://www.cookipedia.co.uk/recipes_wiki/Cake_tin_conversion_charts
I have used this recipe to make a German Chocolate Cake before without issue: https://livforcake.com/german-chocolate-cake/