This post was originally published May 13, 2024 and updated June 16, 2026 with new information, expanded storage tips, and a troubleshooting section.
Every summer, the basil wins.
I plant it everywhere — between the tomatoes, along the garden edges, in large planter by the back door. And every July, without fail, it gets ahead of me. The plants are bolting, the kitchen smells incredible, and I’m standing there with two fistfuls of basil wondering what to do next.
This is what I do next.

Walnut pesto takes five minutes, uses up a serious amount of basil, and freezes into cubes you’ll be pulling out for pasta in January when the garden is buried under a foot of Idaho snow. No pine nuts required — walnuts are earthier, bolder, and I keep them in my pantry year-round anyway.
Make a big batch. The garden gives in July. The freezer gives back in the winter.
What Is Walnut Pesto?
Walnut pesto is a basil pesto made with walnuts instead of the traditional pine nuts. Same bright, garlicky flavor. Richer, earthier texture. And a fraction of the cost.
Around here, pine nuts are about as common as truffles. So I reach for walnuts — they’re easy to find, easy on the wallet, and honestly? I like their flavor better. Bold and earthy in a way that stands up to pasta, pizza, grilled meat, and just about everything else that comes out of a summer kitchen.
This is my go-to walnut pesto recipe. You won’t miss the pine nuts. I promise. Five minutes, one food processor, eight ingredients. Make it now while the basil is going crazy. Freeze it in cubes and eat it all winter.
Why This Walnut Pesto Recipe Works
Pesto is forgiving. But a few things make this version especially reliable.
Walnuts instead of pine nuts — Walnuts bring a deeper, earthier flavor than pine nuts. They also toast beautifully if you have five extra minutes, which adds another layer you don’t get from pine nuts at any price.
Lemon juice instead of just olive oil — Most walnut pesto recipes skip the lemon. I don’t. A quarter cup of fresh lemon juice brightens the whole sauce and keeps it from going flat after the first day in the fridge.
Parmesan, not Romano — Romano is sharper and saltier. Parmesan is mellower and lets the basil stay the star. Either works, but Parmesan is what I reach for first.
Process in stages — Basil first, then everything else on top. This keeps the basil from over-processing into a bitter paste before the other ingredients have a chance to smooth things out.
What to Expect
Fresh walnut pesto is bright green when it comes out of the food processor — almost electric. It will darken to a deeper olive green within a few hours in the fridge. That’s normal. It hasn’t gone bad.
The texture should be thick and spreadable, not runny. If yours is thinner than you’d like, add another tablespoon or two of walnuts and pulse again.
The flavor is bold right out of the processor. It mellows slightly after a day in the fridge, which is actually when it’s at its best.
Ingredients You’ll Need for Walnut Pesto

- 2 cups fresh basil, tightly packed
- 3/4 cup shredded Parmesan cheese (about 4 oz)
- 1/2 cup shelled walnuts, raw or toasted
- 2 garlic cloves
- 1/4 cup freshly squeezed lemon juice
- 1/2 teaspoon kosher salt
- 1/4 teaspoon black pepper
- 1/2 cup extra virgin olive oil
A note on basil: Every summer, my garden turns into a basil jungle. I plant it everywhere — it’s a great companion plant for tomatoes and it deters flies and mosquitoes naturally. Last July, I pulled two full bags of basil off my plants in a single morning just to keep them from bolting. This recipe is what happened next. If you don’t grow your own yet, farmers market basil is your best bet — look for vibrant green leaves with no black spots or wilting.
Pro tip: Toasting the walnuts adds a noticeably deeper flavor. Dry skillet, medium heat, five minutes. Watch them — they go from golden to burnt fast. But if dinner needs to happen now, skip it. The pesto will still be very good.
Walnuts vs. Pine Nuts — What’s the Difference?
| Walnuts | Pine Nuts | |
|---|---|---|
| Flavor | Rich, earthy, slightly bitter | Mild, buttery, delicate |
| Texture in pesto | Thick, hearty | Smoother, creamier |
| Cost | Affordable, widely available | Expensive, harder to find |
| Toasting | Highly recommended | Optional |
| Freezes well | Yes | Yes |
| Best for | Bold pasta sauces, pizza, grilled meats | Delicate dishes, lighter pasta |
Either works. Walnuts just happen to be what grows well in this part of Idaho — and what I keep in my pantry year-round.
Step-by-Step Instructions

Step 1 — Wash and dry your basil.
A salad spinner works perfectly. Wet basil makes watery pesto. My salad spinner gets a serious summer workout.
Step 2 — Toast the walnuts (optional but worth it).
Dry skillet over medium heat, five minutes, stirring occasionally. Pull them when they smell nutty. Let them cool for a minute before adding to the processor.
Step 3 — Add basil to the food processor first.
Then pile everything else on top — walnuts, Parmesan, garlic, lemon juice, salt, and pepper. Hold the olive oil.
Step 4 — Pulse until roughly chopped.
Scrape down the sides. This is important — basil hides in the corners.
Step 5 — Stream in the olive oil while the processor runs.
Slow and steady gives you a better emulsion. Too fast and the oil separates.
Step 6 — Taste and adjust.
More salt? More lemon? A little more Parmesan? This is your pesto. Make it taste like yours.

How to Use Walnut Pesto
This is the part I love. Pesto is one of those sauces that makes everything taste intentional — even a Tuesday night scramble.
- Toss with hot pasta — the heat loosens it perfectly
- Stir a spoonful into homemade tomato soup — it’s a different soup entirely
- Spread on crostini or crusty bread as an appetizer
- Layer into Italian pressed sandwiches — this is one of my favorites
- Use as pizza sauce — especially good with fresh mozzarella and cherry tomatoes
- Drizzle over grilled chicken, steak, or vegetables
- Stir into scrambled eggs — don’t knock it until you’ve tried it
Pesto goes with everything except dessert. Although I’m still thinking about that one.
If you’re building out your from-scratch kitchen, this pesto fits right into the Comfort Food From Scratch collection — simple sauces, real ingredients, nothing that comes from a jar.
Storage Tips for Homemade Walnut Pesto
How to store fresh pesto in the fridge
Transfer to a glass jar and pour a thin layer of extra virgin olive oil over the top. This is the key step — that oil layer is what keeps the basil from oxidizing and turning brown. Seal with a lid and refrigerate.
Best within 3–5 days.
How to freeze walnut pesto
This is the move for summer basil overload. Spoon the pesto into an ice cube tray — each cube is roughly two tablespoons, which is a perfect single-serving portion for pasta. Freeze until solid, then pop the cubes into a freezer-safe bag.
They’ll keep up to 3 months. Pull one cube per person straight from the freezer into hot pasta. It melts right in.
Freezer bag method
If you don’t have an ice cube tray, spread the pesto into a thin layer in a zip-top freezer bag, press it flat, and freeze. Break off pieces as needed.
Troubleshooting — When Your Pesto Doesn’t Look Right
Pesto turned dark brown or black
Oxidation. It happens fast once basil is cut. The olive oil layer in the jar slows it down but doesn’t stop it entirely. Brown pesto is still safe to eat — it just doesn’t look great. To prevent it, press plastic wrap directly against the surface of the pesto before adding the oil layer.
Pesto tastes bitter
Two possible causes. Over-processed basil gets bitter — pulse in short bursts rather than running the processor continuously. Or the walnuts were over-toasted. Pull them while they’re golden, not dark brown.
Pesto is too thick
Add olive oil one tablespoon at a time and pulse until you reach the consistency you want. A splash of pasta water works too if you’re tossing it with pasta immediately.
Pesto is too thin
Add more Parmesan or a small handful of walnuts and pulse again.
Garlic flavor is too strong
Use one clove instead of two, or roast the garlic first for a mellower flavor.
Recipe Variations
- Vegan walnut pesto — Skip the Parmesan and add nutritional yeast instead. Start with 3 tablespoons and taste as you go.
- Walnut parsley pesto — Replace half the basil with fresh flat-leaf parsley. Milder, good for people who find straight basil pesto too intense.
- Arugula walnut pesto — Replace half the basil with arugula for a peppery bite.
- Walnut pesto with heat — Add a pinch of red pepper flakes or half a small jalapeño.
- Different nuts — Pecans work beautifully. Almonds give a slightly drier texture but good flavor.
Shop This Post
Everything I use to make this recipe:
- Cuisinart Food Processor — from pesto to pizza dough, I use this food processor all the time
- Extra virgin olive oil — a good olive oil makes a real difference in pesto
- Weck jars for storage — these are my favorite jars for storing pesto in the fridge
- Ice cube trays for freezing — these large ice cube trays with lids are perfect for pesto freezing and storage
- Salad spinner — if you have a garden full of basil, lettuce or any other leafy green, this will get used all the time like it does in my kitchen
Never Miss a Recipe
If you liked this walnut pesto, you’ll love what’s coming next — from-scratch recipes, canning guides, and real homestead cooking from my Idaho kitchen.
No spam. Just good country cooking, straight to your inbox.

From the Garden to the Freezer — That’s the Whole Plan
Pesto is one of those things that sounds fancier than it is.
Five minutes. Eight ingredients. A food processor and a fistful of basil from a garden that got away from you.
That’s it. That’s the whole secret.
Make a big batch while the basil is going strong, freeze it in cubes, and you’ve got a little piece of summer sitting in your freezer waiting for the nights when dinner needs to happen fast and nobody has the energy to think about it.
Simple Living ❤️ Country Style — one jar of frozen pesto cubes at a time.
If you made this — what did you put it on first? Pasta is the obvious answer but I’m always curious what people reach for when nobody’s looking.
More Recipes You’ll Love ❤️
- Italian Pressed Sandwiches – Great for Picnics and Camping
- Zucchini Lasagna Made with Béchamel White Sauce
- Homemade Lasagna Pasta – Easy and Fun to Make
- Cavatelli Pasta – So Delicious and Easy to Make
Pin and Save for Later!

Walnut Pesto FAQs
Can I make walnut pesto without a food processor?
Yes — a blender works, though you may need to scrape it down more often. A mortar and pestle is the traditional method and gives you more control over texture. It takes longer but the result is genuinely different — coarser, more rustic, and worth trying at least once when you have time.
Can you make pesto with walnuts instead of pine nuts?
Absolutely. Walnuts are actually one of the most common substitutes and many cooks — myself included — prefer them. They bring a richer, earthier flavor and they’re far more affordable and available than pine nuts.
Does pesto have walnuts in it?
Traditional Genovese pesto uses pine nuts. But walnut pesto is a well-established variation with a long history, particularly in other regions of Italy. It’s not a shortcut — it’s a different and genuinely good sauce.
Is walnut pesto gluten-free?
Yes. All the ingredients are naturally gluten-free. If you’re serving someone with celiac disease, just verify that your Parmesan and walnuts are processed in a gluten-free facility.
Can I make walnut pesto vegan?
Yes. Leave out the Parmesan and replace it with nutritional yeast — start with 3 tablespoons and add more to taste. The flavor is different but still very good.
How long does homemade walnut pesto last?
3–5 days in the fridge with an olive oil layer on top. Up to 3 months in the freezer in ice cube trays.
Can I use pre-shredded Parmesan?
You can. Freshly grated melts more smoothly and tastes cleaner, but pre-shredded works fine in a pinch. Avoid the shelf-stable powdered kind — it doesn’t blend properly and the flavor is flat.
Why does my pesto turn dark?
Oxidation — the same reason cut basil turns black. The olive oil layer in the jar slows it down. Pressing plastic wrap directly against the pesto surface before adding the oil layer slows it further. It’s cosmetic, not a safety issue.
Can you freeze pesto with Parmesan in it?
Yes. The Parmesan holds up fine in the freezer. The texture may be very slightly grainier after thawing but once it hits hot pasta you won’t notice.
What do you use walnut pesto for besides pasta?
Pizza sauce, sandwich spread, soup stirred in, grilled chicken or steak topping, scrambled eggs, crostini. It’s one of the more versatile sauces in a summer kitchen.


Leave a Reply