How Long Does Cooking Oil Last? (Olive, Vegetable, Coconut & Sesame)
Oil doesn’t expire the way dairy or meat does — there’s no bacterial risk. But it does go rancid, and rancid oil ruins every dish it touches without ever looking obviously wrong. Olive oil turns flat in months; toasted sesame oil is even shorter. Here’s the shelf-life breakdown for every oil in your pantry, and exactly how to tell when it’s time to replace a bottle.

The Numbers at a Glance
| Oil type | Unopened | Opened (pantry) | Opened (fridge) |
|---|---|---|---|
| Extra-virgin olive oil | 18–24 months | 3–6 months (best quality) | 6–12 months |
| Light / refined olive oil | 18–24 months | 6–12 months | 12–18 months |
| Vegetable / sunflower / rapeseed | 1–2 years | 6–12 months | No significant benefit |
| Avocado oil (refined) | 12–18 months | 6 months | 9–12 months |
| Coconut oil (virgin) | 2 years | 1–2 years | No significant benefit |
| Toasted sesame oil | 6–12 months | 3–4 months | 3–6 months |
| Light sesame oil | 12–18 months | 6 months | 9–12 months |
| Walnut / almond / hazelnut oil | 6–12 months | 1–3 months | 3–6 months |
| Peanut oil (refined) | 12–18 months | 6 months | 9–12 months |
| Lard / solid cooking fat | 6–12 months (fridge) | — | 3–6 months |
Figures are consistent with FoodSafety.gov storage guidance and guidance from the North American Olive Oil Association. “Pantry” assumes a cool (15–20°C / 59–68°F), dark cupboard away from heat sources.
Why Oils Go Rancid (and Why It Matters)
Rancidity is oxidation. When unsaturated fats — the double bonds in polyunsaturated and monounsaturated fatty acids — are exposed to oxygen, heat, and light, those bonds break down into aldehydes, ketones, and free fatty acids. These compounds are what you smell as “off”, “painty”, or “crayon-like”. They are not acutely dangerous in small amounts, but long-term consumption of highly oxidised fats is associated with increased inflammation in the body, according to research published in the Journal of Nutritional Biochemistry.
The more polyunsaturated a fat is, the faster it oxidises. That’s why walnut oil — which is rich in omega-3 fatty acids — goes rancid in weeks at room temperature, while coconut oil — almost entirely saturated fat — keeps for years. This is also why “cold-pressed” and “extra-virgin” oils are more volatile than their refined counterparts: the natural polyphenols, flavours, and aromatics that make them taste better are also the compounds most susceptible to oxidation.
Olive Oil: The Misunderstood Pantry Staple
Most households treat olive oil like an indestructible pantry staple and store it in a clear bottle on the worktop beside the hob. This is almost the worst possible storage arrangement: direct light degrades polyphenols, and the ambient heat from cooking accelerates oxidation.
Extra-virgin olive oil — the unrefined, cold-pressed variety with actual flavour — is at its best within 3–6 months of opening. The peppery, grassy, or fruity notes that you paid for fade first, even before the oil technically turns rancid. By 12 months, most extra-virgin olive oil tastes flat and waxy.
The North American Olive Oil Association recommends buying extra-virgin olive oil in sizes you’ll finish within 30–60 days of opening. That’s not a sign of low quality — it’s how olive oil works. If you cook with it once a week, a 500 ml bottle is the right format. A 3-litre tin is only sensible if you go through it within three months.
Light or refined olive oil is more stable — 6–12 months opened in a cool pantry — because the refining process removes many of the volatile polyphenols. It’s better for high-heat cooking anyway.
Vegetable Oils: Stable but Not Immortal
Refined vegetable oil, sunflower oil, and rapeseed (canola) oil are heavily processed to remove colour, flavour, and the fast-oxidising natural compounds. This makes them more stable than extra-virgin olive oil — 6–12 months opened at room temperature is realistic — but they still go rancid eventually.
Because these oils have a mild smell when fresh and a subtler rancid smell than olive oil, the change often goes unnoticed. Stir-fries or chips that taste vaguely off without obvious explanation are frequently caused by rancid oil, not by the other ingredients. If you can’t remember when you opened a bottle of sunflower oil and it’s been more than a year, smell it before you cook: the crayon or putty note is the tell.
Coconut Oil: The Exception
Coconut oil is genuinely long-lived. Because it’s roughly 90% saturated fat, there are very few unsaturated bonds available to oxidise. Virgin (unrefined) coconut oil keeps 1–2 years at room temperature in a sealed container — comparable to dry pasta and far longer than any nut-based oil.
The main risk to coconut oil is moisture contamination — using a wet spoon introduces water that can support mould growth on the surface. Always use a clean, dry spoon. The oil’s phase change (solid below 24°C / 76°F, liquid above it) is normal and doesn’t affect shelf life or quality.
Toasted Sesame Oil and Nut Oils: Refrigerate from Day One
Toasted (dark) sesame oil is among the most perishable cooking oils. It’s high in polyunsaturated fats and the toasting process introduces compounds that oxidise faster than in raw oil. At room temperature, an opened bottle of toasted sesame oil is typically good for 3–4 months. In the fridge, you get closer to 6 months.
Walnut oil, almond oil, and hazelnut oil are even more volatile — 1–3 months at room temperature after opening. These are finishing oils used by the tablespoon over salads or pasta, so the opened bottle sits in the pantry for months between uses. Move them to the fridge the moment you open them. The oil may turn slightly opaque when cold, but it clears again at room temperature in 10 minutes.
This is also where unopened expiry matters. Unlike white flour or dry pasta, where the best-before date is largely conservative, the best-before date on a nut oil is worth checking at the shop — a bottle near its date will go rancid months before you finish it.
Deep-Frying Oil: When to Change It
Reusing frying oil is economical, but repeated high-heat cooking accelerates oxidation dramatically. The practical markers for changing frying oil:
- Colour: Oil darkens progressively with each fry. Very dark brown oil has degraded significantly.
- Foam: A foamy, stable froth when the oil is hot indicates breakdown of fatty acids.
- Smoke: Oil that smokes at normal frying temperatures (160–180°C / 320–356°F) has degraded — its smoke point has dropped. Most refined vegetable oils should not smoke at these temperatures when fresh.
- Smell and taste: Fried food that tastes rancid or fishy even when cooked correctly means the oil is spent.
As a rule of thumb, most professional fryers change oil after 8–10 frying sessions. Home cooks using a smaller volume should change it more often, since the ratio of food mass to oil volume is higher. Strain used oil through a fine-mesh sieve after each use, and store it in a sealed, dark container in a cool spot — not on the counter beside the hob.
The Most Common Oil Waste Scenario
The same pattern emerges across every oil type: a bottle bought for one specific recipe — walnut oil for a salad, sesame oil for a stir-fry series — sits in a pantry for months between uses, goes quietly rancid, and gets binned mostly full.
Unlike yoghurt or bacon, rancid oil doesn’t announce itself urgently. The smell is subtle until it’s advanced. The practical fix is the same one that works for flour and nuts: know what you already have before you buy more. Pantree tracks your pantry stock — so when you need sesame oil for tonight’s noodles, you can see at a glance whether the bottle you bought three months ago is still worth using.
Frequently Asked Questions
How long does olive oil last once opened?
Opened extra-virgin olive oil is at its best within 3–6 months. The polyphenols that give EVOO its peppery, fruity character oxidise steadily after the bottle is opened, and quality noticeably declines past 6 months even if the oil isn't technically spoiled. Light olive oil and refined olive oil last slightly longer — 6–12 months opened — because the refining process removes many of the volatile compounds that oxidise quickly. Unopened, EVOO keeps 18–24 months from production. The 'best before' on the bottle is a quality marker, not a safety cutoff: olive oil that smells flat or rancid should be discarded.
How long does vegetable, sunflower, or rapeseed oil last?
Refined vegetable oils — including sunflower, rapeseed (canola), corn, and generic blended vegetable oil — are highly refined and more stable than extra-virgin oils. Unopened, they keep 1–2 years. Once opened, 6–12 months in a cool, dark pantry is realistic before quality declines. These oils have a milder smell when rancid, which means rancidity can creep up without obvious warning. The 'crayon or paint' smell is the same tell as with other rancid fats — if your stir-fry smells odd before anything has burned, the oil is likely the culprit.
How long does coconut oil last?
Unrefined (virgin) coconut oil keeps remarkably well — 1–2 years at room temperature in a sealed container. This is because coconut oil is approximately 90% saturated fat, and saturated fats are stable: they don't have the double bonds that oxidise and go rancid in polyunsaturated fats. Refined coconut oil lasts similarly. The main risk is moisture contamination — using a wet spoon can introduce water, which promotes mould. Keep the jar sealed and use a dry spoon every time. In solid state below 24°C (76°F), it looks white and firm; above that it melts to a clear liquid — both are normal.
How long does sesame oil last?
Toasted sesame oil — the dark, intensely flavoured finishing oil used in Asian cooking — keeps 6–12 months unopened and around 3–6 months after opening, in the fridge. It has a high proportion of polyunsaturated fats and the toasting process introduces compounds that oxidise faster than untoasted fats. Light (untoasted) sesame oil lasts slightly longer: up to a year in the fridge once opened. Rancid sesame oil smells sharply sour or acrid rather than nutty — the change is noticeable. Many cooks refrigerate toasted sesame oil from the moment it's opened, and this is genuinely worth doing.
How can you tell if cooking oil has gone rancid?
The primary test is smell. Fresh oil smells neutral to pleasant — olive oil has a grassy or fruity note, sesame smells nutty, refined oils are nearly odourless. Rancid oil smells sour, crayon-like, paint-like, or reminiscent of old nuts or putty. Taste is the second test: rancid oil has a sharp, acrid, or bitter aftertaste. Appearance is the least reliable indicator — rancid oil can look perfectly fine. A change in colour (olive oil going darker) or unusual cloudiness (beyond normal cold clouding) are secondary warning signs. Rancid oil is not dangerous in the way that bacterial spoilage is, but it tastes distinctly unpleasant and the compounds produced during oxidation are best avoided.
Can you extend cooking oil shelf life in the fridge or freezer?
Yes, for most oils. Refrigeration is particularly effective for nut oils (walnut, almond, hazelnut) and toasted sesame oil, both of which go rancid quickly at room temperature. Olive oil can be refrigerated too — it turns cloudy and partially solid, which looks alarming but is completely harmless; it returns to clarity at room temperature in 20–30 minutes. Vegetable and refined oils don't benefit much from refrigeration and are better stored in a cool, dark pantry. Freezing oil is possible — it will go cloudy or waxy but returns to normal when thawed — but is rarely necessary for stable refined oils.