How to Store Flour, Sugar, Rice, and Other Dry Goods

What good dry goods storage looks like

Flour, sugar, rice, pasta, oats, and cornmeal are some of the most useful foods in a pantry, and some of the easiest to store badly. Torn bags spill, open packages collect moisture and crumbs, and staples bought in bulk can sit long enough to lose quality. Good storage keeps each staple dry, sealed, easy to see, and used in the right order.

This guide covers where dry goods keep best, when to use original packaging or containers, how to size and label containers, and how to reduce problems with moisture and pantry pests. Storage times and food-handling points below are drawn from university extension and USDA resources, listed in the sources at the end. Storage times are for best quality and are general guidelines, not exact rules.

Choose a cool, dry spot

Where dry goods sit matters as much as what they are stored in. New Mexico State University Extension recommends storage areas that are cool, dry, and free from temperature swings, away from heat sources and appliances. Its guide suggests about 50°F for best quality, with 60 to 70°F acceptable, and advises keeping foods in the coolest kitchen cabinets rather than near the oven, stove, or refrigerator exhaust (NMSU Extension).

In practice, that usually means a pantry or cabinet on an inside wall, away from the range and dishwasher. The same guide notes that keeping stored food off the floor helps prevent contact with moisture, so a low shelf is a better home for bulk bags than the floor itself.

Original packaging or containers?

Paper flour bags, cardboard boxes, and thin plastic bags are designed for shipping and display, not long-term pantry storage. Once a package is opened, it is harder to close tightly, and it offers little protection against pests. University of Maryland Extension advises against storing products in plastic bags or cardboard boxes, because insects can chew through them (UMD Extension).

For grains and cereals, NMSU Extension recommends airtight containers for the longest storage time once packages are opened, and suggests metal, glass, or plastic containers, or bags with tight-fitting zippers or lids, to keep out moisture, air, and insects (NMSU Extension). Two practical approaches both work:

  • Decant on opening. Keep unopened packages together as backup stock, and move each one into a container when you open it.
  • Contain the whole package. For items used slowly or in odd sizes, place the opened package inside a larger lidded container instead of decanting.

Choosing and sizing containers

The seal is the most important feature. University of Maryland Extension notes that many pantry pests are small enough to crawl under loose-fitting lids, and describes glass jars that seal with rubber gaskets as the best option (UMD Extension). Beyond the seal, a few practical points help:

  • Size to the package you buy. A container that holds a full bag of flour or rice means no leftover partial bag sitting beside it.
  • Pick shapes that suit the shelf. Square and rectangular containers use shelf space more efficiently than round ones.
  • Choose a wide opening for items you scoop, such as flour and sugar, and a pour spout or narrower top for rice and oats if you prefer pouring.
  • Empty and wash before refilling. The University of California IPM program advises washing old containers before filling them with new food and not mixing old and new food together (UC IPM). Let containers dry fully before refilling.

If you are comparing container systems, our guide to airtight containers for pantry staples looks at modular plastic, clear latching, glass clamp, and budget options by use case.

Staple-by-staple notes

White and all-purpose flour

University of Illinois Extension, citing USDA guidance, lists about 6 to 8 months in the pantry for all-purpose flour for best quality, with longer times in the refrigerator or freezer, and recommends storing flour in an airtight container in a dark, cool, dry place (University of Illinois Extension).

Whole wheat and whole grain flour

Whole wheat flour contains oil in the germ, which goes rancid faster than all-purpose flour, according to University of Illinois Extension. The same source lists about 3 to 6 months in the pantry, 6 to 8 months in the refrigerator after opening, and about 1 year in the freezer, for best quality (University of Illinois Extension). NMSU Extension also notes that whole wheat flour can be refrigerated to slow rancidity of its natural oils (NMSU Extension). If you bake with it only occasionally, the refrigerator or freezer is often the better home.

Sugar

NMSU Extension advises keeping sugar in an airtight container for best storage, and its storage table lists granulated, brown, and confectioner's sugar at 18 to 24 months (NMSU Extension).

Rice

NMSU Extension's storage table lists a shorter pantry time for brown rice (12 months) than for white rice (24 months) (NMSU Extension). If you buy brown rice in larger amounts, it makes sense to keep a smaller container in the pantry and use it in turn, rather than holding a large supply for a long time.

Pasta

NMSU Extension lists dry pasta at 24 months unopened and 1 year once opened (NMSU Extension). Opened boxes are easy to spill and hard to reseal, so a tall container or a lidded bin keeps partial packages together.

Oats, cereals, and cornmeal

NMSU Extension recommends storing cereals at room temperature in tightly closed containers to keep out moisture and insects, and notes that refrigeration may prolong the shelf life of cornmeal (NMSU Extension).

For other items, the USDA FoodKeeper tool lists storage guidance for a wide range of foods.

Where each staple fits best

Putting the guidance above together, a simple plan for most kitchens looks like this:

  • Pantry, in airtight containers: white flour, sugar, white rice, pasta, oats, and cereals you use regularly.
  • Refrigerator or freezer: whole wheat and whole grain flours you do not use quickly, and cornmeal if you want to extend its shelf life.
  • Freezer, for occasional use: the UC IPM program suggests keeping infrequently used foods such as flours, spices, and grains in the freezer if possible, to help prevent pest problems (UC IPM).
  • Away from heat: keep all dry goods away from the stove, oven, dishwasher, and refrigerator exhaust.

Moisture and pantry pests

Moisture and insects are the two most common problems with stored dry goods, and the same habits help with both.

  • Keep humidity down. University of Maryland Extension notes that most stored product pests multiply faster at higher humidity and recommends a cool, dry storage place (UMD Extension). For dried fruits and vegetables, NMSU Extension notes that foods that gain moisture may become unsafe, and recommends keeping them cool in airtight containers (NMSU Extension).
  • Use tight-fitting lids. The UC IPM program recommends containers with tight-fitting lids rather than plastic bags (UC IPM).
  • Know the common pests. According to UC IPM, the Indian meal moth is the most common moth found on food products in the home, and several beetles also attack stored foods (UC IPM).
  • Inspect and clean. UC IPM advises cleaning shelves and storage areas regularly and throwing away any food that shows evidence of infestation (UC IPM).

Labeling and rotation

NMSU Extension describes labeling and first in, first out rotation as the keys to storing and using food effectively. It suggests writing the contents and the date stored on dried foods, adding new items at the back so the oldest are used first, and sorting through stored food once a month (NMSU Extension).

For decanted staples, a simple label on the front of each container with the item name and the date it was filled is enough. If a package has a best-by date you want to keep, cut it out and tape it to the container, or write it on the label. When you refill, empty and wash the container rather than topping it up, so older food does not linger at the bottom.

For more ideas on organizing the rest of your kitchen, see our kitchen and pantry articles.

Sources

FAQ

Should flour be stored in the refrigerator?

White flour is commonly kept in the pantry in an airtight container. Whole wheat flour contains oil in the germ that goes rancid faster, and University of Illinois Extension lists longer best-quality storage times for it in the refrigerator or freezer than in the pantry.

Can I keep dry goods in their original bags and boxes?

Unopened packages can stay together as backup stock, but once opened, extension services recommend containers with tight-fitting lids. University of Maryland Extension notes that insects can chew through plastic bags and cardboard boxes.

How do I keep pests out of flour and rice?

Store them in containers with tight-fitting lids in a cool, dry place, clean shelves regularly, and keep infrequently used flours and grains in the freezer if possible, as the UC IPM program suggests. Throw away any food that shows signs of infestation.