Quick answer: stale, not spoiled
Coffee does not go bad the way milk does. What coffee does is go stale: it loses aroma and starts to taste flat. Here is how long it keeps, by the NCA's storage table:
| Coffee | How long it stays fresh (NCA) |
|---|---|
| Unopened package | Until the best-by date |
| Whole beans, room temperature | 1 to 3 weeks |
| Whole beans, refrigerated | 2 weeks |
| Whole beans, frozen | 3 to 4 months |
| Ground coffee, room temperature | 1 to 2 weeks |
Wikipedia's Coffee roasting article is stricter. It gives roasted coffee an optimal shelf life of two weeks and ground coffee about 15 minutes, and says whole beans can count as fresh for up to one month if kept cool. Both sources agree on the order: whole beans outlast ground coffee, and cool, dark, airtight storage beats a warm, bright counter.
Why coffee goes stale
The NCA names four enemies: air, moisture, heat and light. Wikipedia's roasting article says the same three things shorten shelf life, heat, oxygen and light, and that protecting coffee from them is how you extend it.
Grinding speeds everything up. Wikipedia's Coffee preparation article explains that ground coffee goes off faster than beans because far more of its surface is exposed to oxygen. That is why the 15 minute figure for grounds is so short next to two weeks for beans.
Fresh coffee also gives off carbon dioxide after roasting. Wikipedia notes that coffee has to de-gas for several days before vacuum packing, and that bags with pressure-relief valves let roasters pack it sooner. The little round valve on a roaster's bag is there for that gas.
How to store coffee so it keeps
- Use an opaque, airtight container. The NCA warns that clear canisters let in light, which harms the taste.
- Keep it somewhere cool. Not in the cabinet next to the oven or the dishwasher, and not where the afternoon sun hits, per the NCA.
- Buy smaller amounts. The NCA suggests buying enough for one or two weeks at a time.
- Grind just before you brew. Grind only the amount you need, right before brewing, the NCA says.
- Freeze only what you will not use soon. If you freeze or refrigerate beans, the NCA says to use a truly airtight container and take out no more than a week's worth at a time, so condensation does not build up on the rest.
Look at the roast date on the bag, not only the best-by date. The roast date tells you when the clock in the table above started.
Troubleshooting: is this coffee still good?
The bag smells like almost nothing
It is stale. The NCA says aged beans noticeably lose aroma. It is safe to brew, but the cup will be flat. Brew it anyway, and buy a smaller bag next time.
There is white fuzz or a musty smell
Throw it out. The NCA says moisture is what lets mold grow in coffee.
The coffee tasted great last week and dull this week
That fits the NCA table: whole beans at room temperature stay fresh for 1 to 3 weeks, ground coffee for 1 to 2. Next time, grind per pot, or freeze half the bag on the day you open it.
Beads of water on beans from the freezer
That is condensation, the thing the NCA warns about. Keep frozen coffee in a truly airtight container and take out only a week's worth at a time.
Does unroasted coffee go bad?
Much more slowly. Green coffee beans keep for months before roasting, which is why a roaster can hold a stock of green coffee and roast from it week by week.
The easiest fix: fresh coffee, in small amounts
The simplest way to avoid stale coffee is to buy it close to its roast date and in the amount you will drink before it fades. Several Montana roasters are built that way, according to their own pages read on September 27, 2026. Revel in Billings roasts to order. RamsHead ships within a day of roasting. Rock Creek roasts small batches inside its Billings shop so the coffee sells soon after roasting, and Philipsburg Coffee Roasters keeps a large stock of green coffee so it can roast bags fresh.
A roaster down the road has a shorter trip to your kitchen than a warehouse brand, and buying from one keeps a Montana roastery open. We explain that on our support local page.
A Montana roaster roasts your 12 oz bag to order, and the first promise is "Roasted and shipped within 3 days." You choose every 2 or 4 weeks, whole bean or ground. See how the club works: the first bag is free and you pay $7.99 shipping on that first box, then $16.99 a bag.
Coffee storage questions
Should I keep coffee in the refrigerator?
There is little to gain. The NCA's table gives refrigerated whole beans 2 weeks, about what they get on a cool shelf, and the fridge adds the moisture risk. If you do chill coffee, use a truly airtight container.
Does an unopened bag of coffee expire?
An unopened package keeps until its best-by date, the NCA says. Once you open it, the clock in the table above starts.
Is old coffee safe to drink?
Stale coffee is flat coffee: the NCA says beans lose aroma and taste flat as they age. If moisture has gotten in and mold has grown, throw it out.
How much coffee should I buy at once?
Enough for one or two weeks, the NCA suggests. For one 8 oz cup a day, a 12 oz bag lasts about three weeks, so a bag every 2 weeks suits a heavier drinker and a bag every 4 weeks a lighter one.
Sources
- National Coffee Association: Storage and shelf life (the NCA's consumer site)
- Wikipedia: Coffee roasting
- Wikipedia: Coffee preparation
- Wikipedia: Coffee processing, on green coffee storage
- Montana roaster facts: our roaster profiles, written from each roaster's public pages, read September 27, 2026