Dinners

Favorite Chocolate Cake Recipe for Every Occasion

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
2 hr 45 min
Prep
20 min
hands-on
Cook
35 min
oven or stovetop
Serves
12
as written

Jump to recipe Save

Time: 2 hr 45 min, Serves: 12, The key step: Blooming the cocoa powder in boiling water.

This chocolate cake is a moist, dark-crumbed dessert with a deep cocoa flavor. It is suitable for birthday parties, holiday gatherings, or a weekend treat. The recipe uses a simple mixing method that produces a tender texture without requiring a stand mixer.

Chocolate Cake Basics

The structure of a chocolate cake depends on the balance of fats, sugars, and leavening agents. This version uses oil instead of butter to ensure the cake remains moist even when refrigerated. Cocoa powder provides the primary flavor, while a small amount of coffee or boiling water is used to bloom the cocoa, which means releasing the flavor compounds trapped in the cocoa solids for a more intense chocolate taste.

For the best results, use a high-quality unsweetened cocoa powder. Natural cocoa powder is acidic and reacts with baking soda to create lift, whereas Dutch-processed cocoa is neutralized and may require a different leavening balance. This recipe is designed for natural cocoa powder. If you only have Dutch-processed, the cake will still bake, but it may rise slightly less and have a milder, earthier flavor.

Ingredients

  • 2 cups (250 g) all-purpose flour
  • 2 cups (400 g) granulated sugar
  • 3/4 cup (75 g) unsweetened cocoa powder
  • 2 tsp (10 g) baking soda
  • 1 tsp (5 g) baking powder
  • 1 tsp (5 g) salt
  • 1 cup (240 ml) buttermilk, room temperature
  • 1/2 cup (120 ml) vegetable oil
  • 2 large eggs, room temperature
  • 2 tsp (10 ml) vanilla extract
  • 1 cup (240 ml) boiling water or hot brewed coffee

Chocolate Buttercream Frosting

  • 1 cup (225 g) unsalted butter, softened to 65F (18C)
  • 3 1/2 cups (420 g) powdered sugar
  • 1/2 cup (45 g) unsweetened cocoa powder
  • 3 tbsp (45 ml) heavy cream
  • 1 tsp (5 ml) vanilla extract
  • 1/4 tsp (1.5 g) salt

Instructions

  1. Preheat the oven to 350F (175C). Grease two 9-inch (23 cm) round cake pans with oil and dust them with cocoa powder, tapping out the excess to prevent the cake from sticking.
  2. In a large mixing bowl, whisk together 2 cups (250 g) flour, 2 cups (400 g) sugar, 3/4 cup (75 g) cocoa powder, 2 tsp (10 g) baking soda, 1 tsp (5 g) baking powder, and 1 tsp (5 g) salt. Ensure there are no large lumps of cocoa.
  3. Add 1 cup (240 ml) buttermilk, 1/2 cup (120 ml) vegetable oil, 2 eggs, and 2 tsp (10 ml) vanilla extract to the dry ingredients. Mix with a whisk or electric hand mixer on medium speed for about 2 minutes until the batter is smooth.
  4. Carefully stir in 1 cup (240 ml) of boiling water or hot coffee. The batter will be very thin and liquid; this is correct. Stir by hand until the liquid is fully incorporated.
  5. Divide the batter evenly between the two prepared 9-inch (23 cm) pans.
  6. Bake at 350F (175C) for 30-35 minutes. The cake is done when a toothpick inserted into the center comes out clean or with just a few moist crumbs, and the internal temperature reaches 210F (99C).
  7. Remove the pans from the oven and let them cool for 10 minutes. Run a knife around the edges and invert the cakes onto wire racks to cool completely for at least 1 hour and 30 minutes before frosting.
  8. To make the frosting, beat 1 cup (225 g) softened butter for 3 minutes until pale and fluffy. Sift in 3 1/2 cups (420 g) powdered sugar and 1/2 cup (45 g) cocoa powder. Add 3 tbsp (45 ml) heavy cream, 1 tsp (5 ml) vanilla, and 1/4 tsp (1.5 g) salt. Beat on low until combined, then on high for 2 minutes.
  9. Place one cake layer on a plate. Spread a layer of frosting over the top. Place the second cake layer on top and frost the top and sides of the cake.

Cake Texture and Doneness

The doneness of a chocolate cake is harder to judge by color than a vanilla cake because the batter is already dark. Rely on the toothpick test and the internal temperature. A toothpick should not come out with wet batter, but a few moist crumbs are acceptable. If the toothpick is completely dry, the cake may be overbaked and dry. The safe minimum internal temperature for egg-based cakes is 160F (71C), but for a fully set crumb, this cake reaches about 210F (99C).

The texture should be a fine, tight crumb that feels springy to the touch. If you press the center of the cake lightly with your finger, it should bounce back immediately. If the indentation remains, the cake needs another 3-5 minutes in the oven.

Common Baking Errors

Overmixing the batter after adding the flour can develop too much gluten, which results in a tough, bread-like texture rather than a tender cake. Mix only until the ingredients are combined. Another common error is using cold eggs or buttermilk. Cold ingredients do not emulsify as well as room-temperature ones, which can lead to a broken batter and an uneven rise.

Using too much baking soda or powder can cause the cake to rise too quickly and then collapse in the center, creating a crater. Always level your measuring spoons with a flat edge. If the cake sinks, it may also be due to opening the oven door too frequently, which lets out heat and disturbs the structure before it is set.

Ingredient Substitutions

For a dairy-free version, replace the buttermilk with an equal amount of soy or almond milk mixed with 1 tbsp (15 ml) of lemon juice or white vinegar. Let this mixture sit for 5 minutes before adding it to the batter. This provides the acidity needed to activate the baking soda. For a different flavor profile, you can replace the boiling water with hot tea or a mixture of water and a pinch of cinnamon.

If you do not have vegetable oil, melted coconut oil can be used in a 1:1 ratio. Coconut oil will add a very slight coconut scent and may make the cake slightly firmer when cold. Avoid using extra-virgin olive oil unless you want a distinct savory note in the dessert. If you lack powdered sugar for the frosting, you can blend granulated sugar in a high-speed blender until it becomes a fine powder, though the texture will be slightly grainier.

Cake Storage and Safety

Because this cake contains eggs and dairy (buttermilk and butter), it must be stored properly to prevent spoilage. Refrigerate the cake within 2 hours of frosting. A frosted cake keeps well in an airtight container in the refrigerator for 3-4 days. To serve, let the cake sit at room temperature for 30-60 minutes so the butter in the frosting and cake softens, which improves the flavor and mouthfeel.

For longer storage, the cake can be frozen. Wrap individual layers tightly in plastic wrap and then a layer of aluminum foil. Frozen layers keep for up to 3 months. Thaw the cake in the refrigerator overnight before frosting. If the cake is already frosted, freeze it in a cake carrier or wrap it in multiple layers of plastic wrap to prevent freezer burn. Thaw in the fridge and bring to room temperature before eating.

Raw flour and raw eggs can carry bacteria such as E. coli and Salmonella. Do not taste the raw batter. If you must taste it, use heat-treated flour (heated to 160F / 71C) and pasteurized eggs. Pregnant people, young children, older adults, and those with weakened immune systems should strictly avoid raw flour and raw eggs.

Cake Assembly Examples

Depending on the occasion, you can adjust the assembly of these layers. For a standard layer cake, use the two 9-inch (23 cm) rounds as described. For a taller, more professional look, you can bake three 6-inch (15 cm) rounds instead. In this case, divide the batter equally among three smaller pans and reduce the baking time to about 25-30 minutes, checking for doneness at the 20-minute mark.

If you prefer a sheet cake, pour the batter into one 9×13 inch (23×33 cm) rectangular pan. Bake at 350F (175C) for 35-45 minutes. A sheet cake is often easier to transport for potlucks. For a smaller batch, you can halve the recipe and bake in one 8-inch (20 cm) round pan for 30-35 minutes. Ensure you adjust the frosting quantities accordingly to cover the smaller surface area.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).