If you really must know how long food can go before it may taste “off,” here are some general thresholds.
Low Acid Canned food
This includes canned meat, poultry, stews, pasta products, and soups(not tomato soup). This also covers potatoes, corn, carrots, spinach, beans, peas, and pumpkin. According to the USDA, low-acid canned food can last for 2 to 5 years and 3-4 days after opening if stored in a refrigerator.
High Acid Canned Food
This includes juices, tomatoes, pickles, and fruits like grapefruit, pineapple, apples, peaches, plums, pears, all berries, and all foods with vinegar dressings. These will last 1-2 years on the shelf and 5-7 days after opened if stored in a refrigerator.