How to Store Dry Goods
By James Okafor· Reviewed by Rebecca Torres, RDReviewed 2026-06-01
Move every staple into an airtight container with a gasket seal, store at 50–70°F in the cool, dark pantry, freeze new grains for 3 days to kill moth eggs, and label with dates for FIFO. Whole-grain flours and brown rice go in the fridge or freezer.
Dry goods are the easiest food in the house to store — and the most likely to be stored badly. The enemies are the same four for everything: moisture, bugs, heat, and time. Learn the pattern once and rice, flour, pasta, sugar, and beans all follow the same rules.
Step 1 — Choose airtight containers
The container is the whole game. Move every staple out of its original bag or box into an airtight container with a gasket seal. Paper bags breathe — they let in moisture and pantry moths. A sealed container blocks both, and it blocks oxygen, which slows staleness and rancidity.
- Glass for flour and sugar — non-porous, no odor retention, easy to keep clean.
- BPA-free plastic for rice, pasta, and beans — light, stackable, shatterproof.
- Food-grade buckets for bulk and long-term storage — with oxygen absorbers for years-long storage.
Step 2 — Store in a cool, dark place
Temperature is the silent killer of dry goods. Above 75°F, oils go rancid, whole grains stale, and cans degrade faster. Keep staples at 50–70°F in a dark pantry or cabinet — never over the stove, above the fridge, or in direct sunlight. Moisture is the other half: the pantry must be dry, and every container must seal.
Storage tip
Check the environment, not just the containers: a cabinet over the dishwasher or next to the stove is too warm and too humid, even with perfect containers. Move the dry-goods zone to a cool, dry, dark spot and everything lasts measurably longer. ::
Step 3 — Freeze new grains
Bugs in the pantry almost always arrive in a package, not spontaneously. Rice, flour, and beans can carry pantry-moth eggs that hatch weeks later. Freeze every new bag for 3 days before moving it to its container — the cold kills the eggs. Then inspect as you fill: webbing, bugs, or stuck-together grains mean the bag goes out.
Step 4 — Label and rotate
Label every container with the food name and the fill date, then rotate FIFO — oldest in front, newest in back. A dated label tells you what's inside and which to use first, no opening required. The label guide has the full system.
Step 5 — Store whole grains cold
The one exception to the pantry rule: whole-grain products. Brown rice, whole-wheat flour, and rolled oats contain the oily germ of the grain, which goes rancid in months at room temperature. Store them in the fridge or freezer in airtight containers, where they keep 6–12 months or longer. Let cold flour warm to room temperature before baking.
Dry goods shelf life at a glance
Stored airtight at 50–70°F: white rice 2+ years, pasta 1–2 years, white flour 6–8 months, sugar years, dried beans years, canned food 2–5 years. Whole grains 3–6 months at room temperature, 6–12 months cold. See the shelf-life chart for every food's exact window.
For the containers themselves, see the pantry container guide, and for the zone layout, the pantry staples guide.
Frequently asked questions
What is the best container for dry goods?
An airtight container with a gasket seal — a silicone ring under a secure lid. Glass is ideal for flour and sugar (non-porous, no odors), and BPA-free plastic is great for rice, pasta, and beans. The seal matters more than the material: a gap in the lid defeats an expensive jar.
How long do dry goods last?
White rice 2+ years, dry pasta 1–2 years, white flour 6–8 months, sugar years, dried beans years, and canned food 2–5 years — stored airtight in a cool, dark, dry pantry. Whole-grain products last only 3–6 months at room temperature. Freeze whole grains to stop the clock.
How do you keep bugs out of dry goods?
Airtight containers are the main defense. Freeze new rice, flour, and beans for 3 days to kill any moth eggs before they hatch, and inspect packages before storing them. Clean spills immediately, and check for webbing or bugs during weekly rotation. One infested bag can seed the whole pantry.
What temperature should dry goods be stored at?
50–70°F, cool and dry. Heat above 75°F shortens shelf life for everything — especially oils, whole grains, and cans — and moisture causes mold, clumping, and bugs. A cool, dark, dry pantry is the single best storage upgrade; add airtight containers and you've built a proper dry-goods setup.
Should spices go in the pantry or fridge?
Pantry — cool, dark, and airtight. Spices lose potency to heat, light, and air, and the fridge's humidity makes ground spices clump. Store whole spices longer than ground (whole lasts 2–3 years, ground about 1 year). Keep them away from the stove, which radiates heat.
Sources
Shelf-life and temperature claims on this page are cited from tier-1 food-safety authorities. Always confirm current guidance before relying on dated information.
Written by
Senior food storage writer
James Okafor writes the shelf-life guides and storage-method instructions on Home Storage Guide, translating USDA, FDA, and CDC food-safety guidance into plain-language answers.
Get the storage cheat sheet
One short email a month with the exact shelf-life numbers that matter most — plus pantry organization tips. No spam, unsubscribe anytime.
Newsletter coming soon. We are setting up our email list — this is where you will be able to subscribe.
Your email is never shared. Read our privacy policy.