29 October 2026
How long do pantry staples last
Flour, rice, lentils, spices and tins are the foods nobody dates. They rarely turn dangerous on a shelf. They go stale, rancid, damp or buggy, and the clock speeds up the day the bag is opened.
Short answer. Most dry cupboard foods carry a best-before date. That date is about quality, and food stored correctly is usually still safe after it. USDA FoodKeeper gives unopened white rice and dry pasta 2 years, white flour 6 to 12 months, ground spices 2 to 3 years and canned tuna 3 years. Opening shortens the window: opened ground coffee drops to 3 to 5 weeks, and opened dried fruit to 1 month in the cupboard. Nuts and whole wheat flour keep far longer in the fridge. A swollen, leaking or deeply rusted can goes in the bin.
This page is about the shelf: the flour behind the rice, the spice jar from two moves ago, the tin at the very back. Cooked food has its own clock in how long leftovers last, and the freezer in how long food lasts in the freezer. The two dates on a label are explained in use-by versus best-before.
Best before is a quality date
The UK Food Standards Agency puts it plainly: use-by dates relate to safety, best before dates relate to quality. Its examples of best-before foods include dried foods such as pasta and rice, and tinned foods. After that date, it says, the food is usually safe to eat but may not be of the same quality. EFSA, the European Food Safety Authority, agrees: food stored correctly is still safe, but may lose some taste, texture or freshness. EFSA also cites a European Commission estimate that up to 10% of the 88 million tonnes of food wasted in the EU each year is linked to date labels.
In Turkey the two dates are STT (son tüketim tarihi, the one people call SKT) and TETT (tavsiye edilen tüketim tarihi). The Ministry of Agriculture and Forestry has published a guide on shelf-life dates for food labels, with a leaflet on the difference between them. Dry staples usually carry the TETT.
The words that carry the weight are “if stored correctly”. A dry food fails in a few predictable ways: it takes on moisture, its oils turn rancid, its aroma fades, insects find it, or the can is damaged. None of those reads the printed date.
The numbers, food by food
These windows come from USDA FoodKeeper, the storage database of the U.S. Department of Agriculture’s Food Safety and Inspection Service. They are quality guidance, and an unopened pack is counted from the day you bought it. A dash means FoodKeeper prints no time for that case. Linked foods have their own page with the full table and spoilage signs.
| Food | Unopened, cupboard | After opening |
|---|---|---|
| White flour | 6–12 months | 6–8 months in the cupboard, 1 year in the fridge |
| Whole wheat flour | 3–6 months | 6–8 months in the fridge |
| White rice, dry | 2 years | 1 year in the cupboard, 6 months in the fridge |
| Brown rice, dry | 1 year | 1 year in the cupboard, 6 months in the fridge |
| Dry pasta without egg | 2 years | 1 year |
| Dried lentils | 1 year | 1 year |
| Dried chickpeas | 1–2 years | 1 year |
| Bulgur | 6–12 months | — |
| Ground spices | 2–3 years | 2–3 years |
| Whole spices | 3–4 years | 3–4 years |
| Ground coffee, not vacuum-packed | 3–5 months | 3–5 weeks in the cupboard, 1–2 years in the freezer |
| Whole coffee beans | 3–5 months | 3–5 months in the cupboard, 3–4 months in the fridge |
| Instant coffee | 1 year | 2–3 months |
| Tea bags | 18–36 months | 6–12 months |
| Loose-leaf tea | 2 years | 6–12 months |
| Dried fruit | 6 months | 1 month in the cupboard, 6 months in the fridge |
| Olive or vegetable oil | 6–12 months | 3–5 months in the cupboard, 4 months in the fridge |
| Peanut butter | 6–24 months | 2–3 months |
| Honey | 2 years | — |
| Baking powder | 6–18 months | 3–6 months |
| Baking soda | 2–3 years | 6 months |
| Vinegar | 2 years | — |
Two foods have no real limit in FoodKeeper. Table salt is listed as keeping indefinitely. Sugar is listed the same way, with a note that it never spoils but is best used within 2 years of opening, and an after-opening window of 18 to 24 months.
Flour, rice, pasta and pulses
White rice and dry pasta are the long keepers: 2 years unopened, 1 year once open. Whole wheat flour is shorter than white because it keeps the oily germ of the grain, and FoodKeeper sends it to the fridge once opened. Brown rice follows the same logic. Old lentils and chickpeas are rarely a safety question: they take longer to soften and can stay hard in the middle, so use the older bag first.
What finishes a bag early is not the calendar. Look for small insects, fine webbing, holes in the bag, damp clumps, a musty smell, or a bitter note in whole wheat flour. If one bag is infested, throw it out, check the bags around it, and wipe the shelf.
Spices, coffee and tea: the flavour goes first
FoodKeeper lists ground spices at 2 to 3 years, whole spices at 3 to 4 years and chili powder at 2 years, before and after opening alike. Those are flavour windows. An old jar of cumin is usually not dangerous, just weak. Rub a pinch between your fingers: a faint smell and a faded colour mean a faded spice. Damp clumps, mould, insects or a musty smell mean the bin. Use a dry spoon, and do not shake the jar over a steaming pot.
Ground coffee is the clearest case of opening changing the clock: 3 to 5 months unopened, but only 3 to 5 weeks in the cupboard once open. For longer, FoodKeeper prints 1 to 2 years in the freezer. Whole beans hold 3 to 5 months even after opening. Tea is gentler, and FoodKeeper adds that matcha is the only tea that can be frozen after opening. Tea picks up smells, so keep it away from spices and coffee.
Nuts and dried fruit: the fridge wins
Nuts are full of oil, and oil turns rancid at room temperature. That is why FoodKeeper counts their cupboard time in weeks and their fridge and freezer time in months.
| Nuts, from purchase | Cupboard | Fridge | Freezer |
|---|---|---|---|
| Walnuts | 2–4 weeks | 9–12 months | 24 months |
| Shelled almonds | 4 months | 8 months | 10 months |
| Pistachios | 3 weeks | 12 months | 24 months |
| Shelled cashews | 2–4 weeks | 6 months | 12 months |
| Shelled raw peanuts | 4 weeks | 12 months | 24 months |
| Roasted nuts, opened | 1–2 weeks | 4 weeks | — |
A rancid nut smells of old paint or tastes bitter; there is no reason to finish the bag. Mouldy nuts should not be eaten at all. Dried fruit works the same way after opening: 1 month in the cupboard, 6 months in the fridge. A white bloom on dried figs or sugar crystals on raisins is sugar. Fuzzy growth, a fermented smell or webbing is not.
Oil, honey and the long keepers
Light and heat speed up rancidity in oil, so the shelf beside the stove is the worst place for the bottle. Olive oil may turn cloudy in the fridge and clears again at room temperature. Honey that crystallises is still honey: stand the jar in warm water. Foam, a sour or yeasty smell, or mould mean the jar is done. Baking powder and baking soda do not spoil dangerously; their windows are about whether a cake still rises.
Cans: read the can, then the date
FoodKeeper’s note on canned food is generous. It says canned items will be safe well past the use-by or best-by date as long as the can shows no dents, rust or swelling. The condition of the can is the real check.
| Can | Unopened, cupboard | Opened, in the fridge |
|---|---|---|
| Low-acid: fish, meat, beans, corn, peas, soups | 2–5 years | 3–4 days |
| High-acid: tomatoes, fruit, juice, pickles, foods in vinegar | 12–18 months | 5–7 days |
| Canned tuna | 3 years | 3–4 days |
| Tuna in a pouch | 18 months | 3–4 days |
| Canned coconut milk | 2–5 years | 4 days |
The U.S. Food and Drug Administration lists what damage looks like: swelling, leakage, punctures, holes, fractures, extensive deep rusting, or crushing and denting bad enough that the can will not stack or open with a normal wheel-type can opener. Stickiness on the outside can mean a leak. A newly bought can that leaks goes back to the shop; otherwise it goes in the bin. Do not taste the contents to decide.
Once a can is open, move what is left into a covered container in the fridge; the date on the tin no longer applies. The FDA also says not to store food near household cleaning products and chemicals, which rules out the cupboard under the sink.
Where a pantry goes wrong
Most cupboard waste comes from a handful of habits, not from age.
- Steam and heat. The cupboard above the kettle, the hob or the dishwasher is warm and damp several times a day. Keep flour, spices, coffee and oil somewhere cool and dry.
- Open bags. A clip lets in air and insects. Move opened dry goods to a jar or box with a tight lid.
- Wet spoons. Water in sugar, salt, spices or coffee brings clumps and, in the worst case, mould.
- A jar without a date. Pour rice into a jar and the best-before date stays on the bag in the bin. Write the product, that date and the opening day on a strip of tape.
- New bags in front. Put new packs behind the old ones, so the oldest is used first.
A ten-minute pantry system
Once per big shop, take one shelf. Bring the oldest packs to the front. Move opened nuts, dried fruit and whole wheat flour into the fridge. Throw out anything damp, mouldy, buggy or rancid, and any damaged can. Then save the day you plan to finish each opened pack: the opening day plus the window above, or the printed date, whichever comes first. A tracker cannot sniff the jar. It can make sure the jar is not forgotten, which is half of wasting less food and the point of tracking expiry dates.
Questions people ask in front of the cupboard
Is flour, rice or pasta safe after the best-before date?
Usually, if it was stored dry and sealed. The UK Food Standards Agency and EFSA both describe best before as a quality date. Check for insects, webbing, damp clumps, and a musty or rancid smell first. If any of those is there, throw it out.
Do spices expire?
They fade rather than spoil. USDA FoodKeeper lists ground spices at 2 to 3 years and whole spices at 3 to 4 years. A spice that is damp, mouldy or full of insects goes in the bin regardless of age.
Should nuts be kept in the fridge?
For anything longer than a few weeks, yes. FoodKeeper gives walnuts 2 to 4 weeks in the cupboard but 9 to 12 months in the fridge and 24 months in the freezer. Rancid or mouldy nuts should not be eaten.
How long does an opened can last in the fridge?
Move the food out of the can into a covered container. FoodKeeper gives low-acid foods such as fish, meat, beans and corn 3 to 4 days, and high-acid foods such as tomatoes, fruit and pickles 5 to 7 days.
Is a dented can safe?
FoodKeeper ties its long window to a can with no dents, rust or swelling. The FDA treats denting bad enough to stop the can stacking or opening normally as damage, along with swelling, leaks and deep rust. When in doubt, throw it out without tasting.
Does honey go bad?
FoodKeeper lists honey at 2 years. Crystals are normal and melt in warm water. Foam, a sour or yeasty smell, or mould mean the jar should go.