Go Back
+ servings
chocolate cake recipe from scratch

Chocolate Cake Recipe From Scratch

Rich, moist chocolate cake with creamy frosting, perfect for any occasion!
Print Pin
Course: Dessert
Cuisine: American
Prep Time: 10 minutes
Cook Time: 40 minutes
Servings: 15
Author: Jessica Harmon

Ingredients

Chocolate Cake

  • 1 cup 100 g cocoa powder, unsweetened, preferably Dutch-processed
  • cups 210 g all-purpose flour (refer to note 1 for cake flour substitution)
  • ¾ cup 158 g unflavored vegetable oil, such as canola
  • ½ cup 113 g unsalted butter, softened at room temperature
  • cups 337 g buttermilk, room temperature (see note 6 for homemade substitute)
  • 1 tbsp vanilla extract or essence
  • 2 tsp instant coffee powder
  • ¼ cup 25 g cornflour, also known as cornstarch
  • 3 large eggs at room temperature
  • 1⅔ cups 332 g granulated white sugar
  • ½ tsp baking soda
  • 1 tsp baking powder
  • 1 tsp white vinegar
  • ½ tsp salt omit if using salted butter

Chocolate Cream Cheese Frosting

  • 1 cup 225 g unsalted butter, softened
  • cups 570 g powdered sugar (also known as confectioners’ sugar or icing sugar)
  • cups 335 g cream cheese, cold and firm
  • ¾ cup 75 g cocoa powder, unsweetened
  • tsp vanilla extract

Instructions

Chocolate Cake

  • Preheat your oven to 160°C (320°F) with the fan function on. If your oven lacks a fan option, refer to note 5 for adjustments. Grease and line two 8-inch round cake tins with parchment paper or use a homemade cake release.
  • In a large mixing bowl, sift together the cocoa powder, all-purpose flour, cornflour, baking soda, baking powder, instant coffee powder, and salt. Whisk or stir with a fork to combine the dry ingredients evenly. Set this mixture aside.
  • In a separate mixing bowl, cream together the softened butter, vegetable oil, and granulated sugar using an electric mixer on medium speed. Beat for about 2 minutes until the mixture becomes pale and fluffy.
  • Add the eggs one at a time, mixing thoroughly after each addition for 10-15 seconds to ensure they are fully incorporated. Stir in the vanilla extract, white vinegar, and ½ cup of buttermilk. Mix until the wet ingredients are smooth and combined. Set the electric mixer aside for the next steps.
  • Using a spatula, fold half of the dry ingredients into the wet mixture gently, ensuring no lumps remain. Pour in the remaining 1 cup of buttermilk and mix lightly until just combined. Add the rest of the dry ingredients and fold gently until the batter is smooth. Avoid overmixing to maintain the cake's delicate texture (refer to note 3).
  • Evenly divide the batter between the prepared cake tins. Bake for approximately 40 minutes or until a toothpick inserted into the center comes out clean.
  • Allow the cakes to cool in their tins for 15-20 minutes before transferring them to a wire rack to cool completely. Only frost the cakes once they are at room temperature.

Chocolate Cream Cheese Frosting

  • Using a hand or stand mixer with a paddle attachment, whip the softened butter on medium-high speed until it turns light and fluffy.
  • Gradually incorporate the powdered sugar in three additions, mixing on low speed between each addition. Ensure the sugar is fully combined before adding the next batch.
  • Add the cold, firm cream cheese and vanilla extract to the butter mixture. Beat just until the frosting is smooth and creamy. Avoid overmixing to prevent the frosting from becoming too soft (refer to note 4).
  • Finally, mix in the cocoa powder until it is fully blended and the frosting achieves a smooth, velvety consistency.
  • Use the frosting to layer and coat your cooled chocolate cake. Decorate as desired and serve. Enjoy!