The Feast

Home cooking recipes for everyday dinners and easy entertaining

How to Make a Good Chocolate Cake from Scratch

· 5 min read · Baking and Desserts

This guide walks you through making a moist, rich chocolate cake from scratch — no box mix required. You’ll get a tender crumb, deep chocolate flavor, and a simple buttercream frosting. Start by gathering your ingredients and preheating the oven; the whole process takes about 1.5 hours including baking and cooling.

What You'll Need

  • 1 ¾ cups (220g) all-purpose flour
  • ¾ cup (65g) unsweetened cocoa powder (natural or Dutch-processed)
  • 2 cups (400g) granulated sugar
  • 1 ½ teaspoons baking powder
  • 1 ½ teaspoons baking soda
  • 1 teaspoon salt
  • 2 large eggs (room temperature)
  • 1 cup (240ml) whole milk (room temperature)
  • ½ cup (120ml) vegetable oil
  • 2 teaspoons vanilla extract
  • 1 cup (240ml) hot coffee or hot water
  • For frosting: 1 cup (2 sticks) unsalted butter, softened; 3 cups (360g) powdered sugar; ½ cup (40g) cocoa powder; ¼ cup (60ml) heavy cream; 1 teaspoon vanilla extract; pinch of salt
  • Two 9-inch round cake pans (or one 9x13-inch pan)
  • Parchment paper, mixing bowls, whisk, spatula, cooling rack

Step-by-Step

  1. Preheat and prep pans: Preheat your oven to 350°F (175°C). Grease two 9-inch round pans, line the bottoms with parchment paper, then grease the paper. Dust lightly with cocoa powder (not flour) to avoid white streaks.
  2. Whisk dry ingredients: In a large bowl, sift or whisk together the flour, cocoa powder, sugar, baking powder, baking soda, and salt. Make sure there are no lumps.
  3. Add wet ingredients: Add the eggs, milk, oil, and vanilla to the dry mixture. Beat with a mixer on medium speed for 2 minutes, or whisk vigorously by hand for 3 minutes until smooth. The batter will be thin — that’s correct.
  4. Add hot liquid: Slowly pour in the hot coffee (or hot water) while mixing on low speed. The batter will become very thin. This step blooms the cocoa and adds moisture.
  5. Pour and bake: Divide the batter evenly between the prepared pans. Bake for 30–35 minutes, or until a toothpick inserted in the center comes out clean or with a few moist crumbs. The cakes should pull away from the pan edges slightly.
  6. Cool completely: Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack. Remove the parchment and let cool completely — at least 1 hour. Frosting a warm cake will cause it to melt and slide.
  7. Make the frosting: Beat the softened butter until creamy (about 2 minutes). Add the powdered sugar, cocoa powder, heavy cream, vanilla, and salt. Beat on low until combined, then increase to high and beat for 2–3 minutes until fluffy. Add more cream (1 tablespoon at a time) if too stiff.
  8. Frost the cake: Place one layer on a plate. Spread about ¾ cup of frosting on top. Place the second layer on top. Frost the top and sides with the remaining frosting. Use an offset spatula for smooth results.
  9. Slice and serve: For clean slices, use a serrated knife and wipe it between cuts. Serve at room temperature.

Common Mistakes

  • Overmixing the batter: Once you add the wet ingredients, overmixing develops gluten, making the cake tough. Mix just until smooth, then stop.
  • Skipping the hot liquid: Hot coffee or water dissolves the cocoa and creates a moister crumb. Cold water won’t work as well.
  • Baking at the wrong temperature: If your oven runs hot, the cake will dome and crack. Use an oven thermometer to verify.
  • Opening the oven door early: The cake can collapse if you peek before 25 minutes have passed.
  • Frosting a warm cake: This leads to melted, sliding frosting. Patience is key.

Tips

  • Use room-temperature eggs and milk for a smoother batter.
  • Natural cocoa powder (not Dutch-processed) works best with baking soda; if you use Dutch-processed, replace the baking soda with 1 teaspoon more baking powder.
  • For a richer flavor, replace the hot water with hot brewed coffee — it doesn’t make the cake taste like coffee, just deeper chocolate.
  • Wrap cooled layers in plastic wrap and freeze for up to 2 months; thaw in the fridge overnight before frosting.
  • To make ahead, frost the cake and refrigerate for up to 3 days. Bring to room temperature before serving.

Troubleshooting

  • My cake is dry: This usually means overbaking or too much flour. Check your oven temperature and bake only until a toothpick comes out with moist crumbs. Also measure flour by spooning it into the cup and leveling, not scooping.
  • My cake sank in the middle: The oven door was opened too early, or the batter was overmixed. Also ensure your baking powder/soda are fresh (test by dropping a little in vinegar — it should fizz).
  • My cake is too dense: You may have underbeaten the wet ingredients, or the batter was too cold. Make sure eggs and milk are room temperature.
  • My frosting is too runny: Add more powdered sugar, ¼ cup at a time, until it holds its shape. If it’s too stiff, add cream a teaspoon at a time.
  • The cake sticks to the pan: Always line the bottom with parchment paper, and let it cool for 10 minutes before turning out. Run a knife around the edges if needed.

Frequently Asked Questions

Can I use water instead of coffee?

Yes, hot water works fine. Coffee enhances the chocolate flavor, but water will still produce a good cake.

Can I make this cake without eggs?

You can substitute each egg with ¼ cup unsweetened applesauce or a flax egg (1 tablespoon ground flaxseed + 3 tablespoons water). The texture will be slightly denser but still moist.

How long does this cake last?

Frosted cake can sit at room temperature for up to 2 days (due to the buttercream). In the fridge, it lasts up to 5 days. Unfrosted layers can be frozen for 2 months.

Can I bake this as a sheet cake?

Yes. Pour the batter into a greased 9x13-inch pan and bake for 35–40 minutes at 350°F. Check with a toothpick.

Why is my cake not domed on top?

A flat top is actually ideal for layering. If you want a dome, bake at 350°F for the first 10 minutes, then lower to 325°F for the remaining time — but it’s not necessary.

Can I use a different frosting?

Absolutely. A chocolate ganache (1 part cream to 2 parts chocolate) or a simple cream cheese frosting both work well. Just ensure the cake is fully cooled.

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions