Opened pesto should be refrigerated and used within just a few days. A practical planning range is roughly 3–5 days, with the product label taking priority. Barilla, for example, instructs consumers to refrigerate leftover pesto after opening and use it within five days.
Pesto may look like an oily concentrated condiment, but it contains chopped basil, garlic, cheese, nuts, and moisture. That mixture is far more perishable than straight balsamic vinegar, mustard, or a strongly acidified pepper sauce.
An oil layer does not make pesto shelf-stable
Oil over the surface can reduce oxygen exposure and slow browning of basil. That is useful for quality, but it does not sterilize the pesto or stop all microbial hazards.
Traditional pesto includes garlic and herbs suspended in an oxygen-limited oily environment. Homemade garlic-in-oil mixtures require particular care because unsafe storage can create conditions that support serious microbial hazards. Refrigeration and short storage are essential.
Adding more oil therefore does not reset the clock or turn an open jar into a preserve. Oil can protect color and aroma while the microbiological storage time continues.
Commercial labels often give surprisingly short windows
Barilla gives five days after opening for several pesto products. FoodKeeper-derived extension guidance can use around three days for opened pesto. Those differences are a reminder that formulation, heat treatment, and packaging vary.
A shelf-stable jar can remain at room temperature while sealed because it was processed for that purpose. After the seal is broken, it loses that protection. Refrigerated deli pesto may start with an even shorter life and needs cold storage from purchase onward.
Writing the opening date on the lid is useful because a three-to-five-day window passes quickly. It is easy to mistake last week’s pesto for something opened yesterday.
Homemade pesto deserves even more conservative handling
Homemade pesto has no commercial heat process, controlled filling line, or standardized formulation. Prepare it with clean equipment, refrigerate it promptly, and plan to use it quickly.
If you will not finish it within a few days, freezing small portions is a better strategy than stretching refrigerator time. Ice-cube trays or small containers let you thaw only what a pasta, soup, or sauce needs.
Freezing may slightly alter texture, especially because of cheese, but it generally preserves the flavor well. Avoid repeatedly thawing and refreezing one large container.
Pesto is especially easy to misjudge because its surface can look protected by oil. Oil may reduce contact with air, but it does not sterilize basil, cheese, nuts, garlic, or the water naturally present in the mixture. Commercial pesto has the advantage of a defined manufacturing process and a validated package, yet once opened it still follows the maker’s refrigerated-use instructions. Homemade pesto has no single standard formula, so its storage window is inherently harder to generalize. A practical approach is to refrigerate it immediately in a clean, tightly closed container, take out only what you need with a clean spoon, and freeze extra portions if you know they will not be used promptly.
If a recipe makes more pesto than you can use, freezing small portions solves the problem without forcing an optimistic refrigerator estimate. Portioning also means the main container is opened less often, which reduces repeated warming and utensil contact.
Darkening can be oxidation; mold and gas are different
Basil oxidizes easily, so a bright green pesto can turn olive or brown on the surface. That visual change may simply be oxidation and does not prove the food is unsafe.
Mold, unexpected sour or fermented odor, active bubbling, pressure, a swollen package, or distinctly slimy texture are more concerning. If the pesto has been open long enough that you cannot remember the date, tasting it is not a sensible safety test.
The useful rule is: opened pesto = always refrigerate, usually about 3–5 days depending on the brand; surface oil = slows oxidation but does not extend safety; not using it soon = freeze portions. Pesto is a fresh chopped food, not a long-lived pantry condiment.
Sources
- Barilla — Creamy Genovese Pesto — Manufacturer instruction to refrigerate after opening and use leftover pesto within five days.
- Iowa State University Extension — Refrigerated Condiment Safety Tips — FoodKeeper-derived short opened-pesto refrigerator guidance.
- FoodSafety.gov — FoodKeeper App — Official general food-storage reference.