Go Back

Homemade Chocolate Cake

A rich, moist, and deeply chocolatey cake made from scratch with a smooth cocoa frosting. Perfect for celebrations or indulgent evenings.
Prep Time 20 minutes
Cook Time 35 minutes
Total Time 55 minutes
Servings: 12 servings

Ingredients
  

Main
  • 1 and 3/4 cups of all-purpose flour
  • 3/4 cup of unsweetened cocoa powder go for the good stuff, trust me
  • 2 cups of granulated sugar
  • 1 and 1/2 teaspoons of baking powder
  • 1 and 1/2 teaspoons of baking soda
  • 1 teaspoon of salt
  • 2 large eggs
  • 1 cup of whole milk
  • 1/2 cup of vegetable oil
  • 2 teaspoons of vanilla extract
  • 1 cup of boiling water
Frosting
  • 1 cup of unsalted butter at room temperature
  • 1/2 cup of unsweetened cocoa powder
  • 4 cups of powdered sugar
  • 1/4 cup of milk adjust for the right consistency
  • 2 teaspoons of vanilla extract
  • A pinch of salt

Method
 

  1. Preheat your oven to 350 degrees Fahrenheit. Grease and flour two 9-inch round pans or line them with parchment paper.
  2. In a large bowl, whisk together the flour, cocoa powder, sugar, baking powder, baking soda, and salt until well combined.
  3. In another bowl, mix the eggs, milk, oil, and vanilla extract until smooth. Pour the wet mixture into the dry ingredients and stir until just combined.
  4. Slowly add the boiling water to the batter while stirring. The batter will be thin, which is expected.
  5. Divide the batter evenly between the prepared pans. Bake for 30 to 35 minutes or until a toothpick inserted in the center comes out with a few moist crumbs.
  6. Let the cakes cool in the pans for about 10 minutes, then transfer them to a wire rack to cool completely.
  7. To make the frosting, beat the butter with a mixer until fluffy. Add the cocoa powder and mix until combined.
  8. Add powdered sugar, milk, vanilla extract, and a pinch of salt. Beat until the frosting is smooth and spreadable, adjusting milk as needed.
  9. Place one cake layer on a serving plate and spread frosting on top. Add the second cake layer and frost the top and sides of the cake.

Notes

Do not skip the boiling water—it enhances the cocoa flavor. Use high-quality cocoa powder for the best results. Avoid overbaking to maintain moisture. Let the cake cool completely before frosting to prevent the frosting from melting.