Does Pesto Go Bad? Fridge and Freezer Shelf Life
6 min read · by Grace Lin · Last updated: November 27, 2026
Does pesto go bad? Yes, pesto goes bad, and it spoils faster than many people expect. Homemade pesto lasts about 5 to 7 days in the fridge after opening, and 3 to 4 months in the freezer. Store-bought refrigerated pesto keeps a little longer, and the main signs of spoilage are a color change, a rancid smell and mold.
The exact answer to does pesto go bad depends on whether the pesto is homemade or store-bought, whether the jar has been opened, and how it is stored after each use.
How Long Does Pesto Last in the Fridge?
When people ask does pesto go bad in the fridge, the short answer is that opened homemade pesto lasts 5 to 7 days, and opened store-bought refrigerated pesto lasts 7 to 14 days, according to La Académie de Cuisine.

The La Académie de Cuisine article on pesto gives the full set of figures below. Unopened refrigerated pesto lasts 1 to 3 weeks in the fridge, and unopened canned pesto lasts 4 to 6 weeks. Powdered pesto mix keeps 6 to 8 weeks in the pantry when unopened.
| Pesto | Fridge | Freezer |
|---|---|---|
| Homemade, opened | 5 to 7 days | 3 to 4 months |
| Store-bought refrigerated, opened | 7 to 14 days | 3 to 4 months |
| Store-bought refrigerated, unopened | 1 to 3 weeks | 6 to 8 months |
| Canned, unopened | 4 to 6 weeks | Not stated in the source |
The article is not fully consistent. It also says commercial pesto can stay fresh for up to eight months after opening, and it limits leftovers to the next two or three days in the fridge. Use the table as a guide and check the label on your own jar.
Can You Freeze Pesto?
Yes. Freezing is one way to answer does pesto go bad over the long term. Freezing extends pesto to about three to four months after opening, and the article suggests two portioning methods that make it easy to use only what you need. If you want to go deeper, Does Dry Pasta Go Bad covers a connected topic.
Spoon the pesto into ice cube trays and top each cube with a thin layer of oil, or spread a layer about a quarter inch thick between sheets of parchment. Both methods keep the surface sealed, which is the best way to slow the moment when does pesto go bad, and the parchment method lets you break off a piece without thawing the whole batch. The La Académie guide covers both approaches in more detail.
Storage Habits That Make Pesto Last Longer
The main goal is to keep air off the surface, so use a glass jar, fill it nearly full and cover the top with olive oil.
- Refrigerate fresh pesto right away. The article says it should not sit at room temperature for more than two hours.
- Use a glass jar or airtight container, and pour olive oil over the top to block air and bacteria.
- Fill the jar about three-quarters full, and choose a tall, narrow jar so less of the surface is exposed to oxygen.
- Keep the oil layer intact each time you take a spoonful, and press the surface flat before you put the lid on.

Ingredients also set the limit for whether does pesto go bad in the jar. The article says olive oil lasts about 18 to 24 months, while pine nuts go off after about a month in the fridge. A pesto made with nuts that have been open for a while may therefore have a shorter life than the table suggests.
Signs That Pesto Has Spoiled
Color change, a rancid smell and mold are the signs to watch for, and mold means throwing out the whole batch. These signs tell you when does pesto go bad in a way the calendar cannot. Does Frozen Pizza Go Bad goes into more detail on a related point.
- The color shifts from bright green to light brown.
- The smell turns rancid or unusual, like old oil.
- The taste is less fresh. The article says slightly old pesto will not make you sick, but spoiled pesto should be discarded.
- White mold appears. Scraping it off is not safe, so the whole batch should go.
When in doubt, throw it out. A jar that looks fine but smells off is not worth the risk.
How Long Does Pesto Keep Once You Open It?
Opening a jar starts the clock, so the question of whether does pesto go bad after opening matters most for homemade batches. Once the seal is broken, air and moisture start to work on the surface, and the oil layer is the main defense.
Store-bought pesto may last longer after opening, as the table shows, but the label and the storage habits matter more than the brand name. Ask yourself whether does pesto go bad at the same rate in every jar, and the honest answer is no, because the ingredients and the handling differ.
Write the opening date on the jar so you know when the clock started. A simple habit like this makes the question does pesto go bad easy to answer before you reach for the spoon.
Botulism Risk in Homemade Pesto
The article warns that pesto’s low-acid herbs and oil can support Clostridium botulinum, the bacterium that causes botulism, so spoiled pesto should never be eaten.
According to the same article, symptoms can appear 18 to 36 hours after eating spoiled food. The article does not say how common the risk is in home kitchens, so treat the warning as a reason to follow the storage times above rather than a reason to panic.
Keep homemade pesto cold, use it within the fridge window, and freeze any batch you will not finish. If you have symptoms after eating pesto, contact a health professional promptly. Before you buy or start cooking, Does 00 Flour Go Bad may help too.
Frequently Asked Questions
Does pesto go bad at room temperature?
It should not sit out. The La Académie article says fresh pesto should not stay at room temperature for more than two hours, and after that the fridge is the safer place. Opened homemade pesto lasts 5 to 7 days there, and opened store-bought refrigerated pesto lasts 7 to 14 days.
Can you freeze pesto in ice cube trays?
Yes. The article suggests portioning pesto into ice cube trays topped with oil, and says opened pesto can be frozen for three to four months.
Does olive oil on top keep pesto from going bad?
It helps. The article says pouring olive oil over the top blocks air and bacteria. The oil layer slows spoilage, but it does not make pesto safe to keep indefinitely.
Is pesto that has turned brown still safe?
Browning is one of the spoilage signs the article lists, and it is a reason to discard the batch. Slightly old pesto that still looks green may only taste less fresh, but any mold means the whole batch should go.
So, does pesto go bad? Yes, but pesto keeps for days in the fridge and months in the freezer, and the storage habits matter as much as the date. Refrigerate it promptly, keep it under oil, and throw it out if it turns brown, smells rancid or grows mold.
6 min readLearnDoes Dry Pasta Go Bad? Shelf Life and Signs to CheckUpdated Nov 27, 2026
6 min readLearnDoes Sourdough Last Longer? Shelf Life ExplainedUpdated Nov 27, 2026
6 min readLearnDoes Frozen Pizza Go Bad? Signs, Storage Times and SafetyUpdated Nov 27, 2026
6 min readLearnHow Long Does Fresh Pasta Last in the Fridge and Freezer?Updated Nov 27, 2026
8 min readLearnCan Sourdough Pizza Dough Go Bad? Signs and StorageUpdated Nov 27, 2026
8 min readLearnHow to Store Leftover Pizza Safely in the Fridge and FreezerUpdated Nov 12, 2026