THE LUNCH NOTEBOOK

Homemade Pesto Recipes: Classic, Nut-Free and Alternative-Nut Variations

Learn how to make homemade pesto with classic pine nuts, nut-free alternatives, and variations with walnuts or cashews. Includes freezing tips, lunchbox ideas and sandwich inspiration for easy everyday meals.

7 min readSauces and Condiments0 viewsHomemade Pesto Recipes: Classic, Nut-Free and Alternative-Nut Variations
— · 0 votes
Contents
  1. What is classic homemade pesto?
  2. Classic homemade pesto recipe
  3. How to make pesto without pine nuts
  4. Walnut pesto (homemade pesto recipe with walnuts)
  5. Cashew pesto (homemade pesto recipe with cashews)
  6. Homemade pesto recipe no nuts (nut-free pesto)
  7. How to balance flavours and textures
  8. Can you freeze homemade pesto?
  9. How to store fresh pesto
  10. What can you do with homemade pesto? Lunchbox and sandwich ideas
  11. Pasta salads and hot pasta
  12. Sandwiches and wraps
  13. Dips and spreads
  14. Eggs and grains
  15. How to adapt pesto to what you have on hand
  16. Quick tips for better pesto

Homemade pesto is a quick, versatile sauce that transforms simple lunches into something special. The classic recipe blends fresh basil, garlic, Parmesan, pine nuts and olive oil into a bright, aromatic paste. But you can easily adapt it: swap pine nuts for walnuts or cashews, or leave nuts out entirely for a nut-free version. Pesto freezes beautifully, so you can always have a batch ready for pasta, sandwiches or stirring into soups. Below you'll find clear recipes, flavour-balancing tips and practical lunchtime ideas.

What is classic homemade pesto?

Classic pesto, or pesto alla Genovese, is an uncooked sauce from Liguria, Italy. It traditionally uses fresh basil leaves, garlic, pine nuts, grated Parmesan cheese (often with Pecorino), and extra-virgin olive oil, pounded together in a mortar. The result is a thick, emulsified paste with a balance of herbal, nutty, salty and garlicky notes. For a quick version, a food processor works well, though a mortar gives a more rustic texture and releases more basil aroma.

Classic homemade pesto recipe

Ingredients

  • 50 g (2 cups packed) fresh basil leaves, washed and thoroughly dried
  • 1–2 garlic cloves, peeled
  • 30 g (1/4 cup) pine nuts, lightly toasted
  • 50 g (1/2 cup) freshly grated Parmesan cheese
  • 120 ml (1/2 cup) extra-virgin olive oil, plus more if needed
  • Salt, to taste (use sparingly; Parmesan is salty)

Method

  1. If using a food processor: combine basil, garlic, pine nuts and Parmesan. Pulse until finely chopped.
  2. With the machine running, slowly pour in the olive oil in a steady stream until the pesto reaches your desired consistency. Scrape down the sides as needed.
  3. Taste and add salt if necessary. If too thick, add a little more olive oil.
  4. Use immediately, or store in a jar with a thin layer of olive oil on top to prevent browning. Refrigerate for up to 5 days, or freeze (see below).

For a mortar method: crush garlic and pine nuts with a pinch of salt, add basil a handful at a time, then work in cheese, and finally stir in oil.

How to make pesto without pine nuts

Pine nuts can be expensive or hard to find, but pesto is forgiving. Walnuts and cashews are excellent substitutes, each bringing a distinct character. Walnuts add an earthy, slightly bitter note, while cashews are creamy and mild, letting the basil shine. Toast the nuts lightly before blending to deepen their flavour. You can use the same amounts as the classic recipe: 30 g (1/4 cup).

Walnut pesto (homemade pesto recipe with walnuts)

Follow the classic method, replacing pine nuts with lightly toasted walnut halves. Walnut skins can add a touch of bitterness; if you prefer a smoother flavour, rub the toasted nuts in a clean kitchen towel to remove some of the skins. This pesto pairs well with whole-grain pasta and roasted vegetables.

Cashew pesto (homemade pesto recipe with cashews)

Use raw or lightly toasted cashews. Because cashews are softer and sweeter, the pesto will be creamier and less assertive. It works beautifully as a spread for sandwiches or stirred into grain bowls. If you're using a food processor, pulse the cashews first to a fine meal before adding other ingredients.

Homemade pesto recipe no nuts (nut-free pesto)

If you need a nut-free pesto for allergies or school lunchboxes, simply omit the nuts. The sauce will be thinner but still delicious. To add body and a savoury note, try one of these additions:

  • Toasted breadcrumbs: 2–3 tablespoons, added with the basil, give texture and absorb oil.
  • Sunflower seeds or pumpkin seeds: Use 30 g (1/4 cup) toasted seeds as a direct nut replacement—they mimic the nutty taste and creamy texture.
  • White beans: 2–3 tablespoons of mashed cannellini beans make the pesto creamy and protein-rich.

For a simple nut-free basil pesto, use the classic recipe but leave out the nuts and add 2 tablespoons of toasted breadcrumbs or sunflower seeds. Taste and adjust oil to reach a spreadable consistency.

How to balance flavours and textures

Great pesto is about balance. Keep these tips in mind:

  • Basil: Use fresh, vibrant leaves; avoid woody stems. Dry leaves thoroughly—water makes pesto bitter and less stable.
  • Garlic: Start with one small clove; you can always add more. Too much raw garlic overpowers the basil.
  • Cheese: Use freshly grated Parmesan (or a mix of Parmesan and Pecorino for more sharpness). Pre-grated cheese is drier and doesn't melt into the sauce as well.
  • Olive oil: Choose a good-tasting extra-virgin olive oil, but not too peppery, as it can dominate. Add it gradually to control consistency.
  • Salt: Add at the end; cheese and nuts already provide saltiness.
  • Acid: A tiny squeeze of lemon juice brightens the flavour, especially if the pesto tastes flat or too oily.

Can you freeze homemade pesto?

Yes, pesto freezes extremely well. Freeze it without the cheese if possible, as cheese can change texture when thawed, though it's still perfectly fine to freeze the complete pesto. Here's how:

  1. Portion pesto into ice cube trays or small containers. An ice cube tray gives you individual servings—each cube is about 1 tablespoon.
  2. Drizzle a thin layer of olive oil on top to prevent oxidation.
  3. Freeze until solid, then transfer cubes to a zip-top bag or airtight container. Label with the date.
  4. Frozen pesto keeps for up to 6 months. Thaw in the refrigerator or at room temperature; stir before using.

If you froze pesto without cheese, stir in grated Parmesan after thawing.

How to store fresh pesto

In the fridge, pesto will keep for up to 5 days. To prevent the surface from darkening, press a piece of plastic wrap directly onto the surface or pour a thin layer of olive oil over the top. You can also blanch the basil before making pesto to keep it greener longer: drop leaves in boiling water for 5 seconds, then plunge into ice water and dry thoroughly.

What can you do with homemade pesto? Lunchbox and sandwich ideas

Pesto is far more than a pasta sauce. Here are easy ways to use it in everyday lunches:

Pasta salads and hot pasta

Toss hot or cold pasta with pesto, adding a splash of pasta cooking water to loosen it. For a complete lunch, mix in cherry tomatoes, mozzarella balls, cooked chicken or roasted vegetables. Pesto pasta is delicious warm or at room temperature, making it perfect for packed lunches.

Sandwiches and wraps

Spread pesto on bread instead of mustard or mayo. It pairs beautifully with turkey, chicken, fresh mozzarella, roasted red peppers, or grilled vegetables. Try a Caprese sandwich: ciabatta, pesto, sliced tomatoes, fresh mozzarella and basil leaves. For a warm option, make a pesto grilled cheese or add a spoonful to a panini.

Dips and spreads

Stir pesto into cream cheese, Greek yogurt or hummus for a quick veggie dip. Thin with a little more olive oil to make a dressing for grain bowls or salads.

Eggs and grains

Swirl pesto into scrambled eggs, or top fried eggs with a spoonful. Stir into cooked rice, quinoa or farro for instant flavour.

How to adapt pesto to what you have on hand

Pesto is endlessly customisable. Use these swaps:

IngredientSubstitution ideas
BasilHalf basil and half spinach, arugula, or parsley (for a peppery note). In summer, try mint or a mix of soft herbs.
Pine nutsWalnuts, cashews, almonds, pecans, pistachios, or a mix. For nut-free, use sunflower seeds, pumpkin seeds, or breadcrumbs.
ParmesanPecorino Romano, Grana Padano, or a hard aged cheese. For dairy-free, use nutritional yeast (2–3 tablespoons) or a vegan parmesan alternative.
Olive oilUse a good quality extra-virgin; if too strong, mix with a neutral oil like avocado. Do not replace entirely with other oils as flavour changes.
GarlicRoasted garlic for a milder, sweeter taste; or a small shallot for a different pungency.

Quick tips for better pesto

  • Toast nuts and seeds in a dry pan for 3–5 minutes until fragrant; cool before blending.
  • If using a food processor, pulse rather than run continuously to avoid overheating the basil, which can turn it brown and bitter.
  • Always add olive oil slowly and last; adding it all at once can make the pesto separate.
  • If the pesto tastes too sharp, add a small pinch of sugar or a bit more cheese.
  • Make extra and freeze in ice cube trays—your future self will thank you.

With these recipes and tips, you can enjoy homemade pesto in countless ways. Whether you stick to classic pine nuts, try walnuts or cashews, or go nut-free, it's a simple, delicious way to make lunch more enjoyable.

Related articles