Keep cooking oil tightly closed in a cool, dark cupboard, away from the stove and sunlight. Most opened oils keep their best quality for about 3 to 6 months; the USDA FoodKeeper gives olive and vegetable oil 3 to 5 months after opening. Nut and seed oils like sesame and walnut do better in the fridge. Used frying oil: strain it, store it sealed and dark, and throw it out once itâs cloudy, foamy or smells bad (USDA). And keep homemade garlic oil in the fridge and use it within 2 to 4 days.
Reusing frying oil? A fine strainer makes it easy: fine mesh oil strainers (Amazon; as an Amazon Associate I earn from qualifying purchases)
How Long Does Cooking Oil Last?
| Oil | Unopened | After opening | Where |
|---|---|---|---|
| Olive oil, vegetable oil | 6 to 12 months | 3 to 5 months | Pantry (4 months in the fridge) |
| Canola, sunflower, grapeseed | 1 year | Canola: up to 6 months (Ohio State) | Pantry |
| Nut oils (walnut etc.) | 6 to 12 months | 3 to 8 months in the pantry; 6 to 8 in the fridge | Ohio State: walnut oil in the fridge |
| Sesame oil | 2 years | 6 months in the pantry | Ohio State: fridge after opening |
| Avocado oil | 2 years | 6 months | Pantry |
| Coconut oil | 3 years in the pantry | Pantry; the FoodKeeper says the fridge isnât recommended (it gets hard to use) | |
| Shortening (solid) | 1 to 2 years | 6 to 12 months | Pantry |
| Cooking spray | 2 years | 1 year | Pantry |
Source: USDA FoodKeeper, unless noted. These are best-quality times. Ohio State gives opened olive oil 3 months and most other opened oils up to 6 months.
Does Cooking Oil Go Bad?
Oil doesnât grow mold like bread, but it does go rancid: the fats slowly react with air, and heat and light speed that up (my explanation). Rancid oil tastes stale, bitter or âpaintyâ and spoils whatever you cook with it (my description), so when in doubt, throw it out (my advice).
The sniff test: pour a little in a spoon and smell it. Fresh oil smells mild or of its source (olives, nuts). A sharp, crayon-like, fishy or paint-like smell means rancid (my description).
How to Store Cooking Oil
- Dark and cool: Ohio State University Extension says to keep olive oil in a dark pantry or cupboard, away from sunlight. Not next to the stove or oven (my advice).
- Cap on tight after every use, so less air gets in (my advice).
- Pantry or fridge: Ohio State says canola, corn, peanut and vegetable oil go in the pantry, while sesame and walnut oil go in the refrigerator.
- Olive oil in the fridge? Itâs allowed (FoodKeeper: 4 months after opening), but it turns cloudy and thick in the cold and clears again at room temperature (my description); the pantry is easier (my advice).
- Buy the size youâll use within a few months of opening (my advice). A huge bottle of olive oil that lasts a year will be past its best long before the end.
How to Store Used Frying Oil
The USDAâs deep fat frying fact sheet gives clear steps for reusing oil:
- Let it cool, then strain it through a cheesecloth or sieve to remove food bits.
- Store it in a sealed, light-proof container. The USDA says up to 3 months, and refrigerated for best quality. The FoodKeeper is stricter: 1 month in the fridge, or 6 to 9 months in the freezer. Iâd follow the FoodKeeper (my advice).
- Throw it out if itâs cloudy, starts to foam, or has a foul odor, taste or smell (USDA).
Getting rid of it: the USDA says to pour it into a sealable container such as a coffee can or milk jug and put it in the trash, or take it to a recycling drop-off if your area has one. Not down the sink: the USDA says oil congeals in the drain and causes backups.
Homemade Garlic Oil and Herb Oil: A Safety Warning
Penn State Extension warns that oils flavored with fresh garlic or fresh herbs can cause botulism. Its advice:
- Refrigerate homemade oil with fresh garlic or herbs and use it within 2 to 4 days. Donât keep it at room temperature. (Penn State describes a separate acidified method for that; follow their instructions exactly if you use it.)
- Dried herbs in refrigerated oil keep up to three months.
- Store-bought infused oils are a different product: Penn State says to check the label for âacidifiedâ or other microbial inhibitors.
Cooking Oil Questions
How long does cooking oil last after opening?
The USDA FoodKeeper gives olive and vegetable oil 3 to 5 months after opening in the pantry; Ohio State gives most opened oils up to 6 months and opened olive oil 3 months. These are best-quality times.
Should cooking oil be refrigerated?
Most donât need it. Ohio State says canola, corn, peanut and vegetable oil belong in the pantry, while sesame and walnut oil go in the refrigerator. The FoodKeeper does not recommend the fridge for coconut oil.
How do you store used frying oil?
Strain it through a cheesecloth or sieve and store it in a sealed, light-proof container, refrigerated for best quality (USDA). The FoodKeeper gives reused frying oil 1 month in the fridge or 6 to 9 months in the freezer. Throw it out if itâs cloudy, foams or smells bad.
How long is homemade garlic oil good for?
Penn State Extension says to refrigerate oil with fresh garlic or herbs and use it within 2 to 4 days, because of the risk of botulism.
How can you tell if oil is rancid?
Smell it. A sharp, bitter, crayon-like or paint-like smell means it has gone rancid (my description). Rancid oil spoils the taste of food, so itâs best thrown out.
Sources & Transparency
Storage times: USDA FoodKeeper. Pantry or fridge, olive oil: Ohio State University Extension, âPantry Food Storageâ (HYG-5401). Used frying oil: USDA FSIS, âDeep Fat Frying and Food Safetyâ. Garlic and herb oils: Penn State Extension, âHow to Safely Make Infused Oilsâ (2024). Tips marked as mine are my own advice.
Last updated:


