How long does margarine last?
Unopened, it keeps in the fridge for about 6 months.
Product: Margarine in a tub.

Shelf life of margarine at a glance
| Storage | Unopened | Opened |
|---|---|---|
| Fridge | 6 months | – |
| Freezer | 12 months | – |
Margarine picks up other odors, so keep the tub tightly closed in the fridge. Throw it out if it smells or tastes rancid. To freeze it, put the unopened tub in a freezer bag as well.
Does margarine go bad?
Food past its date has not necessarily gone bad. The times on this page are guideline values for food stored properly. In the US, date labels are not required by federal law (infant formula is the exception), and most of them describe quality, not safety. A "Best if Used By" date is not an expiration date, and many products are still fine after it. A "Sell By" date is meant for the store, not for you. Look at the food and smell it before you taste a little. Mold, an off smell or a bulging can or lid means it goes in the trash. Take a "Use By" date on perishables such as meat, fish, deli meats and dairy seriously: eat or freeze them by that date.