How long does uncooked macaroni stay fresh in a glass container?

Unopened dry elbow macaroni can be stored for up to 3 years unopened in the pantry. In a glass jar macaroni should still last for 1-2 years before it's advisable to be replaced by a new batch. After opening, it is best to store macaroni in an airtight container in a cool, dry place to maintain its freshness.