Lattes

Latte recipes, espresso drinks and coffee how-to

In this article
  1. What You Need for the Batter and Frosting
  2. Mix the Batter in One Bowl
  3. Why the Cake Goes Dry, Dense, or Sunken—and the Fix
  4. Scaling for Half or Double Batches
  5. How to Tell When It’s Done
  6. Storing and Freezing the Cake
  7. Why Coffee Works and How to Substitute
  8. Frosting the Cake Without Crumbs

Chocolate Cake from Scratch with Coffee

· 5 min read · Latte Recipes

Time: 20 minutes prep, 30-35 minutes bake   Serves: 12   The key step: Use hot coffee in the batter to bloom the cocoa and deepen flavor. This one-bowl chocolate cake is moist, tender, and not overly sweet, with a dark chocolate crumb that pairs well with any frosting. The coffee doesn’t make it taste like coffee—it intensifies the chocolate.

What You Need for the Batter and Frosting

Measure all ingredients before starting. Use room-temperature eggs and buttermilk for even mixing. The coffee should be freshly brewed and hot (about 200°F/93°C) when added.

  • 1 3/4 cups (220 g) all-purpose flour
  • 3/4 cup (65 g) unsweetened cocoa powder (natural or Dutch-process)
  • 2 cups (400 g) granulated sugar
  • 1 1/2 tsp baking powder
  • 1 1/2 tsp baking soda
  • 1 tsp salt
  • 2 large eggs, room temperature
  • 1 cup (240 ml) buttermilk, room temperature
  • 1/2 cup (120 ml) vegetable oil
  • 2 tsp vanilla extract
  • 1 cup (240 ml) hot coffee

For a simple chocolate frosting (optional):

  • 1/2 cup (115 g) unsalted butter, softened
  • 2 cups (240 g) powdered sugar
  • 1/2 cup (45 g) cocoa powder
  • 1/4 cup (60 ml) milk or heavy cream
  • 1 tsp vanilla extract

Mix the Batter in One Bowl

  1. Preheat oven to 350°F (175°C). Grease two 9-inch round pans, or one 9x13-inch pan, and line the bottoms with parchment.
  2. In a large bowl, whisk together flour, cocoa, sugar, baking powder, baking soda, and salt until no lumps remain.
  3. Add eggs, buttermilk, oil, and vanilla. Beat on medium speed for 2 minutes, scraping the bowl once. The batter will be thick.
  4. Slowly pour in the hot coffee while mixing on low. Mix just until combined—the batter will be thin. This is correct.
  5. Divide batter evenly between pans (about 3 cups each). Bake for 30-35 minutes, until a toothpick inserted in the center comes out with a few moist crumbs, not wet batter. The cake should pull away from the pan edges.
  6. Cool in pans on a rack for 10 minutes, then turn out and cool completely before frosting. If using a 9x13 pan, cool completely in the pan.

Why the Cake Goes Dry, Dense, or Sunken—and the Fix

Dry cake: Overbaking is the usual cause. Start checking at 30 minutes. Also, measuring flour by scooping packs it; spoon flour into the cup and level it, or weigh it. If the batter looks curdled when you add coffee, that’s normal—keep mixing.

Dense, gummy crumb: Overmixing after adding the coffee develops gluten. Mix only until no white streaks remain. Also, ensure your baking soda and powder are fresh—test by dropping a teaspoon of baking soda in vinegar; it should fizz vigorously.

Sunken center: Opening the oven door before 30 minutes lets cold air in and collapses the structure. Also, if you used a pan smaller than 9 inches, the batter is too thick and the center won’t cook through. Use the exact pan size.

Scaling for Half or Double Batches

For a half batch, use one 8-inch round pan and bake 25-30 minutes. For a double batch, use two 9x13 pans or three 9-inch rounds; bake 9x13 pans for 35-40 minutes, rounds for 30-35 minutes. The table below adjusts the key wet ingredients.

BatchFlourSugarButtermilkOilCoffee
Half7/8 cup (110 g)1 cup (200 g)1/2 cup (120 ml)1/4 cup (60 ml)1/2 cup (120 ml)
Full1 3/4 cups (220 g)2 cups (400 g)1 cup (240 ml)1/2 cup (120 ml)1 cup (240 ml)
Double3 1/2 cups (440 g)4 cups (800 g)2 cups (480 ml)1 cup (240 ml)2 cups (480 ml)

Keep the same baking powder and soda amounts per batch: 1 1/2 tsp each for full, 3/4 tsp for half, 3 tsp for double.

How to Tell When It’s Done

Use a digital thermometer: the center should read 200-205°F (93-96°C). A toothpick test is also fine—moist crumbs stick, but no wet batter. The edges will shrink slightly from the pan. If the top springs back when pressed lightly, it’s done.

If the top browns too fast, tent loosely with foil after 20 minutes. If the cake sinks after cooling, it was underbaked—check the center next time with a thermometer.

Storing and Freezing the Cake

Frosted cake keeps at room temperature for up to 3 days in an airtight container. Unfrosted layers wrap well and stay fresh for 2 days at room temperature, or up to 1 week in the fridge. Freeze unfrosted layers, wrapped tightly in plastic and foil, for up to 3 months; thaw overnight in the fridge before frosting.

If you frost with the buttercream above, it can sit at room temperature for up to 2 days. Any cake with cream cheese or whipped cream frosting must be refrigerated and used within 3 days. Perishable cakes should not sit out more than 2 hours total (1 hour if room is above 90°F/32°C).

To freeze frosted cake, freeze it unwrapped for 1 hour until the frosting hardens, then wrap and freeze for up to 2 months. Thaw in the fridge overnight—do not unwrap until fully thawed to avoid condensation.

Why Coffee Works and How to Substitute

Hot coffee dissolves cocoa’s starches and enhances its flavor compounds, making the chocolate taste deeper and less bitter. You can use espresso, strong brewed coffee, or even instant coffee dissolved in hot water. If you omit coffee, replace with hot water, but the chocolate flavor will be flatter. The coffee does not add a coffee taste.

For a caffeine-free version, use decaf coffee or hot water plus 1 tsp instant espresso powder (optional). The batter is thin—that’s what makes the cake moist. Don’t be tempted to add more flour.

Frosting the Cake Without Crumbs

Apply a thin crumb coat first: spread a thin layer of frosting over the entire cake, then chill for 15 minutes. Then apply the final layer. For a neat edge, use an offset spatula dipped in hot water. If you’re short on time, serve the cake unfrosted with a dusting of powdered sugar—it’s still moist and rich.