Food safety
Is Garlic in Oil Safe? Storing It Without Botulism Risk
Fridge and 4 days, or the freezer. Never on the counter.
Short answer
Homemade garlic in oil is safe only if you keep it in the fridge and use it within 4 days, or freeze it; left at room temperature it can grow the bacteria that cause botulism.
Key takeaways
- Garlic can carry botulism spores from the soil, and oil cuts off the air those bacteria need to avoid.
- The CDC says to refrigerate homemade garlic or herb oils and throw them away after 4 days.
- Freezing is the safe way to keep garlic in oil longer.
- Store-bought garlic in oil is treated with acid; homemade versions are not, unless you follow a tested recipe exactly.
- Botulism toxin has no smell or taste, so you can't check a jar by sniffing it.
Garlic in oil is safe when you treat it as a short-lived fridge food. Make it, refrigerate it right away, and use it within 4 days. If you want to keep it longer, freeze it. What you should never do is leave a jar of homemade garlic in oil on the counter, because that is one of the classic ways people get botulism at home.
This matters for anyone with half a head of garlic left over and a bottle of olive oil nearby. It looks like the obvious way to save it, and it is the risky one.
Why can garlic in oil cause botulism?
Garlic can carry spores of Clostridium botulinum from the soil, and oil cuts off air, which gives those spores the low-oxygen, low-acid setting they need to grow and make toxin.
The spores themselves are common and usually harmless. The trouble starts when they end up somewhere with little oxygen, low acid, moisture and warmth. Garlic is a low-acid vegetable. Oil covers it and seals out air. At room temperature, that jar checks every box.
Oregon State University Extension describes exactly this: low-acid foods stored in oil create an oxygen-free environment. The CDC lists chopped garlic in oil among the home foods linked to botulism.
How long does homemade garlic in oil last?
Keep homemade garlic in oil in the fridge at 40°F or below and throw it away after 4 days.
The CDC's advice is short: refrigerate homemade oils made with garlic or herbs, and throw them away after 4 days. OSU Extension gives the same 4-day limit for refrigerated vegetable and herb oils. Cold slows the bacteria down, but it doesn't make the mixture permanently safe, so the clock still matters.
| How it's stored | Safe? | How long |
|---|---|---|
| Homemade, in the fridge | Yes, short term | Up to 4 days |
| Homemade, in the freezer | Yes | Months, best quality within a few months |
| Homemade, on the counter | No | Don't do it |
| Store-bought, acidified | Yes | Follow the label |
| Garlic confit, in the fridge | Yes, short term | Treat like homemade garlic in oil |
How do you freeze garlic in oil?
Chop or crush the garlic, cover it with a little oil in an ice cube tray, freeze, then store the cubes in a sealed bag.
- Peel and chop or crush the garlic.
- Spoon it into an ice cube tray, about a teaspoon or a tablespoon per cube.
- Add just enough oil to cover each portion.
- Freeze until solid, then pop the cubes into a freezer bag, press out the air and label it with the date.
- Drop a frozen cube straight into a hot pan when you cook.
Frozen garlic cubes are handy, and freezing stops the bacteria from growing. Keep the bag well sealed, since garlic smell spreads in the freezer just like onion smell does.
What's the safest way to keep leftover garlic?
Keep leftover garlic dry: whole unpeeled cloves in a cool, airy spot, and peeled or chopped garlic in a sealed container in the fridge or freezer.
If you broke a head of garlic and only used a few cloves, leave the rest unpeeled in a dry, ventilated place, like a bowl on the counter away from the stove. Peeled cloves go into a closed container in the fridge, with no oil. Chopped garlic is best frozen if you won't use it within a few days.
The same thinking works for the onion that started this site. A dry, sealed container in the fridge beats any clever trick. See how to store half an onion for the onion version.
Is store-bought garlic in oil different?
Yes: commercial garlic-in-oil products are made with added acid or other controls that stop botulism bacteria, which is why they can sit on a store shelf.
OSU Extension notes that commercial garlic-in-oil products are acidified. Home cooks can do this only by following a tested acidification method exactly, and a casual splash of vinegar doesn't count. After you open a commercial jar, follow the storage directions on the label.
Can you tell if garlic in oil is dangerous?
No: botulism toxin usually doesn't change how food looks, smells or tastes, so the only reliable protection is cold storage and a short time limit.
A bulging lid or bubbling oil is a warning sign, but a jar can look perfectly normal and still be dangerous. If you find homemade garlic in oil that has been at room temperature, or you've lost track of how many days it's been, throw it away without tasting it.
Botulism is rare and serious. Symptoms can include blurred vision, drooping eyelids, slurred speech and trouble swallowing. If someone may have eaten contaminated food and has symptoms like these, get medical care right away.
This guide is general food safety information, not medical advice.
Short answers
- Can I keep garlic confit at room temperature?
- No. Garlic confit is garlic cooked slowly in oil, and cooking at confit temperatures does not destroy botulism spores. Keep it in the fridge and follow the same short window as other homemade garlic in oil, or freeze it in portions.
- Is jarred minced garlic from the store safe?
- Commercial garlic products are made with acid or other controls that stop botulism bacteria from growing. Follow the storage directions on the label, which usually say to refrigerate after opening.
- Would garlic in oil smell bad if it had botulism?
- Not necessarily. The toxin that causes botulism doesn't change how food looks, smells or tastes, which is why time and temperature rules matter so much for this food.
- What are the symptoms of botulism?
- Symptoms can include blurred or double vision, drooping eyelids, slurred speech, trouble swallowing and muscle weakness. Botulism is a medical emergency. If you suspect it, get medical care right away.
Sources
- CDC: Preventing Botulism: chopped garlic in oil as a botulism source; refrigerate homemade garlic or herb oils and throw them out after 4 days
- Oregon State University Extension: Herbs and vegetables in oil (SP 50-701): oil creates an oxygen-free environment; refrigerate up to 4 days or freeze; commercial products are acidified
- USDA FSIS: Leftovers and Food Safety: refrigerate within 2 hours; fridge at 40°F or below