There’s a bottle of vegetable oil in the back of the pantry and you’re not sure how old it is. Or a jar of canola oil that has been open for a while and is slightly smelling. Does cooking oil go bad?
Short answer: Yes, cooking oil goes bad. It doesn’t spoil like dairy or meat, but it does go rancid through oxidation, and rancid oil is something you want to avoid for both the taste of your food and your health. The good news is that rancid oil is easy to spot 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 goes bad Through a process called oxidation, which causes rancidity.
- Vegetable and Canola Oil: Not open for 12 to 18 months; 6 to 12 months after opening.
- extra virgin olive oil: Not exposed until 18 to 24 months; 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. The smell of fresh oil should be neutral or pleasantly light.
- It is not safe to consume rancid oil regularly. Oxidation products can contribute to inflammation and cell damage over time.
- Heat, light and air are 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 main factor is the fatty acid composition of the oil. Oils rich in polyunsaturated fats (vegetable, canola, sunflower, flaxseed) oxidize rapidly. Oils rich in monounsaturated fats (olive, avocado) are more stable. Oils rich in saturated fats (coconut, ghee) are the most resistant to oxidation and last the longest.
| type of oil | not open (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 |
| Linseed and delicate walnut oil | 3 to 6 months | 1 to 3 months; freeze |
Estimate is based on proper storage in a cool, dark pantry with a sealed lid. Best by dates indicate highest quality, not safety cutoff. Always check for signs of rancidity regardless of the date. in line with the guidelines usda foodkeeper Recommendations.
what exactly is rancidity
Cooking oil doesn’t spoil the way bacteria can make dairy or meat dangerous. Instead it undergoes oxidation: Oxygen, heat and light break down the fatty acid molecules of the oil, forming compounds called aldehydes, ketones and free radicals. This process is called rancidification, and it results in an oil that has a distinctly unpleasant odor and taste and poses real 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 comes in contact with the oil. Every time it sits near the stove, the heat speeds up the breakdown. Every time light hits the bottle, photochemical oxidation occurs. Store the oil correctly and the process slows down considerably. Store it poorly and a bottle that should last 12 months may go bad in 3 months.
Signs that cooking oil has gone bad
How to tell if your oil is bad
Smell test (most reliable indicator): The odor of fresh cooking oil is neutral, lightly fatty, or pleasant characteristic of its source (olive, coconut, etc.). Rancid oil has a distinctive unpleasant odor that is often described as that of old paint, nail polish remover, wax crayon or rancid grease. If your oil smells of any kind, it is rancid. Trust your nose.
taste test: If the smell is borderline, a small taste will confirm it. The taste of rancid oil is pungent, sour, bitter or rancid rather than neutral or pleasantly mild. Do not cook food in oil which has bad taste. It will ruin your food.
Clouding or changing color at room temperature: Some oils like olive oil and coconut oil may become cloudy or solid in the refrigerator, which is completely normal and reverses at room temperature. Cloudiness of oils at normal room temperature, which should be clear, or significantly darkening of the color may indicate oxidation.
Foaming or excessive smoking when heated: Oil that foams excessively when heated, or that smokes at temperatures well below its normal smoking point, has gone rancid and should be discarded.
Visible mold or particles: Discard any visible growth or abnormal particles in the cooking oil immediately.
Is rancid oil dangerous?
More than a taste problem
Rancid oil is not toxic in the way that spoiled meat or dairy is toxic. A small accidental exposure is unlikely to make you seriously ill. But the oxidation products in rancid oil are a real health concern with regular use. Research published in peer-reviewed journals has found that the oxidation products of polyunsaturated fats (aldehydes, ketones, and free radicals produced during rancidification) have cytotoxic and mutagenic effects, meaning they can damage cells and alter DNA.
Regular consumption of rancid oil has been linked to increased risk of oxidative stress, inflammation, and cancer in animal studies. Rancid oil also destroys fat-soluble vitamins like vitamin E that are originally present in the oil.
fda Rancid oil does not immediately classify itself as toxic, but health experts consistently recommend discarding rather than using in cooking oil that smells or tastes rancid. The impact on food quality alone is reason enough: rancid oil makes food taste bad, and health considerations make it doubly worth replacing.
How to Store Cooking Oil to Prevent Rancidity
Best Storage Practices
Keep it away from heat. The biggest mistake is storing cooking oil next to the stove. Heat dramatically accelerates oxidation. Store the oil in a cool pantry or cabinet away from any heat sources.
Keep it away from light. Light triggers photochemical oxidation. Keep the oils in a dark-colored pantry or in opaque or dark-colored bottles. If your oil comes in a clear plastic bottle, consider pouring it into a dark glass container.
Seal tightly after each use. Oxygen exposure begins every time you open the bottle. Replace cap immediately and seal tightly. Do not use the bottle with its spout left open.
Buy in small quantities if you use the oil slowly. A big jug of vegetable oil is economical but if you don’t cook often it goes bad faster than you can use it. Smaller bottles that can be used within a few months are a better approach for light users.
See also

Keep delicate oils in the refrigerator. Flaxseed, walnut, hemp and other high-PUFA specialty oils are so prone to oxidation that they must be refrigerated before opening. They may become cloudy in the fridge, which is harmless and reverses at room temperature.
Label the opening date. A bottle of vegetable oil looks the same if it has been open for 2 months or if it has been open for 14 months. A date on the label removes the guesswork.
Never pour fresh oil into a bottle containing old oil. Old residue will accelerate the rancidity of fresh oil. Use one bottle until empty, then start a new one.
Recipes That Use Cooking Oil
Frequently Asked Questions
Can I use cooking oil after its expiry date?
Yes, within reason and with a smell and taste check. Best-by dates on cooking oils indicate the highest quality, not the immediate safety cutoff. If the odor and taste of the unopened bottle are normal, it can be stored properly and used for several months. An opened bottle is more about the smell and taste test than the date. If its smell is neutral and taste is right, it is fine to use. If any are stale or foul-smelling, discard them regardless of the date.
My vegetable oil looks cloudy. Has it gone bad?
not necessarily. Vegetable oils and other cooking oils can become cloudy at cold temperatures as some of the fatty acids begin to solidify. This is a normal physiological reaction to cold, not a sign of something bad. Bring the oil to room temperature and the cloudiness should clear up. If it’s cloudy at room temperature and smells bad, it’s probably gone rancid.
Can I cook in oil that has a slight odor?
No, even mildly rancid oil will make food taste unpleasant, and the oxidized compounds it contains are not something you want in your diet on a regular basis. Cooking oil is cheaper than the ingredients you are cooking with. If the oil smells, change it. The cost of a new bottle is always less than the cumulative health impact of wasted food or regular rancid oil consumption.
Does olive oil go bad faster than vegetable oil?
Extra virgin olive oil actually has a shorter practical unopened shelf life than refined vegetable oil for most people, despite being more shelf-stable unopened. EVOO’s complex flavor compounds are delicate and noticeably degrade within 6 months of opening, even if the oil is not technically rancid. Refined vegetable oils contain fewer volatile flavor compounds and remain usable for a longer period of time after opening. Buy EVOO in small bottles and use it within 3 to 6 months of opening for best flavor.
Further reading
Better Living may earn commission through affiliate links and may occasionally feature sponsored or partner content. If you purchase through our links, we may receive a small commission at no cost to you.
