Store cooking oil in a cool, dark, tightly sealed container, and it will stay fresh for months past the date on the bottle. The biggest mistake is leaving oil near the stove or in sunlight, where heat and light speed up rancidity. Even “good” oil goes bad faster than most people think, and rancid oil tastes bitter and can ruin food.
Heat, Light, and Air Are the Three Enemies
Oil degrades through oxidation, which is just a chemical reaction between the oil and oxygen. Heat and light make that reaction happen much faster. A bottle on the counter next to the oven is being slowly cooked; a bottle in a sunny window is being bleached and spoiled.
Keep oil in a cupboard or pantry away from the stove, dishwasher, or any appliance that gives off heat. The ideal spot is a cool, dark cabinet, ideally below 70°F (21°C). If your kitchen runs warm in summer, a basement shelf or a closet is better than a countertop.
Air is the third problem. Every time you open the bottle, oxygen gets in. Once the seal is broken, the oil starts to oxidize, even if you put the cap back on right away. That’s why buying oil in a size you’ll use within a few months makes sense, especially for delicate oils like walnut or flaxseed.
Which Oils Last Longest and Which Go Bad Fast
Not all oils spoil at the same rate. Saturated fats are more stable than polyunsaturated fats, so coconut oil and palm oil last the longest, while flaxseed oil and walnut oil spoil the fastest. Olive oil and avocado oil sit in the middle, and they’re fine for everyday cooking.
| Oil type | Typical shelf life (unopened) | Typical shelf life (opened, stored properly) |
|---|---|---|
| Coconut oil | 2-3 years | 1-2 years |
| Olive oil | 18-24 months | 6-12 months |
| Vegetable or canola oil | 12-18 months | 6-12 months |
| Walnut or flaxseed oil | 6-9 months | 3-6 months |
These are typical ranges; the exact time depends on the brand, the harvest date, and how you store it. If a bottle has a “best by” date, use that as a rough guide, but your nose and taste are more reliable.
The Exception: Garlic, Herbs, or Chili in Oil
If you’ve made flavored oil by adding fresh garlic, herbs, or chili peppers, the rules change completely. These oils are a botulism risk at room temperature because the low-oxygen environment inside the bottle lets Clostridium botulinum bacteria grow. Refrigerate any oil with fresh garlic, herbs, or chili, and use it within 4 days. Discard it after that, even if it looks fine. This is not a suggestion; it’s a safety rule.
How to Tell If Oil Has Gone Rancid
Rancid oil doesn’t always smell bad in the way you’d expect. It can smell like old paint, crayons, glue, or just “off.” Sometimes it smells like a musty basement or like the oil has a faint metallic note. If you’re not sure, taste a tiny drop. Rancid oil tastes bitter, sharp, or soapy, and it will linger on your tongue.
Another sign is a change in texture. Oil that has gone rancid can feel thicker or slightly sticky. Cloudiness can be normal for some oils when they’re cold, so don’t rely on that alone. If the oil has been sitting for more than a year, it’s safer to toss it than to risk ruining a dish.
What to Do With Oil That’s Past Its Prime
If your oil smells or tastes off, don’t cook with it. Rancid oil won’t make you sick the way spoiled meat can, but it will give your food a bitter, unpleasant flavor. It’s not worth saving a dollar’s worth of oil to ruin a meal.
For oil that’s still good but you know you won’t use in time, you have a few options. You can refrigerate most oils to extend their life by a few months; olive oil will turn cloudy and thick when cold, but it clears up at room temperature. You can also freeze oil in ice cube trays, then pop the cubes into a freezer bag. Frozen oil keeps for up to a year and thaws quickly.
One more thing: don’t pour old oil down the drain. It can clog pipes and harm septic systems. Let it cool, pour it into a sealed container, and throw it in the trash. If you have a lot, check if your town has a cooking oil recycling drop-off.
Buying Oil With Storage in Mind
The best way to keep oil fresh is to buy less of it. A huge jug of vegetable oil might seem like a bargain, but if you only fry once a month, it will go rancid before you finish it. Buy the smallest size you’ll use in about six months, and look for dark glass bottles or opaque containers that block light.
When you get oil home, transfer it to a cool, dark spot right away. Don’t leave it in the car or near a sunny window. If the bottle has a plastic cap, that’s fine; just make sure the cap is tight after every pour. And if you buy oil in a can or tin, once you open it, pour it into a clean glass jar with a tight lid, because the metal can react with the oil over time.
What About Refined vs. Unrefined Oils?
Refined oils, like regular canola or vegetable oil, have been processed to remove impurities, so they’re more stable and have a longer shelf life. Unrefined oils, like extra-virgin olive oil or cold-pressed sesame oil, have more flavor but also more natural compounds that spoil faster. Treat unrefined oils with extra care: keep them cool, dark, and sealed, and use them within a few months of opening.
Oil Storage for Large Batches and Deep Frying
If you deep fry regularly, you’ll want to reuse the oil a few times. After frying, let the oil cool completely, then strain it through a fine-mesh sieve lined with cheesecloth or a coffee filter to remove food bits. Store the strained oil in a sealed container in a cool, dark place. You can reuse it two or three times, but not if it smells bad, smokes at a lower temperature than usual, or looks dark and thick.
For large quantities of oil, like a gallon jug from a warehouse store, divide it into smaller bottles so you’re not exposing the whole supply to air every time you cook. Fill each bottle nearly to the top to minimize the air space, and seal it tightly. Label each bottle with the date you opened it, so you know how long it’s been in use.
If you live in a warm climate or your kitchen gets hot in summer, consider keeping a small bottle of everyday oil in the fridge. It will thicken slightly, but that doesn’t hurt it. Just let it come to room temperature before using it in a salad dressing, or pour a little and let it warm in the pan.
One last rule: never store oil in a container that held cleaning products or chemicals, and never mix old oil with new oil unless you’re sure the old oil is still fresh. Mixing rancid oil with fresh oil contaminates the whole batch.
Spotted a mistake? Tell us and we will correct it. How we write and check articles.