Three layers of decadent chocolate cake, fluffy peanut butter buttercream, a glossy chocolate ganache drizzle, and peanut butter cups. This Chocolate Peanut Butter Cake is a true showstopper!
This Chocolate Peanut Butter Cake was the first cake recipe on Bunsen Burner Bakery. A decade later, it’s been joined by dozens more, but this cake remains one of the most popular on my site – and for good reason! It’s the chocolate cake I make most often and the base recipe used for many of my other chocolate cakes.
The crumb is soft and velvety, sturdy enough to stack, and full of deep chocolate flavor that stands up to the peanut butter frosting and a rich ganache dripping down over the sides. Think it can’t get any better? If you love a little extra texture, add chopped peanut butter cups between each layer of cake, and more to decorate the top!
This recipe was well overdue for a refresher with clearer instructions, updated tips, ingredient swap suggestions, and new photos. And while this cake has nothing in particular to do with Halloween and is delicious year-round, it somehow seemed appropriate to share it as a reminder of what you can do with that pile of leftover peanut butter cups!
Why You’ll Love This Recipe
Reliable Cake: My most-used chocolate cake formula with a tender crumb that stacks beautifully.
Bold Flavor: Cocoa, hot coffee, and a touch of salt create a deep chocolate profile that complements peanut butter.
Creamy Frosting: Silky peanut butter buttercream that pipes beautifully and sets just firm enough for neat slices.
Make-Ahead Friendly: Layers, frosting, and ganache can all be prepared in advance.
Ingredients and Substitutions
Here’s what you need to make these Apple Pie Bars, along with some ingredient suggestions and substitutions.
Flour: Use all-purpose flour, or for a gluten-free version, use a 1:1 gluten-free baking blend with xanthan gum. Let the batter rest for 10 minutes before baking for better hydration.
Cocoa Powder: Use natural unsweetened cocoa powder for the best flavor and texture. In a pinch, you can swap with Dutch-processed cocoa powder, but add an extra 1/4 teaspoon baking power.
Oil: Use a neutral oil, like vegetable, grapeseed, or avocado oil, which will keep the cake fluffier and more moist than melted butter.
Eggs: To make an egg-free version of this cake, use a flax egg to replace each large egg (1 tablespoon ground flaxseed + 2 tablespoons of water, mixed and rested until gelled, per egg) and add 1 extra tablespoon of oil for tenderness.
Buttermilk: Mix whole milk with 1 tablespoon white vinegar or lemon juice per cup and rest for 5 minutes, or use full-fat Greek yogurt thinned with milk.
Hot Coffee: Hot coffee intensifies the chocolate flavor and helps to bloom the cocoa powder, but hot water can be used as an alternative.
Peanut Butter: Use creamy, no-stir commercial peanut butter for the most stable frosting.
Peanut Butter Cups: Either full-size or miniature peanut butter cups can be used.
How to Make Chocolate Peanut Butter Cup Cake
Make the Cake Batter: Combine the dry ingredients in a large bowl. In a separate bowl, whisk the eggs, buttermilk, coffee, oil, and vanilla extract. Stir the wet ingredients into the dry ingredients until no dry streaks remain.
Bake the Cakes: Divide the batter evenly into three cake pans and bake until the center springs back and a tester comes out with a few moist crumbs.
Make the Frosting: Beat the butter and peanut butter until pale and fluffy. Add the peanut butter, vanilla extract, and salt and mix until well combined. Slowly add the confectioners’ sugar, followed by heavy cream, whipping on high speed until soft and fluffy.
Make the Ganache: Heat the heavy cream, pour it over the chocolate, and stir until fully melted and glossy.
Assemble the Cake: Level the layers if needed. Cover the bottom layer of cake with 1 cup of frosting and half of the chopped peanut butter cups. Top with a second cake layer and cover with another cup of the frosting and the rest of the chopped peanut butter cups. Top with the final cake layer. Apply a thin crumb coat, chill, and finish with a smooth outer coat of frosting.
Decorate: Spoon the cooled but still fluid ganache over the top of the cake and gently nudge down the sides to create drips, then decorate with additional swirls of frosting and peanut butter cups.
Moist for Days
One of the reasons I love this chocolate cake so much is that it stays soft for days! Thanks to the addition of oil, the cake remains fluffy and moist without drying out or getting stale. What’s the magic secret? We can explain it all with my favorite subject… kitchen chemistry!
Kitchen Chemistry
At room temperature, liquid oils remain fluid while butter sets into a crystalline solid. Those solid fat crystals firm as a cake cools, whereas liquid fats stay supple, preventing the crumb from tightening as the cake cools.
A few practical notes: choose a high-quality neutral oil, such as canola, safflower, or refined sunflower oil to avoid competing flavors. Mix just until combined to preserve the delicate structure. For the longest-lasting, most tender chocolate layers, stick with oil!
Tips and Tricks for the Best Chocolate Peanut Butter Cake
Hot Coffee: Add the coffee while it is very hot to bloom the cocoa for maximum flavor.
Chill Layers: Cold cake layers are easier to level, fill, and frost cleanly.
Adjust Frosting Texture: If the frosting seems soft, add a few tablespoons of confectioners’ sugar. If it’s too stiff, add a teaspoon of cream at a time and rewhip.
Make Ahead: Bake the cake layers up to 2 days in advance or freeze for up to 2 months. Frosting can be stored in the refrigerator for up a week; rewhip before using. Assemble the entire cake the day before serving if desired.
Storage: Cake can be stored at room temperature for 1-2 days, refrigerated for up to 4 days, or frozen for up to 2 months. Bring cake slices up to room temperature for the best texture.
Three moist chocolate layers, creamy peanut butter buttercream, and a glossy ganache drip make this a showstopper!
Ingredients
For the Cake:
2 3/4 cups (330 grams) all-purpose flour
3 cups (596 grams) granulated sugar
1 cup (84 grams) natural unsweetened cocoa powder
1 tablespoon baking soda
1 1/2 teaspoon baking powder
1 1/2 teaspoon salt
3 large eggs, room temperature
1 1/2 cups (341 grams) buttermilk
1 1/2 cups (341 grams) hot coffee
3/4 cup (149 grams) vegetable oil
1 tablespoon vanilla extract
For the Peanut Butter Frosting:
2 cups (540 grams) creamy peanut butter
1 cup (226 grams) unsalted butter, room temperature
1 1/2 teaspoons vanilla extract
1/2 teaspoon salt
3 cups (339 grams) confectioners' sugar
2/3 cup (151 grams) heavy cream
For the Ganache:
7 ounces (198 grams) dark chocolate, chopped
2/3 cup (151 grams) heavy cream
30 miniature peanut butter cups or 15 full size, divided
Instructions
Preheat the oven to 350 °F. Grease and flour (or spray with nonstick baking spray) three 8-inch round cake pans. Line the pans with parchment paper, then spray or grease and flour again.
Make the cake batter. Using a mixer, combine the flour, sugar, cocoa powder, baking soda, baking powder, and salt in a large bowl. In a smaller bowl, whisk together the eggs, buttermilk, coffee, oil, and vanilla extract. Add the wet ingredients to the dry ingredients and mix on low speed until combined, about 2 minutes. The batter will be quite thin.
Bake the cake batter. Divide the batter evenly among the three pans. Bake for 30 minutes, or until a toothpick inserted into the center of the cake comes out with a moist crumb. Cool the cakes in the pan for 20 minutes, then turn out onto cooling racks to cool completely before frosting.
Make the frosting. In the bowl of an electric mixer fitted with the paddle attachment, combine the butter and peanut butter. Beat on medium-high speed until smooth, about 2 to 3 minutes. Add the vanilla extract and salt and beat to combine. With the mixer on low speed, slowly add the confectioners' sugar, gradually increasing the mixer speed to high once all of the sugar has been added. Add the heavy cream and beat on high speed until very fluffy, 4 to 5 minutes, scraping down the sides of the bowl as needed.
Make the ganache. Microwave the heavy cream on 50% power for 30 second increments, or heat on the stovetop in a small saucepan until it just comes to a boil. Place the chopped chocolate in a glass mixing bowl and pour the cream over the chocolate. Allow this mixture to sit for 2 minutes to melt the chocolate, and then whisk from the center outwards until the ganache is smooth. Set aside to cool, whisking occasionally, until the ganache has thickened but is still pourable, 10 to 15 minutes, while the cake is assembled.
Assemble the cake. Level the cakes if necessary. Cover the bottom layer of cake with approximately 1 cup of the frosting. Chop one-third of the peanut butter cups and sprinkle these over the frosting. Top with a second cake layer, cover with another cup of the frosting, and another layer of chopped peanut butter cups. Place the final layer on top of the cake, face down, and frost with a thin layer of the frosting. Refrigerate for 30 minutes to set the crumb coat, then use the remaining frosting to spread on the sides and top of the cake. Refrigerate to set the frosting.
Decorate the cake. Transfer the ganache into a piping bag, snip off the corner, and drip the ganache along the edge of the cake, encouraging the ganache to run down the sides. Pour the remaining ganache into the center of the cake. Decorate the cake with the remaining peanut butter cups and any leftover swirls of frosting. Refrigerate until the ganache is set, at least 30 minutes.
Notes
For even cake layers, weigh the batter of the cake and divide into three baking pans.
If the frosting seems soft, add a few tablespoons of confectioners’ sugar. If it’s too stiff, add a teaspoon of cream at a time and rewhip.
Bake the cake layers up to 2 days in advance or freeze for up to 2 months. Frosting can be stored in the refrigerator for up a week; rewhip before using. Assemble the entire cake the day before serving if desired.
Cake can be stored at room temperature for 1-2 days, refrigerated for up to 4 days, or frozen for up to 2 months. Bring cake slices up to room temperature for the best texture.