Buy a full case and the price per unit drops automaticallyRequest a sample
AccountCart0
All ContainersBottlesJarsCaps & ClosuresPumps & SprayersTubs & PailsJugsDroppersTinsTubesAccessoriesSeals & LinersCansBags & PouchesVialsLabels & DecorationBuckets & PailsDrumsBoxes & MailersBottling Tools
Industries
Learn

Why are garlic and herbs in oil a botulism risk, and how do I keep them safe?

Updated

On this page8

Garlic and fresh herbs can carry spores of Clostridium botulinum, and covering them with oil shuts out air around a moist, low-acid food, which is the setting the bacteria need to make toxin [1] [2]. Keep any homemade garlic or herb oil or herb sauce under oil in the refrigerator at 38°F or below and use it within 4 days, or freeze it [1] [2]; for pesto, the National Center for Home Food Preservation sets a stricter 3 days [5]. Never keep one at room temperature unless it was made by a tested acidification method. Below are the outbreak record, the published keeping figures side by side with the reasons for the ones followed here, cooked garlic, and commercial products.

How oil turns garlic into a botulism risk

C. botulinum spores live in soil and turn up on garlic, herbs and other produce. A spore does nothing until it finds four things at once: no oxygen, low acid (pH above 4.6), enough moisture and a temperature it can grow at. Fresh garlic and herbs supply the low acid and the moisture. Oil supplies the rest: Oregon State Extension puts it simply, "Low acid foods stored in oil create an oxygen-free environment" [1].

Refrigeration slows the bacteria but does not stop all of them. Health Canada notes that the non-proteolytic type "can grow slowly at refrigeration temperatures (i.e., minimum growth temperature is 3°C)" [3], and Nummer and colleagues report that under good conditions it "can form toxin in 10 days or less at 8°C (46.4°F)" [2]. That is why the limit is counted in days, not weeks.

There is also no warning. Nummer and colleagues say sensory cues do not reliably signal a problem [2], and Health Canada's consumer advice says "There usually aren't any obvious signs that your oil is spoiled." [6]

The outbreak record

Garlic and other vegetables in oil have made people sick in homes, restaurants and commercial products. These are the cases Health Canada lists for plant products in oil, with the two counts for the 1985 outbreak from both sources [3] [2].

YearWhereProductCasesSource
1983United StatesTemperature-abused sautéed onions28 (1 death)Health Canada [3]
1985CanadaGarlic in oil36 per Health Canada, which describes commercially prepared garlic in soybean oil used to make garlic bread [3]; 37 per Nummer and colleagues, who describe a garlic-in-oil preparation made in a restaurant [2]Both
1989United StatesGarlic bread made from temperature-abused garlic in oil3Health Canada [3]
1997ItalyHome-prepared pesto of basil, parsley, garlic and oil (pH 5.8, water activity 0.970)1Health Canada [3]
1999United StatesHomemade garlic in oil2Health Canada [3]
2002DenmarkCanned garlic in chili oil1Health Canada [3]
2008United StatesHomemade hot chili pepper in oil1Health Canada [3]

The two counts for 1985 differ in the sources themselves: Health Canada counts 36 and Nummer and colleagues count 37, and they describe the product differently. This page reports both rather than choosing one. Nummer and colleagues also describe home-bottled garlic in oil outbreaks in California (1991) and Florida (1999) [2].

After the 1989 case, the FDA "ordered the removal of commercial garlic-in-oil preparations that had no acidifying agent" from store shelves [2]. That is why the garlic in oil you buy today is acidified, and why a homemade copy of it is a different product.

Four days, three days, a week: the published figures side by side

Several credible sources give a keeping time, and they do not all agree. Here they are with what each applies to.

SourceDateWhat it coversFigure
Oregon State Extension, SP 50-701Rev. January 2025Fresh or dried garlic and herbs in oil, other flavored oils, pestoRefrigerate and "use within 4 days or freeze" [1]
Nummer, Schaffner, Fraser and Andress, Food Protection TrendsJune 2011Home-prepared vegetables and herbs in oilStore "at or below 3.3°C (38°F)," consume "within four days or discarded," or freeze [2]
University of Idaho, Oregon State and Washington State Extension, PNW 664October 2014Oils made with fresh, unacidified garlic or herbs"refrigeration for a maximum of 2 to 4 days or freezing" [4]
Same, PNW 664October 2014Oils made with dried garlic or herbsRefrigerate and use within 4 days, or freeze, because dryness cannot be checked at home [4]
National Center for Home Food PreservationSo Easy to Preserve, 6th ed., 2014Pesto"stored in the refrigerator no more than 3 days," or frozen [5]
Health Canada, consumer tipsModified February 2013Homemade vegetables and herbs in oilUse within one week and keep the refrigerator at 4°C (40°F) or lower [6]
Health Canada, control scenario 7April 2019Commercial products with no other controlsAt or below 4°C for up to 7 days [3]
Extension advice reported by Nummer and colleaguesBefore 2011Pesto and herb mixtures in oilRanged from "up to three days" (University of Georgia) to up to 3 weeks (an earlier Oregon State publication and another extension source) [2]

Which figure this book follows, and why

For garlic and herbs in oil, flavored oils and herb sauces under oil, this book uses refrigerate at 38°F or below and use within 4 days, or freeze, from Oregon State SP 50-701 (rev. January 2025) and Nummer and colleagues (2011). For pesto it uses NCHFP's stricter no more than 3 days [5]. The reasons:

  • It is current and specific to the product. SP 50-701 was revised in January 2025 and is written for exactly these foods. Nummer's review, co-written by Elizabeth Andress of the National Center for Home Food Preservation, reaches the same four days.
  • It sits at the outer edge of PNW 664's range. PNW 664 gives 2 to 4 days for fresh garlic and herbs. Four days is its maximum; if you want more margin, use fewer.
  • It is stricter than the one-week and seven-day figures for a reason. Both of Health Canada's longer figures assume a refrigerator that holds 4°C (40°F) or colder. Nummer and colleagues cite a survey in which 27.4 percent of 939 U.S. home refrigerators ran above 5°C (41°F) [2], and Health Canada itself says domestic refrigerators "cannot be guaranteed to maintain a temperature ≤ 4°C" [3]. The seven-day figure is also a control scenario for commercial products made under a food safety plan [3], never a home keeping time.
  • For pesto, the figure written for pesto wins. NCHFP's three days is the published limit specific to pesto and the stricter of the two, so the book follows it for pesto and keeps four days for the other products in this table.
  • The old three-week advice is history. Nummer and colleagues attribute the up-to-three-weeks figure to Raab and Woodburn at Oregon State [2]; the current Oregon State publication by the same authors says four days [1].

Keeping garlic and herb oils at home

  1. Make small amounts. Plan to use it within four days of making it (three for pesto).
  2. Refrigerate right away in a clean, covered container. Keep your refrigerator at 38°F or below for these foods [2]; a thermometer in the fridge is the only way to know.
  3. Label the jar with two dates: the day you made it and the day four days later. Oregon State asks for both [1].
  4. Throw it out on the last day if any is left, however it looks or smells.
  5. Freeze anything you will not use in time. Freezing is the safest choice Nummer and colleagues give [2]. Oregon State suggests freezing crushed herbs or vegetables in ice cube trays and then moving the cubes to airtight containers [1]. Freezing sauces covers containers and thawing.
  6. Never leave it at room temperature. PNW 664 says "It is unsafe to store these home-prepared garlic or herb-infused oils at room temperature." [4]

The one tested way to make a shelf-stable infused oil

PNW 664 gives a tested method for acidifying garlic, basil, oregano and rosemary in a 3 percent citric acid solution before infusing them in oil; oils made exactly that way may be stored at room temperature [4]. It was tested only for those four ingredients, it requires citric acid (lemon juice and vinegar "cannot be substituted"), and whole garlic cloves do not acidify in its 24-hour soak [4]. Oregon State SP 50-701 sends readers to the same publication and says its directions "must be followed exactly" [1]. Follow PNW 664 itself rather than a summary, and do not stretch it to other herbs, peppers or mushrooms.

Home acidification by any other method is a different matter. Nummer and colleagues report that acidifying at home and then storing at room temperature is "not recommended to consumers," because no published research supports it [2].

Confit garlic, roasted garlic and other cooked versions

Cooking garlic before it goes into oil does not take it out of this page. Ordinary cooking does not make a low-acid vegetable safe to hold, and the record shows it: the 1983 outbreak in the table came from sautéed onions that were temperature-abused after cooking, and the 1989 case from garlic bread made with garlic in oil [3]. Health Canada's control scenarios make the same point for commercial products: a product given a heat treatment short of commercial sterility still has to be kept at or below 4°C [3].

So treat garlic confit, roasted garlic stored in oil, fried shallots in their oil, and herb oils made by warming herbs in oil exactly as you treat raw garlic in oil: refrigerate, use within 4 days, or freeze. PNW 664's heated infusion (140°F for 5 minutes) is a flavor step, and the oils it makes from unacidified garlic or herbs still carry the 2 to 4 day refrigerated limit [4].

Commercial products and the seven control scenarios

Health Canada's 2019 guidance for companies sets out seven ways a commercial product in oil can be made safe. They show what it takes to keep garlic in oil on a shelf.

ScenarioFinished productStorage
1pH below 4.6 plus a heat process or other inhibitorsRoom temperature
2Water activity below 0.94 plus a heat process or other inhibitorsRoom temperature
3Heat process to commercial sterilityRoom temperature
4pH below 5At or below 4°C
5Water activity below 0.97At or below 4°C
6Heat processAt or below 4°C
7No controlsAt or below 4°C for up to 7 days

Source: Health Canada, Appendix 1 [3]. These are commercial scenarios under a food safety plan. None of them is a keeping time or method for a home kitchen.

If you want to sell a pesto or herb sauce, the route runs through refrigerated sales, acidification under a process authority, or freezing. Refrigerated sauces and the federal rules covers the federal side, and selling refrigerated sauce from home the states that allow it.

Pesto and green sauces use these same limits

Pesto, chimichurri, salsa verde and zhug are all fresh herbs and often garlic under oil, so everything above applies to them, with the shorter pesto limit for pesto. How to make and freeze pesto, and why no one can can it at home, is on making and keeping pesto.

References

  1. Oregon State University Extension Service, Carolyn Raab and Margy Woodburn, Herbs and Vegetables in Oil, SP 50-701, revised January 2025. https://extension.oregonstate.edu/catalog/pub/sp-50-701-herbs-vegetables-oil
  2. Nummer BA, Schaffner DW, Fraser AM and Andress EL, Current Food Safety Issues of Home-prepared Vegetables and Herbs Stored in Oil, Food Protection Trends 31(6):336-342, June 2011. https://www.foodprotection.org/files/food-protection-trends/Jun-11-Nummer.pdf
  3. Health Canada, Mitigating the Health Risk Associated with Clostridium botulinum in Plant and Mushroom Products Stored in Oil, modified April 11, 2019. https://www.canada.ca/en/health-canada/services/food-nutrition/legislation-guidelines/guidance-documents/plant-mushroom-oil-profile/plant-mushroom-oil.html
  4. University of Idaho, Oregon State University and Washington State University Extension (Abo, Bevan, Greenway, Healy, McCurdy, Peutz and Wittman), Making Garlic- and Herb-Infused Oils at Home, PNW 664, October 2014. https://objects.lib.uidaho.edu/uiext/uiext33171.pdf
  5. National Center for Home Food Preservation, Freezing Pesto, from So Easy to Preserve, 6th ed., 2014 (read November 19, 2026). https://nchfp.uga.edu/how/freeze/vegetable/freezing-pesto/
  6. Health Canada, Food safety tips for vegetables and herbs in oil, modified February 8, 2013. https://www.canada.ca/en/health-canada/services/food-safety-fruits-vegetables/food-safety-tips-vegetables-herbs-oil.html