What's in Basil Pesto Sauce? Ingredients & How It's Made
In this article
Basil pesto sauce is a cold, uncooked Italian sauce made from fresh basil leaves, pine nuts, garlic, grated hard cheese (traditionally Parmigiano-Reggiano and Pecorino Romano), and extra-virgin olive oil. These five ingredients are pounded or blended into a bright green, aromatic paste that is tossed with pasta, spread on sandwiches, or used as a condiment.
The Classic Five Ingredients
Traditional basil pesto, known in Italian as pesto alla genovese, contains a short list of ingredients that have remained essentially unchanged for centuries. Each component plays a distinct role:
- Fresh basil leaves – The dominant flavor. Genovese basil (a small-leafed variety) is preferred for its sweet, slightly peppery taste. The leaves are used raw; cooking basil dulls its aroma.
- Pine nuts – Provide richness and a subtle creaminess. They are technically seeds from pine cones and are among the most expensive nuts, which is why many commercial pestos substitute cheaper nuts like walnuts or cashews.
- Garlic – Adds pungency and depth. Traditional recipes use raw garlic, often just one small clove to avoid overpowering the basil.
- Hard cheese – A blend of Parmigiano-Reggiano (for nuttiness and salt) and Pecorino Romano (for sharpness). Some recipes use only Parmesan.
- Extra-virgin olive oil – Binds the ingredients and carries the flavors. A fruity, mild oil is best so it doesn't compete with the basil.
Salt is sometimes added, though the cheese already contributes significant sodium. Some traditionalists include a small amount of butter for extra richness, but this is not universal.
How Traditional Pesto Is Made
Authentic pesto is made with a mortar and pestle, not a food processor. The pounding action gently crushes the basil cells, releasing oils without the heat and oxidation that a spinning blade creates. The result is a more vibrant color and a coarser, more textured sauce. The classic method follows a specific order to prevent the basil from turning bitter or dark:
- Place garlic and a pinch of coarse salt in the mortar and pound into a paste.
- Add basil leaves in small batches, pounding and grinding until they break down.
- Add pine nuts and continue pounding until the mixture is creamy.
- Stir in the grated cheeses.
- Drizzle in olive oil gradually while stirring until the sauce reaches a loose, spoonable consistency.
A food processor can approximate this texture, but it must be pulsed in short bursts and the bowl should be chilled to prevent overheating. Many home cooks blend the garlic, nuts, and cheese first, then add basil and oil last, pulsing just until combined.
Variations and Common Substitutions
While the Genovese version is the benchmark, pesto is a flexible formula. Regional Italian variations and modern adaptations swap ingredients while keeping the same structure of herb + nut + cheese + oil:
- Walnut pesto – Common in Liguria when pine nuts are scarce; walnuts add a slightly bitter edge.
- Almond pesto – Sweeter and milder, popular in Sicily.
- Sun-dried tomato pesto – Replaces basil with tomatoes for a red, tangy spread.
- Kale or spinach pesto – Uses heartier greens; blanching kale first reduces bitterness.
- Vegan pesto – Omits cheese and sometimes uses nutritional yeast for a savory note.
Pine nuts are the most frequent substitution target because of cost and allergy concerns. Cashews, sunflower seeds, and pumpkin seeds are common stand-ins, though each changes the flavor profile.
What to Look for When Buying Pesto
Jarred pesto varies widely in quality. Reading the label reveals a lot about what's inside:
- Basil content – Good pesto lists basil first or second. Some brands use as little as 10% basil and bulk up with sunflower oil or cheap nuts.
- Oil type – Extra-virgin olive oil is a sign of quality; sunflower or soybean oil is a cost-cutting substitute.
- Cheese – Look for actual Parmigiano-Reggiano or Pecorino Romano, not generic "cheese powder" or "hard cheese."
- Preservatives – Many shelf-stable jars contain citric acid or ascorbic acid to prevent browning; these are safe but can add a slight tang.
- Nuts – Check for pine nuts or listed alternatives; allergy information matters.
Refrigerated pesto in the deli section is often fresher and brighter than shelf-stable jars, but it has a shorter shelf life.
Common Problems and How to Fix Them
Pesto is simple, but a few things commonly go wrong:
- Bitter taste – Usually from overprocessing the basil or using old leaves. Pulse briefly and use fresh, dry leaves.
- Dark color – Oxidation causes browning. A layer of olive oil on top of stored pesto slows this; blanching basil for a few seconds before blending also helps.
- Too thick – Add more olive oil a tablespoon at a time until it loosens.
- Too salty – The cheese is salty; reduce added salt and adjust with more basil or oil.
- Garlic overpowering – Use less garlic or blanch it briefly to mellow its bite.
Storage and Safety
Pesto is perishable. Homemade pesto should be refrigerated in an airtight container and used within 5 to 7 days. Press plastic wrap directly onto the surface or cover with a thin layer of olive oil to limit oxidation. For longer storage, freeze pesto in ice cube trays; frozen pesto keeps for up to 3 months. Thaw only the amount needed.
Because pesto contains cheese and raw garlic, it should not be left at room temperature for more than 2 hours. Discard any pesto that smells off or has developed mold. Commercial jarred pesto is shelf-stable until opened; once opened, refrigerate and follow the label's use-by guidance.
Frequently Asked Questions
Is pesto always made with pine nuts?
No. Traditional Genovese pesto uses pine nuts, but many commercial and homemade versions substitute walnuts, almonds, cashews, or sunflower seeds. Pine nuts are expensive and can cause a lingering bitter taste in some people, so alternatives are common.
Can I make pesto without cheese?
Yes. Omitting cheese makes the pesto vegan and reduces sodium. The sauce will be less rich and savory; adding a pinch of nutritional yeast or extra salt can compensate. Adjust oil and nuts to maintain texture.
Why does my pesto turn brown?
Basil oxidizes when exposed to air, causing browning. To slow this, use a sharp blade and pulse briefly, store in an airtight container with a layer of oil on top, and add a little lemon juice or ascorbic acid. Browning is harmless but affects appearance.
How long does homemade pesto last in the fridge?
About 5 to 7 days when stored properly in an airtight container. Freeze for longer storage—up to 3 months. Always discard pesto that has an off odor or visible mold.
Is pesto safe for people with nut allergies?
Traditional pesto contains pine nuts, which are seeds but are often grouped with tree nuts for allergy purposes. People with nut allergies should avoid traditional pesto unless it is made with a safe substitute and prepared without cross-contamination. Always check labels on commercial pesto.
Can I cook pesto?
Pesto is best added off the heat. Tossing it with hot pasta is fine, but boiling or frying pesto dulls its fresh flavor and can make it bitter. If using it in a hot dish, stir it in at the end of cooking.