Peanut Butter Cupcakes Recipe

These are my new & improved peanut butter cupcakes. I use oil, brown sugar, sour cream, and extra milk to guarantee each cupcake is soft and moist. Very finely chopped peanuts add flavor. They’re tender, flavorful, and EASY, making this updated recipe the indisputable peanut butter cupcake champion!

Peanut butter cupcakes

Recipe disappointment solved.

Back in 2013, I published a different peanut butter cupcake recipe, a dessert I found easy at the time. They were far from perfect. The cupcakes were dense and dried out quickly. Many readers had commented with the same disappointing results. I knew I could do better. The cupcakes (and you!) deserve it. ๐Ÿ™‚

And after a few cupcake experiments with many taste testers, I produced flavorful and soft peanut butter cupcakes. These laugh in the face of the old recipe and they’re even more wildly delicious than they look. So moist!!

Peanut butter cupcake with chocolate frosting cut in half
Peanut butter cupcakes with chocolate frosting on white cake pedestal

Recipe Fix: Peanut Butter Cupcakes

Old Peanut Butter Cupcakes Recipe:

  • Creamed butter & brown sugar
  • Too many eggs weighed them down
  • Not enough milk
  • Not enough flavor

The original recipe called for creamed butter and sugar. This is how I typically start vanilla cupcakes. But peanut butter is a special ingredient. Though it’s technically “wet,” it’s heavy, dense, and actually pretty drying. Peanut butter baked goods need extra insurance to remain moist. I replaced the butter with oil and added sour cream and extra milk. Because the cupcakes are peanut butter flavored, we won’t miss the butter.

As we taste-tested, my friend Gabe recommended very finely chopped peanuts to amp up the peanut flavor. This addition worked miracles! If you chop the peanuts fine enough, they won’t be crunchy or anything. Rather, they’ll melt right into the cupcake itself.

2 images of chopped peanuts on a cutting board and peanut butter cupcake batter in a glass bowl
2 images of peanut butter cupcake batter in cupcake pan and baked peanut butter cupcakes

As soon as they finished baking, I knew the new peanut butter cupcakes would be a huge success! They smell AWESOME. Here’s a list of everything I did differently.

New Peanut Butter Cupcakes Recipe:

  • Oil instead of butter
  • Keep the brown sugar for moisture & flavor
  • 1/2 cup creamy peanut butter
  • 1 egg
  • Sour cream for moisture
  • Add more milk for moisture
  • Finely chopped peanuts for flavor

And for even more flavor, I snuck some peanut butter into the chocolate frosting too!

Overhead image of cupcakes topped with chocolate peanut butter frosting

Chocolate Peanut Butter Frosting

The chocolate peanut butter frosting is simple. Start with butter, confectioners’ sugar, cocoa powder, and milk or cream. Remember: proper room temperature butter! Beat it together, then add vanilla extract, a giant spoonful of creamy peanut butter, and a pinch of salt. Just when you thought chocolate buttercream couldn’t get any better…. now it literally tastes like a peanut butter cup.

  • Piping tip: I used the giant Ateco 849 piping tip for the frosting and you can watch me decorate the cupcakes in the video tutorial above. This is a VERY easy swirled frosting technique. Any large open or closed star piping tip will give you a similar swirl look. Though it’s a little smaller, I also love Wilton 1M.

If you’re looking for a little something different, top with my strawberry buttercream frosting for a PB&J flavor combination! And if you can’t get enough of peanut butter with chocolate, try these peanut butter chocolate swirl cookies next.


More Beloved Cupcake Recipes

Fun fact: did you know that my cupcake recipes work great as 6-inch cakes, too?

Peanut butter cupcake with swirl of chocolate peanut butter frosting and a peanut butter cup on top

Try my chocolate peanut butter cake next!

Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
Peanut butter cupcake with swirl of chocolate peanut butter frosting and a peanut butter cup on top

Peanut Butter Cupcakes

5 Stars 4 Stars 3 Stars 2 Stars 1 Star 4.9 from 79 reviews
  • Author: Sally
  • Prep Time: 20 minutes
  • Cook Time: 22 minutes
  • Total Time: 3 hours, 30 minutes
  • Yield: 14 cupcakes
  • Category: Dessert
  • Method: Baking
  • Cuisine: American
Save Recipe

Description

These are my new & improved peanut butter cupcakes. I use oil, brown sugar, sour cream, and extra milk to guarantee each cupcake is soft and moist. Finely chopped peanuts add flavor. They’re tender, flavorful, and EASY, making this updated recipe the indisputable peanut butter cupcake champion!


Ingredients

  • 1 and 1/4 cups (156g) all-purpose flour (spooned & leveled)
  • 1/2 teaspoon baking soda
  • 1/4 teaspoon salt
  • 1/2 cup (120ml)ย canola or vegetable oil*
  • 1/2 cup (125g)ย creamy peanut butter*
  • 1 cup (200g) packed light or dark brown sugar
  • 1 large egg, at room temperature
  • 1/3 cup (80g)ย sour cream, at room temperature
  • 1 and 1/2 teaspoons pure vanilla extract
  • 3/4 cup (180ml)ย whole milk, at room temperature*
  • 1/3 cup (40g) very finely crushed or choppedย peanuts*

Chocolate Peanut Butter Frosting

  • 1 cup (16 Tbsp; 226g) unsalted butter, softened to room temperature
  • 3 and 1/2 cups (420g) confectioners’ย sugar
  • 1/2 cup (41g) unsweetened natural or dutch-process cocoa powder
  • 3 Tablespoons (45ml) heavy cream or milk
  • 1/3 (80g) cup creamy peanut butter*
  • 1 teaspoon pure vanilla extract
  • 1/4 teaspoon salt
  • optional for garnish: mini Reese’s Peanut Butter Cups or chopped peanuts


Instructions

  1. Preheat the oven to 350ยฐF (177ยฐC).ย Line a 12-cup muffin pan with cupcake liners. Line a second pan with 2-3 liners because this recipe yields 14-15 cupcakes. Set aside.
  2. Make the cupcakes:ย Whisk the flour, baking soda, and salt together in a medium bowl. Set aside.
  3. Using a handheld mixer, stand mixer fitted with a whisk or paddle attachment, or a whisk, mix the oil, peanut butter, brown sugar, egg, sour cream, and vanilla extract together in a large bowl. Add the dry ingredients, milk, and peanuts and whisk or beat together until completely combined. Avoid overmixing. Batter will be slightly thick.
  4. Pour/spoon the batter into the liners, filling only 2/3 fullย to avoid baking over the sides. Bake for 21-23 minutes, or until a toothpick inserted in the center comes out clean and the tops of the cupcakes spring back when gently touched. For aroundย 35 mini cupcakes,ย bake for about 11-13ย minutes, same oven temperature. Allow the cupcakes to cool completely before frosting.
  5. Make the frosting:ย With a handheld or stand mixer fitted with a paddle or whisk attachment, beat the butter on medium speed until creamy, about 2 minutes. Add confectioners’ sugar, cocoa powder, and milk. Beat on low speed for 30 seconds, then add the peanut butter, vanilla extract, and salt. Beat on medium-high speed for 2 minutes until combined. Add 1/4 cup more confectioners’ย sugar if frosting is too thin or another 1-2 Tablespoons ofย cream/milk if frosting is too thick. Taste. Add extra peanut butter or a pinch of salt if desired.
  6. ย Frost cooled cupcakes.ย I piped a basic tall swirl using Ateco 849 piping tip. You can watch me decorate the cupcakes in the video in the blog post. Garnish with peanut butter cup, if desired.
  7. Cover and store leftovers in the refrigerator for up to 5 days. I recommend a cupcake carrier for storing and transporting decorated cupcakes.

Notes

  1. Make Ahead / Freezing Instructions:ย Cupcakesย canย be made ahead 1 day in advance, covered, and stored at room temperature or in the refrigerator. Frostingย canย also be made 1 day in advance, covered, and stored in the refrigerator until ready to use. Frosted or unfrosted cupcakesย canย be frozen up to 2-3 months. Thaw overnight in the refrigerator.
  2. Special Tools (affiliate links):ย 12-cup Muffin Pan | Cupcake Liners | Electric Mixer (Handheld or Stand) | Glass Mixing Bowl | Whisk | Piping Bag (Reusable or Disposable)ย | Ateco #849 Piping Tip | Cupcake Carrier
  3. Oil: Melted coconut oil works too. Melted butter won’t add the same level of moisture needed for this recipe.
  4. Peanut Butter: For best texture in the cupcakes and frosting, I strongly suggest a processed creamy peanut butter such as Jif or Skippy creamy. I do not recommend oily or natural style peanut butter for this recipe.
  5. Milk: For best tasting cupcakes, I highly recommend whole milk or even buttermilk. 2% milk can be used as well. Nondairy milks work too.
  6. Peanuts: For exceptional peanut flavor, finely chopped peanuts are highly recommend. Chop them up very fine as shown in the video and photo above. The finer you chop them, the more they will blend into the baked cupcakes. You can’t taste the chunks, just the flavor. For a delicious salty/sweet flavor, use salted peanuts or, if you prefer, choose unsalted peanuts. I love salted peanuts for this recipe!
  7. Why is Everything at Room Temperature? All refrigerated items should be at room temperature so the batter mixes together easily and evenly. Read more about why room temperature ingredients are important.
  8. Cake: Feel free to use this batter as a cake. As written, you’ll have enough batter for an 11×7 inch cake. Perhaps even enough for a small 2 layer cake. Feel free to make the batter twice (for best results, do not doubleโ€”make twice) and use it for a larger cake or layer cake.
sally mckenney headshot purple shirt.
About the Author

Sally McKenney

Sally McKenney is a baker, food photographer, and New York Times best-selling author. Her kitchen-tested recipes and step-by-step tutorials have given millions of readers the knowledge and confidence to bake from scratch. Sallyโ€™s work has been featured on TODAY, Good Morning America, Taste of Home, People, and more.

Read More

Leave a Comment

Your email address will not be published. Required fields are marked *

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Reader Comments and Reviews

  1. Becky says:
    November 4, 2025

    Absolutely delicious! Just made these and they are SOOO good. The icing is perfect as well! Thanks for sharing this recipe.

    Reply
  2. Laura says:
    October 7, 2025

    These cupcakes are amazingly moist and soft! The cupcakes and frosting are both delicious! I do like some contrast in flavors, so I think that these cupcakes would also be delicious with chocolate frosting and that the chocolate peanut butter frosting would be delicious with chocolate cupcakes!

    Reply
  3. Laura says:
    October 3, 2025

    I am interested in making a filled cupcake. Have you ever filled these with the chocolate peanut butter frosting? Do you think it would work well / taste good?

    Reply
    1. Michelle @ Sally's Baking says:
      October 4, 2025

      You could absolutely try that, Laura!

      Reply
  4. Jan L says:
    September 9, 2025

    Just made a batch of these and added 1/4 cup of King Arthur’s Raspberry Jammy Bits – the cupcakes are amazingly moist, tender, and flavorful and with the Jammy Bits – they tast just like a pb&j. I’ll definitely be making these again!

    Reply
  5. Aimee says:
    August 29, 2025

    If I make this as a 11X7 cake like the recipe suggests, how long should I bake it?

    Reply
    1. Lexi @ Sally's Baking says:
      August 29, 2025

      Hi Aimee, we’re unsure of the exact bake time for an 11×7-inch pan. Keep a close eye on it and use a toothpick to test for doneness. Enjoy!

      Reply
  6. Trina @ Sally's Baking says:
    August 26, 2025

    Hi Teri, that high temperature may dry out these lighter cupcakes too much, but let us know if you give it a try!

    Reply
    1. Teri says:
      August 26, 2025

      They puffed up beautifully! Will make my grandson happy for bkft. Cut the sugar down, too!

      Reply
  7. Charles says:
    August 16, 2025

    My frosting didn’t turn out anything like the pic and when I try to pipe it it just not going the way I want it to. It still tasted good tho I was making them f6a reunion

    Reply
  8. Debbie says:
    July 29, 2025

    You state the cupcakes can be made 1 day in advance and also they can be stored in the refrigerator up to 5 days.
    I assume I can make them 2 days in advance. If so, should I frost them at that time or the night before I plan on serving them? Thank you

    Reply
    1. Stephanie @ Sally's Baking says:
      July 29, 2025

      Hi Debbie, You can store the cupcakes in the refrigerator for 2 days. We find that frosting usually tastes the best if it’s fresh, so if time allows frost them as close to serving as you can.

      Reply
  9. Adelle says:
    June 15, 2025

    could you use this recipe for a loaf tin, or if not what adjustments should I make, to make it the same size as the carrot quick break or zucchini loaf for example x

    Reply
    1. Michelle @ Sally's Baking says:
      June 15, 2025

      Hi Adelle, we have not tested that so we canโ€™t be certain. It should be enough batter. Let us know if you try it!

      Reply
      1. Adelle says:
        June 15, 2025

        How long should I bake and at what temp in a loaf tin?

  10. Betsy says:
    April 25, 2025

    Just finished a few weeks of holiday baking of your key lime pie, 6 inch vanilla layer cake, chocolate sugar cookies and macarons. All huge successes! Today, last minute I needed to bake something for one of my sonโ€™s friendโ€™s birthday, so made these peanut butter cupcakes. They are beautiful, light and fluffy and DELICIOUS! I only had salted butter, so used it and left out the salt in the frosting. Perfect. Thank you Sally.

    Reply
  11. Sue says:
    March 22, 2025

    This recipe tastes just like a peanut butter cookieโ€ฆ only better! Itโ€™s so moist and absolutely packed with peanut butter flavor!!
    My family and I loved it!
    Thanks again, Sally, for another amazing recipe!!!

    Reply
  12. Sam says:
    February 20, 2025

    Iโ€™m from Australia and wasnโ€™t sure about peanut butter cupcakes but I made them anyway. They are delicious and super moist. The frosting is perfect for them. My husband wonโ€™t stop eating them.

    Reply
  13. Robyn Twr says:
    November 28, 2024

    Hi Sally, Can I substitute lactose free Greek yoghurt for the sour cream in this recipe? Thanks

    Reply
    1. Michelle @ Sally's Baking says:
      November 28, 2024

      Hi Robyn, that should be fine!

      Reply
      1. Robyn Twr says:
        November 28, 2024

        Thank you for quick reply

  14. Maureen Pinwill says:
    October 13, 2024

    I have just made this recipe for a quilting class. My only disappointment was that I couldn’t do it justice with a lovely professional looking swirl. I butter knifed it and I will add peanut bits to the top of them.

    Reply
  15. Niamh says:
    September 14, 2024

    Hi Sally I was going to test this cupcake recipe out as a three layer 6 inch cake. Was just wondering If I need to double the recipe or change any of the measurements/ baking time. Love your recipes and can’t wait to try this out

    Reply
    1. Michelle @ Sally's Baking says:
      September 14, 2024

      Hi Niamh, This should be just about the right amount of batter for a three layer 6 inch cake. You can reference our post on 6 inch cakes for details!

      Reply
  16. Gloria S says:
    August 19, 2024

    Iโ€™m planning to make these delicious cupcakes for my two-year-old. How much sugar do you think I can reduce while still keeping them tasty?

    Reply
    1. Lexi @ Sally's Baking says:
      August 19, 2024

      Hi Gloria, you can certainly try reducing the sugar, but keep in mind that it plays an important role in the overall taste, texture, and structure of the cupcake. We’d recommend starting small and then adjusting further as needed for future batches. Or, you could use something like peanut butter banana muffins as a slightly healthier option instead. Hope this helps!

      Reply
  17. Rita says:
    May 25, 2024

    can you use plain green yoghurt instead of sour cream

    Reply
    1. Beth @ Sally's Baking says:
      May 25, 2024

      Hi Rita, you can definitely use plain Greek yogurt instead of sour cream, but I would steer clear of green yogurt! ๐Ÿ˜‰

      Reply
      1. Niamh says:
        September 14, 2024

        Hi was going to test this recipe out as a 3 layer 6 inch cake. Would this recipe fill these pans or should I double it. Love you’re recipes

  18. Lee says:
    April 19, 2024

    Hi , I am new to baking and love your website . Can I half this recipe and make 6? Thank you

    Reply
    1. Stephanie @ Sally's Baking says:
      April 19, 2024

      Sure can, Lee. Enjoy!

      Reply
  19. Susan Ackerman says:
    February 27, 2024

    As always your recipes rock. So does this recipe make 35 mini cupcakes?

    Reply
    1. Trina @ Sally's Baking says:
      February 27, 2024

      Yes! See step 4 for mini cupcake details.

      Reply
  20. Monica says:
    January 26, 2024

    very yummy and peanut buttery. I used melted butter, oat milk and natural style peanut butter (did not have canola oil or whole milk, only had Kirkland natural peanut butter) and it still worked well. was soft with a moist crumb.

    Reply
  21. Deanna says:
    December 30, 2023

    I made these for my coworkers, aka my Test Kitchen!
    Everyone loved them! Said they were the best cupcakes they’ve had. Someone even said they’d pay $5 for them.

    Reply
  22. Taren S says:
    October 26, 2023

    Amazing cupcakes for anyone who likes Reese’s. I added a quarter of a regular sized cups in the center like the molten cookie dough cupcakes (that have gotten more compliments than anything I’ve ever made in my life). So good. My kids wanted to eat the frosting plain. Legit peanut butter taste. I wasn’t confident in my peanut chopping skills so I used a mini food processor and it worked great. I sprinkled a little extra on top. You are turning me into a pretty darn good baker. Thank you!!!! Sincerely

    Reply
  23. Susie Rees says:
    September 27, 2023

    Umโ€ฆI donโ€™t even have words! Wait, yes I doโ€ฆdeeeeelicious! Moist and soft and peanutty! Love them!

    Reply
  24. Vicki says:
    September 25, 2023

    These were awesome! I don’t have food processor, so I used a knife to chop the peanuts, definitely would like to make this again using food processor. The peanuts are definitely necessary to take the peanut butter flavor over the top. The cakes were more moist than I was expecting, since peanut butter is so drying. I topped these with sally’s marshmallow meringue, and used a kitchen torch on the meringue. OMG the combo was AWESOME and a hit with my guests!

    Reply
    1. ChrissyB says:
      May 7, 2024

      These cupcakes are amazing! Very easy to make and super moist and flavorful. The frosting is fantastic too. Tried two different sizes, regular took 22 minutes, large took 27 minutes to bake. Topped with mini pb cup.

      Reply
  25. Cathy Morman says:
    September 1, 2023

    I am just starting to try cupcake baking after seeing all of your recipes… everything looks so amazing! This is an absolute favorite!

    Reply
  26. Sarah Viator says:
    July 20, 2023

    I really prefer using olive oil in my baking, may I swap that out instead of vegetable or canola?

    Reply
    1. Trina @ Sally's Baking says:
      July 20, 2023

      Hi Sarah, olive oil will work, though the flavor will change quite a bit. Melted coconut oil would be preferable.

      Reply
  27. Riley says:
    July 16, 2023

    Just wondering if I could use cake flour in place of AP in this recipe?

    Reply
    1. Sally @ Sally's Baking says:
      July 16, 2023

      Hi Riley, I’m sure it would be fine but the cupcakes may be a little *too* light. Let me know if you try it.

      Reply
  28. Ashley says:
    July 12, 2023

    I plan to double this recipe and make a 3 layered cake… how long should I bake this for? Going to use a 9 inch round pan. Thank you!!

    Reply
    1. Lexi @ Sally's Baking says:
      July 12, 2023

      Hi Ashley, we’re unsure of the exact bake time, but we anticipate the layers would take about 23-26 minutes. You can use a toothpick to test for donenessโ€”check early to ensure they don’t overbake. Enjoy!

      Reply
  29. Tina M. says:
    June 6, 2023

    These cupcakes are awesome! I frost them with with peanut butter frosting to make Snickers and PB&J variations and they are always a huge hit. I love your recipes!! Thank you so much for sharing them with us.

    Reply