How Long Does Pesto (Opened) Last?
Opened store-bought or homemade basil pesto.
The Short Answer
Pesto (Opened) lasts 5–7 days in the refrigerator when stored properly at 40°F or below. For longer storage, pesto (opened) can be frozen for 3–6 months while maintaining good quality. These times are based on USDA food safety guidelines and assume proper storage conditions.
Storage Times at a Glance
Source: USDA FoodKeeper | Last verified: March 19, 2026 | Our methodology
The olive oil layer trick works for pesto like plastic wrap works for guacamole. It creates a barrier between the pesto and the air. Without it, the top turns brown within a day.
How to Store Pesto (Opened)
Cover the surface with a thin layer of olive oil before resealing. This prevents oxidation (browning). Store in a glass jar if possible.
How to Tell if Pesto (Opened) Has Gone Bad
Look for these signs that pesto (opened) has spoiled: dark brown or black color throughout (surface browning is normal), sour smell, mold, off taste.
The Professor's rule: When in doubt, throw it out. No meal is worth food poisoning.
The Bottom Line
Properly stored pesto (opened) stays safe for 5–7 days in the fridge. Always store in airtight containers, refrigerate within 2 hours of purchase or preparation, and trust your senses. If something looks, smells, or feels off, discard it regardless of how many days it has been. Freezing is always an option if you will not use it within the refrigerator window.
Frequently Asked Questions
Pesto freezes beautifully. Freeze in ice cube trays, then pop cubes into a freezer bag. Each cube is about 2 tablespoons, perfect for a single serving of pasta.