There are many factors that go into a coffee’s shelf life. Sealed coffee will generally stay fresh for 3-5 months for ground coffee while sealed whole bean coffee can keep its freshness for 6-9 months. Once coffee is opened, you generally should drink it within 2-3 months for ground and 3-5 months for whole bean.