How long does pesto last – and can you freeze pesto?
Unopened jarred pesto keeps until the date on the jar. Once opened, it goes in the fridge: follow the label, at most about 10 days. Eat homemade pesto by the day after you make it or freeze it, where it keeps up to about 3 months. Mold, a bulging lid or an odd smell: throw out the whole jar without tasting.
Pesto: storage guidelines
| Pesto | Guideline | What to watch for |
|---|---|---|
| Jar, unopened | until the date | Store cool and dark, lid must be flat |
| Jar, opened, in the fridge | as on the label, at most about 10 days | Cover with oil, clean spoon, note the opening date |
| Fresh pesto from the chiller | until the use-by date | Once opened follow the pack, never past the date |
| Homemade, in the fridge | by the next day at the latest | Chill right away, do not leave it out |
| Frozen at -18 °C (0 °F) | up to about 3 months | In portions, ideally without cheese |
| Thawed | same or next day | Thaw in the fridge, do not refreeze |
Jarred pesto: opened, in the fridge
Unopened jarred pesto keeps until its best-before date. After opening it belongs in the fridge at 4 °C (39 °F) or below. Many brands print how many days you have after opening: that instruction comes first. If there is none, use about 10 days as the upper limit, as public health agencies recommend for opened foods stored in oil.
Fresh pesto from the refrigerated aisle is not heat-treated like shelf-stable jars. It carries a use-by date: do not eat it after that, even if it looks fine.
The oil layer: what it does and what it does not
- Smooth the surface after each use and cover it with a thin layer of olive oil. This stops it drying out, browning and growing mold on top.
- Always use a clean spoon and screw the lid on tightly.
- The oil layer does not replace refrigeration and does not make homemade pesto last longer. Under oil there is little oxygen, which is exactly what botulism bacteria like.
- Write the opening date on the lid so you do not have to guess.
Homemade pesto: the botulism risk
Fresh herbs and garlic can carry spores of Clostridium botulinum. In oil, without air and without refrigeration, they can grow and produce a dangerous toxin that you often cannot see or smell. Food safety experts therefore advise refrigerating herbs and garlic in oil and using them quickly; Germany’s Federal Institute for Risk Assessment says to eat them no later than the day after making them, and US extension services give a maximum of 4 days. We go with the stricter rule.
For homemade pesto that means: eat it fresh, chill leftovers right away and finish them the next day. Freeze everything else straight away. Canning pesto or keeping it in the pantry is not safe at home. Lemon juice keeps the color green, but it does not make pesto shelf-stable.
How to freeze pesto in an ice cube tray
- Portion it: fill an ice cube tray or small jars with pesto and top with a little oil.
- Leave out the cheese: stir in Parmesan or pecorino after thawing for a better texture.
- After a few hours, move the frozen cubes to a freezer bag, press out the air and write the date on it.
- Keeps up to about 3 months in good quality. Add cubes straight to hot pasta or thaw them in the fridge.
- Eat thawed pesto the same or the next day and do not refreeze it.
When pesto has to go right away
- Mold, even one small spot: throw out the whole jar, do not skim it off.
- Bulging lid, gas bubbles, hissing, or no pop when you first open a sealed jar: throw it out.
- If it smells rancid, sour, fermented or rotten: throw it out. If you suspect spoilage, do not taste it.
- If it was left unrefrigerated for a long time, for example homemade pesto left out overnight: throw it out.
- Blurred vision, trouble swallowing or speaking after eating it? Get medical help immediately. If you suspect poisoning, call your local poison control center.
Frequently asked questions
How long does pesto last in the fridge after opening?
As long as the label says, at most about 10 days in the fridge. Keep it covered with oil and use a clean spoon. If you see mold or it smells off, throw out the whole jar.
Can you freeze pesto?
Yes, very well: in portions in an ice cube tray, ideally without the cheese. It keeps up to about 3 months. Add it frozen to hot pasta or thaw it in the fridge.
How long does homemade pesto last in the fridge?
Only briefly: ideally eat it by the day after you make it. Herbs and garlic in oil carry a botulism risk. Freeze whatever you will not eat soon.
How can you make pesto last longer?
At home, freezing is the only safe way. An oil layer protects against drying out and mold, and lemon juice keeps the color, but neither makes homemade pesto keep for long. Canning it or storing it unrefrigerated is not safe.
Can you scrape mold off pesto?
No. Pesto is soft and oily, so mold threads can spread invisibly through the whole jar. Throw away the entire jar.
All figures are guidelines for food that is stored correctly and kept chilled. No guarantee: when in doubt, throw it out. Take extra care during pregnancy and with young children, older or vulnerable people.