Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Chocolate Cake from Scratch: Simple Step-by-Step Guide

You can bake a moist, fluffy chocolate cake from scratch using pantry staples and a few basic tools, without needing any premixed boxes. This guide walks you through every stage—from measuring dry ingredients to checking doneness—so you end up with a cake that’s tender, flavorful, and safe to eat. Follow the steps, heed the safety notes, and you’ll have a dessert that rivals bakery versions while letting you control the quality of each component.

What You'll Need

  • All‑purpose flour – 1 ¾ cups (210 g)
  • Granulated sugar – 1 ½ cups (300 g)
  • Unsweetened cocoa powder – ¾ cup (75 g)
  • Baking powder – 1 ½ tsp
  • Baking soda – ½ tsp
  • Salt – ½ tsp
  • Large eggs – 2 (room temperature)
  • Whole milk – 1 cup (240 ml, room temperature)
  • Vegetable oil – ½ cup (120 ml)
  • Vanilla extract – 2 tsp
  • Boiling water – 1 cup (240 ml)
  • Optional: espresso powder – 1 tsp (enhances chocolate flavor)
  • 9‑inch round or 8‑inch square cake pan
  • Parchment paper, butter, and flour for greasing
  • Mixing bowls, whisk or electric mixer, rubber spatula
  • Cooling rack

Measuring ingredients by weight yields the most consistent results, especially for flour and cocoa powder, which can compact differently when scooped. Using room‑temperature eggs, milk, and oil helps the batter emulsify smoothly, preventing a grainy texture and ensuring even rise.

Having a reliable oven thermometer is worth the small investment; many home ovens run hotter or cooler than the dial indicates. Pre‑heat the oven to 350 °F (177 °C) and verify the temperature before you slide the pan in, as a correct starting heat is crucial for a uniform crumb.

Step-by-Step

Begin by preparing your pan and oven, then move through the dry and wet components separately before combining them. The key is to avoid over‑mixing once the flour is introduced, which can develop gluten and make the cake tough.

  1. Preheat the oven to 350 °F (177 °C). Grease the cake pan with butter, dust with a thin layer of flour, and line the bottom with parchment paper for easy release.
  2. In a large bowl whisk together flour, sugar, cocoa powder, baking powder, baking soda, and salt until uniformly combined. This aerates the dry mix and eliminates lumps.
  3. In a separate bowl, beat the eggs lightly, then add milk, oil, and vanilla extract. Mix until the liquid looks homogenous; do not whisk vigorously.
  4. Gradually pour the wet mixture into the dry ingredients, stirring with a rubber spatula or low‑speed mixer just until no dry spots remain. The batter will be thick.
  5. Carefully stir in the boiling water (and espresso powder if using). The batter will become thin and glossy; this is normal and creates a moist crumb.
  6. Pour the batter into the prepared pan, smoothing the top with the spatula. Tap the pan lightly on the counter to release trapped air bubbles.
  7. Place the pan in the oven’s center rack. Bake for 30–35 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs, and the cake’s internal temperature reaches 200–205 °F (93–96 °C).
  8. Allow the cake to cool in the pan for 10 minutes, then run a thin knife around the edges, invert onto a cooling rack, and peel away the parchment.
  9. Let the cake cool completely on the rack before frosting or serving. This prevents condensation from making the frosting slide.
  10. If you plan to store, wrap the cooled layers tightly in plastic wrap, then in aluminum foil, and refrigerate for up to 4 days or freeze for up to 2 months.

While the batter looks almost liquid, resist the urge to add more flour; the boiling water already provides the necessary moisture. Once the cake is out of the oven, resist cutting it immediately—waiting for the crumb to set yields cleaner slices.

Common Mistakes

One frequent error is over‑mixing after the flour is added, which develops gluten and creates a dense, rubbery texture. Stop stirring as soon as the batter looks smooth and no dry flour pockets remain. Another mistake is using cold ingredients; chilled eggs or milk can cause the batter to separate, leading to uneven rise.

Skipping the parchment paper or greasing the pan inadequately often results in a stuck cake, making it difficult to remove without breaking. Also, opening the oven door too early or too often drops the temperature, causing the cake to collapse or develop a sunken center.

Tips

For an extra depth of flavor, toast the cocoa powder briefly in a dry skillet over low heat for 1–2 minutes before measuring. This reduces bitterness and brings out richer chocolate notes. Adding a teaspoon of instant espresso powder to the boiling water intensifies chocolate without making the cake taste like coffee.

To achieve a uniform crumb, use an electric mixer on low speed for the wet‑dry combination, then finish by hand with a spatula. If you prefer a lighter texture, sift the flour, cocoa, baking powder, and baking soda together before mixing with the sugar.

Safety and Storage

Raw eggs can harbor Salmonella, so it’s essential to bake the batter to the proper internal temperature of at least 200 °F (93 °C). Do not taste the batter raw; even pasteurized eggs can carry a small risk. Use a calibrated instant‑read thermometer to check doneness, especially if you’re baking at a higher altitude where times may vary.

After cooling, store the cake in an airtight container. At room temperature, a frosted cake stays fresh for up to 2 days; refrigerated cake lasts 4–5 days. For longer storage, wrap each layer tightly in plastic wrap, then foil, and freeze; thaw in the refrigerator overnight before serving.

Troubleshooting

If the cake is dense or doesn’t rise, double‑check that your baking powder and baking soda are fresh (they lose potency after about 6 months). Also verify that you used the correct amount of leavening agents; too little results in a flat cake, too much can cause a bitter aftertaste and a cracked top.

A sunken center often means the oven temperature was too low or the door was opened too early. Use an oven thermometer to confirm the set temperature, and avoid opening the door until the minimum bake time has passed. If the top browns too quickly, place a sheet of aluminum foil loosely over the cake for the last 10 minutes of baking.

Frequently Asked Questions

Can I substitute oil with melted butter?

Yes. Melted butter works, but it adds a richer flavor and a slightly denser crumb. Use the same volume (½ cup) and keep the butter cooled to room temperature before mixing.

Is it okay to use coffee instead of water?

Absolutely. Replacing the boiling water with hot brewed coffee deepens the chocolate flavor without making the cake taste like coffee.

Do I need to sift the cocoa powder?

Sifting cocoa with the flour and other dry ingredients helps prevent lumps and ensures an even distribution, leading to a smoother batter.

How do I know when the cake is fully cooked?

Insert a toothpick into the center; it should come out clean or with a few moist crumbs. The internal temperature should read 200–205 °F (93–96 °C) on a thermometer.

Can I make this cake gluten‑free?

Replace the all‑purpose flour with a 1‑to‑1 gluten‑free flour blend that includes xanthan gum. The rest of the recipe stays the same.

What frosting pairs best with this cake?

A classic chocolate ganache, buttercream, or cream cheese frosting all complement the moist crumb. Ensure the cake is completely cool before frosting to avoid melting.

Read next