PB Icing Recipe for Cakes, Cookies and Cupcakes
In this article
This creamy peanut butter icing suits weekend baking or last-minute dessert fixes, spreading smoothly on cakes, filling cupcakes, or topping cookies. It pairs especially well with chocolate, banana, or spice-flavored baked goods and holds its shape without weeping when stored properly.
How to Make PB Icing
Yield: about 1 ½ cups (enough to frost 12 cupcakes or a single 8- or 9-inch layer cake)
- ½ cup (115g) unsalted butter, softened to room temperature
- 1 cup (240g) creamy peanut butter (do not use natural or oil-separated types for this recipe)
- 3 cups (360g) powdered sugar, sifted
- ¼ teaspoon salt
- 1 teaspoon pure vanilla extract
- 2–3 tablespoons (30–45ml) whole milk or heavy cream
- Cream the butter and peanut butter together in a large bowl using a hand mixer or stand mixer. Beat at medium speed for 2 minutes, until completely smooth and no lumps remain. Scrape the bowl once during mixing.
- Add the sifted powdered sugar in three batches, mixing on low speed after each until incorporated. After the last addition, beat on medium for 1 minute to lighten the texture.
- Mix in the salt and vanilla extract. The icing will be thick at this stage.
- Add 2 tablespoons of milk or cream and beat for 30 seconds. If the icing is still too stiff, add the third tablespoon and mix another 30 seconds. The finished icing should be smooth, spreadable, and hold a soft peak when lifted with a spoon.
When to Use This Icing
Use immediately for frosting cakes or piping onto cupcakes. If the icing sits for more than 10 minutes before use, re-whip it briefly to restore smoothness. For piping rosettes or borders, use within 1 hour of mixing; for spreading, it remains workable for up to 2 hours at cool room temperature (below 70°F/21°C). Do not refrigerate before using—it will harden and lose spreadability.
How Long Does PB Icing Keep?
Store leftover icing in an airtight container in the refrigerator for up to 5 days. Before reusing, bring it to room temperature and re-whip with a mixer for 1–2 minutes until smooth. If it appears dry, add ½ teaspoon of milk at a time while mixing until the desired consistency returns.
For longer storage, freeze the icing in a sealed container for up to 2 months. Thaw in the refrigerator overnight, then bring to room temperature and re-whip as above.
Can You Use Natural Peanut Butter?
Standard natural peanut butters (those requiring stirring and with oil separation) are not recommended. They contain more moisture and oil, which destabilizes the icing, leading to a greasy, loose texture. If you must use natural peanut butter, drain off excess oil first and reduce the added milk by half. Expect a less stable result—best used within 2 hours and only for immediate serving.
Do not use powdered peanut butter (e.g., PB2) reconstituted with water. It lacks the fat content needed for proper texture and flavor.
Substitutions and Ratios
Swapping ingredients changes texture or shelf life. Stick to these tested ratios for reliable results:
- Butter substitute: Use ½ cup (115g) full-fat vegetable shortening instead of butter. Result is firmer, whiter, and holds shape longer in heat. Flavor is less rich.
- Milk substitute: Replace milk with heavy cream for a richer, stiffer icing. Replace with almond or oat milk for dairy-free—use 1 tablespoon less at first, as plant milks vary in thickness.
- Sugar substitute: Do not substitute granulated sugar. Powdered sugar substitutes (e.g., erythritol-based) may work, but results vary by brand. Test a half batch first.
- Peanut butter flavor variation: Use ¾ cup (180g) creamy peanut butter and ¼ cup (60g) almond butter for a milder nut flavor. Do not exceed 1:3 ratio of alternate nut butter or the peanut flavor fades.
Serving and Pairing Ideas
Spread this icing on chocolate sheet cake, swirl onto banana muffins, or pipe onto spice cupcakes. It complements red velvet or carrot cake layers when paired with cream cheese filling. For cookies, use as a sandwich filling for chocolate wafers or oatmeal cookies.
For a dessert bar, layer brownies with a ½-inch thick swirl of this icing before chilling. Garnish with chopped peanuts or a light sprinkle of flaky salt to enhance flavor.
Storage Safety and Limits
Because this icing contains butter and milk, it is perishable. Do not leave frosted baked goods at room temperature more than 2 hours (1 hour if above 90°F/32°C). Refrigerate frosted items and consume within 5 days.
Do not use this icing on desserts intended for room-temperature display at parties lasting more than 2 hours. For events, keep the dessert chilled until serving and return leftovers to the refrigerator within 1 hour of being out.
If you detect sour smell, mold, or separation that doesn’t blend back with mixing, discard the icing. Never taste to test safety.
Common Texture Problems and Fixes
Icing is too thick: Add milk, ½ tablespoon at a time, mixing 30 seconds after each addition until smooth and spreadable.
Icing is too thin: Add sifted powdered sugar, 2 tablespoons at a time, mixing on low until thickened. If over-thinned, chill the bowl in the refrigerator for 10 minutes, then re-whip.
Icing separates or looks curdled: This usually happens when ingredients are too cold. Let the bowl sit at room temperature for 10–15 minutes, then re-whip. If it persists, add 1 tablespoon room-temperature milk and beat for 1 minute.
Grainy texture: Powdered sugar was not sifted. Always sift before adding. If already mixed, the texture cannot be fixed—re-mixing won’t dissolve clumps.
PB Icing for Cakes, Cookies and Frosting Variations
For a stiffer icing (ideal for piping stars or borders), reduce milk to 1 tablespoon and increase powdered sugar by ½ cup (60g), adding gradually until peaks hold firmly.
For a softer glaze-like version, increase milk to ¼ cup (60ml) and reduce powdered sugar to 2 ½ cups (300g). Drizzle over warm bundt cakes or cinnamon rolls.
To color the icing, use gel food coloring. Add a small dot and mix thoroughly—liquid coloring adds excess moisture and may thin the icing.
For a chocolate-peanut butter version, add ¼ cup (25g) sifted cocoa powder with the powdered sugar. Increase milk by 1 tablespoon to offset dryness.