Baking Resources
Home › Guides

Moist Chocolate Cake Recipe (Two 9 Inch Layers)

Baking Resources Editorial · Reviewed by Joan Ramos · Updated November 2026 · 5 min read

Chocolate Cake Recipe: Moist, Easy Two Layer Cake

The best moist chocolate cake recipe is a one bowl batter of sugar, flour, cocoa, eggs, milk, oil and vanilla, thinned with a cup of boiling water and baked in two 9 inch pans at 350°F. The hot water blooms the cocoa for deep chocolate flavor, and the oil keeps the cake soft and moist for days.

It takes about 15 minutes to mix, about 30 minutes to bake, and gives you two tender layers, about 12 slices once frosted. The same batter makes a 9x13 sheet cake or about 24 cupcakes; just pick it on the card for the right bake time.

After the card you'll find the best frosting for it, how to get flat layers, make-ahead and freezing tips, and fixes for dry or sunken cakes.

Jump to the recipe card ↓

Recipe card

Moist Chocolate Cake recipe

Pick your pan and how many you need. Every amount, the bake time and your start time update for you.

Why is the batter so thin?

Don't worry, it's supposed to be! The cup of boiling water does two jobs. It blooms the cocoa, melting it and releasing much deeper chocolate flavor, and it adds moisture that bakes into a soft, tender crumb. Thin batter in, moist cake out.

Using hot coffee instead of water makes the chocolate taste even richer without tasting like coffee. Either works.

Why oil instead of butter?

Oil stays liquid at room temperature, so oil cakes stay soft and moist even straight from the fridge. Butter cakes taste buttery but firm up when cold. For a chocolate cake, the cocoa carries the flavor, so oil is the winner for texture. Read more in butter vs oil in baking.

Baking guideButter vs Oil in Baking: Swap Amounts Both Ways + CalculatorGet the details →

Natural or Dutch-process cocoa?

Both work here, since the recipe uses baking powder and baking soda. Natural cocoa gives a lighter, reddish-brown cake with a fruity chocolate flavor. Dutch-process gives a darker, smoother, more mellow cake. Our Dutch process vs natural cocoa guide explains the difference.

Baking guideDutch Process vs Natural Cocoa: How to Swap Them SafelySee the chart →

Chocolate cake pan sizes and bake times

PanBatterTime at 350°F
Two 9 inch roundsWhole batch30 to 35 minutes
Two 8 inch roundsWhole batch33 to 38 minutes
Three 8 inch rounds1 1/2 batches28 to 32 minutes
9 x 13 sheet cakeWhole batch35 to 40 minutes
CupcakesAbout 24, two thirds full20 to 24 minutes
Bundt pan, 10 to 12 cupWhole batch40 to 50 minutes

Using another pan? The cake pan converter tells you how much batter it holds, and our round cake pan sizes guide lists servings for each. For times, see how long to bake a cake.

Free toolCake Pan Converter: Will Your Batter Fit?Run my numbers → Baking guideRound Cake Pan Sizes and Dimensions: Chart and Free ConverterSee the sizes →

The best frosting for chocolate cake

Baking guideChocolate Frosting Recipe: Easy, Fluffy, With Cocoa PowderRead the guide → Baking guideGanache Ratio Guide: Truffles, Glaze and FrostingLearn more →

How to get flat cake layers

More tips in why is my cake uneven.

Baking guideWhy Did My Cake Bake Unevenly? Causes and Real FixesSee what went wrong →

Chocolate sheet cake for a crowd

Pick the 9x13 setting on the card and bake 35 to 40 minutes. A 9x13 chocolate sheet cake serves about 20 and needs only about 3 cups of frosting on top. It's easy to carry to parties, potlucks and school events, and you can frost it right in the pan.

Make ahead and freezing

Bake the layers up to 2 days ahead, wrap them tightly once fully cool, and keep them at room temperature. Or freeze the wrapped layers for up to 3 months. Frosting a chilled or partly frozen layer is easier, with fewer crumbs. Our guide on how to freeze cake walks you through it.

Baking guideHow to Freeze Cake Layers Without Drying Them OutRead the storage guide →

What each ingredient does

How much frosting for a chocolate cake?

CakeFrosting
Two 9 inch layers, filled and frostedAbout 4 to 4 1/2 cups
Three 8 inch layersAbout 5 to 6 cups
9 x 13 sheet cake, top onlyAbout 2 1/2 to 3 cups
24 cupcakes, pipedAbout 4 1/2 cups

The frosting calculator works it out for any size, and the cake serving size chart shows how many slices you'll get.

Free toolFrosting Calculator: How Much Frosting Do I Need?Plug in my recipe → Free toolCake Serving Size Chart: How Many Does It Feed?Work out my amount →

Moist Chocolate Cake ingredients in grams

Weighing is the most reliable way to bake, especially for flour. Here are the weights for one batch (small amounts like spices are easiest measured with spoons):

IngredientUS measureWeight
granulated sugar2 cups400 g
all-purpose flour1 3/4 cups219 g
unsweetened cocoa powder3/4 cup64 g
baking powder1 1/2 tsp6 g
baking soda1 1/2 tsp9 g
salt1 tsp6 g
large eggs, room temperature2 large100 g
whole milk1 cup240 g
vegetable oil1/2 cup109 g
vanilla extract2 tsp8 g
boiling water (or hot coffee)1 cup240 g

Want to convert your own recipes? The grams to cups converter does it ingredient by ingredient.

Common chocolate cake mistakes

Questions people ask

What makes chocolate cake moist?

Oil instead of butter, plenty of liquid (including a cup of hot water or coffee), and not overbaking. Pull the cake when a toothpick shows a few moist crumbs.

Why do you add hot water to chocolate cake?

Hot water blooms the cocoa powder, which brings out a deeper chocolate flavor, and it adds moisture for a soft crumb. The batter will be thin, and that's normal.

How long do you bake a chocolate cake?

About 30 to 35 minutes at 350°F for two 9 inch layers, 35 to 40 minutes for a 9x13, and 20 to 24 minutes for cupcakes.

Can I use coffee in chocolate cake?

Yes. Swap the boiling water for hot coffee. It makes the chocolate taste richer without making the cake taste like coffee.

Can I make this chocolate cake in a 9x13 pan?

Yes. Pour the whole batter into a greased 9x13 pan and bake at 350°F for 35 to 40 minutes. It makes about 20 squares.

Can I freeze chocolate cake layers?

Yes. Wrap the completely cooled layers in plastic wrap and foil and freeze up to 3 months. Frost them while still slightly frozen for fewer crumbs.