Use coffee beans within two to four weeks of roasting for the best flavor. After this, the beans lose their vibrant taste and aroma. Buying smaller amounts often ensures you have fresh beans.