Best Chocolate Cake Recipe (From Scratch)

Jump to Recipe

This post may contain affiliate links. Please read our disclosure policy.

This is the best chocolate cake recipe ever! It is rich, chocolatey and moist with a perfect crumb! Topped with chocolate buttercream frosting it’s the ultimate chocolate birthday cake. Check out the step-by-step photos and watch the video to learn how to make this easy chocolate cake recipe and ditch boxed cake mixes once and for all!

a slice of chocolate cake on a plate with a fork

We have a large family, so we celebrate lots of birthdays in a given year. I used to use a chocolate cake recipe that called for a boxed cake mix and instant pudding, and I just didn’t love the idea of using a highly processed ingredients for all of our (many) birthday celebrations. 

So I created this chocolate cake recipe. I worked hard to make this taste exactly like our favorite chocolate cake, but completely from scratch. I tested and tried this easy chocolate cake recipe for two years worth of birthdays before I perfected it enough to share it with all of you. (Also try these homemade chocolate cupcakes or this recipe for the best yellow cake from scratch)!

Before perfecting this recipe, I had made many others that didn’t meet my expectations. Ingredients like boiling water, hot coffee, buttermilk etc. tend to lead to a chocolate cake that wasn’t moist or rich enough for our tastes. So you will find none of those ingredients in this easy chocolate cake recipe. 

This moist chocolate cake is seriously the best, it’s dense and rich and never ever disappoints. Frosted with our favorite chocolate buttercream recipe, it’s a chocolate-lover’s dream come true. 

two-layer chocolate cake on a plate with a slice cut out of it so you can see the inside.

Chocolate Cake Recipe: Ingredients and substitutions 

Many people ask how to make a cake super moist. It’s all in the ingredients. I made sure to choose ingredients that would create a moist chocolate cake with a rich chocolate flavor that everyone raves about. So here are some notes about the ingredients and some possible substitutions.

overhead view of the ingredients in this chocolate cake recipe
  • All-purpose flour. Cake flour can be used in place of all-purpose flour. I have not tried all-purpose gluten-free flour so if you do report back and let me know how it goes. 
  • Granulated sugar. There really isn’t a substitute for the sugar. I suggest regular white sugar or organic cane sugar for the best results. 
  • Unsweetened cocoa powder. Choose your favorite variety. For an extra-dark cake use dark cocoa powder. 
  • Espresso powder. always have espresso powder on hand to make chocolate desserts (like this chocolate zucchini cake). It’s worth purchasing if you love baking. You can substitute instant coffee if you must. 
  • Canola oil. Oil keeps this chocolate cake extra moist. You can substitute equal amounts of melted butter or another neutral oil if desired, however canola oil will yield the best results. 
  • Sour cream. Full-fat, plain Greek yogurt can be used in place of sour cream. I recommend using full-fat ingredients for the richest, most moist chocolate cake. 
  • Whole milk. Again, I am an advocate for using full-fat whole milk in this chocolate cake recipe. You could substitute 2% milk but nothing with a lower fat content. Half and half is also a good substitute.
  • Vanilla extract. You can switch up the extract and use almond, peppermint, orange, etc. if you prefer a flavored chocolate cake. 
  • Mini chocolate chips. These are an absolute must. Regular-sized chocolate chips sink to the bottom of the cake while baking. Be sure to use mini chips for the best results. 
a slice of Chocolate Cake on a plate with a bite taken out of it

How to Make Chocolate Cake from Scratch

This chocolate cake recipe makes two, 6″ round chocolate cakes – that I use to make the best chocolate birthday cake (frosting with this chocolate buttercream or vanilla frosting). With a 6″ cake, every member of my family of 8 enjoys two slices.

You can double the recipe to make two, 9″ round cakes, if desired. We’ll walk through how to make chocolate cake step-by-step, and don’t forget to watch the video.

Prepare Cake Pans

Line two 6โ€ round cake pans with parchment paper and grease well, then set them aside. I like to line them by tracing the bottom of the cake pans onto parchment paper and then drawing “handles” out of opposite sides (see below). This makes it very easy to lift the cake out after baking.

two photos showing How to line a cake pan

Combine Dry Ingredients

In a medium bowl, combine flour, sugar, cocoa powder, baking soda, baking powder, sea salt and espresso powder. Set aside to use later. This step is important to ensure the ingredients are evenly distributed and that there are no lumps. 

two photos showing How to Make Chocolate Cake From Scratch - combining dry ingredients

Combine Wet Ingredients

Next, combine the wet ingredients. In a large bowl, whisk together canola oil, eggs, sour cream, milk and vanilla until the mixture is smooth.

two photos showing How to Make Chocolate Cake From Scratch - combining wet ingredients

Add Dry Ingredient Mixture

Once the wet ingredients are combined, add the dry ingredients and stir until the batter is smooth.  

two photos showing How to Make Chocolate Cake From Scratch - combining wet and dry ingredients

Add Mini Chocolate Chips

Stir in the mini chocolate chip until evenly distributed.

two photos showing How to Make Chocolate Cake From Scratch - adding mini chocolate chips to the batter

Bake

Next, divide the batter evenly into the two prepared cake pans. You can either eyeball it or actually measure. I like to put 1 cup of batter at a time into each cake pan. 

two photos showing How to Make Chocolate Cake From Scratch - batter in cake pans before baking

Bake in the preheated oven for 30-35 minutes, or until a toothpick inserted in the center of the cakes comes out clean or with a few crumbs.

chocolate cake baked in two 6" round cake pans on a wire cooling rack

Cool

Place cake pans on a wire cooling rack to cool to room temperature (takes about 30 minutes). Once cool, lift cakes out of the pans and remove parchment paper. Let cool completely on the wire cooling rack.

two chocolate cake layers cooling on a wire cooling rack

Frost 

Once the cakes are completely cooled, frost or decorate them any way you wish. I suggest using chocolate frosting, vanilla buttercream frosting, peanut butter frosting or this vanilla frosting to make our chocolate birthday cakes!  Don’t forget to do a crumb coat first – a thin base layer of frosting to keep crumbs from getting into your final design. 

two photos showing how to make chocolate cake from scratch - frosting the cake

Freeze

I often bake this homemade chocolate cake recipe a few days before I need to frost it and store it in the freezer. Simply wrap each chocolate cake layer tightly with plastic wrap, put them in a ziplock bags and store in the freezer.

Even if you plan on frosting the homemade chocolate cake the same day you bake it, I still recommend freezing it before frosting. Frosting a a cake when it’s frozen reduces the number of crumbs that make their way into the frosting.

a whole frosted Chocolate Cake on a cake plate with chocolate chips and sprinkles

Chill

If you decorate the cake with a design (like rosettes, etc.) I recommend chilling it in the refrigerator until the frosting hardens and the design sets. 

Chocolate Cake cut into slices

Serve 

If you decorated the cake and chilled it in the refrigerator, remove it from the fridge 1-2 hours before serving so it can come to room temperature – because that’s how it tastes best! This is another reason why I typically bake the chocolate birthday cake in advance. Then I frost it the day before someone’s birthday so it has time to chill/set and then come to room temperature to eat! 

We like eating cake with a side of ice cream, like this homemade vanilla ice cream or homemade chocolate ice cream.  A dollop of homemade whipped cream also tastes amazing! 

a slice of Chocolate Cake being taken out of the whole cake with a cake server

Chocolate Cake Recipe FAQs

Here are my answers to some commonly asked questions about making this homemade chocolate cake recipe. 

Can you double this recipe?ย 

Yes! This recipe is easily doubled and baked in two, 9″ round cake pans. This is a great option if you will be making the cake for a large crowd. When I make this recipe as written for my family of 7, everyone usually eats three servings (slices) before the cake is gone.ย 

How do you make a moist chocolate cake?ย 

This recipe yields the best, moist chocolate cake ever. To ensure it turns out that way be careful not to over-bake, and measure all the ingredients properly and precisely.ย 

How do you decorate a chocolate birthday cake?ย 

I use either this chocolate buttercream frosting or homemade vanilla frosting to decorate this easy chocolate cake recipe. I use the following tools to decorate (after my kids choose their design):ย 
Piping bags – I have both reusable and disposable piping bags and use them all the time.ย 
Piping tips and couplers – I recommend a great starter tip and coupler set. However I always make this rosette style cake with a Wilton 1M tip and large coupler.ย 
Pastry Scraper. I use this pastry scraper to make a smooth crumb coat. I love it so much!

Can you freeze chocolate cake?

Yes, you can freeze the entire cake or individual slices. I suggest flash-freezing the cake/slices, then wrapping them tightly in plastic wrap and storing them in an airtight contianer. Thaw overnight in the refrigerator.

a fork taking a bite of Chocolate Cake on a plate

If you make and love our recipes, it would mean so much to me if you would leave a comment and rating! And don’t forget to follow along with us on Instagram, Pinterest, Facebook, and Youtube – be sure to tag @joyfoodsunshine and use the hashtag #joyfoodsunshine so we can see your creations!

Best Chocolate Cake Recipe From Scratch

Laura
This is the best chocolate cake recipe ever! It is rich, chocolatey and moist with a perfect crumb! Topped with chocolate buttercream frosting it's the ultimate chocolate birthday cake. Check out the step-by-step photos and watch the video to learn how to make this easy chocolate cake recipe and ditch boxed cake mixes once and for all!
5 from 74 votes
Course cake, Dessert
Cuisine American
Servings 16 Servings
Calories 217
Prep Time10 minutes
Cook Time30 minutes
Cooling time1 hour
Total Time1 hour 40 minutes

Ingredients 
 

Instructions 

  • Preheat oven to 350 degrees F.
  • Line two 6โ€ round cake pans with parchment paper and grease well. Set aside.
  • In a medium bowl, combine flour, sugar, cocoa powder, baking soda, baking powder, sea salt and espresso powder. Set aside
  • In a large bowl, whisk together canola oil, eggs, sour cream, milk and vanilla until the mixture is smooth.
  • Add dry ingredients to the wet ingredients and stir until combined.
  • Add mini chocolate chips and stir until evenly distributed.
  • Divide the batter evenly into the two prepared cake pans.
  • Bake in the preheated oven for 30-35 minutes, or until a toothpick inserted in the center of the cakes comes out clean or with a few crumbs.
  • Place cake pans on a wire cooling rack to cool to room temperature (takes about 30 minutes).
  • Once cool, lift cakes out of the pans and remove parchment paper. Let cool completely on the wire cooling rack.
  • Once cool, with chocolate frosting and serve.

Video

Notes

Doubling the recipe:ย 

To make two, 9โ€ round cake layers double the recipe and bake in two 9โ€ round cake pans.

Ingredient Substitutions:

  • All-purpose flour. Cake flour or bread flour can be used in place of all-purpose flour.ย 
  • Granulated sugar. I suggest regular white sugar or organic cane sugar for the best results.ย 
  • Unsweetened cocoa powder. For an extra-dark cake use dark cocoa powder.ย 
  • Espresso powder. It’s totally worth purchasing if you love baking. You can substitute instant coffee if you must.ย 
  • Canola oil. You can substitute equal amounts of melted butter or another neutral oil if desired, however canola oil will yield the best results.ย 
  • Sour cream.ย Full-fat, plain Greek yogurt can be used in place of sour cream. I recommend using full-fat ingredients for the richest, most moist chocolate cake.ย 
  • Whole milk.ย Again, I am an advocate for using full-fat whole milk in this chocolate cake recipe. You could substitute 2% milk but nothing with a lower fat content.ย 
  • Vanilla extract.ย You can switch up the extract and use almond, peppermint, orange, etc. if you prefer a flavored chocolate cake.ย 
  • Mini chocolate chips.ย These are an absolute must. Regular-sized chocolate chips sink to the bottom of the cake while baking. Be sure to useย mini chips for the best results.ย 
Nutrition information calculated for only the chocolate cake (without frosting), for 1 serving assuming the recipe makes 16 servings.ย 

Nutrition

Serving: 1slice | Calories: 217kcal | Carbohydrates: 28g | Protein: 3g | Fat: 11g | Saturated Fat: 3g | Cholesterol: 26mg | Sodium: 133mg | Potassium: 74mg | Fiber: 1g | Sugar: 20g | Vitamin A: 99IU | Vitamin C: 1mg | Calcium: 36mg | Iron: 1mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Did you enjoy this recipe? Have a question? Leave a comment below!

Try these recipes


latest recipes

5 from 74 votes (37 ratings without comment)

Post a Comment or Ask a Question!

Your email address will not be published. Required fields are marked *

Recipe Rating




88 Comments

  1. 5 stars
    Really good. Didnโ€™t have two round pans so used a ring pan. Filled the hollow Centre with
    chocolate balls. Woooohoooo!

  2. 5 stars
    Thanks Guys, Your Recipe Was Too Fantastic. Me and My Family Loved it. I Will Share your Rrecipe with my friends. Hope they will love it too.

  3. Hi Laura,
    This recipe looks fabulous. But before I take the plunge and try it out, could you please share your insights on:
    1. At what temperature do I need to bake this cake coz the instructions say โ€œbake in a preheated oven for 30-35 minutesโ€.
    2. Do you suggest we keep the baking pan on the lowest rung of the oven. I know your banana bread with chocolate chip recipe had this instruction.
    3. Can you recommend a baking pan. I usually use a regular aluminum one but I saw your pictures and was wondering if I should switch to ceramic.
    Your inputs and direction is really appreciated!
    Thanks Laura!

  4. 5 stars
    I made this chocolate cake today for my son’s birthday, and it was so delicious, I didn’t have sour cream so I used Non fat Greek yogurt and it worked! My family loved it, thank you so much!

  5. 5 stars
    This was one of the easiest cakes to make and the most delicious. The icing was amazing too! One of my kids asked for me to make for birthday rather than get one from the local bakery. Thank you so much for sharing this one. Iโ€™ll be making it again and again. โค๏ธ

  6. 5 stars
    Hi
    Halfway into making the cake I realized I didn’t have any sour cream or greek yogurt, (I know! that’s really bad!) so I substituted it for sour milk in a last minute attempt to make it work…..and it did ! The cake was moist and a perfect consistency I’ve tried so had to get previously!
    LOVED THIS CAKE ! And so did my entire family.

    Next time I’ll make it properly with the sour cream

  7. 5 stars
    Hi
    Halfway into making the cake I realized I didn’t have any sour cream or greek yogurt, (I know that really bad!) so I substituted it for sour milk in a last minute attempt to make it work…..and it did ! The cake was moist and a perfect consistency I’ve tried so had to get previously!
    LOVED THIS CAKE ! And so did my entire family.

    Next time I’ll make it properly with the sour cream

  8. 5 stars
    This is the best cake recipe! So great and simply delicious! Thank you for taking the time to perfect this!