The BEST Chocolate Cake
A recipe and tutorial on how to make my favorite chocolate cake with a simple homemade chocolate buttercream frosting. This recipe is easy to make and turns out perfect every single time!
If you’ve ever felt intimidated when it comes to making cakes from scratch I promise that it’s not too hard. Sure it takes a little extra time, but the feeling of baking something completely from scratch is completely worth it.
So today I wanted to share my updated homemade chocolate cake recipe with you. You’ll love this simple recipe because it’s:
- Incredibly soft, light, and fluffy
- Super moist
- Made completely from scratch
- You can make the cake layers in one bowl using just a whisk
- And it’s the best chocolate cake you will every try!
I’ve also included step-by-step instructions showing you how to make the cake and frost it. And if you don’t want to bake a three-layer cake, I’ve included directions for how to bake this cake in different-sized pans too.
Ingredients For This Recipe
While this may seem like quite a few ingredients, I promise this cake isn’t difficult! Let’s break down each ingredient you will need for this easy chocolate cake:
- All-Purpose Flour: This is what provides the structure for the cake. As always, when measuring your flour make sure to use the spoon and level method. Too much flour can lead to a dense cake instead of a soft, light, and fluffy cake.
- Natural Unsweetened Cocoa Powder: This is what provides the chocolate flavor! I highly recommend using natural unsweetened cocoa powder instead of Dutch-processed cocoa powder. This will ensure that the cake has enough acidity in it to rise properly. I explain more about the difference between the two kinds of cocoa powder here.
- Baking Soda, Baking Powder, & Salt: I’ve tested this cake with varying levels of baking powder and baking soda and 1 and 1/2 teaspoons of each one is the perfect amount. There’s also some salt to help balance out the sweetness.
- Sugar: You’ll be using a mix of brown sugar and granulated sugar in this cake. The brown sugar adds moisture to the cake as well.
- Oil: I recommend sticking with a neutral flavored oil like canola or vegetable oil. Coconut oil will be fine too, but if you do use it, just be sure your other ingredients are at room temperature so that it doesn’t solidify when you mix everything together.
- Buttermilk: The buttermilk adds moisture and helps to create a tender crumb. If you don’t have any on hand, you can make your own with my homemade buttermilk substitute.
- Eggs & Vanilla: The eggs provide stability and the vanilla adds a little extra flavor.
- Boiling Water & Espresso Powder: The boiling water helps to bloom the cocoa powder and create a deeper, richer chocolate flavor. I also like to add some instant espresso powder which enhances the chocolate flavor even more. You can omit the espresso powder, but you’ll still want to add the boiling water if you do.
And for the chocolate buttercream frosting we’ll be using:
- Unsalted Butter: This will give you a beautiful buttery flavor in your buttercream frosting. I recommend sticking with unsalted butter for the frosting as well.
- Powdered Sugar: Also known as icing sugar or confectioner’s sugar this helps to sweeten the frosting and make it thicker so you can frost your cake and pipe decorations.
- Unsweetened Cocoa Powder: To add some chocolate flavor to the frosting.
- Heavy Whipping Cream & Vanilla Extract: The heavy whipping cream helps to thin out the frosting just a bit so it’s easier to spread and pipe. If you don’t have any heavy whipping cream on hand, you can use milk. You’ll also be using a little extra vanilla extract in the frosting.
How To Make A Chocolate Cake From Scratch
Once you’ve gathered your ingredients, it’s time to prepare your cake batter! Here’s a simple break down on how to make the chocolate cake layers:
- Grease and line your cake pans with parchment paper: This will make it much easier to remove the cake layers from the pan, trust me!
- Sift the dry ingredients together: This will help ensure that everything is well combined and remove any lumps of cocoa powder.
- Whisk in the sugars: I typically add sugar along with the wet ingredients, but I prefer to whisk the brown sugar and granulated in along with the dry ingredients in this cake.
- Add the wet ingredients (except for the boiling water): Once the dry ingredients and sugars are mixed together, you’ll mix in your buttermilk, oil, eggs, and vanilla extract. The batter will be very thick like the picture above on the right, similar to a fudgy brownie batter.
- Mix in the boiling water & espresso powder: For the last step, you’ll whisk together your boiling water and espresso powder, then mix it into the batter. The batter will be very thin at this point, this is okay!
- Pour the batter into your cake pans: Once the batter is ready, you’ll divide it evenly between your cake pans.
- Bake the cake layers: The baking time will vary depending on the pans that you use. For this recipe, I prefer to use three 8-inch cake pans which takes about 30 minutes. Two 9-inch cake pans will take about the same amount of time.
- Allow to cool: You’ll want to let the cake layers cool completely before adding the frosting.
While the cake layers are cooling you’ll prepare your frosting. For this cake, I used my chocolate buttercream frosting. If you’ve never made it before I have a full tutorial for how to make chocolate frosting here. Here’s what you’ll need to do to prepare the frosting:
- Beat the butter until smooth: This will help ensure a creamier, smoother frosting!
- Mix in the powdered sugar: I recommend mixing in the powdered sugar 1 cup at a time to ensure that it’s fully incorporated.
- Mix in the cocoa powder: Make sure to sift your cocoa powder first to remove any lumps, then mix it in. It helps to stop and scrape down the sides of the bowl at this point and mix again.
- Add the heavy whipping cream, vanilla, & salt: I just mix these in all at once. Feel free to stop and scrape down your bowl again if needed to make sure everything is fully combined.
How To Frost The Cake
Once the frosting is ready and the cake layers have cooled, you can assemble your cake. Want to make the frosting process a bit easier? Freeze your cake layers for 30 minutes to 1 hour before frosting your cake. This will make the layers firmer and it will be easier to spread the frosting on them. Here’s how I prefer to frost this cake:
- Level your cake layers: I like to use a cake leveler for this, but you can just use a knife to cut the tops off and level the layers.
- Place one of the cake layers on a cake stand or large plate: I like to place a cardboard cake board down first in case I need to transfer the cake somewhere else, but this is completely optional.
- Add the frosting & repeat with the other layers: Spread some of the frosting on top, then add another layer, spread more frosting on top of it, then add your final cake layer.
- Add the crumb coat: This is completely optional! A crumb coat is essentially a coat of frosting around your cake that catches any crumbs so they don’t end up in your final layer of frosting. Hence the name, crumb coat. I like to apply just a thin layer of frosting around the cake first to catch the crumbs.
- Frost the top and sides of your cake: Once your crumb coat is added, use the rest of your frosting to frost the top and sides of your cake. Feel free free to pipe some designs on top or around the bottom of the cake too!
Simple, right? You don’t have to have anything fancy to frost this cake either, I find that just an angled spatula is all you really need!
How To Bake In Different Size Pans
To make a three-layer chocolate cake, I used three 8-inch round cake pans. If you don’t have this size pan or want to use a different size pan, here’s how you’ll need to adjust the recipe and baking time.
- 9-inch cake pans: Divide the batter evenly between two 9-inch cake pans and bake at 350°F (177°C) for 28-32 minutes. My chocolate frosting recipe is enough to lightly frost a two-layer cake, but if you prefer more frosting I suggest multiplying that recipe by 1.5 for a thicker layer.
- 9×13 pan: Pour the batter into a 9×13 pan and bake at 350°F (177°C) for 35-40 minutes. Use just one batch of my chocolate frosting linked above.
- Cupcakes: Line cupcake or muffin pans with 32 cupcake liners. Evenly distribute the batter between all of the liners. Bake at 350°F (177°C) for 17-20 minutes. Want to make fewer cupcakes? You can use my chocolate cupcake recipe here to make just 16 cupcakes.
Different Frosting Options
Since this is a chocolate cake, I went with a chocolate buttercream frosting. If you want to try something else, here are a few other options:
- Vanilla Buttercream Frosting – this post includes a strawberry and caramel version too!
- Oreo Frosting
- Cream Cheese Frosting
- Coffee Frosting
- Chocolate Cream Cheese Frosting
- Stabilized Whipped Cream – for a lighter option.
- Chocolate Ganache – I recommend using the 1:1 ratio if you’re wanting to add a drip on the cake.
- Cookie Dough Frosting
How To Store And Freeze This Cake
You can store this cake in an airtight container at room temperature or in the refrigerator for up to 4 days. If you want to keep this cake fresh longer, then I recommend storing it in the refrigerator. Just keep in mind that if you store it in the refrigerator, you may want to set it out ahead of time so that it can come to room temperature before serving.
The cake layers and frosting will freeze well for up to 3 months. Thaw the cake layers and frosting overnight in the refrigerator, bring the frosting to room temperature, and mix well before frosting the cake layers. You can also freeze the frosted cake for up to 3 months, thaw overnight in the refrigerator and bring to room temperature before serving.
Baking Tips
- Make sure to spray your pans with nonstick cooking spray and line them with parchment paper to make it easy to remove the cakes from the pans.
- I prefer to level and freeze my cake layers for about 1 hour before frosting the cake. This will make the crumb coat dry quickly and make the layers firmer, so it’s much easier to frost the cake.
- To get clean slices of cake, place the cake in the refrigerator for 30 minutes to 1 hour after you frost it.
Recipe Video
Chocolate Cake
Ingredients
For the chocolate cake:
- 2 cups (250 grams) all-purpose flour, spooned & leveled
- 3/4 cup (65 grams) unsweetened cocoa powder
- 1 and 1/2 teaspoons baking soda
- 1 and 1/2 teaspoons baking powder
- 1 teaspoon salt
- 1 cup (200 grams) granulated sugar
- 1 cup (200 grams) brown sugar
- 1/2 cup (120ml) canola or vegetable oil
- 1 cup (240 ml) buttermilk
- 2 large eggs
- 2 teaspoons pure vanilla extract
- 1 cup (240 ml) boiling water
- 1 teaspoon instant espresso powder optional, but recommended
For the chocolate buttercream frosting:
- 2 cups (460 grams) unsalted butter, softened to room temperature
- 6 cups (720 grams) powdered sugar
- 1 cup (90 grams) unsweetened cocoa powder, sifted
- 6-7 tablespoons (90-105 ml) heavy whipping cream
- 2 teaspoons vanilla extract
- 1/4 teaspoon salt
Instructions
To make the chocolate cake:
- Preheat oven to 350°F (177°C). Spray three 8-inch cake pans with nonstick cooking spray and line the bottom of each pan with parchment paper. Set aside.
- In a large mixing bowl, sift together the flour, cocoa powder, baking powder, baking soda, and salt. Whisk in the granulated sugar and brown sugar until well combined. Then, add the oil, buttermilk, eggs, and vanilla extract and mix until just combined.
- Add the instant espresso powder to the cup of boiling water and mix until fully dissolved. Add to the mixing bowl and mix until everything is just combined. The batter will be thin.
- Evenly distribute the batter between all three cake pans. Bake at 350°F (177°C) for 28-30 minutes or until a toothpick inserted into the center of the cakes comes out clean and the tops spring back when lightly touched.
- Remove from the oven and transfer to a wire rack to cool completely.
To make the chocolate frosting:
- In the bowl of a stand mixer fitted with the paddle attachment, or in a large mixing bowl using an electric mixer, beat the butter on medium speed for 1-2 minutes or until smooth.
- Add the powdered sugar one cup at a time, making sure to mix well after each addition. Scrape down the sides of the bowl, then add the cocoa powder and mix until fully combined.
- Add the heavy whipping cream, vanilla extract, and salt and mix on medium speed until fully combined, making sure to scrape down the sides of the bowl as needed.
To assemble the cake:
- Level the tops of each cake with a knife or cake leveler. Place one of the cakes on a cake stand, top with a layer of frosting, and smooth it out into one even layer. Repeat with the second layer of cake. Place the third layer of cake on top and use the remaining frosting to frost the top and sides of the cake.
Followed the recipe exactly, spent a fortune on ingredients. Turned out like pancakes and tasted awful. Will not make again.
Sorry you had trouble with the recipe, Jess. Did you make any adjustments to the recipe? And did you double check the measurements to make sure everything you used was correct?
could I add cream cheese to the frosting and reduce the sugar? I prefer frosting not to be quite so sweet. If this might work, any ideas how much cream cheese and how much sugar in the final product? Thanks!
I actually have a chocolate cream cheese frosting recipe here. You can reduce the sugar down to 2 and 1/2 cups for that recipe, it will make about 3 cups of frosting.
Hello, I was wondering would it be the same degrees and cooking time for an 8×8 square cake Pan?? Thank you for the information in advance! I love all your other recipes and hope I am able to use this one as well.
Do you mean for three of them? If so, the temperature would be the same and baking time should be pretty similar to the three 8-inch round pans.
Hi Danielle! I am a huge fan! This recipe was absolute PERFECTION!! Made this cake for my son’s 13th!! Substituted The flour with GF cup 4 cup and it worked like a charm!! Is there a Vanilla version of this cake or can you swap out the cocoa??? Thank you for sharing all of these wonderful recipes!!! ?❤️
Thank you, Christine! So happy the cake turned out great for you! Swapping out the cocoa powder wouldn’t work in this case, but I do have a vanilla cake on my list of recipes to work on 🙂
Hi , can I cover this cake in fondant ?
Thanks
Sana
I honestly haven’t tried it, so I’m not quite sure.
Hi im planning on cutting out a number cake using this recipe but the tin i need to use is 11x15x3. Would i need to multiply the recipe by anything do you think?
Hi, Thomas! I haven’t tried it so it’s hard to say, but I would probably multiply the cake recipe by 1 and 1/2. If you have any leftover batter, you can use it to make cupcakes.
Hi! Made this cake last week and it went down a treat! I’m hoping to make it this weekend for my boyfriends birthday but I was just wondering how well you think this cake would tier? I want to do a 2 tier (9inch and 7inch) I have dowling and bases but I just want to be sure! Thanks so much!
I haven’t tried it, but I think it would work okay for a tiered cake.
Made this cake for my son’s 2nd birthday last weekend. It was perfectly moist and sweet…topped it off with your buttercream frosting. The family loved it and most of all my 2 yr old relished every bite:) I’ve also tried your chocolate cupcakes and carrot cake which I baked for my daughter’s 1st grade graduation and it was delicious!!! Thank you for sharing these amazing recipes. I’m a big fan…my go to site for baking:)
Thank you, Michelle! So glad you’re enjoying the recipes!
Danielle Hi, this cake is absolutely delicious. Your cakes are always so nice and simple to make . Thank you for the recipes. Why do you not have a vanilla layered cake recipe though?
Thank you! I have a vanilla cake on my list of recipes to work on soon too!
Would it be okay if I added Oreos to the cake batter?
The batter is very thin, so they will likely just sink to the bottom. You could use an Oreo buttercream instead, I have a recipe for Oreo buttercream here.
Hi Danielle!
I absolutely ADORE your white cake recipe! I have tried it with both all purpose, and cake flour, and the crumb was much lighter with the cake flour (no surprise). So my question is- is there something different about chocolate cake that necessitates using cake flour?
Hi, Mackenzie! So glad you loved the white cake! I don’t use cake flour in my chocolate cake recipe because it’s so much different from the white cake. This recipe uses oil, baking soda, boiling water, etc. that gives you a really soft, fluffy cake so the cake flour isn’t needed. That being said, you can certainly use cake flour in this recipe. If you do though, you will want to use 2 and 1/4 cups of cake flour.
I made it with no problems, only i didn’t have whipping cream, so I used regular milk. Turned out great!
Would this work with Nutella buttercream? How long would I refrigerate the cake before the crumb coat and then before frosting ? Hoping to bake in one day!
Yes, absolutely! I freeze the cake layers for 30 minutes to 1 hour, then apply the crumb coat. The cold cake layers help the crumb coat firm up quickly, so you don’t have to refrigerate it before adding the final layer of the frosting.
Hi Danielle, I tried your chocolate cake recipe, and it was delicious. This is truly my favorite and my family loved it. Normally I don’t eat what i bake, but this was so good. Thanks a lot and I’m looking forward to your recipe book
Thank you, Sherida! So glad you enjoyed the cake!
Hi! Your chocolate cake looks amazing! If i want to make this recipe in 4 layers of 6 by 2 inches cake pan will it be sufficient?
I think that would be fine!
I’d like to make this cake for a 2 tier cake 8″ and 6″ . How long would the baking time be for 3 6″ cake pans? So excited to try this recipe!
Hi, Candi! I haven’t baked this cake in 6-inch cake pans yet, so I’m not quite sure on the baking time. I would just keep an eye on them and check them with a toothpick to make sure they’re fully baked.
I would like to make a 3 layer cake as shown in the photo. How do
I adjust the ingredients ?
Hi, Michelle! This recipe does make a 3 layer cake, so there’s no need to adjust the ingredients.
Hi, my cake deflated. Any idea what I May have done wrong? Thanks
Hi, Charlotte! Did it sink quite a bit? If so, the cake may not have been fully done when you removed it from the oven. Other things like opening the oven door too much or over mixing the batter can cause that to happen too.
Hii what would be the changes in the recipe if i need a 3 layer 8 inch square cake?
It would be similar to the 8-inch round cake pans, just divide the batter evenly between the three pans and bake for about 30 minutes.
This cake was amazing! My family loved it! I can’t wait to try something else!
I have been hunting for a good oil based chocolate cake recipe FOREVER! I tried so many recipes till date and nothing turned out great. Buy I finally found THE ONE when I tried this chocolate cake recipe. Now I know that my future grand children will always remember me for my chocolate cake 🙂 Thank you so much got sharing this INCREDIBLE recipe 🙂
Hii Danielle, hope you’re doing well, how much should the temperature be if I’m baking in an oven proof glass baking dish (Pyrex).. I’m planning to make it for the weekend
I would recommend keeping the oven temperature at 350°F (177°C). The baking time will vary some depending on the size of your dish.
Hi Danielle. What would be the measurements for a 12×18 cake pan?
Hi, Rubi! It’s really hard to say as I haven’t tried it in a pan that size.
Hi Danielle, made the cake and frosted with chocolate whipped cream frosting. My whole family loved it.
Thanks again for the lovely carrot cake as well. It was wonderful. And so tasty.
So happy to hear that everyone enjoyed the cake, Kay!
I have a fan oven and I’m not sure how hot to make it
For a convection oven you can just reduce the oven temperature to 325°F (163°C) or reduce the baking time by a few minutes.
Would it be possible to substitute the instant espresso powder for instant coffee powder?
That would be fine!
Hi do you have a recipe for chocolate cream using fresh whipping cream or stabilised whipping cream ? Thank you!
I don’t have one, but I do have a homemade whipped cream recipe here. You could probably add 1-2 tablespoons of unsweetened cocoa powder to it.
I love ALL of your recipes! Each recipe I’ve tried they always turn out so good. I’m excited to make this cake. I made your chocolate cupcakes and they are so good. Thanks again for all the great recipes!
P.S. do you have a cookbook? Having all your great recipes in a cookbook would be amazing! I have a printer in the meantime
Thank you, Heather! So happy to hear that! I am actually in the middle of working on a cookbook right now and it’s set to be released next year. I’ll share all the details on my site and social media when it’s available for preorder!
Yay!!! That’s exciting to hear! I’ll definitely buy one ?
Hi Daniella,
Can I make this with Gluten Free flour by chance? My family all have gluten intolerance.
Thank you
Marie R
Hi, Marie! I haven’t tested this recipe with gluten-free flour, so I’m not quite sure. If you’ve had success using a certain brand 1:1 in other recipes then it may work in this one.
I make this recipe gluten free all the time! I use Bob’s Red Mill Gluten Free 1 to 1 Baking Flour, and no one can ever tell that it’s gluten free. 🙂
I just made this with a blend gluten free flour and the cake was a bit!
Hi Daniella,
I can’t wait to make this recipe, but I was just wondering which brown sugar you use? Is it light/dark soft brown sugar?
Thanks,
Laura
Either one would be fine, but I use light brown sugar.
Hi Danielle,
Thank you so much for the quick reply!
Laura
For the frosting, would it work if I use less sugar? If not any recommendation on a less sweet frosting?
Thank you.
You could use a little less sugar in the frosting, but keep in mind that it may not be at thick or pipe as well if you reduce it too much.
If your looking for a less sweet frosting swiss meringue is delishiuos but tastes more buttery.