Go Back

Chocolate Layer Cake Recipe

This rich and moist homemade chocolate cake is made from scratch with simple ingredients and deep chocolate flavor. With soft chocolate cake layers and creamy chocolate frosting, this classic recipe is perfect for birthdays, celebrations, or whenever a chocolate craving strikes.
Prep Time 20 minutes
Cook Time 35 minutes
Servings: 12 slices

Ingredients
  

For the Chocolate Cake
  • 2 cups all-purpose flour
  • 2 cups granulated sugar
  • ¾ cup unsweetened cocoa powder
  • 2 teaspoons baking powder
  • teaspoons baking soda
  • 1 teaspoon salt
  • 1 cup buttermilk or 1 cup milk + 1 tablespoon vinegar
  • ½ cup vegetable oil
  • 2 large eggs
  • 2 teaspoons vanilla extract
  • 1 cup hot coffee or hot water
For the Chocolate Frosting
  • 1 cup unsalted butter softened
  • cups powdered sugar
  • ¾ cup unsweetened cocoa powder
  • ½ teaspoon salt
  • 2 teaspoons vanilla extract
  • ½ cup heavy cream

Method
 

Step 1: Make the Cake Batter
  1. Preheat oven to 350°F. Grease two 9-inch round cake pans and line the bottoms with parchment paper.
  2. In a large bowl, whisk together flour, sugar, cocoa powder, baking powder, baking soda, and salt.
  3. In another bowl, mix buttermilk, oil, eggs, and vanilla extract.
  4. Gradually add the wet ingredients to the dry ingredients, stirring just until combined.
  5. Slowly pour in the hot coffee while mixing. The batter will be thin—this is normal.
Step 2: Bake the Cake
  1. Divide batter evenly between the prepared pans.
  2. Bake for 30-35 minutes, or until a toothpick inserted in the center comes out clean.
  3. Let cakes cool in the pans for 10 minutes, then transfer to a wire rack to cool completely.
Step 3: Make the Frosting
  1. Beat butter until smooth and creamy.
  2. Gradually add powdered sugar and cocoa powder, mixing on low speed.
  3. Add salt, vanilla, and heavy cream, then beat until light and fluffy. Adjust consistency with more cream or powdered sugar if needed.
Step 4: Assemble the Cake
  1. Place one cake layer on a plate and spread a generous amount of frosting on top.
  2. Add the second cake layer and frost the top and sides evenly.
  3. Decorate as desired and let the cake set for a few minutes before slicing.

Notes

  • Store at room temperature for up to 2 days or in the fridge for up to 5 days.
  • Freeze unfrosted cake layers for up to 3 months, wrapped tightly in plastic wrap.