Dinners

Chocolate Cake with Pumpkin Frosting Recipe

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
2 hr 45 min
Prep
30 min
hands-on
Cook
35 min
oven or stovetop
Serves
12
as written
USDA safe temp
165°F / 74°C
check the thickest part

Jump to recipe Save

Time: 2 hr 45 min, Serves: 12, The key step: Cooling the cake layers completely before frosting to prevent the pumpkin cream from melting.

This cake combines a moist, dark cocoa base with a spiced pumpkin cream cheese frosting. The contrast of deep chocolate and autumnal pumpkin makes it a suitable choice for holiday potlucks or autumn celebrations.

Chocolate and Pumpkin Balance

The structure of this cake relies on a balanced ratio of fat and moisture. The chocolate layers use oil rather than butter to ensure the cake remains soft even when refrigerated, which is necessary because the pumpkin frosting contains dairy. The frosting uses a blend of cream cheese and pumpkin puree to achieve a stable consistency that can support the weight of a two-layer cake without sliding.

To ensure the cake does not collapse, the pumpkin puree used in the frosting must be the plain, canned variety, not pumpkin pie filling. Pumpkin pie filling contains added sugars and spices that alter the chemistry of the frosting, often making it too soft to hold its shape. For those who prefer a more intense chocolate flavor, using Dutch-processed cocoa powder provides a darker color and a more mellow, earthy taste compared to natural cocoa powder.

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
  • 8 oz (226 g) cream cheese, softened to room temperature
  • 1/2 cup (115 g) unsalted butter, softened
  • 1/2 cup (120 g) pumpkin puree (plain)
  • 3-4 cups (360-480 g) powdered sugar, sifted
  • 1 tsp (5 g) ground cinnamon
  • 1/2 tsp (2 g) ground ginger
  • 1/4 tsp (1 g) ground cloves
  • 1/2 tsp (2 g) salt

Instructions

  1. Preheat the oven to 350°F (175°C). Grease and flour two 9-inch (23 cm) round cake pans. Line the bottoms with parchment paper to ensure the layers release cleanly.
  2. In a large mixing bowl, whisk together the 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 clumps of cocoa.
  3. Add the 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 on medium speed with a hand mixer or stand mixer for about 2 minutes until the batter is smooth.
  4. Reduce the mixer speed to low and carefully pour in 1 cup (240 ml) boiling water. Stir by hand or on low speed until combined. The batter will be very thin; this is normal for this style of chocolate cake.
  5. Divide the batter evenly between the two prepared pans. Bake at 350°F (175°C) for 30-35 minutes. The cakes are done when a toothpick inserted into the center comes out clean or with just a few moist crumbs, and the internal temperature reaches 210°F (99°C).
  6. Remove pans from the oven and cool in the pans for 10 minutes. Invert the cakes onto wire racks and cool completely for at least 1 hour and 30 minutes.
  7. Prepare the frosting by beating 8 oz (226 g) softened cream cheese and 1/2 cup (115 g) softened butter together until smooth and pale, about 3 minutes.
  8. Beat in 1/2 cup (120 g) pumpkin puree, 1 tsp (5 g) cinnamon, 1/2 tsp (2 g) ginger, 1/4 tsp (1 g) cloves, and 1/2 tsp (2 g) salt.
  9. Gradually add the powdered sugar, starting with 3 cups (360 g), beating on low speed until incorporated, then increasing to medium-high for 2 minutes. If the frosting is too soft to spread, add the remaining 1 cup (120 g) of powdered sugar.
  10. Place one cooled cake layer on a plate. Spread a thick layer of pumpkin frosting over the top. Top with the second cake layer. Frost the top and sides of the cake.

Doneness and Common Errors

The cake is finished when the edges begin to pull away slightly from the sides of the pan and the center springs back when lightly touched. A food thermometer should read 210°F (99°C) in the center. Overbaking the cake results in a dry, crumbly texture that will not hold the heavy pumpkin frosting, causing the layers to crack under the weight.

Three specific mistakes can ruin the texture: first, using cold eggs or buttermilk can cause the batter to break or curdle, leading to an uneven rise. Second, over-mixing the batter after adding the flour can develop too much gluten, making the cake tough instead of tender. Third, adding the pumpkin puree to the frosting before the butter and cream cheese are fully creamed can result in a grainy texture that does not smooth out.

Another critical error is frosting the cake while it is still warm. Because the pumpkin frosting contains a high percentage of fat from butter and cream cheese, it will melt upon contact with heat, sliding off the cake and creating a pooled mess at the base. Ensure the cake is room temperature or chilled in the refrigerator for 30 minutes before applying frosting.

Ingredient Substitutions

For a dairy-free version, replace the buttermilk with an equal amount of soy milk mixed with 1 tablespoon of lemon juice and let it sit for 5 minutes. Replace the butter and cream cheese in the frosting with vegan butter and a dairy-free cream cheese alternative. Note that vegan cream cheese varies in stability; you may need to add an extra 1/2 cup (60 g) of powdered sugar to maintain the structure.

If you do not have a 9-inch (23 cm) pan, you can use one 9×13 inch (23×33 cm) rectangular pan. In this case, increase the baking time to 35-40 minutes. The cake will be a single layer, which reduces the risk of the frosting sliding but changes the presentation from a layer cake to a sheet cake.

To substitute the cocoa powder, you can use melted semi-sweet chocolate chips (about 6 oz or 170 g), but you must reduce the vegetable oil by 2 tablespoons (30 ml) to account for the cocoa butter in the chocolate. This will result in a denser, fudgier cake.

Cake Storage and Safety

Because this cake contains a cream cheese and pumpkin frosting, it is a perishable item. It must be refrigerated within 2 hours of assembly. Store the cake in an airtight cake carrier or a large plastic container to prevent the cake from absorbing odors from the refrigerator. The cake remains safe and fresh for 3-4 days when refrigerated at or below 40°F (4°C).

For longer storage, the unfrosted cake layers can be wrapped tightly in plastic wrap and aluminum foil and frozen for up to 3 months. To use, thaw the layers in the refrigerator overnight before frosting. The frosted cake can also be frozen, but the frosting may develop small cracks during the freezing and thawing process; these can be smoothed over with a fresh layer of whipped cream or a light dusting of powdered sugar.

When reheating slices of the cake, do not use a microwave if the frosting is thick, as the butter will melt quickly. Instead, let the slice sit at room temperature for 20-30 minutes before serving to allow the flavors of the pumpkin and chocolate to become more pronounced. If reheating leftovers for a different purpose, ensure they reach a safe internal temperature of 165°F (74°C) as per USDA FSIS guidelines, though this is rarely done with frosted cakes.

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).