Pesto is one of the most beloved Italian sauces, famous for its bright green color and rich herbal flavor. Whether tossed with pasta, spread on sandwiches, or used as a dip, pesto is a staple in many kitchens.
However, because pesto is made from fresh ingredients like basil, garlic, cheese, and olive oil, it does not last as long as many other sauces. Understanding how long pesto lasts and how to store it properly can help preserve its flavor, maintain food safety, and reduce waste.
- How to Store Homemade Sauce: Best Methods for Every Type of Sauce
- How Long Does Bread Last in the Pantry, Fridge, and Freezer?
- Pasta Sauces: From Classic Italian Varieties to Regional Specialties
- How Long Does Pasta Last? Shelf Life, Storage Tips & Food Safety Guide
What Is Pesto?

Pesto is a traditional Italian sauce originating from the region of Genoa. It is typically made by blending fresh basil leaves with garlic, pine nuts, Parmesan cheese, olive oil, and salt to create a thick, aromatic paste.
While basil pesto is the most well-known version, many variations exist, including kale pesto, arugula pesto, and sun-dried tomato pesto. Because pesto contains fresh herbs, garlic, and oil, it is considered a perishable sauce that requires refrigeration after preparation or opening.
The Food Safety Warning Every Pesto Guide Skips: Garlic, Oil, and Botulism Risk
This section covers the one pesto food safety risk that is genuinely serious and genuinely absent from all mainstream pesto storage guides. It is not intended to cause alarm about eating pesto — the risk is manageable and straightforward to avoid — but it is too important to omit.
Why garlic-in-oil is a food safety concern: Clostridium botulinum is an anaerobic bacterium — it thrives in environments without oxygen. It produces botulinum toxin, one of the most potent biological toxins known, which causes botulism: a potentially life-threatening illness affecting the nervous system. C. botulinum spores are present on garlic (and other low-acid vegetables) in the soil environment. These spores survive normal cooking temperatures.
The conditions that create risk in pesto: Fresh pesto creates exactly the conditions that food safety authorities have identified as high-risk for C. botulinum growth:
• Garlic submerged in oil: The garlic pieces in pesto are surrounded by olive oil, creating a low-oxygen (anaerobic) microenvironment around each garlic piece — precisely the condition C. botulinum requires.
• Near-neutral pH: Fresh basil pesto has a pH of approximately 5.5–6.5 — mildly acidic to nearly neutral. C. botulinum cannot grow below pH 4.6. Pesto's pH is well above this safety threshold — it does not have the acidity to prevent growth.
• Room temperature: At refrigerator temperature (4°C), C. botulinum growth is extremely slow. At room temperature (above 10°C), growth can occur. Health Canada's garlic-in-oil advisory specifically notes that homemade garlic-in-oil preparations stored at room temperature have been associated with documented botulism outbreaks in Canada.
Health Canada advisory — homemade garlic-in-oil: Health Canada and the Canadian Food Inspection Agency (CFIA) advise that homemade preparations of garlic (or other low-acid vegetables) in oil must be refrigerated at all times and used within 1 week. They should never be stored at room temperature. Botulinum toxin is colourless, odourless, and tasteless — a pesto that looks and smells fine can still carry toxin if stored incorrectly. The 2-hour room temperature rule is not conservative advice for pesto; it reflects a genuine food safety risk. Commercial pestos (store-bought) manage this risk through: acidification (added citric acid lowers pH below 4.6), pasteurisation during manufacturing, or both. Homemade pesto has neither of these controls.
To be clear about proportionality: botulism from pesto is rare, and the vast majority of people who leave pesto at room temperature for a few hours will not experience any illness. The risk is real but low-probability in any single event — and it is completely avoidable by following the refrigeration rule. The reason this guide covers it thoroughly is that every other pesto guide omits it entirely, and it is the most important food safety fact in this topic.
Why Pesto Turns Brown: Chlorophyll Degradation vs PPO Browning
The browning of pesto is one of the most common pesto frustrations — and the most commonly misunderstood. Most guides attribute it to oxidation (as with avocado) and recommend adding lemon juice to slow it, the same way lemon juice slows avocado browning. This advice is wrong for pesto, and applying it makes the browning worse.
Pesto browns through two distinct mechanisms, and lemon juice affects each differently:
|
Browning Mechanism |
What Causes It |
Speed |
Does Lemon Juice Help? |
How to Actually Prevent It |
|
PPO enzyme browning (same as avocado) |
Polyphenol oxidase (PPO) enzyme in basil reacts with phenolic compounds in the presence of oxygen. Same mechanism as avocado and apple browning. |
Fast — visible within minutes of blending |
⚠️ Partially — ascorbic acid in lemon juice acts as a preferential PPO substrate, buying some time. But see chlorophyll effect below. |
Blanch basil briefly in boiling water (5–10 sec) then immediately ice bath before blending. Heat deactivates PPO. Blanched pesto stays green for days longer than raw-blended pesto. |
|
Chlorophyll degradation |
Chlorophyll (the molecule responsible for basil's green colour) is sensitive to acid. In an acidic environment, chlorophyll loses its central magnesium ion and converts to pheophytin — an olive-brown pigment. This is why cooked green vegetables turn dull when exposed to acid. |
Medium — visible over hours to days in the fridge |
❌ Makes it worse — lemon juice is acidic. Adding lemon juice to pesto lowers the pH, accelerating chlorophyll → pheophytin conversion. The pesto turns brown faster with lemon juice than without it. |
Minimise acid additions. Do not add lemon juice if colour longevity is the goal. Blanching also helps — heat converts some chlorophyll to a more stable form before acid exposure. |
The lemon juice paradox in pesto: Adding lemon juice slows PPO browning (as in avocado or apple) but accelerates chlorophyll degradation — the mechanism responsible for most of pesto's colour change. In avocado, PPO is the dominant browning mechanism, so lemon juice helps. In pesto, chlorophyll degradation is dominant, so lemon juice has the net effect of making the pesto browner faster, not greener longer. If colour longevity is your goal: skip the lemon juice in pesto you plan to store. The flavour from acid is valuable for serving — add lemon juice just before serving the stored pesto, not during preparation of the batch to be stored. The colour change in stored pesto is still safe to eat — it is chemical, not microbial. Brown pesto that smells normal is fine to use.
Pesto Shelf Life: Complete Table by Type and Storage Condition
|
Pesto Type |
Pantry (unopened) |
Fridge (opened) |
Freezer |
Key Factor |
|
Homemade basil pesto (fresh basil, garlic, nuts, parmesan, oil) |
Not applicable — must be refrigerated immediately after making |
3–5 days. Use within 2 days for best colour and flavour. |
3–4 months best quality; up to 6 months safe |
No preservatives, high moisture from fresh basil, near-neutral pH. The most perishable pesto type. Refrigerate immediately after making. |
|
Homemade kale pesto |
Not applicable — refrigerate immediately |
4–6 days. Slightly longer than basil pesto. |
3–4 months |
Kale has less moisture and more robust cell structure than basil. Pigment (partly carotenoids, not pure chlorophyll) is more stable — browns more slowly. Slightly better shelf life than basil. |
|
Homemade arugula pesto |
Not applicable — refrigerate immediately |
3–4 days |
3–4 months |
Arugula has high water content and delicate leaves — shorter shelf life than kale, similar to basil. More bitter flavour intensifies with age. |
|
Homemade sun-dried tomato pesto (red pesto) |
Not applicable — refrigerate after making |
7–10 days |
4–6 months |
Sun-dried tomatoes have very low moisture content and slightly lower pH than fresh herb pestos. No chlorophyll degradation issue (red pigment is stable). Significantly longer shelf life than fresh herb pestos. |
|
Homemade nut-free pesto (basil, garlic, parmesan, oil, no nuts) |
Not applicable — refrigerate after making |
3–5 days |
3–4 months |
Shelf life similar to regular basil pesto — nuts are not the limiting factor. The basil moisture and garlic-in-oil dynamic dominate. |
|
Vegan pesto (no parmesan — nutritional yeast) |
Not applicable — refrigerate after making |
3–5 days |
3–4 months |
No meaningful shelf life difference from regular basil pesto. Parmesan removal does not significantly affect the degradation timeline. |
|
Store-bought, refrigerated section (with preservatives, e.g. Buitoni, Kirkland) |
Must remain refrigerated — do not store at pantry temperature |
5–7 days after opening |
3–4 months |
Citric acid and/or ascorbic acid added during manufacturing. Citric acid lowers pH toward the 4.6 safety threshold, reducing bacterial and mould growth rate. Ascorbic acid provides PPO inhibition. |
|
Store-bought, shelf-stable jar (pasta aisle — not refrigerated until opened) |
Best before date on label + 1–3 months at room temperature |
7–14 days after opening, refrigerated |
4–6 months |
Pasteurised during manufacturing. Heat-treatment combined with preservatives gives the longest shelf life. Once opened, requires refrigeration and follows opened guidelines. |
The Two Spoilage Pathways in Pesto: Rancidity and Microbial Spoilage
Pesto goes bad through two distinct pathways that produce different smells and require different assessment approaches. Knowing which is which helps you determine whether pesto is genuinely unsafe or just past its peak flavour quality.
Pathway 1: Olive Oil Rancidity
Olive oil — approximately 70–75% of pesto's total content — undergoes rancidity through two mechanisms:
• Hydrolytic rancidity: The water present in fresh basil leaves, combined with the enzyme lipase (also present in basil), hydrolyses the triglyceride structure of olive oil over time, releasing free fatty acids. Some of these free fatty acids — particularly butyric acid and hexanoic acid — have unpleasant sour, cheesy, or rancid smells even in small concentrations. This process occurs at refrigerator temperatures, just more slowly.
• Oxidative rancidity: Exposure of olive oil's unsaturated fatty acids (particularly oleic acid, ~70% of olive oil) to oxygen produces volatile aldehydes and ketones — specifically hexanal, nonanal, and 2-heptenal. These compounds produce the characteristic chemical, crayon-like, metallic, or paint-like smell associated with old pesto. This is the 'it smells chemical but not rotten' smell that indicates fat oxidation rather than bacterial spoilage.
The rancidity tell: Old pesto with rancid olive oil smells sharp, chemical, and artificial — clearly different from the fresh herbal-nutty-garlicky aroma of good pesto. It is unpleasant but does not necessarily indicate pathogenic bacterial growth. Rancid pesto should be discarded because the flavour is ruined and rancid fat consumption is linked to digestive irritation — but the risk profile is different from bacterial spoilage.
Pathway 2: Microbial Spoilage
The high moisture content of fresh basil, combined with the near-neutral pH of homemade pesto and the abundant nutrients from parmesan, nuts, and olive oil, creates a hospitable environment for microbial growth once the pesto is exposed to air and warm temperatures.
• Mould: The most visible form of microbial spoilage. Pesto mould appears as fuzzy growth — white, green, grey, or black — on the surface or sides of the container. Unlike hard cheese where mould penetration is limited by low moisture, pesto's high moisture and blended structure means mould hyphae distribute through the sauce. Discard the entire container at any visible mould — do not scoop and use the rest.
• Bacterial spoilage: Bacterial decomposition produces volatile amine compounds with putrid, sour-fermented, or ammonia-like smells — qualitatively different from rancid oil smell. Sour-smelling pesto that is also slimy or has a significantly altered texture indicates bacterial spoilage.
|
Spoilage Type |
Smell |
Visual |
Texture |
Safe to Eat? |
|
Olive oil rancidity |
Chemical, crayon-like, metallic, paint-like, or 'old oil' — sharp and artificial. Not rotten, not sour — chemical. |
May look normal or slightly darker. Colour change is not the tell for rancidity. |
Normal to slightly separated |
No — discard. Flavour is ruined and rancid fats irritate digestion. |
|
Mould |
Often musty or earthy overlaid on normal pesto smell, or no obvious smell change until late-stage |
Visible fuzzy growth — white, grey, green, or black — on surface or sides of container |
Normal beneath visible mould, but hyphae penetrate throughout |
No — discard entire container. Mould hyphae in pesto's moist blended structure extend beyond visible growth. |
|
Bacterial spoilage |
Putrid, strongly sour-fermented, ammonia-like, or rotten — qualitatively unpleasant and clearly 'off' |
Often darker, possibly slimy surface |
Slimy, watery, or significantly different from fresh texture |
No — discard immediately |
|
Chlorophyll degradation (brown colour) |
Normal pesto smell — no off notes. The pesto smells like pesto. |
Surface or throughout colour change from bright green to olive-brown or grey-green |
Normal creamy texture unchanged |
Yes — the colour change is purely chemical (chlorophyll → pheophytin). Brown pesto that smells fine and shows no mould is safe to eat. |
|
Oxidative colour darkening (top layer only) |
Normal pesto smell or very slightly more muted |
Top layer darker than the pesto beneath |
Normal beneath surface layer |
Yes — scrape off darker top layer. Green pesto beneath is fine if smell is normal and no mould present. |
Storage Methods Ranked: What Actually Works and Why
|
Rank |
Method |
Extends Shelf Life By |
Mechanism |
Critical Limitation |
|
1 — Best |
Freeze in ice cube trays (1–2 tbsp portions) as soon as possible after making |
From 3–5 days to 3–4 months |
Freezing halts enzymatic activity (PPO, lipase), slows oxidation dramatically, and stops bacterial growth entirely. Small portions allow thawing only what is needed without re-exposing the full batch to air. |
Texture changes slightly on thawing — less creamy, may be more oily. Acceptable for pasta sauce; ideal for cooking applications. Thaw in fridge overnight or toss frozen cube directly into hot pasta. |
|
2 — Excellent |
Olive oil layer on surface + airtight container + refrigerate |
Extends colour and rancidity window by 1–2 days vs no oil layer |
Olive oil creates a hydrophobic barrier that slows oxygen diffusion to the pesto surface, reducing both PPO browning and oxidative rancidity at the surface. The layer must be kept intact. |
Stirring breaks the oil layer immediately, re-exposing pesto to air. Remove the oil layer before serving (or incorporate it into the dish). Does not prevent microbial growth within the body of the pesto — only slows surface oxidation. |
|
3 — Good |
Airtight container + refrigerate (coldest part, back of shelf, not door) |
Standard 3–5 days for homemade |
Airtight seal minimises oxygen exposure and cross-contamination. Back of shelf maintains most consistent temperature (fridge door fluctuates 2–4°C warmer every time it opens). |
This is the baseline — all other methods are additions to this standard. |
|
4 — Moderate |
Blanch basil before blending (10 sec boiling, immediate ice bath) |
Significantly slows browning — colour-stable for 1–2 days longer than raw-blended |
Heat (blanching) deactivates PPO enzyme and partially converts chlorophyll to a more heat-stable form before acid exposure during storage. Blanched pesto maintains brighter green colour significantly longer than raw-blended. |
Blanching very slightly reduces the 'raw' brightness of fresh basil flavour — a small trade-off for dramatically better colour retention. Not suitable for pesto you want to use immediately. |
|
5 — Minor |
Add extra parmesan |
Slight — 1 day or less |
Parmesan's low moisture content and high salt concentration provide a mild preservative effect in the immediate environment of the pesto. Aged cheeses also have lower water activity than fresh ingredients. |
Very modest effect. Alters flavour balance if used in excess. |
|
6 — Not recommended |
Refrigerate in original store packaging (after opening) |
Less than standard |
Store packaging is designed for display, not long-term storage after opening. The seal is typically not airtight once opened and the container headspace is larger than a properly sized storage container. |
Transfer pesto to a smaller airtight container after opening — one that fits the remaining pesto with minimal headspace. |
|
7 — Dangerous |
Leave at room temperature |
No benefit; increases risk |
Room temperature significantly accelerates all three spoilage pathways (PPO browning, rancidity, microbial growth) and enables potential C. botulinum toxin production in homemade pesto with fresh garlic. |
Never leave homemade pesto at room temperature for more than 2 hours. Never store homemade pesto at pantry temperature. |
How to Freeze Pesto Correctly: The Ice Cube Method and What Changes

Freezing is the most effective way to extend pesto shelf life — and ice cube trays are the practical reason freezing works so well in real kitchen situations. A cube of frozen pesto is approximately 1–2 tablespoons — exactly the portion size most recipes call for. You thaw only what you need; the rest stays frozen and fresh.
Step-by-step freezing method:
• Make the pesto without lemon juice if you plan to freeze it (acid accelerates chlorophyll degradation during freezing and thawing).
• Let pesto cool to room temperature if it was briefly warmed during blending from friction (high-powered blenders generate heat — pause blending or use pulse settings).
• Spoon into ice cube trays — approximately 1–2 tablespoons per cube. Fill to just below the lip of each cube to allow for slight expansion during freezing.
• Drizzle a small amount of olive oil on top of each cube before freezing. The oil layer prevents surface oxidation and colour degradation in the freezer.
• Freeze until solid (approximately 3–4 hours minimum, overnight is better).
• Once frozen solid, pop cubes out and transfer to a labelled zip-lock freezer bag. Squeeze out all air before sealing. Date the bag.
• Use within 3–4 months for best quality, up to 6 months for cooking applications where flavour intensity is less critical.
What changes when pesto is frozen and thawed: The emulsion that gives fresh pesto its creamy consistency partially breaks on freezing — ice crystals disrupt the oil-water interface. Thawed pesto is sometimes slightly more oily and less homogeneous than fresh. The flavour — basil, garlic, parmesan, nuts — is largely preserved. The texture change is not noticeable in pasta dishes where the pesto is tossed with hot pasta, or in cooking applications where it is incorporated into a sauce or soup.
The direct-into-hot-pasta method: Drop a frozen pesto cube directly into drained hot pasta. The residual heat melts the pesto in 30–60 seconds, and tossing with a small splash of pasta water creates a creamy sauce. This is arguably the best way to use frozen pesto — no thawing step, no re-heating, no loss of fresh flavour from warming. Do not microwave pesto to thaw — the high, uneven heat cooks the basil and garlic, producing bitterness.
The pasta water secret for frozen pesto: Reserve ½ cup of pasta cooking water before draining. The starchy, salty pasta water acts as an emulsifier when tossed with melted pesto cubes — it binds the oil and water components that separated during freezing back into a creamy sauce. This trick is standard in Italian cooking for any pesto pasta, but it is especially useful for restoring the texture of frozen-then-thawed pesto.
Store-Bought Pesto in Canada: Date Labels and What They Mean
Commercial pesto sold in Canadian supermarkets — Buitoni, Kirkland Signature (Costco), President's Choice, No Name, and specialty Italian brands — displays either a 'best before' date (shelf-stable jars) or a 'use by' date (refrigerated fresh pesto). These mean different things and should be interpreted differently:
• Shelf-stable jar (pasta aisle): Displays a 'best before' date. Under Canadian Food and Drugs Act regulations, this indicates peak quality, not food safety. An unopened shelf-stable pesto jar kept at pantry temperature is typically safe for 1–3 months past its best before date, though flavour quality will have declined. Once opened and refrigerated, use within 7–14 days regardless of the best before date.
• Refrigerated fresh pesto (refrigerated section): Often displays a 'use by' date, which carries more of a safety implication than 'best before.' Do not use refrigerated fresh pesto significantly past its 'use by' date — the preservative system is calibrated for that window, and the product was not designed for extended post-date storage.
• Costco Kirkland pesto (large jar): The large format Kirkland pesto is shelf-stable and can be stored in the pantry until opened. Once opened, refrigerate immediately and use within 7–10 days. The jar size makes it impractical to use within this window for most households — consider freezing a portion in ice cube trays immediately after opening to avoid waste.
• Organic and specialty pestos: Organic pestos (available at Whole Foods, Farm Boy, Planet Organic, and specialty Italian grocery stores across Canada) often contain fewer or no preservatives, making them closer to homemade in their shelf life profile. If the label says 'no preservatives' or 'all natural,' treat it like homemade — 3–5 days refrigerated after opening, freeze if not using immediately.
How Each Pesto Ingredient Affects Shelf Life
|
Ingredient |
Effect on Shelf Life |
Mechanism |
Implication for Storage |
|
Fresh basil |
❌ Shortens — most limiting factor |
High moisture content (approximately 92% water). Provides substrate for microbial growth. Contains PPO enzyme responsible for surface browning. Tender cell structure breaks down quickly. |
Use the freshest basil possible when making. Blanching (10 sec) before blending deactivates PPO and extends colour stability. |
|
Garlic (fresh, minced) |
❌ Shortens — food safety concern |
Garlic creates anaerobic microenvironments in oil (C. botulinum risk). Also contributes moisture and its own surface bacteria. |
Refrigerate immediately after making. Never leave homemade pesto at room temperature. |
|
Olive oil |
⚠️ Neutral to slightly negative over time |
Provides a slight oxygen barrier on the surface. But undergoes hydrolytic and oxidative rancidity over time — the fat itself becomes the spoilage product in old pesto. |
Use fresh, high-quality olive oil. Store away from heat and light (refrigerator eliminates light exposure). |
|
Parmesan (aged, hard) |
✅ Slightly extends |
Low moisture, high salt content provides mild preservative effect. Aged cheese has low water activity. |
Use freshly grated aged parmesan rather than pre-grated (pre-grated has added starch that absorbs moisture). |
|
Pine nuts (or walnuts) |
⚠️ Neutral — minor shortening |
Nuts contain oils that can go rancid, particularly walnuts (high in omega-3 fatty acids that oxidise faster than olive oil's oleic acid). Walnut pesto goes rancid somewhat faster than pine nut pesto. |
Toast nuts briefly before blending — heat reduces surface moisture and destroys some surface bacteria. Walnut pesto in particular should be frozen if not used within 2–3 days. |
|
Lemon juice (if added) |
❌ Shortens colour life — neutral for bacteria |
Acid accelerates chlorophyll → pheophytin conversion (browning). Does provide mild PPO inhibition and bacterial suppression. |
Do not add lemon juice to pesto you plan to store. Add when serving. |
|
Salt |
✅ Slightly extends |
Reduces water activity modestly. Mildly inhibits some bacterial growth at standard seasoning quantities. |
Standard seasoning amount — no need to oversalt for preservation benefit. |
How to Tell If Pesto Has Gone Bad: The Complete Sensory Check
|
What You Notice |
Safe or Spoiled? |
Action |
|
Surface or throughout colour change from bright green to olive-brown or grey-green |
✅ Chemically normal — chlorophyll degradation. Not a spoilage sign if smell is normal. |
Stir and smell. If smell is normal pesto, use. If off smell accompanies the colour change, investigate further. |
|
Darker layer on top surface only, green underneath |
✅ Normal surface oxidation — top layer exposed to air |
Scrape off darker layer. Use green pesto underneath if smell is normal. |
|
Normal pesto smell throughout — herbal, garlicky, nutty |
✅ Fine |
Use normally within shelf life window. |
|
Chemical, crayon-like, metallic, or paint-like smell |
❌ Rancidity — olive oil or nut fat oxidation |
Discard. Rancid fat is unpleasant and irritating. The pesto is past its usable life even if no mould is present. |
|
Sour, vinegary, or strongly fermented smell (different from normal garlic-herb aroma) |
❌ Bacterial spoilage or early fermentation |
Discard. Especially important if pesto was stored improperly (room temperature) — may indicate C. botulinum-risk conditions were met. |
|
Visible fuzzy mould — any colour (white, grey, green, black) |
❌ Mould — discard entire container |
Do not scoop. High moisture blended pesto has mould hyphae distributed throughout. Discard all. |
|
Slimy texture on surface or throughout |
❌ Bacterial biofilm |
Discard entire container. |
|
Pesto was left at room temperature for more than 2 hours (homemade with fresh garlic) |
❌ Assume unsafe — discard |
Applies regardless of appearance or smell. C. botulinum toxin is colourless, odourless, and tasteless — you cannot detect it sensorially. |
|
Pesto is past best before date but sealed and looks/smells normal (shelf-stable jar) |
✅ Likely fine — assess on opening |
Apply full sensory check when opening. No off smell + no mould + normal texture = fine to use. Discard if any off signs. |

What to Do With Pesto That's Past Its Peak (But Not Spoiled)
Pesto that has browned, become slightly more bitter or muted in flavour, but shows no mould, no chemical smell, and no slimy texture is past its peak for a delicate pasta dish but still useful in applications where the flavour is cooked into other ingredients:
• Pizza base: Spread older pesto as a pizza base instead of tomato sauce. The heat of the oven re-intensifies the herb and garlic flavour and the slight bitterness of aged pesto is completely masked by cheese and toppings. One of the best uses for pesto that is a day or two past its peak.
• Marinade: Toss chicken thighs, fish fillets, or vegetables with pesto and marinate for 30–60 minutes before grilling or roasting. The olive oil, garlic, and herbs penetrate the protein, and any slight off-note in the pesto's freshness disappears entirely in the cooking process.
• Soup base: Stir 2–3 tablespoons of older pesto into minestrone, vegetable soup, or chicken broth at the end of cooking. The heat transforms the flavour and integrates the pesto thoroughly. A classic Genovese technique — called pesto alla Genovese added to minestrone — specifically calls for pesto added off the heat.
• Egg dishes: Stir older pesto into scrambled eggs, drop a spoonful into baked eggs, or spread on toast for a pesto egg toast. The heat of cooking masks any slight deterioration in freshness.
• Compound butter: Mix 2 tablespoons of pesto with 100g of softened butter, roll in cling wrap, and refrigerate or freeze. The resulting pesto butter keeps far longer than the pesto alone (the fat content stabilises it) and is excellent melted over grilled meat or fish, stirred into pasta, or spread on bread.

For Italian Restaurants, Delis, and Food Businesses in Canada: Pesto Handling Notes
Pesto is used in high volume at Italian restaurants, delis, pizza establishments, and fresh pasta shops across Canada. The food safety considerations are different in a commercial kitchen context:
• Batch sizing and FIFO: Make pesto in batches sized for 2-day service use maximum for homemade fresh pesto. Label each batch with the date and time made. Use FIFO (first in, first out) — older batch gets used before a freshly made batch. Any pesto not used within 5 days must be discarded or frozen, per CFIA guidelines for fresh sauces.
• Temperature logging: Commercial kitchens using fresh homemade pesto should maintain temperature logs confirming the pesto was held at 4°C or below at all times. Health Canada's garlic-in-oil advisory applies in commercial settings — pesto sitting in a steam table or warming tray at room temperature is not compliant with food safety standards.
• Commercial pesto for food businesses: Purchasing shelf-stable commercial pesto (pasteurised, preserved, pH-adjusted) eliminates the C. botulinum risk from homemade preparations and extends the operational shelf life to 7–14 days after opening. For high-volume operations, commercial pesto may be a safer and more economical choice than making fresh pesto daily.
• Portion cups for pesto-based dishes: Individual sealed pesto portion cups for takeout pasta dishes (pesto tossed with pasta, then packed in a sealed container) maintain freshness better than large open containers. For delis offering pesto sandwiches or pesto-based spreads, individual sealed portion cups provide the right amount per order with minimal waste and clear sell-by dating.
KimEcopak supplies portion cups, pasta takeout containers, and eco-friendly Italian restaurant and deli packaging wholesale across Canada.
Frequently Asked Questions: How Long Does Pesto Last
Is brown pesto safe to eat?
Usually yes — with a smell check. Pesto turns brown primarily through chlorophyll degradation (the green pigment molecule loses its magnesium ion in an acidic environment, converting to the olive-brown compound pheophytin) and secondarily through PPO enzyme oxidation at the surface. Both of these are chemical processes, not microbial ones. Brown pesto that smells like normal pesto — herbal, garlicky, nutty — is safe to eat. The colour change is a quality indicator, not a food safety indicator. Brown pesto that also smells chemical (rancid oil), sour-fermented, or putrid should be discarded — the colour combined with an off smell indicates spoilage beyond just oxidation.
Why does my pesto turn brown so fast?
Two mechanisms working simultaneously: PPO enzyme (the same enzyme that browns avocados) reacts with oxygen immediately when basil cells are damaged during blending, and chlorophyll (the green pigment) degrades in acidic environments. If you added lemon juice to your pesto, it is actually accelerating the chlorophyll degradation — the acid converts chlorophyll to brown pheophytin. The most effective technique for slowing browning is blanching basil in boiling water for 10 seconds, then immediately into ice water, before blending. This deactivates PPO and improves chlorophyll stability. Additionally: store with an olive oil layer on top, use an airtight container, and refrigerate in the coldest part of the fridge immediately.
How long does opened store-bought pesto last?
Refrigerated store-bought pesto (from the refrigerated section) lasts 5–7 days after opening. Shelf-stable store-bought pesto (from the pasta aisle) lasts 7–14 days after opening when refrigerated. The difference between these two and homemade pesto (3–5 days) is the preservative system: commercial pestos contain citric acid (lowers pH toward the botulism-prevention threshold of 4.6) and often ascorbic acid (provides PPO inhibition) that homemade pesto lacks. If the label says 'no preservatives' on a store-bought pesto, treat it like homemade and use within 3–5 days of opening.
Can I freeze pesto in a jar?
Yes — in a jar with important caveats. Use a glass jar with at least 2–3cm of headspace at the top, because pesto (like all water-containing foods) expands as it freezes and a jar filled to the top will crack. Do not use a jar with a traditional metal canning lid — the expansion can break the seal. The disadvantage of a jar versus ice cube trays is that you must thaw and use the entire jar at once. Ice cube trays allow thawing only the portion you need (typically 1–2 cubes = 1–2 tablespoons per pasta serving). For large batches, use ice cube trays first, transfer the frozen cubes to a labelled freezer bag, and you have individually portioned pesto available for months.
Can pesto cause food poisoning?
Properly refrigerated commercial pesto carries very low food poisoning risk. Homemade pesto with fresh garlic stored at room temperature carries a genuine — though low probability — risk of botulism from C. botulinum toxin production. This risk is not hypothetical: Health Canada and CFIA explicitly warn about garlic-in-oil preparations at room temperature as a documented botulism risk. The toxin is colourless, odourless, and tasteless — you cannot detect it sensorially. The risk is completely eliminated by refrigerating homemade pesto immediately after making it and using within 5 days, or freezing it. Never store homemade pesto at room temperature.
Does lemon juice help preserve pesto?
It depends on what you mean by 'preserve.' Lemon juice contains ascorbic acid (Vitamin C), which acts as a preferential substrate for the PPO enzyme — the enzyme responsible for surface browning — buying some additional time before oxidative browning begins. In this narrow sense, it provides mild PPO inhibition. However, lemon juice is acidic, and the acid accelerates the other browning mechanism in pesto — chlorophyll degradation. Chlorophyll converts to olive-brown pheophytin faster in acidic environments. The net effect is that lemon juice typically makes pesto turn brown faster, not slower, compared to pesto stored without lemon juice. If colour longevity is the priority, add lemon juice at serving time, not during preparation of pesto you plan to store.
How long does pesto pasta last in the fridge?
Cooked pasta tossed with pesto lasts 3–4 days in the fridge in an airtight container. The pasta itself lasts up to 5 days, but the pesto on the pasta continues to oxidise and degrade in flavour more quickly than pasta alone. Pesto pasta that has been sitting in the fridge for 3–4 days may look fine but will taste noticeably less fresh. Revive leftover pesto pasta by tossing with a small amount of fresh olive oil and a tablespoon of water before reheating — this re-emulsifies the sauce and restores some creaminess. Do not microwave pesto pasta directly — the uneven heat can make the pesto bitter. Warm in a pan over low heat with the oil and water addition instead.
Conclusion: The Three Things That Actually Determine How Long Pesto Lasts
1. Refrigerate immediately — especially homemade: This is the most important storage decision you make. Homemade pesto with fresh garlic should go directly into the fridge after making. Never at room temperature for more than 2 hours. The botulism risk from garlic-in-oil at room temperature is real, even if low-probability, and is completely eliminated by consistent refrigeration.
2. Freeze if you are not using it within 2 days: Ice cube trays are the practical solution. A jar of homemade pesto in the fridge that you are not going to finish within 3–5 days will go to waste or become a food safety concern. The same pesto frozen in ice cube trays is available, on demand, in perfect portions, for 3–4 months. Frozen pesto in hot pasta water is often better than re-heated refrigerated pesto.
3. Brown colour is not the signal — smell is: Pesto turns brown through chemical processes (chlorophyll degradation, PPO oxidation) that are entirely normal and safe. Brown pesto that smells like pesto is fine to eat or use in cooking. The smells that indicate genuine spoilage — chemical/rancid (fat oxidation) or putrid/sour-fermented (bacterial spoilage) — are clearly different from normal pesto aroma and are unmistakeable once you know what you are looking for. If it smells like pesto, it is pesto. If it smells like old oil or something rotten, it is not.
