Posted on — Leave a comment

Chocolate Cake Recipe: Moist, Rich & Easy From Scratch

Two-layer chocolate cake with chocolate buttercream, one slice removed to reveal a tender dark crumb and thin center filling.

Cut into this chocolate cake and the slice should hold its shape while the fork slips through a tender, dark crumb. The cocoa flavor is deep, the layers stay moist, and the cake has enough structure to fill and frost easily, then slice cleanly. It’s simple enough for a weekend bake but feels right at home with birthday candles on top.

Whisk the dry ingredients, add the eggs, buttermilk and oil, then finish with hot coffee. There’s no butter to cream and no mixer needed for the cake batter.

The only part that may look unusual is the consistency. Once the coffee goes in, the batter becomes quite thin. That’s expected.

Read the Cake Before You Start

  • Mixed batter: smooth, glossy and freely pourable.
  • Baked surface: the wet sheen has disappeared.
  • Center: a light touch springs back and a tester brings up moist crumbs, not liquid batter.
  • Ready to frost: the layers have no residual warmth.
Editorial baking guide showing thin chocolate cake batter, a baked chocolate cake surface, moist crumbs on a tester and a cooled bare cake layer.
These four stages turn timing into something you can see and feel, which is especially useful when ovens, pans and cooling conditions vary.

Chocolate Cake Recipe

Moist, Rich Chocolate Cake From Scratch

A rich cocoa layer cake made with oil, cultured buttermilk and hot coffee, then covered with chocolate buttercream made from cocoa and melted chocolate. The cake batter comes together by hand in one bowl.

Cake prep
About 25 minutes

Bake
About 28–32 minutes

Pan
2 × 9-inch rounds

Yield
12–14 slices

Frost + assemble: allow about 25–30 minutes once the layers are cool. Oven: 350°F / 175°C. Total elapsed time: allow about 2½–3¼ hours, including cooling and frosting; the exact cooling time depends on the pans and the room.

For the chocolate cake

  • 230 g (about 1¾ cups + 2 tablespoons) all-purpose flour — weight is preferred
  • 70 g (about ¾ cup + 1 tablespoon + 1 teaspoon) natural unsweetened cocoa powder — use natural cocoa, not Dutch-process, for the cake batter
  • 380 g (about 1¾ cups + 2 tablespoons) granulated sugar
  • 7 g (1½ teaspoons) baking soda
  • 4 g (1 teaspoon) baking powder
  • 5 g (about ¾ teaspoon) fine salt — volume varies with the salt used
  • 2 large eggs — about 100 g without shells
  • 240 ml (1 cup) cultured buttermilk
  • 120 ml (½ cup) neutral oil — vegetable, canola, sunflower or grapeseed oil
  • 10 ml (2 teaspoons) vanilla extract
  • 240 ml (1 cup) hot brewed coffee — decaf is fine; hot water also works

For the chocolate buttercream

  • 225 g (1 cup) unsalted butter — softened but not greasy
  • 300 g (about 2⅔ cups) powdered sugar
  • 55 g (about ⅔ cup) unsweetened cocoa powder — natural or Dutch-process both work in the buttercream
  • 115 g (4 oz) bittersweet or semisweet chocolate — melted and cooled until fluid but no longer warm
  • 60 ml (¼ cup) heavy cream to start — plus up to 30 ml (2 tablespoons) more if needed
  • 5 ml (1 teaspoon) vanilla extract
  • 2 g (about ⅓ teaspoon) fine salt — adjust to taste

Buttercream coverage: This batch is intended for a modest filling and a complete coat over two 9-inch layers. For three 8-inch layers, thick sides, tall borders, rosettes or generous piping, make 1½ batches.

Equipment

  • Two 9 × 2-inch round cake pans
  • Parchment paper
  • Large mixing bowl, whisk and flexible spatula
  • Kitchen scale, strongly recommended
  • Toothpick or cake tester
  • Cooling racks
  • Electric mixer for the buttercream
  • Offset spatula for filling and frosting
  • Long serrated knife, optional, if a domed layer needs leveling

Make the cake

  1. Prepare the oven and pans. Heat the oven to 350°F / 175°C with a rack near the center. Lightly grease two 9 × 2-inch round pans and line the bottoms with parchment. Have both pans ready before you mix the batter.
  2. Whisk the dry ingredients. Combine the flour, cocoa, sugar, baking soda, baking powder and salt in a large bowl. Break up any visible cocoa lumps; sift the cocoa first if it is particularly clumpy.
  3. Mix in the eggs and liquids. Add the eggs, buttermilk, oil and vanilla. Whisk until combined, scraping the bottom and sides of the bowl once. Stop when no dry pockets remain.
  4. Add the hot coffee. Pour in the coffee and whisk gently until the batter is smooth and glossy. It will loosen considerably and pour easily from the whisk or spatula. Don’t add extra flour to thicken it.
  5. Divide and bake. Pour the batter evenly between the pans; a kitchen scale makes it easy to keep the layers the same depth. Put both pans into the oven once the batter is divided.
  6. Start checking at 28 minutes. The centers should be set and spring lightly under a fingertip. A tester inserted near the middle should bring up a few moist crumbs but no liquid batter. Give the cakes more time if needed.
  7. Cool the layers. Leave them in the pans for 12–15 minutes, then carefully turn them onto cooling racks and remove the parchment. Allow roughly 1–1½ hours or longer for full cooling. Touch the center before frosting; any remaining warmth means the layers need more time.

Make the chocolate buttercream

  1. Beat the softened butter until creamy and smooth.
  2. With the mixer on low, gradually add the powdered sugar, cocoa and salt. Scrape the bowl as needed.
  3. Add the melted chocolate when it is fluid but no longer warm, then beat in the vanilla. The buttercream will become darker, smoother and silkier as the chocolate blends in.
  4. Mix in 60 ml / ¼ cup heavy cream. Still too stiff? Add more cream one tablespoon at a time. At the right consistency, a spatula drawn through it leaves a soft ridge and the frosting moves easily across the cake.
Chocolate buttercream in a mixing bowl with a spatula groove forming a soft ridge that holds its shape.
A soft ridge that holds briefly is the sweet spot: structured enough to coat the cake, supple enough to spread without dragging crumbs.

Fill and frost

Level a pronounced dome only if you need to. Spread buttercream over the first layer, then add the second layer.

If loose crumbs are a problem, spread on a thin crumb coat and let it firm briefly before adding the final coat over the top and sides. A completely cooled cake helps the buttercream glide instead of pulling crumbs from the surface; if the frosting feels loose, give it a few minutes to firm before continuing.

Two-layer chocolate cake with a thin chocolate crumb coat, leaving parts of the dark cake visible beneath the frosting.
Crumb coats can stay visibly thin; their job is to trap loose crumbs, not provide the finished surface.

What to Watch, Change and Fix

The method is simple; the useful decisions come from reading the batter, center and finished texture as you go.

When the Cake Is Done

Chocolate cake doesn’t give you much help from color. The surface starts dark, so once you reach the first check at about 28 minutes, read the center rather than the clock.

Use several signs together. The middle should no longer look wet or wobble, a light touch should spring back, and a tester should show moist crumbs rather than liquid batter. One sign alone can fool you: a tester can pass through a baked patch while another part of a deep cake still needs time.

Cake tester held beside a bare chocolate cake layer with several small moist crumbs clinging to the tip.
Small, distinct moist crumbs are different from a glossy smear of batter—and that distinction is more useful than chasing a perfectly clean tester.

Moist and underbaked aren’t the same thing. A properly baked cake still has a recognizable crumb. By comparison, a gummy strip looks compressed and pasty; an underbaked center may be shiny and smear like batter. For a deliberately flowing chocolate center, our chocolate lava cake recipe is built around a very different result.

Side-by-side bare chocolate cake sections comparing an open moist crumb with a darker compressed underbaked center.
Moist cake keeps visible air cells; an underbaked center compresses into a denser, pastier band. Look at pore structure, not color alone.

How the Cake Gets Its Moist Crumb and Deep Chocolate Flavor

The soft crumb comes from several things working together. Oil helps it stay tender after cooling, buttermilk brings moisture and acidity, and sugar contributes to moisture retention and tenderness. Cocoa builds the chocolate base; hot coffee makes that flavor deeper and rounder.

The finished cake is soft rather than brownie-dense: tender enough to yield easily under a fork, but sturdy enough to stack and slice cleanly. For a darker, fudgier style, our Matilda cake recipe goes further in that direction.

Close-up of chocolate cake crumb with small irregular pores as a fork breaks off a tender piece.
The target is cake-like tenderness: irregular pores, matte crumb walls and a soft break under the fork—not brownie-like density.

Natural cocoa matters here

This cake is written for natural unsweetened cocoa powder. Natural and Dutch-process cocoa differ in acidity as well as flavor and color. That changes how the cocoa behaves alongside baking soda and baking powder, so don’t treat Dutch-process as an automatic swap in the cake batter. King Arthur’s guide to natural and Dutch-process cocoa explains the distinction in more detail.

Weigh the 70 g if possible. Cocoa settles differently in a measuring cup, and a heavy scoop changes the balance more quickly than it looks.

Bowls of natural unsweetened cocoa and darker Dutch-process cocoa shown side by side for comparison.
Dutch-process cocoa may look darker, but acidity is the important difference here. This batter is balanced around natural unsweetened cocoa.

Coffee deepens the cocoa

The cake isn’t intended to taste like mocha; the coffee mainly makes the cocoa taste deeper and rounder. Decaf works the same way. Hot water is also fine when coffee isn’t an option, though the chocolate flavor will be a little less full.

Hot coffee pouring into smooth chocolate cake batter in a stainless-steel mixing bowl.
The batter should already be smooth before the coffee goes in; the hot liquid then loosens it into the final pourable consistency.

Why Is Chocolate Cake Batter So Thin?

Thin is normal here. The hot coffee loosens the batter into a smooth, glossy mixture that pours in a steady stream.

Don’t compensate with extra flour. That changes the flour-to-liquid balance and can leave the finished cake heavier and drier. Scrape the bowl once, make sure no dry flour or cocoa remains, and stop mixing.

Thin glossy chocolate cake batter pouring in a continuous stream into a round aluminum cake pan and leveling across the surface.
A brief ripple that quickly levels is exactly what this thin chocolate cake batter should do.

Pan Sizes and Bake Times

Pan capacity isn’t the whole story. Batter depth changes how quickly heat reaches the center, so a deeper layer generally needs more time even when the pans hold a similar amount of batter. King Arthur’s baking-pan guide is useful when comparing unfamiliar sizes and shapes.

Two equal-height round cake pans filled with chocolate batter, comparing a wider 9-inch shallow layer with a narrower 8-inch deeper layer.
Equal batter sits about 27% deeper in an 8-inch round than a 9-inch round, which helps explain the longer bake.
PanUseBegin checking
2 × 9 × 2-inch roundsStandard two-layer cakeAbout 28 minutes
2 × 8 × 2-inch roundsDeeper two-layer cakeAbout 33–35 minutes
3 × 8 × 2-inch roundsThree-layer cakeAbout 24–26 minutes
9 × 13 × 2-inch panSingle rectangular cakeAbout 32–34 minutes

Treat the alternative-pan times as starting points, not promises. Oven accuracy, pan material and batter depth can move the finish in either direction. The center still decides.

Chocolate Cake Troubleshooting

Start with the symptom you can actually see or feel. Different problems point to different first checks.

What you seeCheck firstNext move
Dry or crumblyFlour + bake timeWeigh flour; check the cake earlier.
Wet or gummy centerDoneness + pan depthConfirm the pan and whether the center fully set.
Tough or rubberyFlour + mixingMeasure carefully; stop once uniform.
Dense instead of cake-likeIngredient changes + leaveningReview substitutions and leavener measurements.
Middle sinksCenter setCheck doneness first, then oven temperature.
Large holes or tunnelsMixing + ingredient changesMix only until uniform; review substitutions.
Bitter or soda-likeCocoa + leavenersCheck cocoa type and leavener measurements.
Baked edges, raw middlePan depth + ovenConfirm pan dimensions and oven temperature.
Frosting slidesCake temperature + buttercream too looseCool the cake fully; let loose buttercream firm.
Frosting pulls crumbsCake temperature + buttercream too stiffCool the cake fully; soften stiff buttercream slightly and use a crumb coat.

Three problems are especially useful to recognize by sight.

Why did my chocolate cake sink in the middle?

A center that hasn’t developed enough structure can rise in the oven and fall as the cake cools. Doneness is the first thing to consider. With that ruled out, look next at oven temperature, pan dimensions, leavener measurements and any major ingredient changes.

Bare chocolate cake in a round aluminum pan with a raised outer ring and a shallow depression in the center.
True sinking leaves the center visibly lower than the set outer ring; a slight dome or uneven top is not the same problem.

Why is the center of my chocolate cake gummy?

A gummy middle looks compressed and damp, not simply moist. Deep batter can set around the edges while the center is still catching up. Compare your pan size and batter depth with the recipe; when those match, a cool-running oven is worth checking with an oven thermometer.

Close-up of bare chocolate cake showing open crumb around a darker dense horizontal band with compressed pores in the center.
A gummy band is set but compressed, with pores that nearly disappear. That separates it from both normal moisture and visibly raw batter.

Why did my chocolate cake turn out dry?

Too much flour and too much oven time are the two obvious suspects. Weigh the 230 g of flour if you can; a packed measuring cup can quietly add more than the recipe needs. With the flour amount ruled out, look at when the cake came out of the oven. Extra oven time keeps pulling moisture from a center that is already set.

Bare chocolate cake breaking apart under a fork, with a fractured crumb and loose chocolate cake crumbs scattered around it.
Dryness often shows in the break before the color: the crumb fractures into ragged pieces instead of separating in soft clusters.

Chocolate Cake Substitutions

Flavor changes give you more room than changes to the cake’s basic structure. The swaps below are the ones most likely to alter how this cake behaves.

ChangeWhat to expect
Natural cocoa → Dutch-processDon’t treat this as an automatic 1:1 swap in the cake; the acidity differs.
Oil → melted butterExpect a different flavor and a firmer texture once the cake cools.
Large sugar reductionChanges moisture, tenderness and crumb as well as sweetness.
Egg-free, dairy-free, gluten-free or flourlessUse a recipe designed around those changes instead.

For a cake without eggs or dairy, our vegan chocolate cake recipes are built around those needs instead of asking this cake to absorb several major substitutions at once.

Making it for the first time? Keep the base recipe as written. Seeing how the batter, baked layers and crumb behave in your own oven gives you a much better reference point for future changes.

Chocolate Frosting

This chocolate buttercream gets its depth from both cocoa and melted bittersweet or semisweet chocolate. The melted chocolate rounds out the cocoa and gives the frosting a silkier finish. You want enough chocolate presence to stand beside the cake without turning every bite into frosting first, cake second.

Unlike the cake batter, the buttercream isn’t relying on cocoa for its leavening balance, so natural or Dutch-process cocoa both work here. Choose whichever flavor you prefer. If you’re making it now, jump back to the buttercream method.

Two chocolate cakes with cutaways comparing a wider two-layer 9-inch cake and a taller three-layer 8-inch cake with chocolate buttercream.
Three 8-inch layers create two filling surfaces, so the taller cake can use more buttercream even though its diameter is smaller.

For more tang against the chocolate, our chocolate cream cheese frosting takes the cake in a different direction. If coconut-pecan filling is what you want, that’s the defining finish in our German chocolate cake.

Making the Chocolate Cake Ahead

Baking and decorating don’t need to happen on the same day. For a birthday or dinner, getting the layers baked ahead means the oven is off, the mixing bowl is washed and the cake is completely cool before you start decorating.

Whole two-layer chocolate cake with chocolate buttercream and lit slender candles on a polished stand in a red celebration setting.
A simple two-layer chocolate cake already has enough presence for candles and a centerpiece moment.

1–2 days ahead: Cool the unfrosted layers completely and wrap them tightly. Keep them at a cool room temperature; refrigerate instead if the kitchen is particularly warm.

For longer storage: Freeze the wrapped layers. Aim to use them within about 1 month for the best texture. Thaw overnight in the refrigerator while still wrapped.

Buttercream: Make it ahead and refrigerate it in an airtight container for up to 1 week. Let it become spreadable again, then re-whip until smooth before frosting.

Serving day: Fill and frost the cooled layers. Keep the finished cake refrigerated until you are ready to bring out the portion you plan to serve.

Bare round chocolate cake layer tightly wrapped in clear plastic on a metal tray, with a second wrapped layer blurred behind it.
Thaw frozen layers while still wrapped so condensation collects on the plastic, while the seal helps protect the crumb from drying.

Layers ready to decorate? Go to Fill and Frost.

Storing leftover chocolate cake

Assembled cake: Keep it covered in the refrigerator and plan to enjoy it within about 3–4 days. Cover exposed cut surfaces closely so the crumb doesn’t dry out.

For the best texture: Take out only the portion you plan to serve a little before eating.

Individual slices: Wrap well and freeze for up to about 1 month for best quality. Thaw covered in the refrigerator before serving.

Two-layer chocolate cake slice on a cool gray plate with a thin chocolate buttercream filling, modest frosting and a fork nearby.
Let the refrigerator chill ease until the buttercream yields easily to a fork; the slice does not need to become warm.

Once the chill has eased, the crumb turns tender again, the frosting silkier and the chocolate fuller. That’s the slice worth saving for tomorrow.

Leave a Reply

Your email address will not be published. Required fields are marked *