Canned beans are also cost-efficient and may last up to 5 years in your pantry, reports FoodSafety.gov. However, though canned beans offer the same nutritional value as dried beans, their sodium levels tend to be higher, so it is recommended to always give canned beans a rinse before using this staple.