We may earn a commission from qualifying purchases. Details
The short answer: USDA FoodKeeper says olive and vegetable oil keep 6 to 12 months unopened and 3 to 5 months once opened. Canola and sunflower oil are listed at about 1 year, solid shortening at 1 to 2 years unopened, and coconut oil at about 3 years. Even in good storage, BYU treats oils as about 1-year items that must be rotated. Oil doesn't become dangerous the way spoiled meat does, but rancid oil tastes bad and can't be fixed, so buy only what you'll use.
Cooking oil shelf life at a glance
| Oil | Unopened | Opened | Source |
|---|---|---|---|
| Olive or vegetable oil | 6 to 12 months | 3 to 5 months | USDA FoodKeeper |
| Canola oil | About 1 year | Not listed; close tightly and use within months | USDA FoodKeeper |
| Sunflower or grapeseed oil | About 1 year | Not listed; close tightly and use within months | USDA FoodKeeper |
| Solid shortening | 1 to 2 years | 6 to 12 months | USDA FoodKeeper |
| Coconut oil | About 3 years | Same; no fridge needed | USDA FoodKeeper |
| Cooking spray | About 2 years | About 1 year | USDA FoodKeeper |
How to store cooking oil
- Cool and dark. Utah State University Extension says storing oils below room temperature slows rancidity. A cupboard away from the stove and windows is the minimum.
- Keep air out. Close the cap tightly, and buy bottle sizes you'll finish within a few months of opening.
- Cold is fine. USU says freezing won't burst the container (oils contract slightly) and oils that cloud up in the cold are normal. Coconut oil doesn't need the fridge.
- Rotate. BYU says oils must be rotated often; storing a few kinds helps you use them up. Oil you can't use in time can go to a food bank before its date.
- Don't seal oil with oxygen absorbers for the long haul. It's a 1-year food no matter what. See what not to seal.
How to tell if oil has gone rancid
Smell and taste a little. Rancid oil smells stale, bitter, soapy, like crayons or old paint, and tastes harsh. USU says rancid fats can't be made palatable, so throw them out and replace them. Toss oil that shows mold or smells off in any way.
Why oil matters in food storage
Fat is the densest source of calories (about 9 calories per gram), and BYU notes stored oils supply essential nutrients and make plain stored food more filling and palatable. A rice-and-beans pantry with no fat is hard to live on.
How much to store
BYU's one-year plan lists about 17 pounds (2 gallons) of cooking oil per adult, plus some butter or margarine kept in the freezer and peanut butter. For a 2-week pantry, one bottle on top of your normal supply is plenty. Peanut butter, nuts and canned fish in oil also add fat.
Buy these locally instead
Cooking oil, shortening and peanut butter are cheapest at a grocery or warehouse store. We don't link groceries.
Recommended picks
Skip these if you already date your bottles and know your pantry stays cool.
| What | Pick | Notes |
|---|---|---|
| Check your storage spot | mini digital thermometer-hygrometer, 4-packCheck on Amazon | Oil lasts longer below room temperature |
| Date labels | removable food labels (1,000 count)Check on Amazon | Write the date you open each bottle |
FAQ
Can you use cooking oil after the best-by date? Often, if it smells and tastes normal. Once it smells stale or like paint, it's rancid and should be replaced.
Does olive oil last longer than vegetable oil? FoodKeeper lists both at 6 to 12 months unopened and 3 to 5 months opened. Storage matters more than the type: keep any oil cool, dark and tightly closed.
What is the longest-lasting cooking fat? Of the common ones, coconut oil (about 3 years in FoodKeeper) and solid shortening (1 to 2 years unopened).
Read next: Food shelf life chart · Rotating food storage · What food to stock first
Free: a fillable household binder (contacts, medical info, your plan) and an offline kit for a USB drive. Get the free Household Binder + Offline USB Kit.
Sources: USDA FoodKeeper (FoodSafety.gov); Utah State University Extension, Food Storage booklet (fats and oils chapter); BYU Department of Nutrition, Dietetics, and Food Science, An Approach to Longer-Term Food Storage (revised June 2024). Checked December 5, 2026. Product details from the makers' Amazon listings.