Dinners

Vegan Peanut Butter Cake Recipe

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
1 hr 25 min
Prep
20 min
hands-on
Cook
35 min
oven or stovetop
Serves
8
as written

Jump to recipe Save

This vegan peanut butter cake is a dense, nutty dessert with a creamy frosting, suited for weekend baking or holiday gatherings. It is typically served with fresh berries or a drizzle of melted dark chocolate to balance the richness of the peanut butter.

Cake Batch Scaling

Adjusting the yield requires precise measurements to maintain the structural integrity of the vegan batter. When scaling, use a kitchen scale for the flour and peanut butter to ensure the ratio of fat to binder remains constant.

Batch Size Pan Size Flour Amount Peanut Butter Amount
Half Batch 6-inch (15 cm) round 1 cup (125 g) 1/2 cup (125 g)
Full Batch 8-inch (20 cm) round 2 cups (250 g) 1 cup (250 g)
Double Batch Two 8-inch (20 cm) rounds 4 cups (500 g) 2 cups (500 g)

Required Baking Equipment

An 8-inch (20 cm) round cake pan is the standard for this recipe. If a round pan is unavailable, a square 8-inch (20 cm) baking pan works, though the corners may bake faster than the center. A hand mixer or stand mixer is necessary to cream the peanut butter and sugar; if using a whisk by hand, the batter may remain slightly lumpy, which does not affect the final bake but may result in a less uniform crumb.

Parchment paper is used to line the bottom of the pan to prevent sticking. For the frosting, a rubber spatula is used to fold the ingredients together without incorporating too much air, which would make the frosting unstable at room temperature.

Ingredients

  • 2 cups (250 g) all-purpose flour (heat-treated to 160°F/71°C)
  • 1 cup (200 g) granulated sugar
  • 1 cup (250 g) creamy peanut butter, stirred well
  • 1 cup (240 ml) unsweetened soy milk or almond milk
  • 1/2 cup (120 ml) neutral oil, such as canola or sunflower oil
  • 1 tbsp (15 ml) apple cider vinegar
  • 1 tsp (5 g) baking soda
  • 1/2 tsp (3 g) salt
  • 1 tsp (5 ml) vanilla extract
  • 1/2 cup (125 g) vegan butter, softened (for frosting)
  • 1/2 cup (125 g) creamy peanut butter (for frosting)
  • 2 cups (240 g) powdered sugar, sifted (for frosting)
  • 2 tbsp (30 ml) soy milk (for frosting)

Instructions

  1. Preheat the oven to 350°F (175°C). Grease an 8-inch (20 cm) round cake pan and line the bottom with parchment paper.
  2. Heat-treat the flour: Spread 2 cups (250 g) of flour on a baking sheet and bake at 350°F (175°C) for about 5 minutes or until it reaches an internal temperature of 160°F (71°C) on a thermometer. Let it cool completely before using. This step is mandatory because raw flour can contain bacteria.
  3. In a large bowl, whisk together the heat-treated flour, sugar, baking soda, and salt until combined.
  4. In a separate medium bowl, whisk the soy milk and apple cider vinegar. Let it sit for 5 minutes to create a vegan buttermilk.
  5. Add the creamy peanut butter, neutral oil, and vanilla extract to the milk mixture. Whisk until the peanut butter is fully incorporated and the liquid is smooth.
  6. Pour the wet ingredients into the dry ingredients. Stir with a spatula or whisk until just combined. Do not overmix, as this develops too much gluten and makes the cake tough.
  7. Pour the batter into the prepared pan and smooth the top with a spatula.
  8. 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.
  9. Remove the pan from the oven and let the cake cool in the pan for 15 minutes. Transfer the cake to a wire rack to cool completely (about 1 hour) before frosting.
  10. Prepare the frosting by beating the softened vegan butter and 1/2 cup (125 g) peanut butter until smooth. Gradually add powdered sugar and soy milk, beating on low then medium until fluffy.
  11. Spread the frosting evenly over the top and sides of the cooled cake.

Cake Doneness and Texture

The cake is fully baked when the edges slightly pull away from the sides of the pan. Because peanut butter adds significant fat and moisture, the center may feel softer than a standard sponge cake, but it should not jiggle. If the toothpick comes out with wet batter, bake for an additional 3-5 minutes. Overbaking will lead to a dry crumb that crumbles when sliced.

The internal structure should be tight and moist. If the cake sinks in the middle, it is often due to opening the oven door too frequently during the first 20 minutes of baking, which causes a sudden temperature drop and collapses the air bubbles created by the baking soda.

Refrigeration and Storage

Place the frosted cake in an airtight container or under a cake dome. Store the cake in the refrigerator at or below 40°F (4°C). The cake remains safe and high-quality for 3-4 days refrigerated. If left at room temperature, the vegan butter in the frosting may soften or melt depending on the ambient temperature; the cake should not sit out for more than 2 hours.

For longer storage, wrap individual slices in parchment paper and place them in a freezer-safe bag. The cake keeps in the freezer for up to 3 months. To thaw, move a slice to the refrigerator overnight or let it sit at room temperature for 2 hours. Reheat slices in a microwave for 10-15 seconds if a warmer texture is preferred.

Peanut Butter Swaps

To change the flavor profile, replace the creamy peanut butter with almond butter or cashew butter. Almond butter results in a slightly more subtle, toasted flavor and a marginally lighter texture. Cashew butter produces a creamier, sweeter cake but may require an extra 2-3 minutes of baking time due to its higher fat content.

For those avoiding peanuts entirely, sunflower seed butter (SunButter) is a viable alternative. Note that sunflower seed butter can react with baking soda to create a green tint in the cake crumb; this is a natural chemical reaction and does not affect the taste or safety of the cake. If using a chunky peanut butter instead of creamy, the cake will have small pieces of nuts throughout, adding texture but potentially making the cake more prone to crumbling when sliced.

Frosting Consistency Fixes

If the frosting is too soft to hold its shape on the cake, refrigerate the frosting bowl for 15 minutes, then beat it again. Alternatively, add 2 tablespoons (15 g) of powdered sugar at a time until the desired stiffness is reached. If the frosting is too stiff or grainy, add soy milk 1 teaspoon (5 ml) at a time and beat on high speed to incorporate the liquid and smooth out the texture.

To ensure the frosting adheres to the cake, the cake must be completely cold. If the cake is even slightly warm, the vegan butter in the frosting will melt upon contact, causing the frosting to slide off the sides. If this happens, chill the cake in the freezer for 20 minutes before attempting to frost again.

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