How long do onions last?
Unopened, they keep in the cupboard for about 1 month.
This refers to: Whole onions.

Shelf life of onions at a glance
| Storage | Unopened | Opened |
|---|---|---|
| Cupboard | 1 month | – |
| Fridge | 2 months | – |
| Freezer | 10 months | – |
Store whole onions cool, dark, dry and away from potatoes; they then often keep for months. Cut onions keep about 4 to 5 days in the fridge.
Past its date does not mean spoiled
These are guide values for food stored correctly. A best-before date is not a throw-away date: many products are still fine after it. Check how it looks, smells and tastes. Mould, an unusual smell or a bulging can are reasons to throw it away. A use-by date is different: do not eat the food after it.