- Prepped & Ready
- Posts
- How to Store Flour, Sugar, Salt, and Cooking Oil Long Term: What Goes Rancid and What Lasts Forever
How to Store Flour, Sugar, Salt, and Cooking Oil Long Term: What Goes Rancid and What Lasts Forever
Two of these four keep almost forever. One fails in weeks, and it isn't the one most people guess.


Key points
How to store flour long term depends entirely on which flour. White all purpose flour keeps 6 to 12 months at 70 degrees Fahrenheit. Utah State University Extension's storage table gives whole wheat flour 2 weeks at the same temperature.
The difference is fat. USDA data puts white all purpose flour at 0.98 grams of fat per 100 grams and whole grain wheat flour at 2.50 grams. That germ oil is what goes rancid.
Sugar and salt don't spoil. They fail by pulling in moisture, hardening into a brick, or picking up the smell of whatever is next to them.
Cooking oil is the real weak link: about 6 months unopened and 1 to 3 months once you break the seal. Light, heat and oxygen all speed that up.
Freeze flour at 0 degrees for at least 4 days to kill insect eggs, and skip the oxygen absorbers in sugar. USU says removing oxygen from stored sugar is "not required and not recommended."
Every long term food storage guide covers storing rice and beans long term. Almost none of them tell you how to store flour long term, which is a problem, because flour is where the whole plan quietly falls apart. So do sugar, salt and cooking oil. Two of those four are close to immortal. One of them is measured in weeks. And most people have the ranking backwards.
Here's the honest version, with the temperatures and the timelines attached, because a shelf life number without a storage condition next to it is just a rumor.
How long does flour last in long term storage?
White all purpose flour keeps 6 to 12 months at about 70 degrees Fahrenheit. Whole wheat flour, stored the same way, is measured in weeks.
Here are the published numbers. Oregon State University Extension's Storing Food for Safety and Quality (PNW 612) and Utah State University Extension both measure at 70 degrees.
Item | Storage time at 70 F | Conditions |
|---|---|---|
White all purpose flour | 6 to 12 months (OSU), 1 year (USU) | 10 to 12 percent moisture, sealed container |
Whole wheat flour | 6 to 8 months (OSU), 2 weeks (USU) | OSU adds "keep refrigerated or freeze" |
Cornmeal | 12 months | Original sealed container |
Granulated sugar | Indefinite | Airtight, cool, dry |
Brown sugar | 4 months | Airtight container |
Vegetable oil, unopened | 6 months | Cool, dark |
Vegetable oil, opened | 1 to 3 months | Refrigeration extends it |
Shortening | 8 months | No refrigeration needed |
Notice the gap in the whole wheat row. OSU says 6 to 8 months and USU says 2 weeks. That isn't a mistake on anybody's part. They're answering slightly different questions: USU's table is about flour held in a sealed container at a steady 70 degrees with no refrigeration option, and OSU is describing normal kitchen use with the freezer as backup. The honest read is that whole wheat flour on a warm shelf is a short term food, and both agencies are telling you the same thing in different words.
Two more numbers worth having. Penn State Extension says all purpose and bread flour "will keep up to two years at 40 degrees F in the refrigerator and can be stored indefinitely in the freezer." And USU's wheat research page notes that gluten degrades in storage and loses half its raising power after several years, so very old flour still bakes, it just bakes flatter.

Same grain, two very different shelf lives. The germ oil is the whole difference.
Why does whole wheat flour go rancid so fast?
Because milling breaks the barrier that keeps the germ's oil away from everything else. USU's food storage page puts the mechanism plainly: "Cracked or whole wheat products do not store well because the membranes are broken that keep the oil in the wheat germ away from the iron and other minerals in the endosperm and the bran layer. Rancidity occurs at a rapid rate."
You can see the difference in the composition data. According to USDA FoodData Central, whole grain wheat flour carries 2.50 grams of fat per 100 grams. White all purpose flour carries 0.98 grams. White flour is what's left after the germ and bran are milled out, and the germ is where almost all the oil lives. Take the oil out and you've taken out the thing that spoils.
Penn State's advice follows from that: store whole wheat flour "in the refrigerator year-round" because it "contains natural oils that can turn rancid quickly at room temperature."
Whole wheat berries are a different story again. USU cites a Brigham Young University study in which wheat packaged in No. 10 cans made acceptable bread after 32 years of storage at ambient or cooler temperatures. Intact kernels keep the oil sealed inside. The clock only starts when you grind them. If you want a decade of whole grain, store the berries and buy a mill instead of bags of whole wheat flour, and pack those berries the way you would any bulk grain, in food grade buckets and mylar bags.
Rancid flour tells you it's rancid. It smells sharp, a bit like old crayons or oil paint, and it tastes bitter. Trust your nose here. That smell is the volatile aldehydes and ketones that oxidation produces, and no amount of baking removes them.
Do sugar and salt ever go bad?
Not in the way food goes bad. Neither one supports microbial growth, so the failure modes are physical, not biological.
Sugar. USU Extension gives commercial sugars an indefinite shelf life, with a quality date around 2 years. The real enemy is water: "Moisture makes granulated sugar hard and lumpy. Once this happens, it creates problems in usage and there is no easy method to restore lumpy sugar." Their container spec is worth copying exactly. Storage containers should be opaque, airtight, and moisture and odor proof, and sugar belongs in a cool dry spot, not the refrigerator.
Brown sugar is the exception. It has molasses in it, which means it has moisture, and OSU gives it 4 months in an airtight container. Brown sugar is not a long term storage food.
Salt. Salt is a mineral. There's no fat to oxidize and no water for microbes to use, so plain salt keeps effectively forever. What it does do is pull moisture out of the air and cake, and it will corrode a bare metal lid over time. Store it airtight, and if you use metal containers, use lined food grade ones.
One real caveat on iodized salt. The NIH Office of Dietary Supplements notes that iodized salt in the United States contains about 45 micrograms of iodine per gram, and that the World Health Organization recommends potassium iodate over potassium iodide for fortifying salt "due to its greater stability, particularly in warm, damp, or tropical climates." The salt itself won't spoil. The iodine in it is the part that can fade in a hot, humid storage spot, so don't count long stored iodized salt as your only iodine source.

Dark, cool and sealed. Oil asks for all three, and the shelf above the stove gives it none of them.
Why is cooking oil the weakest item in the pantry?
Because oil is almost entirely fat, and fat is the one macronutrient that degrades on its own without any help from bacteria. OSU gives vegetable oil 6 months unopened and 1 to 3 months opened. That's shorter than anything else on this list.
There are two separate ways oil goes off, and Oklahoma State University's Edible Oil Quality fact sheet (FAPC-197) lays both out.
Hydrolytic rancidity. Water splits the fat molecules apart. "Hydrolysis increases the amount of free fatty acids (FFA), mono- and diacylglycerols and glycerols in oils." Refined oil starts at 0.05 percent free fatty acids or less. Commercial fryers dump their oil once FFA passes 2 percent.
Oxidative rancidity. Oxygen attacks the fat and produces "hydroperoxides and low molecular weight volatile compounds such as aldehydes, ketones, carboxylic acids." Those volatiles are the smell. Refined oils typically test below 1 milliequivalent per kilogram on peroxide value, and an oil is considered oxidized above 3.
Three things drive that reaction, and you control all three: light, heat and oxygen. The OSU sheet notes that chlorophyll, the pigment that makes unrefined oils green, "promotes oil oxidation in the presence of light." That's why good olive oil comes in a dark bottle and why the worst place in your kitchen for oil is the shelf above the stove.
Four rules follow, and they're the whole of oil storage:
Buy the size you'll actually finish. A gallon jug you use over 8 months is worse value than three quart bottles, because the jug spends 7 of those months half full of air.
Keep it dark. A cabinet beats a countertop. An opaque bottle beats a clear one.
Keep it cool, and refrigerate opened oil if you have the room. OSU says outright that refrigeration extends the shelf life. Some oils cloud in the cold, which is cosmetic and reverses at room temperature.
Keep the cap on and the headspace small. USU's packaging guidance points out that "Plastics are not that resistant to oxygen transfer," so a glass or metal container beats a thin plastic one for anything you're holding more than a few months.
The test is your nose. Fresh oil smells like almost nothing. Rancid oil smells like crayons, old nuts or putty. If you have to think about whether it smells off, it's off.
How do you keep bugs out of stored flour?
Freeze it first, then seal it. Insect eggs come home from the store inside the bag, and no container keeps out something that's already inside.
University of Minnesota Extension gives two treatments that kill both eggs and adults:
Freezing: "put them in the freezer at 0 degrees for at least four days."
Heating: spread the product "in shallow cookie sheets or pans in an oven at 130 degrees for at least 30 minutes."
USU's wheat page suggests a similar freeze for grain, 2 to 3 days for bags in the 1 to 15 pound range, and also lists vacuum sealing, oxygen absorbers, or 2 to 3 ounces of dry ice per 5 gallon bucket. It's equally clear about what does not work. Insecticides, and the folk remedies of bay leaves, nails or salt in the bucket, are all listed as not recommended.
After treatment, store the flour in "sealable glass, metal, or heavy plastic containers or in the freezer or refrigerator." Paper bags and cardboard canisters are not containers, they're packaging. UMN also makes the point that a stored food product "can become infested from production until it arrives in your home," which is why the freeze step comes before the pretty jar, not after.
Which container does each of these four actually need?
They're four different problems, so they get four different answers.
Flour. Airtight and moisture proof, after a freeze treatment. For multi-year storage, USU's wheat guidance is to seal grain products in Mylar type bags or No. 10 cans with the right number of oxygen absorber packets, and it specifically warns that "Polyethylene bags and 5-gallon food grade plastic buckets will not maintain an oxygen-free environment" on their own. A bucket is a rodent and spill barrier, not an oxygen barrier.
Sugar. Opaque, airtight, moisture and odor proof, and no oxygen absorber. USU is direct: "Removing oxygen for long-term sugar and honey storage is not required and not recommended." Sugar has nothing to oxidize, and pulling the air out tends to compress it into a rock.
Salt. Airtight, and away from bare metal. Salt corrodes unlined metal lids and can rust its way through a can seam given enough humidity. Glass with a plastic lid, or a lined food grade metal container, is the safe pick.
Oil. Leave it in the original sealed bottle until you need it. Once it's open, small containers, full to the top, in the dark. Oil is the one item here where buying less at a time is the actual storage strategy.
What temperature and humidity should a long term pantry hold?
Cool and dry, and the numbers are more specific than most people expect. USU Extension puts the ideal range at 40 to 70 degrees Fahrenheit. OSU says keep food below 85 degrees, with 50 to 70 as the optimum, and warns that humidity above 60 percent is harmful.
The single most useful fact in this whole article is the temperature rule USU cites: for every temperature increase of about 10.8 degrees Fahrenheit, the shelf life of stored food is cut in half. That's why a Brigham Young University study found wheat stayed acceptable for 25 years in a cool basement and only 5 years in a hot garage or attic.
Run that rule on flour. A year at 70 degrees becomes about 6 months at 81 and about 3 months at 92. A garage in July is not storage, it's an oven with a door.
Three more conditions matter:
Moisture in the product itself. USU's wheat page notes that a moisture level above 12 percent encourages mold growth and chemical degradation in grains, that molds grow at 15 percent, and that some bacteria can start growing at 20 percent. This is why the storage tables specify "10 to 12 percent moisture, sealed container." Never seal up flour that got damp.
Light. Direct sunlight degrades both the food and the packaging.
The floor. Store containers off the floor. USU warns that concrete and other flooring materials can leach chemicals into stored food, that those chemicals can penetrate plastic, and that floor contact rusts metal containers. OSU adds the flood reason: shelves keep food "safely out of the way of contaminated water."
Is old flour or rancid oil dangerous, or just bad?
Mostly just bad, with one real exception, and that exception is flour itself.
Start with dates. USDA FSIS explains that "Best if Used By" indicates "when a product will be of best flavor or quality. It is not a purchase or safety date," and that foods showing no signs of spoilage may be consumed past that date. Rancid oil and stale flour are quality failures. They'll taste terrible and they've lost nutritional value, but they are not, on their own, an emergency. Throw them out because they ruin the food, not because they'll put you in the hospital.
The exception is that flour is a raw agricultural product. The CDC is blunt about it: "These harmful germs can contaminate grain while it's still in the field or flour while it's being made," and "Germs are killed only when flour is baked or cooked." University of New Hampshire Extension adds that Salmonella and pathogenic E. coli "can survive in flour for a long time, even at room temperature," and knocks down a popular prepper shortcut: "There are claims that you can heat treat flour by microwaving or baking it to kill pathogens. Both are myths."
Storage time doesn't fix that. Three year old flour is exactly as raw as new flour. Cooking is what fixes it. UNH cites the Home Baking Association's finished internal temperatures: 190 degrees for soft rolls, 200 to 209 degrees for cakes, quick breads and scones, and 210 degrees for crusty bread. A thermometer is worth more than a timer here, and that holds just as true when you're baking bread without an oven over coals or in a skillet.
When to get help. If someone gets sick after eating raw dough or batter, the CDC lists the common food poisoning symptoms as diarrhea, stomach pain or cramps, nausea, vomiting and fever. See a doctor for bloody diarrhea, diarrhea lasting more than 3 days, a fever over 102 degrees Fahrenheit, vomiting so often that liquids won't stay down, or signs of dehydration such as very little urination, a dry mouth and throat, or dizziness on standing. Call 911 for anyone who is struggling to breathe or unresponsive. For a suspected poisoning or a swallowed substance you can't identify, Poison Control is free and staffed 24 hours a day at 1-800-222-1222.
Frequently asked questions about how to store flour long term
How long does white flour last in long term storage?
About 6 to 12 months at 70 degrees Fahrenheit in a sealed container, per Oregon State University Extension, and about a year by Utah State's table. Penn State Extension puts it at up to 2 years at 40 degrees in the refrigerator and says it stores indefinitely in the freezer. For multi-year storage at room temperature, sealed Mylar or No. 10 cans with oxygen absorbers are the step up.
Does whole wheat flour need to be refrigerated?
Yes, if you want it to last. Penn State Extension recommends storing whole wheat flour in the refrigerator year round because it contains natural oils that turn rancid quickly at room temperature. Utah State's storage table gives whole wheat flour just 2 weeks at 70 degrees. Whole wheat berries, kept intact, store for decades instead.
Does salt ever go bad?
Plain salt doesn't spoil. It's a mineral with no fat to oxidize and no water for microbes to use. What it does is absorb moisture and cake, pick up odors from nearby foods, and corrode unlined metal lids. Store it airtight in glass or lined food grade metal. Iodized salt is the one caveat: the iodine can degrade in warm, damp storage even though the salt itself is fine.
Does sugar expire?
Granulated sugar keeps indefinitely, and Utah State University Extension suggests a quality date around 2 years rather than a safety date. Moisture is the failure mode, and once sugar hardens, USU notes there's no easy way to restore it. Brown sugar is different because it contains molasses and moisture, and Oregon State gives it only 4 months in an airtight container.
How can you tell if cooking oil has gone rancid?
Smell it. Fresh refined oil smells like almost nothing, and rancid oil smells sharp and waxy, like crayons, putty or stale nuts. It will also taste bitter and leave a scratchy feeling at the back of the throat. Oxidation produces aldehydes and ketones, which is exactly what your nose is picking up, so if it smells off, it's off.
Should you put oxygen absorbers in with sugar?
No. Utah State University Extension says removing oxygen for long term sugar and honey storage is "not required and not recommended." Sugar has no fat to oxidize, and pulling the air out of the container tends to compress it into a solid block. Use an opaque, airtight, moisture proof container instead and keep it away from humidity.

Four staples, four different failure modes.
You never know, but you can always be ready.
Sources: Oregon State University Extension PNW 612, Utah State University Extension food storage in the home, Utah State University Extension storing wheat, Utah State University Extension storing sugars, Utah State University Extension storage conditions, Utah State University Extension packaging, Penn State Extension, Oklahoma State University Extension edible oil quality, University of Minnesota Extension pantry pests, University of New Hampshire Extension, USDA FoodData Central, USDA FSIS food product dating, NIH Office of Dietary Supplements, CDC raw flour and dough, CDC food poisoning symptoms.