GuideA plain-language guide with a worked example
Pantry storage guide: keeping shelf-stable food safe
Shelf-stable food is safe at room temperature until it is opened, but cans can fail. Store them cool and dry, discard bulging or deeply dented ones, and treat dates on pantry food as quality guides.

On this page
A well-stocked pantry feels like insurance: cans, boxes, bags and jars that wait patiently until you need them. Most of the time they do exactly that. But "shelf stable" is a narrower promise than many people realize, and a few specific warning signs deserve a quick look every time you reach for a can. This guide covers what the term really means, how to store pantry food so it lasts, and when to throw something out.
What shelf stable means
The USDA defines shelf-stable foods as ones that can be kept safely at room temperature. The list includes canned and bottled foods, rice, pasta, flour, sugar, spices, oils, jerky, country hams, and products in aseptic or retort packages that need no refrigeration until they are opened. Perishable food becomes shelf stable when it is treated with heat, dried, or both, so that the microorganisms that cause illness or spoilage are destroyed or cannot grow. Sealed, airtight packaging keeps new ones out.
A couple of cautions come with that definition. One is that not every can is shelf stable. Some canned ham and seafood carry a "Keep Refrigerated" label, and those are not safe at room temperature. The other is that FSIS reminds us that all foods eventually spoil if they are not preserved, and even preserved foods do not last forever.
How canning does it
In commercial canning, food goes into an airtight container and is heat processed at 250 degrees F. That destroys microorganisms and inactivates enzymes. As the can cools, a vacuum seal forms and keeps new bacteria out. The food inside is considered commercially sterile, so it does not spoil on the shelf.
The seal protects only until it is broken or damaged. Once a can is open, bacteria can get in and grow, so leftovers must be refrigerated.
High-acid and low-acid cans
The difference matters for how long a can keeps its best quality and for how it is processed. In high-acid foods, natural chemicals keep reacting with the container, which over time changes taste and texture. FSIS gives these time frames:
| Type | Examples from FSIS | Best quality on the shelf | After opening, in the refrigerator |
|---|---|---|---|
| High-acid | Tomatoes, citrus and other juices, pineapple, apples, peaches, pears, berries, pickles, sauerkraut | 12 to 18 months | 5 to 7 days |
| Low-acid | Canned meat and poultry, stews, soups other than tomato, potatoes, corn, carrots, spinach, beans, beets, peas, pumpkin | two to five years | 3 to 4 days |
Low-acid vegetables are also the ones at risk for botulism if they are canned incorrectly, which is why home canning of low-acid foods calls for a pressure canner. We come back to that below.
Where to store cans and dry goods
FSIS gives practical advice for the pantry:
- Choose a cool, dry place. Temperatures below 85 degrees F are best.
- High temperatures hurt. Storage over over 100 degrees F is harmful to canned goods, and the risk of spoilage rises sharply as the temperature climbs.
- Do not put cans above or beside the stove, under the sink, or in a damp garage or basement. Avoid any spot with big swings from hot to cold.
- Look over the pantry every few weeks and use the cans that have been there longest.
- Do not buy cans that are bulging, rusted, leaking or deeply dented.
Dry goods follow the same cool, dry logic. FSIS lists rice and dried pasta at 2 years on the shelf, and says the cooked versions keep 3 to 4 days in the refrigerator. Dry foods hold little water, which is why bacteria cannot multiply in them. Keeping them in a sealed container away from moisture preserves that advantage. If you ever find fuzzy growth on a pantry staple, our mold on food chart shows what can be saved and what cannot.
Cans that should not be used
The details here are specific, so it helps to know them.
- Small dent, otherwise fine. The food should be safe.
- Deep dent. A deep dent is one you can lay your finger into. Discard the can, particularly if the dent is on a seam, because a sharp dent can damage the seam and let bacteria in.
- Surface rust. If it wipes away with a finger or paper towel, it is not serious. Heavily rusted cans can have tiny holes, so discard them. Any rust inside an opened can means the food should not be eaten.
- Swollen or bulging. Throw it away. Bulging can be a sign of contamination with the bacteria behind botulism or with spoilage organisms.
- Accidentally frozen. A swollen one goes in the trash. One that is not swollen but thawed at the refrigerator temperature or warmer should be discarded too. A can that is still frozen can be thawed in the refrigerator.
- Loud hiss or spurting. A faint hiss from a vacuum-packed can is normal. If it hisses loudly or the contents spurt out, do not taste or use it.
Warning signs for jars include cracked glass, loose or bulging lids, a foul odor, and milky liquid where it should be clear. FSIS says not to taste any of it. Double bag suspect cans and jars in tightly closed plastic bags and put them in outdoor trash that is not recycling, so animals and children cannot get to them. One harmless surprise is the crystals sometimes seen in canned fish. FSIS cites the FDA in saying these glass-like fragments, called struvite, pose no danger.
About botulism
Botulism is extremely rare in commercially canned food, but it is serious. The bacteria thrive where there is no oxygen, which is the condition inside a sealed can or jar. Symptoms develop in 12 to 48 hours and affect the nervous system, including double vision, droopy eyelids, trouble swallowing and difficulty breathing. The risk is greater in containers canned at home without safe procedures. If you see any of the warning signs above, the answer is to discard the food, not to test it.
Home-canned food
Home canning is a skilled craft, and the USDA is cautious about it. The FSIS chart lists home-canned foods at 12 months. If there is any chance that a jar was processed outside USDA-endorsed methods, low-acid and tomato foods should be boiled in a saucepan before eating, even if nothing looks wrong. The chart says 10 minutes for high-acid foods and 20 minutes for low-acid foods, with extra boiling time at higher elevations. FSIS adds that this is not a recommendation to eat food known to be significantly underprocessed, and it is not a guarantee. Properly home-canned fruits have never needed the boil. The recommended path is to can low-acid and tomato foods only by the procedures in the National Center for Home Food Preservation guide from the University of Georgia.
Home-dried jerky is a related case. The chart gives commercially packaged jerky 12 months and home-dried jerky only 1 to 2 months. Meat and poultry should be cooked to a safe temperature before dehydrating, because a dehydrator may never get hot enough on its own.
Dates on pantry food
Dates are the part that causes the most needless waste. Federal rules do not require product dating, apart from infant formula and some baby food, and FSIS says the dates on food are for quality. A "Best if Used By" date tells you when flavor or quality is expected to peak. "Sell-By" is for store inventory. A "Use-By" date is the last date recommended for peak quality and is a safety date only on infant formula. A shelf-stable product can be safely used after the sell-by date, and foods that show no signs of spoilage may still be eaten after a best-by date.
The stamped codes on cans are different again. They are packing codes that let manufacturers rotate stock and find products in a recall, and they are not meant for you to read as expiration dates. If a can does show a plain calendar date, it is usually a best-if-used-by date. Our food date label decoder explains each phrase, and the how long does food last tool shows pantry, refrigerator and freezer times together.
Quick checklist
- Pantry cool, dry and away from heat sources.
- Check cans every few weeks, and use the older ones soon.
- Discard anything bulging, leaking, heavily rusted or deeply dented.
- Refrigerate opened cans in a clean glass or plastic container for better flavor.
- Do not trust the look or taste of food from a suspect container.
- Treat home-canned low-acid food with extra care.
When in doubt
If you cannot tell whether a can or jar is sound, throw it out, and bag it so no one else finds it. That rule matters most when you are cooking for infants, older adults, pregnant people or anyone with a weakened immune system. A can of beans is cheap and a case of botulism is not.
Sources (2)
- USDA FSIS, Shelf-Stable Food Safety fsis.usda.gov
- USDA FSIS, Food product dating fsis.usda.gov