Not as a shelf gift. Garlic or fresh herbs sealed in oil can grow the bacteria that cause botulism at room temperature, and you can’t see, smell or taste the toxin. The CDC says to refrigerate homemade garlic or herb oil and throw it away after 4 days. To give it safely, hand it over cold with a use-by date, freeze it, or use a tested acidified recipe.
Pretty, and a fridge item. Photo: ArildV, Wikimedia Commons, CC BY-SA 4.0; resized.
This is for whoever is planning homemade food gifts for December 2026 and has a garlic-and-rosemary oil on the list. It’s a lovely gift, and it’s also the one homemade gift that food safety agencies single out by name. We’re a recipe app, not a food lab, so every rule below comes from the CDC or a university extension service, with links. Where those sources disagree, we say so.
Why is garlic in oil a botulism risk?
Because garlic and herbs are low-acid foods that can carry Clostridium botulinum spores, and covering them in oil cuts off the oxygen. Oregon State University Extension’s Herbs and vegetables in oil (revised January 2025) puts it plainly: low-acid foods stored in oil create “an oxygen-free environment which is perfect for growth of Clostridium botulinum bacteria.”
- It has happened. The Pacific Northwest Extension publication Making Garlic- and Herb-Infused Oils at Home (PNW 664) says a number of botulism cases have come from improperly stored home-prepared garlic- or herb-in-oil mixtures.
- You can’t check it by smell. The CDC’s botulism prevention page says you cannot see, smell or taste the toxin, and that even a small taste of contaminated food can be deadly.
- Store-bought is different. Commercial garlic-in-oil products are acidified (or contain specific microbial inhibitors) so they can sit on a shelf, according to both Oregon State and PNW 664. A home kitchen recipe that just pours oil over garlic has none of that.
Botulism is a medical emergency. If anyone has symptoms after eating a home-infused oil, the CDC says to see a doctor or go to the emergency room immediately and not to wait; its signs and symptoms page lists what to look for.
How long does homemade garlic or herb oil last?
Four days in the fridge, or longer in the freezer, unless the garlic or herbs were acidified first. Here is what the sources say, by type:
| What’s in the oil | Room temperature | Fridge | Freezer |
|---|---|---|---|
| Fresh garlic or fresh herbs (not acidified) | Unsafe | Use within 4 days (CDC, Oregon State) | Yes, for long-term storage |
| Dried garlic or dried herbs | Not per Oregon State or PNW 664 (University of Maine differs; see below) | Use within 4 days | Yes |
| Pesto | Unsafe | Use within 4 days (Oregon State) | Yes |
| Garlic, basil, oregano or rosemary acidified by the PNW 664 method | Safe | Optional; keeps the flavor longer | Optional |
| Store-bought flavored oil | Follow the label | Follow the label | — |
PNW 664 gives the unacidified window as “a maximum of 2 to 4 days” in the fridge, so 4 days is the outside limit, not a target. Oregon State also says to label the container with the date you made it and the date four days later by which it must be used or frozen.
Does using dried garlic make it shelf-stable?
Not reliably, and this is where the sources disagree. Oregon State and PNW 664 both say oil seasoned with dried garlic or dried herbs must be refrigerated and used within 4 days or frozen. PNW 664 explains why: in theory dried garlic and herbs are too dry for bacteria to grow, but without lab equipment you can’t tell whether they are dry enough, and one small moist pocket is enough.
University of Maine Cooperative Extension’s Bulletin #4385, Safe Homemade Flavored and Infused Oils, takes a different line: it calls dried garlic and herbs the safest way to infuse oil without acidifying, heats the oil to 180°F before pouring it over them, says to keep the oil in a cool, dark place and not to store it more than three months, and says its instructions are for home use only. For something you hand to another household, which can’t know how it was made, we go with the stricter Oregon State and PNW 664 advice.
How can you give infused oil safely?
Pick one of these. The first two work with any recipe; the third is the only one that makes a bottle that can sit on a shelf.
- Give it cold, with a date on it. Make it the day before you hand it over, keep it in the fridge, and tie on a tag that says “Keep refrigerated. Use by” plus a date 4 days after you made it (the label wording is ours; the dates are Oregon State’s advice). For a gift exchange on Saturday, December 19, 2026, make it on Friday the 18th and write “Use by December 22.” This rules out mailing it and leaving it under the tree.
- Give it frozen. Oregon State suggests freezing flavored oils in small airtight glass or plastic jars so the smell doesn’t spread to other food. Tell the person to keep it in the freezer. Once a jar is thawed, we’d treat it like freshly made oil: fridge, and use within 4 days. That last part is our caution; the sources don’t give a thawed-oil time.
- Use the tested acidified method (PNW 664). This is the only home method in these sources that makes garlic or herb oil safe at room temperature. In short:
- Make a 3% citric acid solution: 1 level tablespoon of granular citric acid stirred into 2 cups of warm water.
- For garlic: peel and chop the cloves into pieces no bigger than ¼ inch, and soak 2/3 cup of chopped garlic in the 2 cups of solution.
- For herbs: soak 1.7 ounces (47 grams, about 1½ cups loosely packed) of fresh basil, oregano or rosemary, leaves on the stems, in the 2 cups of solution, weighed down so it stays under.
- Cover and leave at room temperature for 24 hours. Drain, then add to the oil, starting at 1 part garlic or herb to 10 parts oil by weight.
Two things that don’t fix it: there are no recommended procedures for canning flavored oils (PNW 664), and the lemon peel, chili and peppercorns in many gift-bottle photos, including ours above, are not covered by the tested method.
What can you give instead that keeps on a shelf?
The easiest swap is a kit rather than a finished bottle: a bottle of good olive oil, a small jar of dried herbs or dried garlic, and a card that says “Mix a little at a time, keep it in the fridge, and use it within 4 days.” Nothing is combined until the person is ready to use it, so the 4-day clock starts in their kitchen.
If you want to bake instead, cookies are the classic shelf gift; our guide to baking holiday cookies ahead has a weekend-by-weekend plan, and how to mail homemade cookies covers packing them for the post.
What if you were given a bottle that’s been on the counter?
Throw it out without tasting it, unless the maker can tell you it was made with a tested acidified method or it’s a commercial product. The CDC’s rule is “If in doubt, throw it out,” and it also says not to eat food if you don’t know whether it was safely preserved.
If it’s been in the fridge since it arrived and is within 4 days of being made, it’s fine to use. If nobody knows when it was made, treat it as unknown.
Where RecipeScan helps, and where it doesn’t
What it can’t do: RecipeScan doesn’t check whether a recipe is safe to store, so it won’t flag a blog recipe that says to keep garlic oil in the pantry. It doesn’t print gift tags, and it doesn’t know when you made a batch.
What it can do: save the recipe you’re working from, whether that’s a link, a screenshot or text you type in, and keep your own note on it (Tips & Notes, “Your Personal Note”), such as “Fridge only. Use within 4 days.” It scales the ingredients with the servings buttons or the ½× to 3× presets, switches between US and metric amounts, which helps with the 47-gram herb weight, and adds the ingredients to your grocery list in one tap.
Frequently asked questions
Is homemade garlic-infused oil safe to give as a gift?
Only if it stays cold. The CDC says to refrigerate homemade oils made with garlic or herbs and throw them away after 4 days, because garlic and herbs in oil can grow the bacteria that cause botulism. Give it chilled with a use-by date, give it frozen, or use the tested acidified method from Pacific Northwest Extension (PNW 664) if it has to sit on a shelf.
How long does homemade garlic oil last?
4 days in the refrigerator, according to the CDC and Oregon State University Extension, or longer in the freezer. It is not safe at room temperature unless the garlic was acidified first with a tested method, such as the 24-hour soak in 3% citric acid in PNW 664.
Is oil made with dried garlic or dried herbs shelf-stable?
Not reliably. Oregon State University Extension and PNW 664 both say oil seasoned with dried garlic or dried herbs must be refrigerated and used within 4 days or frozen, because you can't tell at home whether the garlic or herbs are dry enough. University of Maine Extension publishes a heated-oil method with dried ingredients kept in a cool, dark place for up to three months. For a gift, we follow the stricter advice.
Can you mail homemade garlic oil?
We wouldn't. Unacidified garlic or herb oil has to stay refrigerated or frozen, and USPS Publication 52 says perishable foods that cannot reach their destination without spoiling are nonmailable. Mail an oil-and-dried-herbs kit instead, or oil made with the tested acidified method.
What if someone gave me garlic oil that has been sitting on the counter?
Throw it out without tasting it, unless the maker tells you it was made with a tested acidified method. The CDC says you cannot see, smell or taste the toxin that causes botulism, and that even a small taste of contaminated food can be deadly.
Sources: CDC, Botulism Prevention (refrigerate homemade oils made with garlic or herbs; throw them away after 4 days; you cannot see, smell or taste the toxin; “If in doubt, throw it out”; page dated February 26, 2026) and About Botulism (a medical emergency; see a doctor or go to the emergency room immediately). Oregon State University Extension, Herbs and vegetables in oil, SP 50-701 (revised January 2025). University of Idaho, Oregon State University and Washington State University, Making Garlic- and Herb-Infused Oils at Home, PNW 664 (October 2014). University of Maine Cooperative Extension, Bulletin #4385. USPS, Publication 52 (perishable foods). Checked November 26, 2026.
Save the safe version before you shop
Put the PNW 664 steps, or your own fridge-only recipe, into RecipeScan with “Use within 4 days” in your personal note, scale it for the number of bottles, and send the citric acid, oil and bottles to your grocery list.
Download on the App Store