Food

How to Bake a Chocolate Cake from Scratch: Classic Recipe

By Hayride Live · Updated

Total time
50 min
Prep
20 min
Cook
30 min
Serves
12

A classic chocolate cake from scratch is rich, moist, and straightforward to make with pantry staples. It serves well for birthdays, potlucks, or any occasion where you want a reliable dessert without buying a box mix. The batter comes together in one bowl using the creaming method, which ensures a tender crumb.

Why Make Chocolate Cake from Scratch?

Making your own cake allows you to control the sweetness and texture completely. Box mixes often rely on artificial flavors and stabilizers that can leave a waxy aftertaste. A homemade version uses real butter and cocoa powder, creating a deeper chocolate flavor and a softer structure. You also avoid the excess sugar and preservatives found in commercial cakes.

Ingredients for One Layer Cake

This recipe makes two 8-inch (20 cm) round layers or one 9×13 inch (23×33 cm) sheet cake. Use room temperature ingredients to ensure they emulsify properly into the batter.

  • 2 cups (240 g) all-purpose flour
  • 2 cups (400 g) granulated sugar
  • 3/4 cup (65 g) unsweetened cocoa powder
  • 2 teaspoons baking powder
  • 1 1/2 teaspoons baking soda
  • 1 teaspoon salt
  • 1 cup (240 ml) whole milk
  • 1/2 cup (120 ml) vegetable oil
  • 2 large eggs
  • 2 teaspoons vanilla extract
  • 1 cup (240 ml) boiling water

Instructions

  1. Preheat and Prepare: Heat your oven to 350°F (175°C). Grease two 8-inch round cake pans with butter or cooking spray, then dust with flour. Tap out the excess. Line the bottoms with parchment paper for easy removal.
  2. Mix Dry Ingredients: In a large mixing bowl, whisk together the flour, sugar, cocoa powder, baking powder, baking soda, and salt until no lumps remain. Sifting the cocoa helps remove clumps for a smoother batter.
  3. Add Wet Ingredients: Pour in the milk, oil, eggs, and vanilla extract. Beat with a hand mixer on medium speed for about 2 minutes. The batter should be smooth and glossy.
  4. Stir in Boiling Water: Carefully pour in the boiling water while mixing on low speed. The batter will become very thin and liquid; this is normal and correct. The hot water “blooms” the cocoa, intensifying the chocolate flavor.
  5. Bake: Divide the batter evenly between the prepared pans. Bake for 30-35 minutes. Insert a wooden skewer into the center of each cake; it should come out clean or with just a few moist crumbs attached.
  6. Cool: Let the cakes cool in the pans for 10 minutes. Then, run a knife around the edges and invert them onto a wire rack to cool completely before frosting. Warm cake will melt the frosting.

Frosting and Assembly

A simple chocolate buttercream pairs perfectly with this cake. Cream 1 cup (226 g) of softened unsalted butter until pale. Gradually add 3 cups (360 g) of powdered sugar and 1/2 cup (45 g) of cocoa powder. Add 2-3 tablespoons of milk or cream and beat until fluffy. Spread the first layer, place the second layer on top, and frost the sides and top.

Common Questions About Making Cake

Can I use buttermilk instead of regular milk?

Yes, buttermilk works well and adds tanginess. Use 1 cup (240 ml) of buttermilk and reduce the baking soda to 1 teaspoon. The acid in the buttermilk reacts with the remaining baking soda to create lift.

Why did my cake sink in the middle?

Sinking usually happens if the oven door is opened too early or if the cake is underbaked. Check the cake at the minimum bake time. Also, ensure your leavening agents are fresh; old baking soda loses its power quickly.

How do I store leftover cake?

Store unfrosted layers wrapped tightly in plastic wrap for up to 2 days. Frosted cake keeps well in the refrigerator for 3-4 days due to the dairy content. Bring it to room temperature for 30 minutes before serving for the best texture.

Spotted a mistake? Tell us and we will correct it. How we write and check articles.