Moist Chocolate Cake Recipe (Two 9 Inch Layers)
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.
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.
More free baking tools
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.
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.
Chocolate cake pan sizes and bake times
| Pan | Batter | Time at 350°F |
|---|---|---|
| Two 9 inch rounds | Whole batch | 30 to 35 minutes |
| Two 8 inch rounds | Whole batch | 33 to 38 minutes |
| Three 8 inch rounds | 1 1/2 batches | 28 to 32 minutes |
| 9 x 13 sheet cake | Whole batch | 35 to 40 minutes |
| Cupcakes | About 24, two thirds full | 20 to 24 minutes |
| Bundt pan, 10 to 12 cup | Whole batch | 40 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.
The best frosting for chocolate cake
- Chocolate buttercream: the classic birthday choice. Our chocolate frosting recipe makes enough for this two-layer cake.
- Ganache: glossy and rich. Pour it over the top and let it drip down the sides. See our ganache ratio guide and how to get a drip effect.
- Cream cheese frosting: tangy and a little lighter. Make 1 1/2 batches of our cream cheese frosting.
- Peppermint for Christmas: add 1/4 tsp peppermint extract to vanilla buttercream and decorate with crushed candy canes.
- Whipped cream and berries: light and simple. Keep it chilled.
How to get flat cake layers
- Weigh the batter into each pan so they bake evenly.
- Tap the pans on the counter to release big air bubbles.
- Use cake strips or wrap the pans in damp towel strips held with foil for flatter tops.
- Level them with a long serrated knife once cool, if they domed. Snack on the scraps.
More tips in why is my cake uneven.
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.
What each ingredient does
- Cocoa powder: all the chocolate flavor. Use unsweetened cocoa, not hot cocoa mix.
- Sugar: sweetness and moisture; it also keeps the crumb tender.
- Oil: a soft, moist cake that stays tender even when cold.
- Eggs: structure and richness.
- Baking powder and soda: lift. The soda reacts with the natural acidity in cocoa.
- Boiling water: blooms the cocoa and thins the batter for a moist, fine crumb.
How much frosting for a chocolate cake?
| Cake | Frosting |
|---|---|
| Two 9 inch layers, filled and frosted | About 4 to 4 1/2 cups |
| Three 8 inch layers | About 5 to 6 cups |
| 9 x 13 sheet cake, top only | About 2 1/2 to 3 cups |
| 24 cupcakes, piped | About 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.
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):
| Ingredient | US measure | Weight |
|---|---|---|
| granulated sugar | 2 cups | 400 g |
| all-purpose flour | 1 3/4 cups | 219 g |
| unsweetened cocoa powder | 3/4 cup | 64 g |
| baking powder | 1 1/2 tsp | 6 g |
| baking soda | 1 1/2 tsp | 9 g |
| salt | 1 tsp | 6 g |
| large eggs, room temperature | 2 large | 100 g |
| whole milk | 1 cup | 240 g |
| vegetable oil | 1/2 cup | 109 g |
| vanilla extract | 2 tsp | 8 g |
| boiling water (or hot coffee) | 1 cup | 240 g |
Want to convert your own recipes? The grams to cups converter does it ingredient by ingredient.
Common chocolate cake mistakes
- Dry cake: overbaked or too much flour. Start checking at 30 minutes.
- Sunken middle: underbaked or old leaveners, or the oven door opened too early. See why cakes sink.
- Stuck layers: skip the parchment and you'll be sorry. Here's how to line a cake pan.
- Frosting a warm cake: the frosting melts and slides. Cool the layers completely.
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.



