There is a bottle of vegetable oil in the back of the pantry and you are not sure how old it is. Or a jug of canola oil that has been open for a while and smells a little off. Does cooking oil go bad?
The short answer: Yes, cooking oil does go bad. It does not spoil the way dairy or meat does, but it goes rancid through oxidation, and rancid oil is something you want to avoid both for the taste of your food and for your health. The good news is that rancid oil is easy to detect if you know what to look for.
For a full overview of how pantry staples compare on shelf life, visit our Complete Food Storage Guide.
Key Takeaways
Cooking oil does go bad through a process called oxidation, which causes rancidity.
Vegetable and canola oil: 12 to 18 months unopened; 6 to 12 months after opening.
Extra virgin olive oil: 18 to 24 months unopened; 6 to 12 months after opening.
The smell test is the most reliable indicator. Rancid oil smells like old paint, nail polish remover, or waxy crayons. Fresh oil should smell neutral or pleasantly mild.
Rancid oil is not safe to eat regularly. The oxidation products can contribute to inflammation and cell damage over time.
Heat, light, and air are the enemies. Proper storage dramatically extends shelf life.
How Long Does Cooking Oil Last?
Not all cooking oils are equal when it comes to shelf life. The key factor is the oil’s fatty acid composition. Oils high in polyunsaturated fats (vegetable, canola, sunflower, flaxseed) oxidize faster. Oils high in monounsaturated fats (olive, avocado) are more stable. Oils high in saturated fats (coconut, ghee) are the most resistant to oxidation and last the longest.
Oil Type
Unopened (Pantry)
Opened (Pantry)
Vegetable oil
12 to 18 months
6 to 12 months
Canola oil
12 to 18 months
6 to 12 months
Sunflower oil
12 to 18 months
6 to 12 months
Extra virgin olive oil
18 to 24 months
6 to 12 months
Regular (refined) olive oil
18 to 24 months
12 to 18 months
Coconut oil
Up to 3 years
1 to 2 years
Peanut oil
12 months
6 to 9 months
Flaxseed and delicate nut oils
3 to 6 months
1 to 3 months; refrigerate
Estimates based on proper storage in a cool, dark pantry with lids sealed. Best-by dates indicate peak quality, not safety cutoffs. Always check for rancidity signs regardless of date. Guidelines consistent with USDA FoodKeeper recommendations.
What Rancidity Actually Is
Cooking oil does not spoil the way bacteria makes dairy or meat dangerous. Instead it undergoes oxidation: oxygen, heat, and light break down the oil’s fatty acid molecules, producing compounds called aldehydes, ketones, and free radicals. This process is called rancidification, and the result is an oil that smells and tastes distinctly unpleasant and carries genuine health concerns if used regularly.
The four main enemies of cooking oil are oxygen, heat, light, and time. Every time you open the bottle, more oxygen contacts the oil. Every time it sits near the stove, heat accelerates the brea