Shelf life is the length of time that a commodity may be stored without becoming unfit for use, consumption, or sale. In other words, it might refer to whether a commodity should no longer be on a pantry shelf (unfit for use), or no longer on a supermarket shelf (unfit for sale, but not yet unfit for use). It applies to cosmetics, foods and beverages, medical devices, medicines, explosives, pharmaceutical drugs, chemicals, tyres, batteries, and many other perishable items. In some regions, an advisory best before, mandatory use by or freshness date is required on packaged perishable foods. The concept of expiration date is related but legally distinct in some jurisdictions.
Shelf life is the recommended maximum time for which products or fresh (harvested) produce can be stored, during which the defined quality of a specified proportion of the goods remains acceptable under expected (or specified) conditions of distribution, storage and display.
According to the United States Department of Agriculture (USDA), "canned foods are safe indefinitely as long as they are not exposed to freezing temperatures, or temperatures above 90 °F (32.2 °C)". If the cans look okay, they are safe to use. Discard cans that are dented, rusted, or swollen. High-acid canned foods (tomatoes, fruits) will keep their best quality for 12 to 18 months; low-acid canned foods (meats, vegetables) for 2 to 5 years.
"Sell by date" is a less ambiguous term for what is often referred to as an "expiration date". Most food is still edible after the expiration date. A product that has passed its shelf life might still be safe, but quality is no longer guaranteed. In most food stores, waste is minimized by using stock rotation, which involves moving products with the earliest sell by date from the warehouse to the sales area, and then to the front of the shelf, so that most shoppers will pick them up first and thus they are likely to be sold before the end of their shelf life. Some stores can be fined for selling out of date products; most if not all would have to mark such products down as wasted, resulting in a financial loss.