Peanut Butter Buttercream Chocolate Snack Cake Recipe
In this article
This chocolate snack cake is a moist, cocoa-based sponge topped with a salty-sweet peanut butter frosting. It is a dense, satisfying treat that works well for lunchboxes, afternoon snacks, or casual potlucks.
Serves 12 · Prep 20 min · Cook 35 min · Total 2 hr 15 min
Ingredients
- 1 1/2 cups (190 g) all-purpose flour (heat-treated to 160°F / 71°C)
- 1 cup (200 g) granulated sugar
- 1/3 cup (35 g) unsweetened cocoa powder
- 1 teaspoon (5 g) baking soda
- 1/2 teaspoon (3 g) salt
- 1 cup (240 ml) warm water
- 1/3 cup (80 ml) vegetable oil
- 1 teaspoon (5 ml) vanilla extract
- 1 teaspoon (5 ml) distilled white vinegar
- 1/2 cup (120 g) unsalted butter, softened to room temperature
- 1/2 cup (125 g) creamy peanut butter
- 2 cups (240 g) powdered sugar
- 2 to 3 tablespoons (30-45 ml) heavy cream or whole milk
Instructions
- Preheat your oven to 350°F (175°C). Grease an 8-inch (20 cm) square baking pan with butter or oil, or line it with parchment paper to ensure the cake releases easily.
- In a large mixing bowl, whisk together the heat-treated flour, sugar, cocoa powder, baking soda, and salt until no large lumps remain. Because this recipe uses raw flour, it must be heated to 160°F (71°C) first to eliminate bacteria; pregnant people, young children, and those with weakened immune systems should strictly follow this safety step.
- Add the warm water, vegetable oil, vanilla extract, and vinegar to the dry ingredients. Stir with a whisk or spatula until the batter is smooth and combined. Do not overmix, as this can make the snack cake tough.
- Pour the batter into the prepared 8-inch (20 cm) pan and smooth the top with a spatula.
- Bake at 350°F (175°C) 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 attached.
- Remove the pan from the oven and let the cake cool completely in the pan for about 1 hour. The cake must be entirely cool before frosting, or the buttercream will melt and slide off the surface.
- While the cake cools, prepare the buttercream. In a medium bowl, beat the softened butter and peanut butter together using a hand mixer or stand mixer on medium speed for about 2 minutes until the mixture is pale and fluffy.
- Add the powdered sugar one cup at a time, beating on low speed first to avoid a sugar cloud, then increasing to medium speed until combined.
- Slowly add the heavy cream or milk, one tablespoon at a time, beating on high speed for 1-2 minutes until the frosting reaches a spreadable consistency.
- Spread the peanut butter buttercream evenly over the cooled chocolate cake using an offset spatula.
- Place the cake in the refrigerator for 30-45 minutes to allow the frosting to set before slicing.
Cake Done Indicators and Texture Checks
The most reliable way to tell if the cake is finished is by using the toothpick test. Insert a wooden toothpick or a thin skewer into the center of the cake; if it pulls out with wet batter, the cake needs another 3-5 minutes. If it comes out with a few moist crumbs, it is ready. The edges of the cake should also begin to pull away slightly from the sides of the pan, creating a small gap between the sponge and the metal.
The texture of a snack cake is different from a layer cake. It should feel springy to the touch. If you press the center lightly with your finger, the cake should bounce back immediately. If the indentation remains, the center is underbaked. Because this is a cocoa-based cake, the color is dark, making it harder to judge by browning alone, so rely on the spring-back method and the toothpick.
Equipment for Precise Baking
A square 8-inch (20 cm) baking pan is the standard for this recipe to achieve the correct height and bake time. If you only have a 9-inch (23 cm) pan, the cake will be thinner and may bake faster, typically in 25-30 minutes. If using a round pan, the baking time remains similar, but the frosting distribution will change. A digital kitchen scale is the most accurate way to measure the flour and sugar, as cups can vary based on how tightly the ingredient is packed.
For the buttercream, an electric hand mixer or a stand mixer is necessary to incorporate enough air into the butter and peanut butter. If you only have a whisk and a bowl, you will need to beat the butter vigorously for several minutes before adding the sugar to avoid a dense, grainy frosting. An offset spatula is helpful for smoothing the peanut butter buttercream, but the back of a large spoon or a butter knife works as a substitute.
Cake and Frosting Storage
Refrigerate the cake within 2 hours of frosting to keep the dairy-based buttercream safe. Once chilled, the cake can be stored in an airtight container in the refrigerator for 3-4 days. To serve the cake at its best texture, remove a slice and let it sit at room temperature for about 15-20 minutes; this softens the butter in the frosting and the fats in the cake, improving the mouthfeel.
For longer storage, this cake can be frozen. Wrap individual slices in plastic wrap and place them in a freezer-safe bag or container. Frozen slices keep for about 2 months. To thaw, place a slice in the refrigerator overnight or leave it at room temperature for 1-2 hours. If you prefer to reheat a slice, use a microwave for 10-15 seconds, but be aware that the peanut butter buttercream will melt quickly under high heat.
Flavor Adjustments and Swaps
You can change the intensity of the chocolate by swapping the unsweetened cocoa powder for Dutch-processed cocoa powder. Dutch-processed cocoa is treated with an alkalizing agent, which results in a darker color and a smoother, less acidic chocolate flavor. If you use this, the cake may be slightly denser because it reacts differently with the baking soda.
To adjust the peanut butter frosting, you can use crunchy peanut butter instead of creamy for added texture. If the frosting is too sweet, add a pinch of fine sea salt or a teaspoon of lemon juice to cut through the sugar. For a different nut profile, almond butter can be used in the buttercream, though it will change the flavor profile from a classic peanut butter and chocolate combination to something more subtle. Check the label of any nut butter used to ensure it does not contain excessive added oils, which can cause the frosting to separate.
Serving and Pairing Ideas
This cake is rich, so it pairs well with acidic or bitter flavors that balance the sweetness. Serve a slice with a side of fresh raspberries or sliced strawberries. A cold glass of milk or a cup of unsweetened black coffee provides a sharp contrast to the creamy peanut butter buttercream. For a party platter, cut the cake into small 2-inch (5 cm) squares to make them easier to handle as finger foods.
If you want to make the presentation more detailed, top the finished cake with a drizzle of melted semi-sweet chocolate or a sprinkle of crushed roasted peanuts. Because the cake is a "snack cake," it is designed to be eaten without formal plating, making it a good option for school events or office breakrooms. Just remember to keep it refrigerated until shortly before serving if the environment is warm, as the buttercream can soften significantly above 75°F (24°C).
Common Baking Issues and Fixes
If the cake sinks in the middle, it is often due to over-mixing the batter or opening the oven door too early. Avoid stirring the batter once the flour is incorporated; stop as soon as no streaks of dry flour remain. If the cake is too dry, you may have overbaked it or used too much flour. To prevent this, spoon the flour into the measuring cup rather than scooping it directly from the bag, which packs the flour down and adds too much volume.
When the buttercream separates or looks curdled, it is usually because the butter was too cold or the cream was added too quickly. To fix curdled frosting, gently warm the bowl over a pot of simmering water (a double boiler) for a few seconds to soften the butter, then beat it again on high speed. If the frosting is too runny to hold its shape, whisk in an additional 2-4 tablespoons of powdered sugar until the desired stiffness is achieved.