Dinners

Chocolate Cake in a Half Sheet Pan Recipe

Updated · By Stir & Share

Total timeprep + cook
45 min
Prep
20 min
hands-on
Cook
25 min
oven or stovetop
Serves
24
as written

Jump to recipe Save

Chocolate Cake in a Half Sheet Pan Recipe

A half sheet pan chocolate cake is a single-layer, about 1-inch-thick cake that bakes quickly and serves a crowd. It has a tender crumb and a deep chocolate flavor, perfect for birthdays, potlucks, or a simple weeknight dessert. This recipe makes a moist, fudgy sheet cake that you can frost right in the pan.

Ingredients

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

Instructions

  1. Heat the oven to 350°F (175°C). Grease a half sheet pan (18×13 inches, 46×33 cm) with butter or cooking spray, then line the bottom with parchment paper.
  2. In a large bowl, whisk together the flour, sugar, cocoa powder, baking soda, baking powder, and salt.
  3. Add the buttermilk, oil, eggs, and vanilla. Beat with an electric mixer on medium speed for 2 minutes, scraping the bowl halfway through. The batter will be thick.
  4. Pour in the hot coffee or hot water and stir until just combined. The batter will be thin—that is correct.
  5. Pour the batter into the prepared pan. Bake for 22–25 minutes, until a toothpick inserted in the center comes out with a few moist crumbs, not wet batter. The cake should spring back when lightly pressed.
  6. Cool the cake completely in the pan on a wire rack, about 1 hour, before frosting. If you frost while warm, the frosting will melt.

Why the Cake Can Come Out Dry, Dense, or Sunken

Dry cake happens when you overbake. Check at 22 minutes and pull it out as soon as the toothpick has moist crumbs. Also, measure flour by spooning it into the cup and leveling; scooping packs in extra flour, which dries the crumb.

Dense cake comes from undermixing after adding the hot liquid. Stir just until the liquid is incorporated—overmixing develops gluten and makes the cake tough. Also, make sure your baking soda and baking powder are fresh; old leaveners lose strength.

A sunken center usually means the oven door was opened too early, or the cake was underbaked. Keep the door closed until the minimum time. If the center dips slightly, it may still be safe to eat, but the texture will be denser there.

Substitutions That Work

  • Buttermilk: Use 1 cup (240 ml) whole milk mixed with 1 tablespoon lemon juice or white vinegar. Let it sit 5 minutes before using. This adds the same tang and acidity that activates the baking soda.
  • Hot coffee: Use hot water instead. Coffee deepens the chocolate flavor without making the cake taste like coffee. If you use water, the chocolate flavor will be slightly less intense.
  • Vegetable oil: Use canola, sunflower, or melted coconut oil. Any neutral oil works. Do not use olive oil—it has a strong flavor.
  • Cocoa powder: Natural cocoa gives a lighter, tangier chocolate taste. Dutch-process cocoa is darker and smoother. Either works; the baking soda handles both, but the rise may be slightly different.
  • Eggs: For an egg-free version, use 1/2 cup (120 g) plain yogurt or applesauce per egg. The cake will be a bit more tender and may sink slightly in the center.

Frosting and Serving the Sheet Cake

This cake is excellent with a simple chocolate buttercream or a cream cheese frosting. For a classic sheet cake, make a cooked fudge frosting: melt 1/2 cup (115 g) butter, 1/4 cup (25 g) cocoa, and 1/4 cup (60 ml) milk in a saucepan over low heat. Remove from heat, stir in 3 cups (360 g) powdered sugar and 1 tsp vanilla, then spread over the warm cake. This frosting sets shiny and crackly.

If you prefer a lighter topping, use whipped cream or a dusting of powdered sugar. Serve directly from the pan—cut squares with a sharp knife, wiping it clean between cuts for neat edges.

Storing and Freezing the Sheet Cake

Cover the pan tightly with plastic wrap or foil. Store at room temperature for up to 2 days, or refrigerate for up to 4 days. Frosted cake can stay at room temperature for 2 days if the frosting is not dairy-heavy; if it contains cream cheese or whipped cream, refrigerate.

To freeze, wrap the unfrosted cake (or frosted, if you freeze it uncovered first) tightly in plastic wrap, then foil. Freeze for up to 3 months. Thaw overnight in the refrigerator, then bring to room temperature before serving. If the frosting has set, let it come to room temperature slowly to avoid condensation.

Do not leave the cake out for more than 2 hours total at room temperature, especially if frosted with dairy. After serving, return leftovers to the fridge within that time.

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