Hi, I’m Sawera Azeem, home cook and food writer behind Sawera Cooking. I created this blog to share straightforward, flavor-packed recipes you can make on a regular weeknight without any stress. Pesto butter is one of my most-reached-for kitchen staples — I have tested it across at least a dozen batches, tweaking the garlic level, the ratio of cheese, and whether to toast the pine nuts (short answer: always toast them). What I am sharing below is the version my family keeps asking me to replenish.
What is Pesto Butter?
Pesto butter is a compound butter — softened unsalted butter blended with the core flavors of traditional Italian pesto: fresh basil leaves, garlic, parmesan cheese, olive oil, and optionally pine nuts or walnuts. The result is a fragrant, spreadable, melt-on-contact butter that works as a condiment, sauce, and flavor booster all in one. Unlike standard garlic butter, which uses only butter, garlic, and mild herbs, pesto butter carries the distinct savory depth of aged cheese and fresh basil together.
Traditional pesto sauce originates from Genoa, Italy, where it is made by hand-grinding basil, garlic, parmesan, pecorino, pine nuts, and olive oil with a mortar and pestle. Compound butters — butter blended with herbs, aromatics, or spices — have long been used in European and restaurant cooking to finish steaks and vegetables. Pesto butter is simply the delicious intersection of both techniques.
Recipe Snapshot
| Detail | Information |
|---|---|
| Prep Time | 10 minutes |
| Cook Time | 0 minutes |
| Chilling Time | 30 minutes |
| Total Time | Approx. 40 minutes |
| Yield | Approx. ½ cup (8 slices) |
| Servings | 4 to 6 |
| Difficulty | Very Easy |
| Dietary | Vegetarian, Gluten-Free, Low-Carb |
Ingredients for Pesto Butter

To make one batch of homemade pesto butter, you will need these simple, fresh ingredients. Most are pantry staples — the fresh basil is the only item you may need to pick up.
- Unsalted butter — ½ cup (about 115g), softened to room temperature
- Fresh basil leaves — ¼ cup, washed and thoroughly dried
- Garlic — 1 small clove, peeled and cored (see tip below)
- Parmesan cheese — 2 tablespoons, freshly grated
- Olive oil — 1 teaspoon
- Lemon juice — ½ teaspoon (freshly squeezed — brightens the flavor)
- Salt — to taste
- Black pepper — a pinch
- Pine nuts or walnuts — 1 tablespoon, lightly toasted (optional but recommended)
Quick tip on softening butter: Softened butter should give slightly when pressed but hold its shape — it should not be melted or greasy. Leave it at room temperature for about 30 minutes before you start, or cut it into small cubes to speed things up.
Ingredient Substitutions Table
| Original Ingredient | Best Substitute | Notes |
|---|---|---|
| Fresh basil | Store-bought pesto (2 tbsp) | Reduce or skip olive oil and salt |
| Parmesan cheese | Pecorino Romano or Grana Padano | Slightly sharper or milder flavor |
| Pine nuts | Walnuts or almonds | Or omit entirely |
| Olive oil | Omit or a tiny amount of neutral oil | Optional in this application |
| Unsalted butter | Salted butter | Skip any added salt |
| Lemon juice | A tiny pinch of lemon zest | Use sparingly |
How to Make Pesto Butter — Step by Step
This homemade pesto butter comes together in four simple steps: prep your aromatics, build the pesto base, mix with butter, then chill. No stove required.
Step 1 — Toast the Pine Nuts
Place pine nuts (or walnuts) in a dry skillet over medium heat. Toast for about 1 minute, stirring constantly, until they turn golden and fragrant. Remove from heat immediately and let them cool completely before using. Toasting unlocks their natural oils and adds a noticeably richer, nuttier depth to the finished butter. Do not skip this step — it makes a real difference.
Step 2 — Prep the Basil and Garlic
Wash the fresh basil leaves and pat them completely dry. Any moisture left on the leaves will shorten the shelf life of the butter and affect its texture. Peel the garlic clove, slice it in half lengthwise, and remove the small pale green core (called the germ) from the center. This simple trick eliminates the sharp, almost bitter bite that raw garlic can leave in uncooked preparations like this one. Finely chop the basil, garlic, and cooled toasted nuts — or pulse everything briefly in a food processor.
Step 3 — Build the Pesto Flavor Base
Add the olive oil, freshly grated parmesan, and a small squeeze of lemon juice to your chopped basil and garlic mixture. Stir everything together. You are not aiming for a completely smooth paste here — a little texture is perfectly fine and actually gives the finished butter a more rustic, homemade character.
Step 4 — Mix with the Softened Butter
Place the softened butter into a mixing bowl. Add the prepared pesto mixture and stir well with a spoon or spatula until the butter turns a pale green color and all the ingredients are evenly distributed throughout. A wire potato masher works brilliantly here if you do not want to use a food processor — it presses the herb mixture into the butter very efficiently.
Step 5 — Taste and Season
Taste a small amount and adjust seasoning with salt and a pinch of black pepper. Go carefully with salt — parmesan is already quite salty, and the toasted nuts add their own richness. This is your moment to make it yours: more garlic if you love it bold, an extra squeeze of lemon if you prefer brightness.
Step 6 — Shape and Chill
Spoon the butter onto a sheet of baking paper or parchment paper. Roll it into a tight log shape and twist the ends closed like a cracker wrapper. Alternatively, press it into a small airtight container. Refrigerate for at least 30 minutes until firm. Once chilled, you can slice the log into neat rounds — about 1 tablespoon each — ready to melt over steak, pasta, or warm bread.
Fun presentation tip: Chill the butter until just firm, then use small cookie cutters to stamp out decorative shapes for a dinner party or special occasion. Label the log with a marker before freezing so you always know what is inside.
Your fragrant, vibrant Pesto Butter is ready to use!
Basil Pesto Butter — Best Ways to Serve It
Basil pesto butter is one of the most versatile flavor boosters in a home kitchen. Here are the best ways to use it, from simple weeknight meals to slightly more elevated occasions.
- Grilled steak: Place a pat of pesto butter directly on a hot, freshly cooked steak the moment it comes off the grill. The butter melts into the meat and creates an instant sauce. This is the single most impressive use of this butter.
- Pasta: Stir a generous spoonful into hot pasta straight from the pot. The residual heat melts the butter, coating every strand with basil, garlic, and cheese.
- Pesto butter for salmon: Lay a slice over oven-baked or pan-seared salmon just before serving. The herbs and lemon cut through the richness of the fish beautifully.
- Garlic bread: Spread generously over a halved baguette and toast under the grill for 2 to 3 minutes. Far better than standard garlic butter.
- Grilled chicken: A pat melted over warm grilled chicken breasts or thighs adds instant flavor without any extra sauce-making.
- Roasted vegetables: Toss with steamed or oven-roasted vegetables — particularly good with zucchini, green beans, or broccoli.
- Baked potatoes: Drop a large spoonful into a split hot baked potato and let it melt into the fluffy interior.
- Toast and bread: The simplest use. Spread over warm toast for a quick, satisfying breakfast or snack.
Pesto Butter for Pasta — a Quick Weeknight Sauce
Pesto butter works as a complete, no-cook pasta sauce in under the time it takes to boil the water. Cook your pasta according to the packet, reserve a small cup of starchy pasta water, drain, and immediately return the hot pasta to the pot. Add one to two tablespoons of pesto butter and toss well, adding a splash of pasta water to help emulsify everything into a silky coating. Finish with extra grated parmesan. This approach is especially good with linguine, spaghetti, or penne. If you enjoy creamy pasta sauces, my Lemon Garlic Cream Sauce pairs beautifully alongside or as an alternative on busier evenings.
Pesto Butter Sauce — Using It as a Finishing Sauce
Beyond spreading and melting, pesto butter can be turned into a quick warm sauce. Place one to two tablespoons in a small saucepan over very low heat. Add a splash of pasta water, vegetable stock, or even a little cream and stir gently until the butter melts and the liquid emulsifies into a glossy, pourable sauce. Drizzle over grilled chicken, fish, or roasted vegetables. This technique is exactly how restaurant kitchens finish plates — the butter adds richness while the liquid keeps the sauce light enough to coat rather than overwhelm.
Troubleshooting — Common Mistakes and How to Fix Them
Even a simple recipe like this one has a few places where things can go wrong. Here is what I have run into across my own batches and how to fix each problem.
Butter Is Too Soft and Greasy After Mixing
This happens when the butter was too warm before you started. If the mixture looks oily or separated, place the bowl in the fridge for 10 minutes, then stir again. Next time, make sure the butter is softened but still cool — it should hold a thumbprint but not feel slick.
Butter Tastes Too Garlicky or Sharp
Raw garlic is powerful. If the flavor is overwhelming, you likely skipped coring the garlic clove. Always remove that small central germ — it is the sharpest-tasting part. You can also balance an over-garlicked batch with a tiny extra squeeze of lemon juice to cut through the intensity.
The Butter Is Watery or Has Green Liquid Pooling
Wet basil leaves are the culprit. Always pat the basil completely dry after washing — even small amounts of surface water will cause separation and shorten the shelf life significantly.
The Flavor Is Flat or Bland
Taste before you seal. The most common reason pesto butter tastes flat is under-seasoning. Add a pinch more salt, an extra squeeze of lemon, or a little more parmesan. Freshly grated parmesan makes a meaningful difference over pre-grated varieties.
The Log Will Not Hold Its Shape
The butter needs more chilling time. If it is still soft after 30 minutes, rewrap and refrigerate for another 15 to 20 minutes. In warm kitchens, you may need to pop it in the freezer for 10 minutes before slicing.
Food Safety and Storage
Proper storage is essential for this butter because it contains fresh garlic and basil, which can harbor bacteria at room temperature.
Refrigerator Storage
Transfer the finished butter to a clean, airtight container or keep it tightly wrapped in parchment paper. Store in the refrigerator at or below 4°C (39°F). Because of the fresh herbs and raw garlic, use it within 3 to 4 days for best flavor and food safety.
Always use a clean knife or spoon each time you take some out. Do not leave the container at room temperature for extended periods and return it to the fridge promptly after use. If you notice any unusual smell, discoloration, or sliminess, discard it immediately.
Freezer Storage
Pesto butter freezes exceptionally well and this is honestly how I prefer to keep it. Roll the butter into a log, wrap it tightly in parchment paper, then place the wrapped log inside a zip-lock freezer bag or airtight container. Label clearly with the date. Stored this way, it keeps for 2 to 3 months with no meaningful loss of flavor.
To use from frozen, simply slice off the number of rounds you need — no need to thaw the whole log. The frozen rounds will melt directly onto hot food within seconds.
Allergen Note
This recipe contains dairy (butter, parmesan cheese) and tree nuts (pine nuts or walnuts). If cooking for guests, always check for nut and dairy allergies beforehand. The recipe can be made nut-free by omitting pine nuts entirely — the flavor is still excellent.
Pro Tips for the Best Homemade Pesto Butter
- Always toast the nuts first. Even one minute in a dry pan transforms pine nuts from mild to deeply nutty. It is the single biggest flavor upgrade in this recipe.
- Core the garlic. Remove the pale green germ from the center of the clove before chopping. This alone prevents the sharp, lingering garlic aftertaste that puts some people off raw garlic preparations.
- Dry the basil thoroughly. Wet leaves ruin the texture. Pat dry with paper towel or spin in a salad spinner after washing.
- Freshly grate your parmesan. Pre-grated parmesan often contains anti-caking agents that dull the flavor. Freshly grated makes a noticeable difference.
- Add lemon juice. A small squeeze of fresh lemon juice brightens the entire compound and stops the basil from tasting heavy or flat.
- Start with less garlic, taste, and adjust. Raw garlic intensifies as the butter chills. What tastes balanced when freshly mixed may taste stronger after 30 minutes in the fridge.
- Taste before you refrigerate. This is your only chance to adjust seasoning before the flavors lock in.
If you enjoy making flavored compound butters, my Roasted Garlic Compound Butter is another staple worth having in your fridge — the slow-roasted garlic gives it a completely different, mellow sweetness compared to this fresh herb version.
Benefits of Making Pesto Butter at Home
The best thing about homemade pesto butter is how much flavor a single tablespoon delivers — even on the simplest weeknight meal.
- Instant meal upgrade: The aroma of fresh basil, garlic, and aged parmesan turns plain bread or steamed vegetables into something genuinely satisfying.
- Completely versatile: Works on toast, pasta, steak, chicken, fish, and roasted vegetables equally well.
- Fast to prepare: Once your ingredients are ready, the whole thing comes together in under 10 minutes.
- Make-ahead friendly: Prepare a batch on the weekend and reach for it all week long.
- Fully customizable: Adjust the garlic, cheese, and herbs to match exactly what your family likes.
- Budget-friendly: A small homemade batch costs a fraction of specialty compound butters sold in delis or supermarkets.
A note on nutrition: Butter is calorie-dense and high in saturated fat. Pesto butter is a flavoring ingredient, not a health food — use it in moderate portions as part of a balanced diet. Basil and garlic add meaningful antioxidants and flavor compounds, but this recipe should be enjoyed mindfully rather than consumed in large quantities daily.
Related Recipes You’ll Love
Calabrian Chili Aioli
If you love bold, punchy condiments, this fiery, creamy aioli is the next thing you need in your fridge — it is incredible on everything from sandwiches to grilled fish.Fish and Chips Sauce
The classic tartar sauce you have always wanted to make at home — crispy, golden fish tastes ten times better with this tangy homemade dipping sauce alongside.
Frequently Asked Questions
What is Pesto Butter made of?
Pesto butter is made with softened unsalted butter, fresh basil leaves, a cored garlic clove, freshly grated parmesan cheese, a small amount of olive oil, and a squeeze of lemon juice. Pine nuts or walnuts can be added for extra richness and texture. Everything is mixed together and chilled until firm.
How long does Pesto Butter last in the fridge?
Stored in a clean, airtight container at or below 4°C (39°F), pesto butter is best used within 3 to 4 days. Because it contains fresh garlic and basil, it does not keep as long as plain butter. Always use a clean utensil when scooping and return it to the fridge promptly.
Can I freeze Pesto Butter?
Yes, pesto butter freezes very well. Roll it into a log, wrap tightly in parchment paper, place in a freezer-safe bag, and freeze for up to 2 to 3 months. Slice off only what you need directly from frozen — it melts onto hot food within seconds without needing to thaw the whole log.
Is Pesto Butter the same as garlic butter?
No. Garlic butter typically contains only butter, garlic, and sometimes mild herbs like parsley. Pesto butter includes fresh basil, parmesan cheese, olive oil, lemon juice, and optionally toasted pine nuts — making it significantly more complex in flavor, with an Italian pesto profile rather than a simple garlic one.
Can I use store-bought pesto to make Pesto Butter?
Yes. Blend 1 to 2 tablespoons of good-quality store-bought basil pesto into softened butter, tasting as you go. You will likely need little to no extra olive oil or salt since commercial pesto is already well-seasoned. Start with a smaller amount and increase until the flavor suits your taste.
Can I make Pesto Butter without pine nuts?
Yes, absolutely. Walnuts or almonds work well as substitutes. You can also omit the nuts entirely — the butter will still have all the essential pesto flavors from the basil, garlic, parmesan, and olive oil. Nut-free versions are also a practical choice when cooking for guests with tree nut allergies.
Can I use Pesto Butter for pasta?
Yes, and it is one of the best uses. Toss one to two tablespoons into hot, freshly drained pasta along with a splash of reserved pasta water. The butter melts and emulsifies into a silky, herby coating. Finish with extra grated parmesan. It comes together faster than any jarred sauce.
Pesto Butter Recipe — Easy Basil Compound Butter
- ½ cup (115g) unsalted butter, softened
- ¼ cup fresh basil leaves, washed & fully dried
- 1 small garlic clove, peeled & cored
- 2 tbsp parmesan cheese, freshly grated
- 1 tsp olive oil
- ½ tsp fresh lemon juice
- Salt, to taste
- Pinch of black pepper
- 1 tbsp pine nuts or walnuts, toasted (optional)
- Mixing bowl
- Food processor (optional)
- Dry skillet
- Parchment paper
- Airtight container
- Sharp knife
- 1 Toast the Nuts Toast pine nuts in a dry skillet over medium heat for 1 minute until golden and fragrant. Remove and let cool completely.
- 2 Prep Basil & Garlic Wash and fully dry basil leaves. Core the garlic clove (remove the green center germ). Finely chop basil, garlic, and cooled nuts — or briefly pulse in a food processor.
- 3 Build the Pesto Base Stir in olive oil, freshly grated parmesan, and lemon juice. Mix until combined. Keep some texture — do not over-process.
- 4 Blend with Butter Add the pesto mixture to softened butter. Stir well until the butter turns pale green and everything is evenly blended.
- 5 Season Taste and adjust salt and black pepper. Remember — parmesan is already salty. This is your moment to customize.
- 6 Shape & Chill Roll into a log on parchment paper. Twist ends closed and refrigerate for 30 minutes until firm. Slice into rounds to serve.
- Always toast the nuts — it unlocks deeper nutty flavor in just 1 minute.
- Core the garlic — removing the green germ eliminates harsh bitterness in raw applications.
- Dry the basil completely — any moisture will shorten shelf life and ruin the texture.
- Add lemon juice — it brightens the compound and balances the richness of the butter.
- Start with less garlic — the flavor intensifies as the butter chills in the fridge.
- Freeze in slices — label the log clearly and slice off only what you need from frozen.
🐟 Pesto Butter for Salmon
Add an extra squeeze of lemon juice and a pinch of chilli flakes. Lay a slice over baked or pan-seared salmon just before serving.
🥩 Pesto Butter for Steak
Add a pinch of red pepper flakes and a touch more garlic. Drop a generous pat directly on a hot, freshly cooked steak.
🍞 Pesto Garlic Bread
Spread generously over a halved baguette and grill for 2–3 minutes until golden and bubbling. Far better than standard garlic butter.
🌿 Nut-Free Version
Simply omit the pine nuts or walnuts entirely. The basil, parmesan, and garlic still deliver excellent pesto flavor without any nuts.
