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 smells a little off. Cooking oil going bad?
Short answer: Yes, cooking oil goes bad. It doesn’t spoil the way dairy or meat does, but it spoils through oxidation, and rancid oil is something you want to avoid for the sake of your food’s taste and your health. The good news is that rancid oil is easy to detect if you know what to look for.
To see how pantry staples compare in shelf life, visit our The Complete Guide to Food Storage.
To take the keys
- Cooking oil goes bad through a process called oxidation, which causes fermentation.
- 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 wax. The fresh oil should have a neutral or pleasant smell.
- Castor oil is not safe to eat regularly. Oxidation products can cause inflammation and cell damage over time.
- Heat, light and air are enemies. Proper storage significantly extends shelf life.
How long does cooking oil last?
Not all cooking oils are the same when it comes to expiration. The key factor is the fatty acid composition of the oil. Oils high in polyunsaturated fats (vegetable, canola, sunflower, flaxseed) oxidize more quickly. Oils high in monounsaturated fats (olive, avocado) are more stable. Oils high in saturated fat (coconut, ghee) are the most resistant to oxidation and last longer.
| Type of oil | Unopened (Pantry) | Open (Pantry) |
|---|---|---|
| Vegetable oil | Between 12 and 18 months | Between 6 and 12 months |
| Canola oil | Between 12 and 18 months | Between 6 and 12 months |
| Sunflower oil | Between 12 and 18 months | Between 6 and 12 months |
| Extra virgin olive oil | Between 18 and 24 months | Between 6 and 12 months |
| Regular (refined) olive oil. | Between 18 and 24 months | Between 12 and 18 months |
| Coconut oil | up to 3 years | 1 and 2 years |
| Peanut oil | 12 months | 6 to 9 months |
| Flaxseeds and delicate nuts | Between 3 and 6 months | 1 to 3 months; cool down |
Estimates based on storage in a cool, dark pantry with lids closed. Best-by dates indicate top quality, not security types. Always check for race signs regardless of the date. Compliant with guidelines USDA FoodKeeper recommendations
Rancidity is what it really is
Cooking oil doesn’t spoil the way bacteria make dairy or meat dangerous. Instead, it undergoes oxidation: oxygen, heat, and light break down the fatty acid molecules in the oil, creating compounds called aldehydes, ketones, and free radicals. This process is called rancidification, and the result is an oil with an unpleasant smell and taste, and real health problems 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 with the oil. Whenever it is placed near the stove, the heat accelerates the breakdown. Every time light hits the bottle, photochemical oxidation proceeds. Store the oil properly and the process slows down considerably. A bottle that should last 12 months after being stored incorrectly can spoil in 3.
Signs that cooking oil has gone rancid
How to tell if your oil is bad
Smell test (the most reliable indicator): Fresh cooking oil has a neutral smell, a little fatty or a pleasant characteristic of its source (olive, coconut, etc.). Castor oil has an unpleasant odor that is often described as old paint, nail polish remover, wax, or old grease. If your oil smells a certain way, it’s rancid. Trust your nose.
Taste test: If the smell is borderline, a small taste will confirm it. The fish oil has a sharp, sour, bitter or harsh taste rather than a neutral or mild pleasant taste. Do not cook with oil that tastes bad. It will spoil your food.
Cloudiness or discoloration at room temperature: Some oils like olive oil and coconut oil can become cloudy or solid in the refrigerator, which is completely normal and reverses at room temperature. Cloudiness or significant darkening of the color at normal room temperature in oils that should be clear may indicate oxidation.
Foaming or excessive burning when heated: Oil that foams excessively when heated, or oil that burns below its normal smoke point, has degraded and should be discarded.
Visible mold or particles: Any growth or unusual particles seen in cooking oil should be discarded immediately.
Is rancid oil dangerous?
More than a taste problem
Fish oil is not toxic in the same way that spoiled meat or dairy products are. A small accidental exposure is unlikely to make you sick. But the oxidation products in rancid oil are a real health concern with regular use. Studies published in peer-reviewed journals have 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 in research to increased oxidative stress, inflammation, and an increased risk of cancer in animal studies. Rancidity also destroys the fat-soluble vitamins in the oil, such as the vitamin E that the oil originally contained.
The FDA doesn’t immediately qualify an heirloom oil as toxic, but health experts consistently recommend discarding any oil with a smell or taste rather than using it in cooking. Its effect on food quality is reason enough: rancid oil makes food taste bad and is worth replacing for health reasons.
How to Store Cooking Oil to Avoid Rancidity
Good storage practices
Keep away from heat. The biggest mistake is storing cooking oil near the stove. Heat greatly accelerates oxidation. Store the oil in a cool pantry or cupboard away from any heat source.
Keep away from light. Light causes photochemical oxidation. Store the oil in a dark pantry or dark colored opaque bottles. If your oil comes in a clear plastic bottle, consider transferring it to a dark glass container.
Close tightly after use. Oxygen exposure begins every time you open the bottle. Replace the cap immediately and close tightly. Do not use dispensers that leave the bottle open.
Buy in smaller quantities if you use the oil sparingly. A large jug of vegetable oil is economical, but if you don’t cook often it will drain faster than you can use it. Smaller bottles that are used every few months are a better approach for light users.
Refrigerate delicate oils. Flaxseeds, walnuts, hemp and specialty high PUFA oils are so prone to oxidation that they must be refrigerated even before opening. They can be cloudy in the refrigerator, harmless and the opposite is true at room temperature.
Label the opening date. A bottle of vegetable oil looks the same 2 months open or 14 months open. A label date takes the guesswork out of it.
Never pour fresh oil into a bottle containing old oil. The old residue will accelerate the rancidification of the fresh oil. Use a bottle until it’s empty and then start over.
Recipes that use cooking oil
Frequently Asked Questions
Can I use cooking oil past its expiry date?
Yes, within reason and with smell and taste control. Cooking oil’s best-before dates indicate top quality, not an immediate safety cut. An unopened bottle can often be used for several months after the printed date if stored properly if it smells and tastes normal. An opened bottle is more about the smell and taste than the date. If it has a neutral smell and has the right taste, it is fine to use. If there is a strong odor or smell, discard it regardless of the date.
My vegetable oil looks cloudy. Did it go wrong?
Not necessarily. Vegetable oil and other cooking oils can become cloudy at cool temperatures as certain fatty acids begin to solidify. This is a normal physical response to cold, not a sign of deterioration. Bring the oil to room temperature and the cloudiness should clear. If it stays cloudy and smells bad at room temperature, it’s likely rancid.
Can I use the slightly scented oil?
no Even a light oil will make food taste unpleasant, and the oxidizing compounds it contains are not something you want in your diet. Cooking oil is cheap compared to the ingredients you are cooking with it. If the oil smells bad, replace it. The cost of a new bottle is always less than a spoiled meal or the cumulative health impact of regular oil consumption.
Does olive oil go bad faster than vegetable oil?
Extra virgin olive oil actually has a shorter practical shelf life for most people than refined vegetable oil, despite being more stable unopened. EVOO’s complex flavor compounds are delicate and degrade significantly within 6 months of opening, even if the oil is not technically rancid. Refined vegetable oil has fewer volatile flavor compounds and remains usable longer after opening. Buy EVOO in smaller bottles and use within 3 to 6 months of opening for best flavor.
Further reading
Better Living may earn commissions through affiliate links and may occasionally feature sponsored or partner content. If you make a purchase through our links, we may receive a small commission at no cost to you.

