Your free Layer Cake Starter Kit + weekly picks →

Moist Chocolate Cake Recipe: Easy Pantry Cake with Coffee

Sliced moist chocolate cake recipe showing a deep-brown, tender crumb on a white plate

Moist chocolate cake recipe with a velvety, fudgy crumb ready in just 55 minutes. Pantry staples and a splash of hot coffee make it easy. Bake it today!

Priya Raman

Priya Raman

Author

9 min read
Jump to recipe

This moist chocolate cake recipe bakes into a velvety, deep-brown crumb that fills your whole kitchen with warm cocoa. Ready in 55 minutes, this pantry cake leans on coffee and sour cream to stay soft long after it cools. It's my go-to for birthdays, potlucks, and any Tuesday that needs a little chocolate.


Why This Recipe Works

• Oil keeps the crumb soft: Liquid oil stays fluid after cooling, so the crumb feels tender rather than firm. Butter turns solid as it chills, which is why oil cakes stay softer for days.
• Room-temperature eggs and milk emulsify: Matched temperatures blend the eggs, milk, and oil into one smooth batter. Cold dairy can seize the oil into tiny droplets and leave a coarser crumb.
• Pull the cake at moist crumbs: The center keeps cooking from residual heat as the cake rests. A completely clean toothpick means overbaked, and that dries the crumb fast.
• Cool in the pan first: Ten minutes in the pan lets the layers set gently. Warm cakes release cleanly without tearing, so every layer stays intact and tender.

Ingredients You'll Need

All-purpose flour: This is the structure of the cake. Spoon it into your measuring cup and level it off so you don't pack in extra. Cake flour works for a finer, softer crumb, in the same amount.

Granulated sugar: Sugar sweetens the batter and holds onto moisture, which keeps the crumb tender. It also gives the top a light, slightly crisp edge. Light brown sugar is a good swap, though it adds more moisture and caramel notes.

Unsweetened cocoa powder: Cocoa gives this cake its deep chocolate flavor and rich brown color. Sift it first so no lumps hide in the batter. Dutch-process cocoa works in the same amount and gives a darker, mellower taste.

Baking soda: Baking soda reacts with the acidity in the cocoa and sour cream to lift the layers. It works fast, so get the batter into the pans promptly. If you're out, buy a small box, because baking powder alone won't match its lift here.

Baking powder: Baking powder adds extra lift so the layers rise evenly. It carries its own acid, so it works without help. Check the date on the can, since old powder loses its punch. To make a substitute, mix 1/2 teaspoon cream of tartar with 1/4 teaspoon baking soda.

Fine sea salt: Salt sharpens the chocolate and balances the sweetness. A little goes a long way, so measure it carefully. Table salt works in the same amount, since the two measure similarly by teaspoon.

Large eggs: Eggs bind the batter and add richness and structure. Bring them to room temperature so they blend smoothly with the oil and milk. For a vegan swap, mix 1 tablespoon ground flax with 3 tablespoons water per egg.

Whole milk: Milk adds moisture and tenderness, and it helps the batter flow evenly. Room-temperature milk mixes more easily with the oil. Use 2% milk, or an unsweetened oat milk for a similar texture.

Full-fat sour cream: Sour cream brings richness, a gentle tang, and a dense, moist crumb. Its acidity also helps the leavening work. Full-fat Greek yogurt is the best swap, in the same amount, though it's a bit thicker.

Vegetable oil: Oil stays liquid when chilled, so the crumb stays soft longer than butter would. It coats the flour and keeps the layers tender. Canola oil works in the same amount.

Pure vanilla extract: Vanilla rounds out the chocolate and adds a warm, sweet aroma. A small amount goes a long way. Vanilla bean paste works in the same amount and adds tiny flecks.

Hot strong brewed coffee: Coffee deepens the chocolate flavor without tasting like coffee. Its heat also helps the cocoa bloom in the batter. Hot water works in the same amount, though the flavor will be a little milder.

flour, granulated sugar, cocoa powder, and baking soda in separate bowls on a wooden board baking powder, fine sea salt, eggs, and whole milk in separate bowls on a wooden board sour cream, vegetable oil, vanilla extract, and hot coffee in separate bowls on a wooden board

How to Make It (Step by Step)

Whisk the dry and wet ingredients separately, combine them, stir in hot coffee, and bake in two pans. Just two cake pans and a couple of bowls, and even a first-time baker can nail it.

flour, sugar and cocoa powder measured into small bowls for a moist chocolate cake
  1. Preheat the oven to 350°F (175°C) and grease two round cake pans until their insides look evenly shiny, about 10-15 minutes.
Two round cake pans greased and ready beside a preheating oven
  1. Whisk the flour, sugar, cocoa, baking soda, baking powder, and salt in a large bowl until the mix looks uniformly dark brown with no lumps, 1-2 minutes at room temperature (68°F / 20°C).
Large bowl of whisked flour, cocoa, sugar and leavening, dark brown and evenly blended
  1. Whisk the eggs, milk, sour cream, vegetable oil, and vanilla in a separate bowl until the liquid is smooth, pale, and velvety, 1 minute at room temperature (68°F / 20°C).
Bowl of smooth, pale, velvety wet mixture with a whisk resting beside it
  1. Pour the wet mixture into the dry ingredients and stir until a thick, smooth batter forms with no dry streaks, 1-2 minutes at room temperature (68°F / 20°C).
Thick glossy chocolate batter in a large bowl, smooth with no dry streaks
  1. Whisk in the hot strong coffee (about 180°F / 82°C) until the batter turns thin, glossy, and pourable, 30-60 seconds.
Thin glossy dark chocolate batter in a bowl, fluid and pourable, with a whisk beside it
  1. Divide the batter evenly between the prepared pans and bake until a toothpick inserted in the center comes out with a few moist crumbs, 30-35 minutes at 350°F (175°C).
Two baked round chocolate cakes in pans, set tops, and a toothpick resting nearby
  1. Cool the cakes in their pans on a wire rack until the pans feel warm rather than hot, about 10 minutes at room temperature (68°F / 20°C).
Two round chocolate cakes resting in their pans on a wire cooling rack
  1. Turn the cakes out onto a wire rack and cool them fully until the layers feel cool and firm to the touch, about 1 hour at room temperature (68°F / 20°C).
Two cooled round chocolate cake layers on a wire rack with flat tops

Recipe Notes

• Storage: Keep the cooled cake covered in the fridge for up to 4 days. Freeze wrapped layers for up to 3 months. For a warm slice, microwave for 8 seconds.
• Key substitution: No sour cream? Use plain full-fat Greek yogurt, swapped one-to-one. The crumb stays tangy, tender, and just as velvety.
• Make-ahead tip: Bake the layers up to two days early. Wrap them tightly once fully cooled, then keep them at room temperature until you're ready to assemble.
• Common mistake: Skipping the cocoa sift leaves bitter, dusty pockets in the batter. Sift it first, every time, for a smooth, deep-brown crumb.

Serving size: 1 portion · Calories: 380 · Total Fat: 17g · Saturated Fat: 5g · Carbs: 54g · Fiber: 3g · Sugar: 38g · Protein: 6g · Sodium: 330mg

Tips and Tricks

  • Equipment: Use two matching round cake pans: Two pans bake two even layers at once. Matching sizes keep the layers level, so your stack stands tall and straight.
Two greased round cake pans with shiny insides sitting side by side on a counter
  • Temperature precision: Whisk in coffee at about 180°F (82°C): Hot coffee thins the batter to a glossy, pourable consistency. Whisk it in right away, while it's still hot.
  • Common mistake: Overmixing after the flour goes in: Stirring the batter far past smooth builds gluten. The crumb turns tough and dense instead of soft and tender.
  • Flavour upgrade: Add a small pinch of cinnamon: Whisk a pinch of ground cinnamon into the dry ingredients for warmth. It rounds out the cocoa without tasting spiced.
  • Texture tip: Tap the filled pans before baking: Tap each pan firmly on the counter a few times. This releases trapped air bubbles for a fine, even, moist crumb with small cells.
Sliced chocolate cake layer showing a fine, moist, deep-brown crumb on a plate

Frequently Asked Questions

Can I make this moist chocolate cake dairy-free or egg-free?

Replace the 1 cup whole milk with 1 cup unsweetened oat or soy milk, and swap the 2 eggs for ½ cup unsweetened applesauce. The crumb will be a little denser, so pull the cake when a toothpick shows moist crumbs and check it a few minutes early.

Can I store this moist chocolate cake at room temperature instead of the fridge?

Yes, a fully cooled cake keeps well under a cake dome at room temperature for up to 2 days, since fridge air dries the crumb. Thaw frozen layers in the fridge overnight, then rest them 1 hour at room temperature before frosting.

Why did my chocolate cake sink in the middle after baking?

Sinking usually means the oven door was opened early or the leavening is stale, so check that your baking soda and powder are fresh. Confirm the oven reads 350°F with an oven thermometer, and leave the door closed until the center looks set.

What to Serve With This

  • Lemon sorbet: Its sharp, icy brightness cuts through the cocoa richness and cools every bite down.
  • Fresh raspberries: Tart, juicy berries add a bright, acidic pop against the dense, velvety chocolate crumb.
  • Orange segments: Juicy citrus wedges bring a fresh zing that lifts the deep cocoa flavour.
  • Hot black coffee: A bitter, roasty sip balances the sweetness and echoes the coffee already baked into the batter.
Moist chocolate cake slice plated with raspberries, orange segments, lemon sorbet and black coffee

Moist Chocolate Cake Recipe: Easy Pantry Cake with Coffee

Dessert / American

Prep
20 min
Cook
35 min
Total
55 min
Servings
12
Calories
380 kcal

Ingredients

  • 2 cups (250 g) all-purpose flour, spooned and leveled
  • 2 cups (400 g) granulated sugar
  • ¾ cup (65 g) unsweetened cocoa powder, sifted
  • 2 teaspoons baking soda
  • 1 teaspoon baking powder
  • 1 teaspoon fine sea salt
  • 2 large eggs, room temperature
  • 1 cup (240 ml) whole milk, room temperature
  • ½ cup (120 g) full-fat sour cream, room temperature
  • ½ cup (120 ml) vegetable oil
  • 2 teaspoons pure vanilla extract
  • 1 cup (240 ml) hot strong brewed coffee or hot water

Instructions

  1. Preheat the oven to 350°F (175°C) and grease two round cake pans until their insides look evenly shiny, about 10-15 minutes.
  2. Whisk the flour, sugar, cocoa, baking soda, baking powder, and salt in a large bowl until the mix looks uniformly dark brown with no lumps, 1-2 minutes at room temperature (68°F / 20°C).
  3. Whisk the eggs, milk, sour cream, vegetable oil, and vanilla in a separate bowl until the liquid is smooth, pale, and velvety, 1 minute at room temperature (68°F / 20°C).
  4. Pour the wet mixture into the dry ingredients and stir until a thick, smooth batter forms with no dry streaks, 1-2 minutes at room temperature (68°F / 20°C).
  5. Whisk in the hot strong coffee (about 180°F / 82°C) until the batter turns thin, glossy, and pourable, 30-60 seconds.
  6. Divide the batter evenly between the prepared pans and bake until a toothpick inserted in the center comes out with a few moist crumbs, 30-35 minutes at 350°F (175°C).
  7. Cool the cakes in their pans on a wire rack until the pans feel warm rather than hot, about 10 minutes at room temperature (68°F / 20°C).
  8. Turn the cakes out onto a wire rack and cool them fully until the layers feel cool and firm to the touch, about 1 hour at room temperature (68°F / 20°C).

Share this article

About the author

Priya Raman

Priya Raman

Priya was told her whole life that a cake business was a silly dream, so she built one in the garage and outlasted every doubter. She still gets a lump in her throat when someone opens a box she made. Layer cakes are how she says the things she was never allowed to say out loud.

Related articles