Chocolate Sheet Cake with Peanut Butter Icing
In this article
This chocolate sheet cake is a crowd-pleasing classic: a moist, deeply chocolatey single-layer cake baked in a half-sheet pan, then topped with a glossy, creamy peanut butter icing that sets up just enough to slice cleanly. The buttermilk in the batter keeps the crumb tender, while the hot coffee intensifies the cocoa flavor without making it taste like coffee. It’s the perfect dessert for potlucks, birthdays, or any time you need a big batch of something delicious.
Ingredients
- 2 cups (250 g) all-purpose flour
- 2 cups (400 g) granulated sugar
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 1/2 cup (115 g) unsalted butter, cut into pieces
- 1/2 cup (120 ml) vegetable oil
- 1/2 cup (40 g) unsweetened cocoa powder (natural or Dutch-process)
- 1 cup (240 ml) hot brewed coffee or hot water
- 1/2 cup (120 ml) buttermilk, at room temperature
- 2 large eggs, at room temperature
- 1 teaspoon vanilla extract
For the peanut butter icing:
- 1/2 cup (115 g) unsalted butter, softened
- 1 cup (240 g) creamy peanut butter (not natural, to avoid separation)
- 3 cups (360 g) powdered sugar, sifted
- 1/4 cup (60 ml) milk, plus more if needed
- 1 teaspoon vanilla extract
- Pinch of salt (optional, if using unsalted peanut butter)
Instructions
- Preheat your oven to 350°F (175°C). Grease a 13x18-inch half-sheet pan (or a 9x13-inch pan for a thicker cake) with butter or non-stick spray, then line the bottom with parchment paper.
- In a large bowl, whisk together the flour, sugar, baking soda, and salt. Set aside.
- In a medium saucepan over medium heat, melt the butter with the vegetable oil and cocoa powder, stirring until smooth. Remove from heat and pour the hot cocoa mixture into the dry ingredients. Stir until just combined—it will be thick.
- Slowly pour in the hot coffee (or water) while stirring constantly. The batter will thin out. Stir until no lumps remain.
- In a small bowl, whisk the buttermilk, eggs, and vanilla together. Add to the batter and mix until fully incorporated. The batter will be quite liquid—that’s correct.
- Pour the batter into the prepared pan. Bake for 20–25 minutes for a half-sheet pan (or 30–35 minutes for a 9x13-inch pan), or until a toothpick inserted in the center comes out clean. The cake should spring back lightly when touched.
- Let the cake cool completely in the pan on a wire rack. This is important—warm cake will melt the icing.
- While the cake cools, make the icing: In a large bowl, beat the softened butter and peanut butter together until smooth and creamy, about 2 minutes.
- Gradually add the powdered sugar, beating on low speed, then add the milk and vanilla. Increase speed to medium and beat for 2–3 minutes until light and fluffy. If the icing is too thick, add a tablespoon more milk; if too thin, add a little more powdered sugar.
- Spread the icing evenly over the cooled cake using an offset spatula. Let the icing set for at least 30 minutes before slicing and serving.
Tips
- Use natural peanut butter? Skip it. Natural peanut butter separates and can make the icing oily or grainy. Stick with commercial creamy peanut butter (like Jif or Skippy) for the smoothest result.
- Don’t skip the coffee. The hot coffee enhances the chocolate flavor without adding a coffee taste. If you prefer, substitute an equal amount of hot water—the cake will still be good, but slightly less rich.
- Cool completely before icing. Even a slightly warm cake will cause the icing to melt and slide off. For best results, cool the cake for at least 1 hour, or refrigerate for 20 minutes to speed it up.
- For clean slices, use a plastic knife. A plastic knife cuts through the icing without dragging or smearing, giving you neat squares.
Serving Suggestions
Serve the cake at room temperature, cut into squares or rectangles. It pairs wonderfully with a cold glass of milk, a scoop of vanilla ice cream, or a drizzle of chocolate sauce. For a salty-sweet twist, sprinkle a few chopped roasted peanuts over the icing before it sets. This cake is also great for birthdays, bake sales, or as a base for a peanut butter cup topping—just press mini peanut butter cups into the warm icing.
Variations
- Chocolate-Peanut Butter Swirl: After spreading the icing, drop spoonfuls of melted chocolate or chocolate ganache on top and swirl with a knife.
- Gluten-Free: Replace the all-purpose flour with a 1:1 gluten-free baking flour blend (one that contains xanthan gum). The texture will be slightly more tender, but it works well.
- Spiced Chocolate: Add 1 teaspoon of cinnamon and 1/4 teaspoon of cayenne pepper to the dry ingredients for a Mexican-chocolate twist.
- Peanut Butter Frosting Variations: For a lighter, fluffier frosting, beat in 1/2 cup of heavy cream instead of milk. Or add 1/2 cup of chopped chocolate chips to the icing for extra texture.
Storage and Reheating
Store the cake covered at room temperature for up to 3 days. The icing will stay soft but firm enough to slice. For longer storage, refrigerate for up to 5 days—bring to room temperature before serving for best flavor and texture. You can also freeze the unfrosted cake for up to 3 months: wrap tightly in plastic wrap and foil. Thaw overnight in the refrigerator, then bring to room temperature and ice. To reheat individual slices, microwave for 10–15 seconds—just enough to warm the chocolate, but not melt the icing.
Frequently Asked Questions
Can I make this cake without buttermilk?
Yes. Mix 1/2 cup of milk with 1/2 tablespoon of white vinegar or lemon juice, let it sit for 5 minutes, and use that as a substitute. The acidity is important for activating the baking soda, so don’t skip it.
Why did my cake sink in the middle?
This can happen if the oven door is opened too early (before 20 minutes of baking) or if the baking soda is old. Make sure your baking soda is fresh (test it by adding a little vinegar—it should fizz vigorously). Also, avoid opening the oven during the first 20 minutes.
Can I use a different pan size?
Yes. A 9x13-inch pan will yield a thicker cake (about 2 inches tall) and will need 30–35 minutes of baking. A 15x10-inch jelly roll pan will work too, with a baking time close to the half-sheet pan (20–25 minutes). Adjust time based on a toothpick test.
Why is my icing too runny?
Usually, that means the butter was too warm or you added too much milk. Chill the icing for 15–20 minutes to firm it up, or beat in a bit more powdered sugar. Always beat the icing for the full 2–3 minutes—it thickens as it whips.
Can I make this cake ahead of time?
Absolutely. Bake the cake a day ahead, wrap it tightly in plastic wrap once completely cool, and store at room temperature. Ice it on the day you plan to serve. The icing can also be made a day ahead and refrigerated—bring it to room temperature and re-beat for a minute before spreading.
Is it safe to eat raw batter?
No. The batter contains raw flour and eggs, which can carry harmful bacteria. Do not taste the batter before baking. If you want to sample, bake a small spoonful in the microwave for 30 seconds until cooked through.