FridgeSenseGet the app

How long does pesto last – and can you freeze pesto?

Updated: · 3 min read
In short

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

PestoGuidelineWhat to watch for
Jar, unopeneduntil the dateStore cool and dark, lid must be flat
Jar, opened, in the fridgeas on the label, at most about 10 daysCover with oil, clean spoon, note the opening date
Fresh pesto from the chilleruntil the use-by dateOnce opened follow the pack, never past the date
Homemade, in the fridgeby the next day at the latestChill right away, do not leave it out
Frozen at -18 °C (0 °F)up to about 3 monthsIn portions, ideally without cheese
Thawedsame or next dayThaw 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

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

When pesto has to go right away

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.

More articles

Expired eggs: how long do eggs last?Eggs have a best-before date. Kept cold, they are often usable for up to about 6 days after it, but only fully cooked. Hard-boiled: about 1 week.Freezing meat: how long do ground beef, chicken and steak last?Frozen ground meat keeps about 3 months, chicken 4–5, beef 6–10. Never eat it after the use-by date. How to freeze meat well and thaw it safely.How to store potatoes – and how long do cooked potatoes last?Store raw potatoes dark, dry and cool at about 7–10 °C (45–50 °F), away from apples. Cooked potatoes keep about 2–3 days in the fridge.How to freeze vegetables: green beans, zucchini, pumpkin and mushroomsBlanch briefly, chill in ice water, freeze flat: vegetables keep about 6–12 months at -18 °C (0 °F). Times for green beans, zucchini, pumpkin and more.