The quick answer: does pesto contain nuts?
| Pesto variety | Possible nuts or seeds | Other allergens to check |
|---|---|---|
| Traditional basil pesto | Pine nuts | Milk from cheese |
| Supermarket green pesto | Pine nuts, cashews, walnuts or other ingredients | Milk and other declared allergens |
| Red pesto | Nuts or seeds, depending on recipe | Milk and other ingredients |
| Vegan pesto | Cashews, almonds, pine nuts or seeds | Other plant allergens and cross-contact |
| Dairy-free pesto | Nuts or seeds may still be present | Tree nuts and other allergens |
| Nut-free pesto | Formulated without the nuts covered by its claim | Milk, seeds and possible cross-contact |
| Homemade pesto | Whatever ingredients are selected | Ingredients and preparation cross-contact |
| Restaurant pesto | Recipe varies | Nuts, milk and kitchen cross-contact |
Four pestos, four different recipes
Traditional pesto
Ingredients: Basil, olive oil, pine nuts, Parmesan (milk).
Pine nuts + milk
Supermarket pesto
Ingredients: Basil, sunflower oil, cashews, hard cheese (milk).
Cashews + milk
Vegan pesto
Ingredients: Basil, sunflower oil, almonds, nutritional yeast.
Almonds
Seed-based pesto
Ingredients: Basil, olive oil, sunflower seeds, pumpkin seeds.
Seeds, no listed tree nuts
Illustrative ingredient lists, not real product labels. Always check the current packaging and relevant cross-contact information.
Important: The word pesto does not establish whether a product contains cashews, pistachios, walnuts, almonds, pine nuts, milk or other allergens.
1. What is traditional pesto made from?
Traditional pesto alla Genovese is associated with Genoa in Italy.
It is commonly made from:
- Fresh basil
- Pine nuts
- Garlic
- Extra virgin olive oil
- Hard cheese, traditionally Parmigiano Reggiano and/or Pecorino
- Salt
Does traditional pesto contain nuts?
Traditional recipes generally contain pine nuts.
However, pine nuts are botanically seeds rather than the tree nuts specified in UK allergen legislation.
Does traditional pesto contain milk?
Yes, where it contains dairy cheese.
Does every pesto follow the traditional recipe?
No.
Pesto has become a broad category of sauces with many variations.
Can pesto be made without nuts?
Yes.
Some recipes use sunflower seeds, pumpkin seeds or other alternatives.
However, ingredient substitution does not automatically eliminate cross-contact risks or other allergens.
2. Are pine nuts tree nuts?
Pine nuts are edible seeds from pine trees.
They are not among the eight specified nuts covered by the UK's mandatory tree nut allergen declaration category.
Does that mean pine nuts cannot cause allergies?
No.
Pine nut allergy is possible, including serious reactions.
Does a tree nut allergy automatically mean pine nut allergy?
No.
They are botanically distinct, and clinical allergy to one does not automatically establish allergy to the other.
Can someone with cashew allergy eat pine nuts?
That requires individual assessment and allergy-management advice.
Do not assume either that pine nuts are unsafe or that they are automatically suitable.
Are pine nuts always emphasised in bold on UK ingredient labels?
Not because they fall within the regulated tree nut category.
They should still appear in the ingredients list where required, but they are not subject to the same mandatory allergen emphasis solely by being pine nuts.
Why does this matter?
Someone relying only on bold allergen names could overlook pine nuts.
3. Why does supermarket pesto contain cashews?
Commercial pesto may use cashews as an alternative to pine nuts.
Why would manufacturers substitute cashews?
Possible reasons include:
- Ingredient cost
- Availability
- Texture
- Flavour
- Supply arrangements
- Recipe development
Are cashews cheaper than pine nuts?
Prices vary, but ingredient cost can be one reason for substitutions.
Are cashews a regulated UK allergen?
Yes.
Cashews are among the eight specified tree nuts.
Should cashews be emphasised on the label?
For applicable prepacked food ingredient declarations, cashews must be identified and emphasised in accordance with allergen labelling rules.
Does a jar labelled 'classic pesto' guarantee pine nuts rather than cashews?
No.
Check the ingredients.
4. Can pesto contain walnuts or almonds?
Yes.
Walnuts and almonds are used in some pesto recipes.
What about walnut pesto?
Walnuts may replace pine nuts or be used in a different pesto variation.
What about almond pesto?
Almonds are used in some regional and modern recipes.
Are walnuts and almonds regulated allergens?
Yes.
Both are among the UK's specified tree nuts.
Can pesto contain pistachios?
Yes.
Pistachio pesto and pistachio-based sauces exist.
Can pesto contain multiple nuts?
Yes.
A product may contain a mixture of nuts or nuts and seeds.
Do not assume that pesto contains only one type of nut.
5. Cashew and pistachio allergy: why it matters for pesto
Cashews and pistachios are closely related botanically.
Both belong to the Anacardiaceae family.
Their proteins can cross-react in some people.
Does cashew allergy automatically mean pistachio allergy?
No.
However, the association is clinically important.
Can someone with pistachio allergy react to cashews?
Yes.
Should someone with cashew allergy avoid all pesto?
Not necessarily as a universal rule.
Suitability depends on the exact product, its ingredients, possible cross-contact and the individual's allergy-management plan.
Can a pesto label determine whether someone is allergic to both?
No.
An ingredient label identifies declared ingredients. It cannot diagnose clinical cross-reactivity.
Read our guide to cashew and pistachio allergy.
6. Does pesto contain milk?
Many traditional pesto recipes contain hard cheese.
Common examples include:
- Parmigiano Reggiano
- Parmesan-style cheese
- Pecorino
- Other hard cheeses
Is cheese a milk allergen?
Yes.
Can pesto contain milk without listing the word 'milk' as a separate main ingredient?
The ingredient list may identify cheese and its milk source, with appropriate allergen emphasis.
Is pesto suitable for milk allergy?
Not automatically.
Many products contain dairy cheese.
What about lactose intolerance?
Hard cheeses often contain relatively little lactose, but individual tolerance varies.
That does not make them suitable for milk allergy.
Does removing the cheese make pesto nut-free?
No.
The nuts and seeds need to be considered separately.
Read our guide to confusing dairy ingredients.
7. Is vegan pesto nut-free?
No, not automatically.
Vegan pesto excludes deliberately added animal-derived ingredients, but may still contain nuts.
What replaces the cheese?
Recipes may use:
- Nutritional yeast
- Cashews
- Almonds
- Other plant ingredients
- Additional oil or seasonings
Can vegan pesto contain cashews?
Yes.
Can vegan pesto contain pine nuts?
Yes.
Can vegan pesto contain pistachios?
Yes.
Can vegan pesto contain milk through cross-contact?
Potentially.
Vegan formulation does not guarantee the absence of unintended milk cross-contact.
Does vegan mean suitable for every allergy?
No.
Read our guide to vegan foods and allergen safety.
8. Is dairy-free pesto nut-free?
Not necessarily.
Dairy-free pesto is intended to exclude dairy ingredients.
It may still contain cashews, almonds, walnuts, pine nuts or other ingredients.
Why is this confusing?
Someone with milk allergy may choose dairy-free pesto.
Someone with nut allergy may assume that the same product is suitable for them.
But the two requirements are different.
Can a pesto be both dairy-free and nut-free?
Yes.
However, the product's actual ingredients and relevant cross-contact information must be checked.
What about dairy-free pesto made with cashew cream?
It contains cashews and is not suitable for someone who must avoid cashews.
9. Is red pesto nut-free?
Not automatically.
Red pesto often contains ingredients such as:
- Sun-dried tomatoes
- Oil
- Garlic
- Herbs
- Cheese
- Nuts or seeds
Does red pesto always contain pine nuts?
No.
Can red pesto contain cashews?
Yes.
Can red pesto contain almonds?
Yes.
Does red pesto contain milk?
Some varieties contain cheese.
Is red pesto safer than green pesto for nut allergy?
There is no general basis for assuming that.
Check the exact product.
10. What about pesto made with sunflower seeds?
Sunflower seeds can replace pine nuts in some pesto recipes.
Are sunflower seeds tree nuts?
No.
Does that make sunflower-seed pesto suitable for tree nut allergy?
Not automatically.
The finished product may contain other nuts or be affected by cross-contact.
Can sunflower seeds cause allergies?
Yes.
Seed allergies can occur independently of tree nut allergies.
Are sunflower seeds one of the UK's 14 regulated allergen categories?
No.
However, sesame is a regulated allergen, and other seeds can still cause allergic reactions.
Should sunflower seeds appear on the ingredient list?
Yes, where an ingredients list is required and they are used as ingredients.
11. What about pumpkin seed pesto?
Pumpkin seeds are another alternative used in some recipes.
Are pumpkin seeds tree nuts?
No.
Are they automatically safe for nut allergy?
Not automatically.
Individual allergies and cross-contact matter.
Can pumpkin seed pesto contain cheese?
Yes.
Can it contain other nuts?
Yes, depending on the recipe.
Is homemade pumpkin seed pesto easier to control?
Making food at home can give you greater control over the selected ingredients and preparation environment.
However, ingredients and equipment still need checking.
12. Five pesto ingredient labels explained
These are fictional examples designed to show how pesto recipes can differ.
Example 1: Traditional-style basil pesto
Traditional-style basil pesto
Ingredients: Basil, olive oil, pine nuts, Parmesan (milk), garlic, salt.
What matters: Contains pine nuts and milk.
Pine nuts are not one of the eight specified UK regulated tree nuts, but can still cause allergy.
Example 2: Supermarket green pesto
Supermarket green pesto
Ingredients: Basil, sunflower oil, cashews, hard cheese (milk), garlic, salt.
What matters: Contains cashews and milk.
Someone expecting traditional pine nuts could overlook the substitution.
Example 3: Vegan pesto
Vegan pesto
Ingredients: Basil, sunflower oil, almonds, nutritional yeast, garlic, lemon juice.
What matters: No dairy ingredients are listed, but almonds are present.
Example 4: Seed-based pesto
Seed-based pesto
Ingredients: Basil, olive oil, sunflower seeds, pumpkin seeds, garlic, lemon juice.
What matters: No specified tree nuts are deliberately listed, but individual seed allergies and cross-contact still need consideration.
Example 5: Red pesto
Red pesto
Ingredients: Sun-dried tomatoes, sunflower oil, walnuts, cheese (milk), basil, garlic.
What matters: Contains walnuts and milk.
The lesson: The product name and appearance do not tell you which nuts or seeds are present.
13. How UK allergen labelling works for pesto
The UK's regulated allergen rules require specified allergens to be declared appropriately.
For prepacked pesto, this generally means that ingredients such as cashews, walnuts, almonds, pistachios and milk must be identified and emphasised.
Example
Pesto
Ingredients: Basil, oil, cashews, cheese (milk), garlic.
What about pine nuts?
Pine nuts are not among the eight specified regulated nuts.
They should be included in the ingredients list where required, but they are not automatically subject to mandatory allergen emphasis as a specified tree nut.
What about sunflower seeds?
They are not among the 14 regulated allergen categories.
What about sesame?
Sesame is a regulated allergen.
If sesame is used as an ingredient, applicable allergen declaration requirements apply.
What if pesto is sold loose?
Food businesses must provide appropriate allergen information, although the presentation requirements differ from prepacked food.
Read our guide to the UK's 14 major food allergens.
14. What does 'may contain nuts' mean on pesto?
A precautionary statement may indicate possible unintended allergen presence.
Does 'may contain nuts' mean cashews are definitely present?
No.
Does it mean pistachios are definitely present?
No.
Is it the same as listing cashews in the ingredients?
No.
Deliberately added ingredients and potential cross-contact are different situations.
Can a pesto without cashews still carry a cashew warning?
Yes.
Does no warning mean no risk?
No.
Precautionary allergen labelling is generally voluntary.
Should someone with nut allergy avoid every product with a warning?
Follow their individual allergy-management advice.
Read our guide to 'may contain' statements.
15. Can manufacturers change the nuts used in pesto?
Yes.
Pesto is a useful example of why familiar products should be checked regularly.
Imagine this change
Earlier recipe
Ingredients: Basil, oil, pine nuts, cheese (milk), garlic.
Later recipe
Ingredients: Basil, oil, cashews, cheese (milk), garlic.
Cashews are among the UK's regulated tree nuts.
Pine nuts are not.
This is a significant allergen-related change.
Would the manufacturer need to update the label?
Yes.
The current product must carry accurate required ingredient and allergen information.
Would the barcode need to change?
Under GS1 product identification standards, a formulation change introducing a newly declared allergen that consumers need to distinguish is an example requiring a new GTIN.
Not every ingredient change requires a new GTIN, however.
Can an ingredient database be out of date?
Yes.
A barcode lookup may retrieve a product record that does not match the packaging currently being sold.
What should you trust?
Check the physical packaging and contact the manufacturer if there is a discrepancy.
Read our guide to recipe changes and barcodes.
16. Is pesto in restaurants safe for nut allergy?
Do not assume so.
Restaurants may make their own pesto or buy prepared sauces.
What nuts might restaurant pesto contain?
- Pine nuts
- Cashews
- Walnuts
- Almonds
- Pistachios
- Other nuts or seeds
Can a restaurant change its pesto recipe?
Yes.
Can the chef use different nuts from the menu description?
Recipes and substitutions can vary, but businesses must provide accurate required allergen information.
What should you ask?
Explain the specific allergy.
Ask which nuts or seeds are used and how cross-contact is managed.
What about shared blenders?
A blender previously used for nut-containing pesto can create a cross-contact concern if not appropriately cleaned.
What about takeaway pesto?
Ask the food business for accurate ingredient and allergen information.
Do not assume the sauce is suitable based on appearance or a previous order.
17. Pesto in sandwiches, pasta and ready meals
Pesto is not always sold in a jar.
It can appear as an ingredient in prepared foods.
Common examples
- Pesto pasta
- Chicken pesto sandwiches
- Mozzarella and pesto paninis
- Pesto pizza
- Pasta salads
- Ready meals
- Wraps
- Salad dressings
- Stuffed chicken
- Pesto dips
Does a chicken pesto sandwich contain nuts?
It may.
The pesto component could contain cashews, pine nuts or other nuts.
Does pesto pasta contain milk?
Often, because the pesto may contain cheese.
Does a pesto pizza contain nuts?
Potentially.
Should you check the pesto as a compound ingredient?
Yes.
Look at the full ingredients declaration, including the ingredients of the pesto component where required.
18. Pesto and children's food allergies
Pesto pasta is a common family meal.
But a product suitable for one child may not be suitable for another.
Example
One child has cashew allergy.
Another has milk allergy.
A third has no food allergies.
A pesto containing cashews and Parmesan would present different concerns for each child.
Does a nut-free school policy automatically mean pine nuts are included?
School policies vary.
Ask the school how its policy defines nuts and seeds.
What about school packed lunches?
Check packaged pesto products and prepared foods.
What about shared family meals?
If preparing one meal for several people, check every relevant ingredient against each person's requirements.
Can one scan check multiple profiles?
Yes. Choose who the scan is for, then use Also check for... on the result to check the same label against another person's Ingredient Guard without photographing it again.
Read our family allergy app guide.
19. What about pesto sold abroad?
Pesto recipes can vary between countries.
A familiar brand may have different ingredients in different markets.
Could Italian pesto contain different nuts from UK pesto?
Yes.
Does pesto always contain pine nuts in Italy?
No.
There are regional and commercial variations.
What if the label is in Italian?
Look for relevant ingredient terms such as:
- Anacardi: cashews
- Pistacchi: pistachios
- Mandorle: almonds
- Noci: walnuts
- Pinoli: pine nuts
- Latte: milk
- Formaggio: cheese
Does translation guarantee accuracy?
No.
Translation and ingredient recognition can make errors.
What if the ingredient list is unclear?
Seek reliable clarification rather than guessing.
Read our guide to checking labels abroad.
20. Can you make nut-free pesto at home?
Yes.
You can make pesto without intentionally adding tree nuts.
Example ingredients
- Fresh basil
- Olive oil
- Garlic
- Lemon juice
- Salt
- Sunflower seeds, if suitable
For a dairy-free version, omit cheese or use a suitable alternative.
Does this guarantee allergy safety?
No.
Ingredient sourcing, cross-contact and individual allergies still matter.
What about using sunflower seeds?
They are not tree nuts, but sunflower seed allergy is possible.
What about using pumpkin seeds?
The same principle applies.
Can you make pesto without nuts or seeds?
Yes.
A simple basil, olive oil, garlic and lemon mixture can be used as a pesto-style sauce.
What if someone has a severe allergy?
Follow their individual allergy-management plan, including advice about ingredients and preparation.
21. How to check a pesto label in the supermarket
Step 1: Read the ingredients
Do not rely on the word pesto or the front-of-pack photograph.
Step 2: Identify the specific nuts
Look for cashews, walnuts, almonds, pistachios and other specified nuts.
Step 3: Check for pine nuts
Remember that pine nuts may not be emphasised as a regulated allergen.
Step 4: Check for milk
Look for cheese and other dairy ingredients.
Step 5: Check seeds and other ingredients
Sesame and other ingredients may be relevant.
Step 6: Read precautionary statements
These may identify potential cross-contact.
Step 7: Check the current packaging
Even if you've bought the same product before.
Step 8: Check compound foods
Pesto in sandwiches, pasta and ready meals may have different ingredients from a jar sold separately.
Step 9: Ask when information is unclear
Contact the manufacturer or food business.
Step 10: Follow the individual's allergy-management advice
Do not use an ingredient label or app result to test clinical tolerance.
22. Pesto allergy shopping checklist
Before buying pesto:
- Check for cashews
- Check for pistachios
- Check for walnuts
- Check for almonds
- Check for other specified tree nuts
- Check for pine nuts
- Check for milk and cheese
- Check for sesame and relevant seeds
- Review precautionary statements
- Check the current ingredients list
- Check other family members' allergies
- Ask for clarification if necessary
Remember: Nut-free, dairy-free, vegan and gluten-free are different claims. One does not automatically establish the others.
Always check the current product label before you buy: ingredients, allergen information and any free-from claim.
23. How ClearaScan helps with pesto ingredient checking
ClearaScan reads photographs of ingredient labels and checks recognised text against personalised Ingredient Guard rules.
Check the actual pesto label
Rather than depending solely on a stored barcode product record, ClearaScan works with the recognised ingredient text on the packaging.
Check specific nut ingredients
Each nut is its own Ingredient Guard entry, so you can choose exactly the ones that apply. ClearaScan recognises names including:
- Cashew
- Cashew paste
- Walnut
- Almond
- Pistachio
- Pine nut
Check milk ingredients
When milk is on your Ingredient Guard, ClearaScan looks for milk, cheese, Parmesan, mozzarella and other dairy-derived names. The Italian cheese names Parmigiano Reggiano and Pecorino aren't recognised on their own, but UK labels normally add (milk) after them, and that is flagged.
How pine nuts and seeds are handled
- Pine nut is a separate entry from the eight regulated nuts. ClearaScan's general Tree nuts entry also includes pine nuts and chestnuts, because some people avoid them. That doesn't make them regulated UK tree nuts.
- Sesame and Sunflower seed are separate entries. Pumpkin seed isn't in the list yet, so add it as a custom ingredient if you need it.
- A vegan or dairy-free claim on the jar doesn't change the result. Every recognised ingredient is still checked, and 'may contain' statements are shown separately from ingredients that are deliberately included.
- A label in Italian is translated to English before it's checked, so anacardi or pinoli can be recognised as cashews or pine nuts. Translation can make mistakes, so check the original label.
Check multiple family profiles
One person may have cashew allergy.
Another may have milk allergy.
Someone else may need to avoid sesame.
The same captured ingredient label can be checked against multiple Ingredient Guards, using Also check for... on the result.
Save previously checked products
Trusted Products can help users keep track of products they've reviewed.
However, a saved pesto should not be treated as permanently suitable because recipes may change. From 60 days a Trusted Product shows Re-check due, and from 90 days Re-scan overdue.
Important limitations
ClearaScan cannot:
- Diagnose nut or milk allergy
- Determine clinical cross-reactivity
- Establish whether pine nuts are suitable for a particular person
- Detect undeclared allergens
- Measure residual nut protein
- Assess restaurant cross-contact
- Guarantee complete ingredient recognition
- Verify that a manufacturer's label is accurate
- Determine individual clinical safety
A recognised ingredient match helps identify something to review. A result with no flagged matches does not guarantee allergy safety.
Related guides
- Cashew and pistachio allergy
- Coconut and pine nut allergies
- The UK's 14 major food allergens
- Hidden tree nut ingredient names
- Is it dairy-free?
- Are vegan foods suitable for allergies?
- What does 'may contain' mean?
- How to read food labels
- Can ingredients change without the barcode changing?
- Allergy app for families

