This is the cake for birthdays, potlucks, and any day that needs a serious chocolate hit. It stays moist for days thanks to buttermilk, oil, and hot coffee, and it pairs well with vanilla ice cream, whipped cream, or a simple dusting of powdered sugar. Serve it as a layer cake with frosting or as a snack cake straight from the pan.
Why This Cake Stays Moist
The secret is a combination of wet ingredients that keep the crumb tender: oil instead of butter (oil stays liquid at room temperature), buttermilk for tang and tenderness, and hot coffee that deepens the chocolate flavor without making it taste like coffee. The cake also uses a higher ratio of sugar to flour, which helps retain moisture. This recipe yields one 9x13-inch sheet cake or two 9-inch round layers.
Prep the Batter
Before you start, preheat the oven to 350°F (175°C). Grease and flour your pan(s) or line with parchment paper. Measure all ingredients before mixing—this batter comes together quickly once you start.
Dry Ingredients
- 1 3/4 cups (220 g) all-purpose flour
- 3/4 cup (65 g) unsweetened cocoa powder (natural or Dutch-processed both work)
- 2 cups (400 g) granulated sugar
- 1 1/2 tsp baking soda
- 1 tsp baking powder
- 1 tsp salt
Wet Ingredients
- 1 cup (240 ml) buttermilk, at room temperature
- 1/2 cup (120 ml) vegetable oil (or any neutral oil)
- 2 large eggs, at room temperature
- 2 tsp vanilla extract
- 1 cup (240 ml) hot coffee (or hot water)
- In a large bowl, whisk together the flour, cocoa powder, sugar, baking soda, baking powder, and salt. Make sure there are no lumps; if needed, sift.
- In a separate bowl or large liquid measuring cup, whisk the buttermilk, oil, eggs, and vanilla until well combined.
- Pour the wet ingredients into the dry ingredients and mix with a whisk or electric mixer on low speed for about 1 minute, until just combined. The batter will be thick.
- Slowly pour in the hot coffee, mixing on low speed until the batter is smooth and thin. This takes about 30 seconds. The batter will be very liquid—that's correct.
Bake the Cake
Pour the batter into your prepared pan(s). For a 9x13-inch pan, bake for 35–40 minutes. For two 9-inch round pans, bake for 25–30 minutes. The cake is done when a toothpick inserted into the center comes out with a few moist crumbs, not wet batter. The top should spring back when lightly pressed.
Cool the cake in the pan on a wire rack for 15 minutes, then turn it out onto the rack to cool completely (if you plan to frost it). If serving from the pan, let it cool completely in the pan.
Frost and Serve
This cake is excellent with a simple chocolate buttercream or a cream cheese frosting. For a quick glaze, whisk 1 cup (120 g) powdered sugar with 2 tbsp cocoa powder and 3–4 tbsp milk until smooth, then pour over the cooled cake. Let the glaze set for 10 minutes before slicing.
Slice into squares or wedges and serve at room temperature. The cake is moist enough to eat plain, but a scoop of vanilla ice cream or a dollop of whipped cream balances the richness.
Storing and Freezing
Store leftover cake in an airtight container at room temperature for up to 3 days. The moisture actually improves after a day. For longer storage, wrap the unfrosted cake tightly in plastic wrap and then foil; freeze for up to 3 months. Thaw overnight in the refrigerator before frosting and serving. Frosted cake can also be frozen, but the frosting may soften; freeze uncovered for 1 hour until firm, then wrap and freeze for up to 2 months.
Variations and Make-Ahead
Add chocolate chips: Fold 1 cup (175 g) semisweet chocolate chips into the batter before baking for extra chocolate pockets.
Make it gluten-free: Substitute the all-purpose flour with a 1:1 gluten-free flour blend that contains xanthan gum. The texture will be slightly more tender, but still moist.
Make-ahead timeline: You can bake the cake layers up to 2 days ahead. Cool completely, wrap tightly in plastic wrap, and store at room temperature. Frost and assemble on the day you serve. Or freeze the layers for up to 3 months.
Chocolate Cake for Cupcakes and Sheet Cake
This batter also makes 24 cupcakes. Fill cupcake liners 2/3 full and bake at 350°F (175°C) for 18–22 minutes, until a toothpick comes out clean. Cool completely before frosting. For a sheet cake, use a 9x13-inch pan and bake as directed above. This recipe is forgiving: you can mix the batter by hand if you don't have an electric mixer—just whisk a little longer to ensure everything is smooth.
If you don't have buttermilk, make a quick substitute: add 1 tbsp lemon juice or white vinegar to 1 cup (240 ml) milk, stir, and let sit for 5 minutes until it thickens slightly. This works in a pinch, but real buttermilk gives a slightly more tender crumb.
Raw flour and raw eggs are not safe to eat; do not taste the batter. The cake is safe once fully baked to 200°F (93°C) internal temperature, though you can rely on the toothpick test.
Common Problems and Fixes
Dry cake: Overbaking is the most common cause. Check at the minimum time and use the toothpick test. Also, measure flour correctly by spooning it into the cup and leveling off—too much flour makes a dry cake.
Sunken center: This can happen if the oven door is opened too early (before 30 minutes for a sheet cake) or if the baking soda is old. Test baking soda by adding a little to vinegar—if it doesn't fizz, replace it.
Cracked top: A cracked top is normal for this cake due to the high sugar and moisture. If you want a smooth top for frosting, trim the dome with a serrated knife before layering.
Chocolate Cake for Large Batches and Kids
To double the recipe, use a large mixing bowl and bake in two 9x13-inch pans or three 9-inch round layers. Increase the baking time by 5–10 minutes for sheet pans. For a kid-friendly version, reduce the coffee to 1/2 cup (120 ml) and add 1/2 cup (120 ml) milk instead—the coffee flavor will be less noticeable, but the cake will still be moist. You can also replace the coffee with hot water if you prefer no coffee at all.
For a fun activity with kids, let them help measure ingredients, whisk the dry mix, and pour the batter into the pan. The hot coffee step should be done by an adult.