Refried beans potentially go bad if they are left in the refrigerator for more than four days. The beans retain their best quality for one to two months in the freezer.
Storing refried beans in cans is not advisable. It is best to remove the beans from the can after opening, then store them in a plastic or glass container with an airtight cover. A heavy-duty freezer bag is acceptable for storing refried beans in the freezer for an extended amount of time. Unopened canned beans are good for two to five years or until the stamped expiration date. Discard cans if they are bulging or dented.