Print

The Best Chocolate Cake Recipe {Ever}

The Best Chocolate Cake Recipe is rich, moist, tender, and deeply chocolatey with a light, soft crumb. Made with cocoa powder, espresso powder, milk, eggs, and boiling water, this easy homemade chocolate cake pairs beautifully with creamy chocolate buttercream for a classic dessert that is perfect for birthdays, celebrations, or any chocolate craving.

Ingredients

  • 2 cups (240 g) all-purpose flour, spooned and leveled
  • 2 cups (396 g) granulated sugar
  • ¾ cup (63 g) unsweetened cocoa powder
  • 2 teaspoons (8 g) baking powder
  • 1½ teaspoons (9 g) baking soda
  • 1 teaspoon (2.8 g) kosher salt
  • 1 teaspoon (2.3 g) espresso powder, homemade or store-bought
  • 1 cup (227 g) milk, buttermilk, almond milk, or coconut milk
  • ½ cup (99 g) vegetable oil, canola oil, or melted coconut oil
  • 2 large eggs (100 g)
  • 2 teaspoons (9.4 g) vanilla extract
  • 1 cup (227 g) boiling water
  • Chocolate Buttercream Frosting, for frosting the cake

Instructions

  1. Prepare the oven and pans: Preheat the oven to 350°F (175°C). Grease and lightly flour two 9-inch round cake pans, then line the bottoms with parchment paper.
  2. Combine the dry ingredients: In a large mixing bowl, whisk together the flour, sugar, cocoa powder, baking powder, baking soda, kosher salt, and espresso powder.
  3. Add the wet ingredients: Add the milk, vegetable oil, eggs, and vanilla extract. Beat with a hand mixer or whisk until the batter is smooth and well combined.
  4. Add the boiling water: Slowly pour in the boiling water while mixing on low speed. The batter will be quite thin, which is normal.
  5. Bake: Divide the batter evenly between the prepared cake pans. Bake for 30–35 minutes, or until a toothpick inserted into the center comes out with only a few moist crumbs.
  6. Cool: Let the cakes cool in the pans for about 10 minutes. Carefully remove them from the pans and transfer them to a wire rack to cool completely.
  7. Frost: Once completely cool, place one cake layer on a serving plate. Spread a layer of chocolate buttercream over the top. Add the second cake layer and frost the top and sides with the remaining buttercream.
  8. Serve: Slice and serve at room temperature. For cleaner slices, chill the frosted cake briefly before cutting.

Notes

  • Measure the flour using the spoon-and-level method for the most consistent results.
  • The boiling water creates a thin batter and helps bloom the cocoa for a deeper chocolate flavor.
  • Do not overbake the cake. Remove it when a toothpick comes out with a few moist crumbs.
  • Make sure the cake layers are completely cool before adding the buttercream.
  • Buttermilk adds extra tenderness and a slight tang, but regular milk or plant-based milk can also be used.
  • Espresso powder enhances the chocolate flavor without making the cake taste strongly of coffee.
  • The cake layers can be baked ahead, cooled, wrapped tightly, and refrigerated until ready to frost.
  • Store the finished cake covered at room temperature for up to 2 days or refrigerated for up to 5 days.
  • Let refrigerated cake sit at room temperature for about 20–30 minutes before serving for the best texture.