Skip to content

Pesto Shelf Life: Four Days in the Fridge, or Freeze It

Pesto shelf life from Oregon State Extension: refrigerate and use within 4 days, or freeze. Why it's short, what selling it takes, and a date sheet.

By Koa Sterling. Product specialist at TaroStack and small business owner. Yes, I am a real human, and I actually sit in front of a computer and write these articles. Reviewed November 28, 2026 · 6 min read

Fresh pesto keeps 4 days in a refrigerator. Oregon State University Extension says so in one line: pesto, made of fresh basil, garlic, pine nuts and oil, "must be refrigerated and used within 4 days, or frozen". It adds that no research has been done on safe canning times for pesto, so there's no home-canned version. The reason is the same as for any fresh garlic or herb in oil. Those are low-acid foods that can carry the spores that cause botulism, and oil shuts out the oxygen the spores would otherwise be held back by. Penn State and Clemson give 2 to 4 days and two to three days for fresh garlic or herbs in oil, so 4 is the long end. The trigger's shop was selling six-day-old pesto as fresh. A jar of pesto from a store shelf is a different product, made by a commercial process. Below are what the pages say, freezing, why a jar on a shelf is different, dating every batch, and a sheet. The Extension pages are written for home kitchens, and a shop sets its dates under its health department's rules.

The short version

  • Fresh pesto: refrigerate and use within 4 days, or freeze (Oregon State Extension).
  • Label the container with the date made and the date four days later.
  • No tested canning time exists for pesto.
  • Freeze in small airtight containers, or in ice cube trays.
  • A shelf-stable jar is a commercial process, not a longer wait.
  • TaroStack puts a date on every batch and uses the oldest first. More below.

What the Extension pages say

Source
Pesto: fresh basil, garlic, pine nuts and oil Refrigerate and use within 4 days, or freeze Oregon State
Home-made flavored oils, pesto included Label with the preparation date and the date four days later Oregon State
Canning pesto "No research has been done on safe canning times for pesto" Oregon State
Fresh garlic or herbs in oil, not acidified Refrigerate and use within 2 to 4 days Penn State
Fresh garlic or herbs in oil, not acidified Refrigerate and use within two to three days. Discard if at room temperature more than two hours Clemson

Pesto is garlic and a fresh herb in oil, so the last two rows are about it as well. Four days is the longest figure of the three.

Why so short

Oregon State's page: low-acid vegetables and herbs can carry Clostridium botulinum, and "low acid foods stored in oil create an oxygen-free environment" that favors its growth. Penn State adds that the spores don't grow in an acid environment or at cool temperatures.

So cold and time are the two controls a kitchen has. Pesto left on the line through a hot service has lost one of them.

Freezing

Oregon State's advice:

  • Freeze for long-term storage, in airtight containers such as small glass or plastic jars, so the aroma doesn't reach other food.
  • Or freeze in ice cube trays, wrap the cubes, and keep them in a freezer container to season soups, stews and sauces.

The page gives no limit for frozen pesto. Set one of your own for quality, and test it: thaw a tub at your limit and taste it against fresh.

For a shop, freezing the day it's made is how one batch covers a week: thaw what a day or two will use.

Why a jar on a shelf is different

Oregon State says commercial garlic-in-oil mixtures are acidified to prevent bacterial growth, and Penn State says to check a commercial product's label for acidification or other microbial inhibitors. A jar that keeps for months was made to a process designed for it.

The home method for acidifying, on the Penn State and Clemson pages, was developed for garlic, basil, oregano and rosemary infused in oil. It isn't a pesto recipe, and I haven't read a tested method for making fresh pesto shelf-stable at home.

If you want to sell pesto in jars, start with a process authority: process authority letter. Fresh, refrigerated pesto sold from a cooler is dated under your health department's rule: date marking food code.

Dates on every batch

Batch Made Kept Days allowed Use by On Friday, November 27
Basil pesto, 2 qt Nov 21 Refrigerator 4 Nov 25 Past its date
Basil pesto, 2 qt Nov 25 Refrigerator 4 Nov 29 Within its date
Basil pesto, frozen in half-pint tubs Sep 10 Freezer 120 Jan 8 Within its date

Made up. The 120 days is this kitchen's own rule for quality, not a figure from the pages.

Count the days from when it's made, not from when a tub is opened or goes into the cooler.

A price is in how to price pesto, the oil on its own in infused oil shelf life, and dried herbs in herbs shelf life.

Get the sheet

Download the pesto date sheet. Two sheets and a read-me: a row for each batch with the date made, where it's kept and the days you allow, which gives a use-by date and a status on the day you check. The second sheet sets out what the Extension pages say. Three made-up batches are filled in. It's an ordinary Excel file with no macros, and it works in Google Sheets, LibreOffice and Numbers.

Where this stops working

The sheet dates a batch in a two-quart tub. The batch then becomes a pan on the line and twelve small tubs in the cooler, and the date goes with the first tub only. The sticker that says "fresh" is written by whoever fills the cooler.

How TaroStack does it

TaroStack doesn't decide how long pesto is safe. Once you've set the days, it carries the date on every batch.

Each delivery comes in as a lot from a named supplier, with the supplier's lot code and its dates. Each recipe lists its ingredients, and each batch records which lots it used, automatically. One report walks any lot to the batches it went into and the customers who got them.

The job Tape and a marker In TaroStack
The date on each batch A strip of tape A production date and a best-before date on every lot
Which batch to use first The bottle at the front First-expired-first-out by default
What's about to pass its date Found on the day A forecast of what will expire, and an alert
Which garlic or basil went into a batch Not recorded The lot on the batch record, automatically
How many days to allow The Extension pages and your regulator Not there

Recipes and batches are on every plan, from $9.99 a month (5 recipes) or $39 a month (50 recipes). The first 14 days are free, with no credit card. If you'd like a hand setting up, ask, and we'll do it with you.

Questions people also ask

How long does homemade pesto last in the fridge?

Oregon State University Extension says pesto must be refrigerated and used within 4 days, or frozen.

Can you freeze pesto?

Yes. Oregon State suggests small airtight containers, or ice cube trays with the cubes wrapped and kept in a freezer container.

Can you can pesto at home?

Oregon State's page says no research has been done on safe canning times for pesto.

Why does store-bought pesto last longer?

It's a different product. Extension pages note that commercial garlic-in-oil products are acidified or use other inhibitors, under a commercial process.

Sources

  1. Oregon State University Extension, SP 50-701, Herbs and vegetables in oil (revised January 2025) · read November 28, 2026
  2. Penn State Extension, How to Safely Make Infused Oils (updated April 4, 2024) · read November 28, 2026
  3. Clemson Cooperative Extension, HGIC 3471, Herb Infused Oils (June 5, 2017) · read November 28, 2026

We use AI to help with the research for these articles. Every one is read, checked against its sources and edited by Koa before it's published. Spot a mistake? Tell us and we'll fix it and say so. How we write these.

Let’s get your stack in order.

Get TaroStack

Sign up now for your free 14 day trial. No credit card required.