How to Preserve Herbs in Oil
As an Amazon Associate we earn from qualifying purchases.
Knowing how to preserve herbs in oil starts with one rule: a jar of herbs covered with oil is a low-acid, oxygen-free setting, and that setting needs cold storage or freezing. The sources used here agree on that point. This guide turns their advice into a storage plan you can follow with the herbs you already grow.
The three sources are an Oregon State University Extension publication on herbs and vegetables in oil, a University of Idaho publication on garlic- and herb-infused oils, and a Food Protection Trends article from the International Association for Food Protection. Each one adds a different detail, and the sections below quote them where the detail matters.
Quick answer
- Refrigerate fresh herbs in oil and use the mixture within four days, or freeze it for long-term storage.
- Dried herbs and dried garlic in oil follow the same four-day rule, or they can be frozen.
- Room-temperature storage is described only for oils flavored with acidified herbs, and the acid steps must be followed exactly.
- Label each jar with the date it was made and the date it must be used or frozen.
Why herbs in oil carry a botulism risk
The main concern is the environment inside the jar, not the herb itself. The Oregon State publication says: “Low acid foods stored in oil create an oxygen-free environment which is perfect for growth of Clostridium botulinum bacteria.” Herbs are low-acid foods, and the oil keeps air away from them, so a sealed jar left on a counter gives the botulism bacteria the conditions they need.
The Idaho publication explains where the bacteria come from. It says: “Garlic and herbs can be a source of Clostridium botulinum, widespread bacteria that produce the botulism toxin under certain conditions.” The Food Protection Trends article reviews outbreak records and reports that “Studies of documented outbreaks of botulism have identified vegetables and herbs in oil as the food source, with most outbreaks traced to home-prepared versions.” That is why the advice below focuses on batches made at home.
Appearance is not a reliable warning sign. The same article says: “Visual or other organoleptic clues do not provide adequate information to prevent botulism.” A jar that looks and smells normal can still be unsafe, so the storage rules matter more than how the oil looks.
Choose the herbs and the oil
The sources do not limit fresh herb oils to a short list. The room-temperature method is different, because it covers only a few herbs, as the acidified section explains. The Oregon State publication says: “Any kind vegetable oil can be infused.” Olive oil often carries its own flavor, peanut and avocado oils have distinct flavors, and canola is blander, so the herb flavor comes through more clearly.
Oil choice also affects how long the flavor holds. The same publication gives this reason: “Both olive and canola are nice because they contain fewer polyunsaturated fatty acids than other vegetable oils so they oxidize and turn rancid less quickly.” Rancidity is a quality problem rather than the botulism question, so it does not change the four-day rule.
The sources treat the herb as a plain ingredient, so the storage method matters more than the herb list.
Fresh herbs in oil: the refrigerator path
The simplest method in the Oregon State publication starts with a clean container. It says: “Place whole or crushed vegetables and/or herbs in a clean container.” Add the oil, refrigerate the jar, and use the mixture on a short schedule. The publication gives the limit in one line: “Use within 4 days or freeze for long-term storage.”
The same four-day rule applies to flavored oils made at home more broadly. The publication says: “It is essential for all other flavored oils made at home, including pesto, to be stored in the refrigerator for up to 4 days or frozen for long term storage.” Pesto is the publication’s example, and the rule applies to all other flavored oils made at home.
The window is short, so make only as much as you expect to use before the date on the label, and freeze the rest as the publication directs.
Freezing: the option the sources favor
The Food Protection Trends article gives the clearest ranking: “The safest recommendation is to freeze vegetables or herbs stored in oil.” It also gives a fallback for jars that are not frozen: “If the product is not frozen, it should be refrigerated and then either consumed within four days or discarded.”
The Oregon State publication shows a practical way to freeze small amounts. It says: “Crushed vegetables and herbs in oil can be frozen in ice cube trays and then packaged in airtight containers to be used as seasonings.” Each cube then works as one measured portion for seasoning.
Packaging matters in the freezer too. The publication explains: “Package flavored oils to be frozen in airtight containers such as small glass or plastic jars to prevent vibrant aroma of the herbs and vegetables from penetrating other foods in freezer.” Once the cubes are firm, move them into a sealed container and write the date on it.
Room-temperature storage needs acidified herbs
Room-temperature storage is where the sources are strict. The Oregon State publication explains: “Commercial garlic-in-oil mixtures are acidified to prevent bacterial growth.” It then describes the home research: “Research has been done on acidification procedures for a few common herbs and vegetables for home preservers, which can be used to infuse oils for storage at room temperature.” The same page adds: “The acidification directions must be followed exactly.”
The University of Idaho publication describes the home method for three herbs. It says: “Raw, chopped garlic or fresh herbs (basil, oregano, or rosemary) are immersed in a 3 percent solution of citric acid.” The publication gives the soak time, the ratios and the weighing steps, and it says lemon juice and vinegar cannot stand in for the citric acid. This guide does not restate those steps, so follow the publication exactly if you use it.
The same publication explains why the acid step matters: “If you want to infuse or store the oil at room temperature, you must acidify the garlic or herbs to avoid potentially deadly toxin production by Clostridium botulinum, the bacterium that causes botulism.” It also says: “Our procedure for acidifying garlic and herbs will allow you to safely store your infused oils at room temperature.” Even with that method, the publication recommends cold storage for quality: “Refrigeration of these infused oils is recommended for quality, but not required for safety.”
For oils that were not acidified, the Idaho publication draws a firm line. It says: “Procedures for preparing garlic- and herb-flavored oils at home without acidifying the flavoring materials are available, but the food safety control for these products is refrigeration for a maximum of 2 to 4 days or freezing.” It then adds: “It is unsafe to store these home-prepared garlic or herb-infused oils at room temperature.” A basil or rosemary jar that was not acidified falls under that line.
Dried herbs and dried garlic in oil
Dried herbs seem safer on paper, and the Idaho publication states the reasoning: “In theory, dried garlic and herbs cannot support the growth of bacteria because they contain too-little moisture.” The publication does not let that theory set the storage rule. The Oregon State publication is direct: “If oil is seasoned with dried garlic and/or dried herbs, the mixture MUST be refrigerated and used within 4 days or frozen for long-term storage.”
The Idaho publication repeats the rule in its question-and-answer section: “If you season oil with dried garlic, dried herbs, or both, you must refrigerate the mixture and use it within 4 days or freeze it for long-term storage.” A jar of oil seasoned with dried oregano or dried garlic therefore follows the same four-day rule as a jar of fresh herbs.
The Oregon State publication treats dried tomatoes in oil the same way when they are seasoned with garlic or herbs. Those mixtures must be refrigerated and used within four days or frozen. Make only as much as you can use within that window, and freeze the rest.
Labels, timing and a simple routine
Labels do most of the work in this method. The Oregon State publication asks home cooks to write two dates on every container: “Label containers with the date that the oil mixture was prepared as well as the date (four days later) by which the mixture must be used or else frozen for longer storage.”
A simple routine follows from the sources. Make a small batch, label the container, refrigerate it, and set a reminder for the day it must be used or frozen. Anything you cannot use in time should be frozen or discarded, as the Food Protection Trends article says.
Oil quality also depends on storage. The Idaho publication says: “All vegetable oils retain quality better at cold temperatures and when protected from light.” That line is about quality rather than safety, but it supports keeping the jar cold and out of the light for the whole time it is in use.
If you still need a place to grow the herbs, see our notes on DIY herb planters and balcony planters.
How we chose
We kept a storage rule only when one of the three pages states it in plain words. The pages opened on 2026-10-22 were the Oregon State University Extension publication SP 50-701, which is marked revised January 2025, the University of Idaho publication PNW 664 on garlic- and herb-infused oils, and the Food Protection Trends article from 2011. The first two are extension guidance, and the third reviews outbreak records.
Where a source gives a number, this guide repeats it and names the source. Where a source only gives a principle, such as refrigerating or freezing, the guide says so and does not add a figure. We did not include flavor recipes or retail oils that lacked a storage rule, because the storage rule is the part that carries the safety risk.
What we could not verify
The sources cover a limited set of herbs for room-temperature storage. The Idaho publication names basil, oregano and rosemary for its acid method, and the Oregon State publication describes acidification research for a few common herbs without listing every one. Parsley, thyme, mint and chives do not appear in the acid method those pages describe, so the only storage options the sources give for them are refrigeration for four days or freezing.
What the sources do not say
The sources do not give a shelf life for frozen herb oil beyond calling it long-term storage. They do not give a freezer temperature for the oil, a volume for an ice cube, or a time for an acidified jar kept in the refrigerator. The Food Protection Trends article calls for more research on boiling water canning and acidification, which means home canning of herb oils is not established by these sources. None of the three pages gives a way to tell by sight or smell that a jar is safe.
Frequently asked questions
Can herbs be stored in oil on the counter?
Not unless the herbs were acidified by a documented method. The Idaho publication says: “It is unsafe to store these home-prepared garlic or herb-infused oils at room temperature.” Without an acid method, refrigerate the mixture and use it within four days, or freeze it.
How long can herb oil stay in the refrigerator?
The Oregon State publication gives four days for homemade herb and vegetable oil that has not been acidified. Label the jar with the date it was made and the date it must be used or frozen. The Food Protection Trends article gives the same four-day figure as the fallback for a product that is not frozen.
Is freezing herb oil the safest choice?
The Food Protection Trends article calls freezing the safest recommendation for vegetables or herbs stored in oil. The Oregon State publication recommends freezing for long-term storage and suggests ice cube trays for small portions. Use airtight containers so the aroma does not spread to other foods in the freezer.
Can dried herbs be used to make herb oil?
Yes, but the storage rule stays the same. The Oregon State publication says dried herbs in oil must be refrigerated and used within four days or frozen for long-term storage. The Idaho publication describes the dryness argument as a theory, so the sources still require cold storage for dried herbs in oil.
Should buyers check the label on store-bought herb oil?
Yes. The Idaho publication gives this advice for buyers: “When purchasing from boutique or small scale producers, check the label or ask the producer to ensure this required safety treatment has been applied.” The same publication also says that the acid step is required for room-temperature storage, so the label is where a buyer can confirm it.
Bottom line
Store homemade herbs in oil in the refrigerator for no more than four days, or freeze them for long-term storage. Save room-temperature storage for a documented acidified method, and follow that method exactly.
Sources
- https://extension.oregonstate.edu/food/preservation/herbs-vegetables-oil-sp-50-701 (opened 2026-10-22)
- https://objects.lib.uidaho.edu/uiext/uiext33171.pdf (opened 2026-10-22)
- https://www.foodprotection.org/publications/food-protection-trends/archive/2011-06current-food-safety-issues-of-home-prepared-vegetables-and-herbs-stored-in-oil/ (opened 2026-10-22)



