How Long Is Pesto Good Once Opened? Storage Guide
| ~7 min read | Pasta Sauces
Sections
Once opened, store-bought pesto typically remains safe and flavorful for 5 to 7 days when kept refrigerated at 40°F (4°C) or below. Homemade pesto, which lacks the preservatives and acidification found in commercial jars, generally has a shorter window of peak quality, usually lasting 3 to 5 days in the refrigerator. Because pesto contains high-fat ingredients like olive oil, pine nuts, and hard cheeses, it is susceptible to oxidation and bacterial growth if not handled with strict food safety protocols.
Understanding Pesto Shelf Life and Stability
To understand why pesto has a specific expiration window, it is necessary to look at its composition. Traditional pesto consists of fresh basil, garlic, pine nuts, parmesan or pecorino cheese, and olive oil. Each of these components reacts differently to air and temperature. Basil is highly volatile; once the leaves are bruised or blended, the enzymes begin to break down, leading to the characteristic browning (oxidation) that occurs when the sauce is exposed to oxygen.
Commercial pestos often include citric acid or other preservatives to lower the pH level, which inhibits the growth of pathogens and extends the shelf life slightly compared to a home-blended version. However, once the vacuum seal of a jar is broken, the pesto is exposed to airborne bacteria and mold spores. The oil provides a protective barrier, but it is not an absolute seal. If moisture from a dirty spoon or condensation enters the jar, it creates an environment where mold can flourish, even in the cold environment of a refrigerator.
Comparing Pesto Longevity to Other Pantry Staples
It can be helpful to visualize the shelf life of opened pesto by comparing it to other common condiments and sauces. While some items are designed for long-term stability, pesto is a "fresh" sauce, placing it closer to produce than to preserved condiments.
- Compared to Mayonnaise: While a jar of mayonnaise can last several months in the fridge due to its high acidity and emulsifiers, pesto is far more fragile, lasting only a fraction of that time.
- Compared to Fresh Salsa: Pesto's lifespan is similar to fresh pico de gallo or salsa verde (roughly 5-7 days). Both rely on fresh herbs and aromatics that degrade quickly.
- Compared to Hard Cheeses: While the parmesan inside the pesto can last for months, the blended state of the cheese increases its surface area, making it more prone to spoilage when mixed with oil and basil.
- Compared to Butter: Like butter, pesto is high in fat, but unlike butter, it contains water-rich basil and garlic, which are breeding grounds for bacteria if not chilled.
Factors That Accelerate Pesto Spoilage
Several variables can cause your pesto to go bad faster than the standard 5-to-7-day window. Understanding these allows you to take preventative measures to ensure the sauce remains safe for consumption.
- Cross-Contamination: Using a spoon that has touched other foods to scoop pesto introduces foreign bacteria and enzymes into the jar. This is one of the most common reasons for premature mold growth.
- Temperature Fluctuations: Leaving the jar on the counter for an hour while preparing dinner allows the pesto to enter the "danger zone" (between 40°F and 140°F), where bacteria multiply rapidly.
- Air Exposure: The larger the amount of empty space (headspace) in the jar after you have used some of the sauce, the more oxygen is available to oxidize the basil and fats.
- Moisture Infiltration: Water droplets from a damp spoon or condensation from the fridge can settle on the surface, providing the moisture necessary for mold spores to germinate.
How to Safely Store and Extend Pesto Life
If you cannot finish a jar of pesto within a week, there are specific methods to preserve its integrity and safety. The goal is to minimize exposure to oxygen and maintain a constant, cold temperature.
- The Oil Seal Method: After using the pesto, use a clean spoon to level the surface of the sauce. Pour a thin layer of extra-virgin olive oil over the top until the pesto is completely submerged. This creates a physical barrier that prevents oxygen from reaching the basil and cheese.
- Airtight Containers: If the original jar does not seal tightly, transfer the pesto to a glass container with a locking lid. Glass is non-reactive and easier to sanitize than plastic.
- Freezing for Long-Term Use: Pesto freezes remarkably well. To avoid the hassle of thawing a giant block, spoon the pesto into ice cube trays. Once frozen, transfer the cubes to a freezer-safe bag. These can be dropped directly into hot pasta.
- Proper Thawing: When using frozen pesto, thaw it in the refrigerator overnight or use the microwave defrost setting. Never thaw pesto on the kitchen counter at room temperature, as this can lead to uneven warming and bacterial growth.
Signs That Pesto Has Gone Bad
Because pesto is a dense, oily sauce, spoilage isn't always immediately obvious. You must use a combination of visual and olfactory cues to determine if it is still safe to eat.
First, check the color. While a slight shift from bright green to a darker olive green is normal oxidation and doesn't necessarily mean the food is unsafe, a greyish or brownish hue often indicates that the fats are beginning to go rancid or the basil has degraded too far. More critically, look for mold. Mold on pesto often appears as small white, fuzzy spots or blue-green patches on the surface. Because pesto is semi-solid, mold hyphae (roots) can penetrate deeper than they appear on the surface; therefore, if you see mold on the top, the entire jar should be discarded.
Next, evaluate the smell. Fresh pesto should smell of pungent garlic, peppery basil, and salty cheese. If you detect a sour, vinegary, or "off" metallic scent, the oil has likely oxidized or bacteria have begun to ferment the sugars in the basil and garlic. Finally, check the texture. If the sauce has become unusually watery or has developed a slimy consistency, it is a sign of microbial activity and should be thrown away.
Using Pesto in Pasta Dishes Safely
When preparing a meal with pesto, the application process is just as important as the storage. Pesto is a "raw" sauce, meaning it is not typically cooked. To maintain the flavor and safety of the dish, follow these guidelines:
Choose a pasta shape that holds the sauce well, such as fusilli, trofie, or farfalle. For a standard meal, use about 12 ounces (340g) of pasta. Bring a large pot of water to a rolling boil and salt it generously—about 1 to 2 tablespoons of salt—to season the pasta from within. Cook the pasta until it is al dente (firm to the bite), usually 1-2 minutes less than the package directions suggest.
Crucially, before draining the pasta, save about one cup of the starchy pasta water. Drain the pasta and return it to the pot or a mixing bowl. Remove the pot from the heat source entirely. Adding pesto to a boiling pot of pasta can "break" the sauce, causing the oil to separate and the basil to turn brown and bitter. Instead, toss the al dente pasta with the pesto off the heat, adding splashes of the reserved pasta water to emulsify the sauce and create a creamy coating that clings to the noodles.
If you are serving leftovers, store the dressed pasta in the refrigerator within 2 hours (or 1 hour if the room temperature is above 90°F). When reheating, do so gently in a pan with a small amount of water or in the microwave until the dish reaches an internal temperature of 165°F (74°C), as verified by a food thermometer.
Frequently Asked Questions
Can I put a layer of oil on top of store-bought pesto?
Yes, this is a highly effective way to extend the life of the pesto. By covering the surface with a layer of olive oil, you block oxygen from contacting the sauce, which slows down the oxidation of the basil and prevents mold from forming on the surface. Just be sure to use a clean spoon to remove the oil layer before using the pesto again.
Is it safe to eat pesto if it has turned brown?
Browning is usually the result of oxidation, which is a chemical reaction and not necessarily a sign of bacterial growth. If the pesto smells normal and shows no signs of mold, it is generally safe to eat, though the flavor may be more muted and the color less appealing. However, if the browning is accompanied by a sour smell, discard it immediately.
How long does homemade pesto last in the freezer?
Homemade pesto can be kept in the freezer for 6 to 12 months without significant loss of quality. To prevent freezer burn, ensure the pesto is stored in an airtight container or vacuum-sealed bag with as little air as possible. Using the ice cube tray method allows you to use exact portions without thawing the entire batch.
Why does my pesto separate in the fridge?
Separation is a natural occurrence in pesto because it is an emulsion of oil and solids. Over time, the oil will naturally rise to the top. This does not mean the pesto has gone bad. Simply stir the sauce with a clean spoon to reintegrate the ingredients before using it.
Can I freeze pesto that was previously refrigerated?
Yes, as long as the pesto was kept at a safe temperature (40°F or below) and has not exceeded its refrigerated shelf life. If the pesto has been open for 6 days and is nearing its limit, freezing it can stop further degradation. However, you cannot re-freeze pesto once it has been thawed.