Keep homemade garlic confit in the refrigerator at 40ยฐF (about 4ยฐC) or colder for no more than four days, or freeze it for longer storage. Even though the garlic has been cooked and is submerged in oil, it isn’t a shelf-stable preserve. Both the tender cloves and the flavored oil need the same precautions.
Garlic is a particularly interesting ingredient to preserve because the liquid around it matters so much. As our guide to why garlic turns blue in vinegar explains, an acidic pickling brine can change the color of a clove. Cooking garlic in oil is a very different process, and the resulting mixture needs to be handled differently.

Why does garlic confit need to be refrigerated?
Garlic confit is usually made by slowly cooking peeled cloves in oil until they become soft enough to spread. The mellow garlic is lovely mashed into a dip, and the leftover oil is flavorful in its own right. But neither should be treated like a bottle of plain olive oil from the pantry.
Garlic is a low-acid food that may carry spores of Clostridium botulinum, the bacterium responsible for botulism. Ordinary confit cooking cannot be relied on to destroy those spores. Under certain conditions, including the low-oxygen environment created by surrounding the cloves with oil, the bacteria can grow and produce a dangerous toxin.
Botulism is rare but can be life-threatening. Refrigeration and a short storage period are essential for ordinary homemade garlic confit. A tight-fitting lid, a clean jar or an extra layer of oil isn’t a substitute for either.
Is garlic confit good for four days or seven days?
You may have seen conflicting advice about this. A USDA Food Safety and Inspection Service consumer answer permits up to seven days of refrigerator storage for garlic in oil. The Centers for Disease Control and Prevention, however, advises consumers to refrigerate homemade garlic and herb oils and discard them after four days. The National Center for Home Food Preservation also recommends a four-day maximum at 40ยฐF or below.
For a home kitchen, follow the shorter four-day recommendation. You can find the specific cold-storage and freezer instructions in the National Center for Home Food Preservation’s garlic-in-oil guidance. Home refrigerators vary in temperature, and there is little practical benefit to stretching the life of a batch when you can freeze it instead.
Count from the day and time you made the confit, not when you first opened the jar or scooped out a clove. For instance, a batch made at noon on Sunday and promptly chilled should be used by noon Thursday at the latest. If you’re saving some for the weekend, freeze that portion on Sunday.
Should you let garlic confit cool before refrigerating it?
Don’t leave the entire pot on the stove until it reaches room temperature. Transfer the freshly cooked confit into clean, shallow, heat-safe containers and chill promptly. Dividing a large batch into smaller portions helps it cool more quickly and is much more convenient when you’re ready to use it.
The general food-safety limit for perishable foods outside refrigeration is two hours, or one hour when the surroundings are hotter than 90ยฐF (32ยฐC). That is a maximum, not a suggested cooling time. Use care when handling hot oil, and refrigerate the portions as soon as practical.
An appliance thermometer is useful here. The temperature dial on a refrigerator doesn’t necessarily tell you how cold the food inside actually is.
Can you freeze garlic confit with the oil?
Yes. Freezing is the better choice if you like making a big batch. The National Center for Home Food Preservation allows garlic in oil to be frozen for several months.
- Divide the fresh confit and its oil into small, clean, freezer-safe containers.
- Leave about half an inch of empty space at the top of a freezer jar or box.
- Label each portion with the preparation date.
- Freeze promptly at 0ยฐF (-18ยฐC) or colder.
- Defrost only what you need in the refrigerator and use it promptly.
Think about how you normally use garlic when picking a portion size. A little container with a few cloves and some of the oil is handy for a pot of soup. A larger portion might suit a family-sized batch of mashed potatoes. You can save yourself some rummaging around in the the freezer by labeling the containers with the portion size, too.
Freezing prevents bacterial growth while the food remains frozen, but it does not make previously unsafe food safe. Don’t freeze confit that has already exceeded its refrigerator limit or spent too long sitting out.
When should you throw garlic confit away?
| Storage situation | What to do |
|---|---|
| Made yesterday, chilled promptly and kept at 40ยฐF or below | Use within the four-day limit or freeze promptly. |
| Fresh batch intended for next week’s meals | Freeze it rather than keeping it in the fridge all week. |
| Refrigerated for more than four days | Discard both the cloves and oil. |
| Left on the counter overnight | Discard without tasting. |
| Preparation date or safe storage history is unknown | Discard rather than guessing. |
| Stored continuously frozen since preparation | Thaw in the fridge and use promptly. |
Don’t rely on a sniff test. The CDC warns that the toxin responsible for botulism cannot be detected by appearance, odor or taste. An old batch of confit might smell wonderfully garlicky and still be unsafe. Reheating is not a recommended way to salvage confit that was stored improperly.
Does straining the oil or adding lemon juice make it shelf-stable?
No. Simply removing the cloves does not establish that the remaining oil is safe at room temperature. Nor does squeezing a lemon into the jar. Some tested methods for making garlic-infused oil involve carefully controlled acidification of the garlic before it goes into the oil. That is not the same as adding a splash of vinegar or lemon juice to finished confit.
Commercial garlic oils and jarred garlic products may undergo specialized processing or use acidifying ingredients. Follow their individual storage and after-opening instructions rather than applying a homemade recipe’s storage rules to a commercial product, or vice versa.
For ordinary homemade confit, there is no need to attempt shelf-stable preservation. Keep just enough in the refrigerator for the next few meals and freeze the rest while it’s fresh.
Links on this page may be affiliate links, for which the site earns a small commission, but the price for you is the same


Leave a Comment