❧ The Thrifty Larder

A well-kept pantry, a shorter grocery list, and less food in the trash.

Home › Pantry & Storage

What "Best By" Really Means on the Food in Your Pantry

By Dee Harlan · · 8 min read

My sister came to stay with us for a week in September and decided, out of kindness, to clean my pantry while I was at the dentist. When I came home there were two full grocery bags by the back door. Crackers, a jar of peanut butter, three cans of tomatoes, a box of pancake mix, a bottle of barbecue sauce, and more.

"All expired," she said, proud of herself.

I did not have the heart to tell her that nearly everything in those bags was perfectly good. I just quietly carried them back in after she went to bed. But it got me thinking about how many of us, me included for most of my life, read the date on a package as a deadline. Past the date means spoiled. Into the trash.

It is not that simple, and believing it is costing families real money. When I ran a school cafeteria, I had to understand food dates for my job. Here is what I learned, put into plain words for a home kitchen.

The dates are mostly about quality, not safety

This is the part that surprised my sister. According to the USDA, outside of infant formula, product dating is not required by federal law. The dates you see on most packages are put there by the manufacturer, and for the most part they tell you how long the food will be at its best quality, not when it becomes unsafe.

The common phrases mean different things:

  • "Best if used by" or "Best by" means the food will have its best flavor and texture before that date. After it, the food may be a little less fresh, but it is not unsafe because of the date alone.
  • "Use by" is the last date the maker recommends for peak quality. For most foods it is still a quality date. The exception, again, is infant formula, where the use-by date should be followed.
  • "Sell by" is for the store, so they know how long to display it. You are not expected to eat it by that date. Many foods are fine for days or weeks after.
  • "Freeze by" means freeze it before that date to keep its quality.

None of this means food lasts forever. It means the date is a starting point for your judgment, not a substitute for it.

How long pantry staples typically keep

These are the ranges I use as rough guides for unopened shelf-stable food stored in a cool, dry cabinet. They come from general food storage guidance and my own experience in the cafeteria storeroom and at home. Your results depend heavily on how warm your kitchen is.

  • Canned high-acid foods like tomatoes, fruit, and pickled vegetables: USDA guidance says about 12 to 18 months for best quality.
  • Canned low-acid foods like green beans, corn, beans, meat, and most soups: USDA guidance says about 2 to 5 years.
  • Dry pasta: about a year or two past the date is usually fine; it may get a little more brittle.
  • White rice: keeps a very long time when sealed.
  • Crackers, chips, and cereal: they go stale, not dangerous. Past the date you may notice them softening. A few minutes in a low oven brings crackers back.
  • Peanut butter: unopened, usually several months past the date; opened, it can go rancid sooner, which you will smell.
  • Cooking oils: they go rancid with time and heat, which you will smell and taste. Keep them away from the stove.
  • Baking powder: loses its power over time. Test it by stirring half a teaspoon into a few tablespoons of hot water. If it fizzes well, it still works.
  • Baking soda: test with a splash of vinegar. Fizzing means it is fine.
  • Spices: they do not spoil, they fade. Ground spices lose most of their punch after a couple of years.

When to throw a can away no matter what the date says

This is the most important section in this piece, so please read it carefully. The date on a can matters much less than the condition of the can. Some damage can let bacteria in, including the kind that causes botulism, which is rare but very dangerous.

Throw a can away, without opening it and without tasting it, if:

  • It is bulging or swollen at either end.
  • It is leaking or sticky on the outside.
  • It has a deep dent, especially one on the top or bottom seam or along the side seam. A dent you could lay your finger into is a deep dent.
  • It is rusted in a way that does not wipe off, especially around the seams.
  • It spurts liquid or foam when you open it.
  • The food smells bad or looks cloudy or moldy when you open it.

Small, shallow dents on the side of a can away from the seams are generally not a problem. But if you are not sure, my rule is the one we used in the cafeteria: when in doubt, throw it out. A can of beans costs about a dollar. It is not worth it.

When you throw out a bulging or leaking can, wrap it in a plastic bag first so nothing spills, and wash your hands and the counter afterward.

How I check food that is past its date

For everything else, here is the routine I go through before deciding. It takes about thirty seconds per item.

  1. Look at the package. Is it intact? Is a box damp, torn, or stained? Is the seal on a jar still tight, with the lid's center button pushed down?
  2. Look at the food. Any mold, discoloration, bugs, or webbing? Has it clumped in a way it should not have, which might mean moisture got in?
  3. Smell it. Oils, nuts, whole-grain flours, and brown rice smell sharp or paint-like when rancid. Crackers and cereal smell stale, which is not harmful, just unpleasant.
  4. Taste a tiny bit, but only for dry goods. If a cracker or a piece of cereal looks and smells fine, a small taste will tell you if it is stale. Never taste food from a damaged can or anything that looks or smells off.

If it passes all of that, I use it. If it fails any of it, out it goes.

Refrigerated food is a different story

Everything above is about unopened shelf-stable food. Refrigerated foods like milk, meat, eggs, and deli items are another matter, and I am more careful with them. Even then, the dates are usually about quality, but perishable foods can spoil and grow bacteria you cannot see or smell.

A few rules I follow, based on USDA guidance:

  • Keep the refrigerator at 40°F or below. Put a thermometer in it. Many are warmer than people think.
  • Raw ground meat and poultry: cook or freeze within one to two days of buying.
  • Leftovers: eat within three to four days, or freeze them.
  • Eggs: stored in the refrigerator, they often keep well for three to five weeks after you buy them.
  • Opened canned food: move it to a glass or plastic container, cover it, and use it within a few days.

Opened jars and bottles

Once you open a jar, the printed date stops meaning much, and the clock starts over. Condiments are where I see the most confusion, so here is how I handle the ones in our refrigerator door:

  • Ketchup and mustard hold up a long time once opened if they are refrigerated. Mustard may dry out or separate before it ever spoils.
  • Mayonnaise should stay cold and be used within about two months of opening, in my experience. If it smells sour or looks discolored, toss it.
  • Jams and jellies keep for months in the refrigerator. Mold on top means the whole jar goes, not just the top.
  • Salsa and pasta sauce from a jar are good for roughly a week or so after opening. Write the date you opened them on the lid.
  • Pickles keep a long time as long as they stay under the brine.

I write the opening date on the lid of every jar with a marker. It takes two seconds and saves me from guessing a month later.

The money side

I am not going to give you a big statistic, because I do not have one I can stand behind. What I can tell you is what I saw at my own house. When I went through those two bags my sister set out, the food in them would have cost roughly thirty dollars to replace at our local store. Not one item was spoiled. A couple of the crackers were a bit soft. The pancake mix made perfectly good pancakes that Sunday.

If you throw out food every time it passes the printed date, you are probably throwing out more than you think. And you are buying it again.

A few habits that keep me from needing to decide at all

The easiest way to avoid the "is this still good" question is to use things before they get there:

  • Rotate. Put new groceries behind old ones so the oldest gets used first.
  • Write the date you bought it on the package in big numbers. It tells you how long it has been in your house.
  • Buy what you will use. A six-month supply of canned tomatoes is useful. A three-year supply is not.
  • Keep the pantry cool. The cabinet next to the stove is the worst place for oils, nuts, and whole grains.
  • Freeze nuts and whole-wheat flour if you do not use them often. They keep far longer cold.

What I told my sister

The next time she visited, I sat her down with a cup of coffee and walked her through all of this. She was skeptical at first. Then I showed her the can rule, the dent you could lay a finger in, and she went right to my cabinet and pulled out a can of cranberry sauce with a crease along the seam that I had missed. Out it went.

So she was right about one thing after all. The trick is knowing which thing. Look at the can before you look at the date, trust your nose for the rest, and stop throwing good food away just because the calendar turned.

Dee Harlan writes for The Thrifty Larder. Read more about our writers and how we test what we publish.