Can Coffee Go Bad?

filled coffee bean clear glass mug 2262812 scaled

Quick answer: Coffee rarely goes bad in the unsafe sense. Kept dry, beans and grounds don’t spoil, but they go stale and lose aroma within weeks: about 1–3 weeks for whole beans and 1–2 weeks for ground coffee at room temperature. Throw coffee out if it has got damp, smells musty or shows mould, or if it’s milky coffee left out over two hours.

Stale coffee in a chock full o nuts can.

If you’ve found an old bag at the back of the cupboard, the question is really two questions: is it safe, and will it taste any good? Here’s how to tell, how long each type of coffee lasts, and how to store it.

In this guide 6 sections
  1. Does coffee expire?
  2. How long does coffee last?
  3. How can you tell if coffee has gone bad?
  4. Why does coffee go stale?
  5. How should you store coffee beans?
  6. Frequently asked questions

Does coffee expire?

Not in the way milk does. Dry coffee doesn’t support mould or bacteria, so a best-by date on coffee is about flavour, not safety. What does happen is staling: aroma compounds evaporate and oils react with oxygen, so the coffee slowly turns flat and dull. Stale coffee is safe to drink; it just doesn’t taste like much.

How long does coffee last?

Type of coffeeBest flavour
Whole beans, room temperature1–3 weeks
Ground coffee, room temperature1–2 weeks
Roasted beans, refrigeratedAbout 2 weeks (not recommended)
Roasted beans, frozen airtight3–4 months
Instant coffee and podsUntil the best-by date
Source: National Coffee Association, storage and shelf life.

Unopened, sealed commercial coffee often carries a best-by date many months away and is safe well beyond it if it stays dry, but it won’t compare with freshly roasted beans. For a week-by-week freshness timeline, see how long coffee stays fresh.

How long does brewed coffee last?

Brewed coffee tastes best within about 30 minutes, after which it keeps oxidising and turns flat and bitter, faster still on a hot plate. Leftover black coffee can go in a covered container in the fridge, but drink it soon: it won’t taste as good as fresh (see why reheated coffee tastes bad). Coffee with milk or cream follows food-safety rules for dairy: don’t drink it if it has sat at room temperature for more than two hours, or one hour above 90°F, per USDA food-safety guidance.

How can you tell if coffee has gone bad?

Smell it. Fresh coffee smells strong; stale coffee smells faint or of nothing much, and tastes flat. That coffee is still drinkable.

Check for moisture. Coffee stored somewhere humid can absorb water from the air, and damp coffee can grow mould. Throw the whole batch out if you see any mould, because it can spread through grounds before it’s visible.

Don’t drink coffee that:

  • looks or feels wet or clumped from moisture;
  • shows any mould, or smells musty or mildewy;
  • is brewed coffee with milk left out over two hours.

Why does coffee go stale?

Coffee’s flavour doesn’t come from one molecule but from thousands of compounds, including oils, acids, sugars and volatile aromatics. After roasting, the volatile aromatics gradually evaporate and the oils react with oxygen. Heat, light and moisture speed this up. Ground coffee goes stale much faster than whole beans because grinding exposes far more surface to the air, which is why grinding just before brewing makes such a difference. Oxidation is invisible, but you can taste it: coffee brewed from old grounds tastes stale even straight from the brewer.

Stale coffee from grocery stores.

Freshly roasted beans also need a short rest before they taste their best, because they are still releasing CO2. We explain that in why fresher beans don’t always make better coffee.

How should you store coffee beans?

Properly storing your coffee beans by putting them in an airtight container with a spoon.

Coffee has four enemies: oxygen, heat, light and moisture.

Use an airtight, opaque container

  • Airtight: limits oxygen and keeps out moisture and odours.
  • Opaque: clear canisters let in light. A clear jar is fine only if it lives in a dark cupboard.
  • Non-reactive material: ceramic, glass or stainless steel won’t pass on flavours.
  • Optional vacuum canister: some canisters remove air or let CO2 out while keeping oxygen out.

Keep the container in a cool, dark cupboard, away from the oven, dishwasher and sunny counters.

Buy the right amount

Buy freshly roasted coffee in small batches you’ll finish in about two weeks, then buy more. Whole beans keep much better than pre-ground, which may have sat on a shelf for weeks. If you buy pre-ground, use it quickly.

Split beans into smaller containers

Coffee stored in small containers

Opening one big container every morning exposes all the beans to fresh air each time. Divide them into smaller containers so most of the coffee stays sealed until you need it.

Freeze for longer storage, not the fridge

The fridge is a poor choice: it’s humid, full of odours that coffee absorbs, and taking cold beans in and out causes condensation. The freezer works well for longer storage if you freeze beans in small, airtight, single-use portions and never refreeze them. See our guide to freezing coffee beans.

Consider green coffee beans

Green unroasted coffee beans

Unroasted green beans keep their quality for many months, far longer than roasted coffee. The catch is that you have to roast them yourself; see how to roast coffee beans at home. Learn more about green coffee beans.

Frequently asked questions

Can you drink expired coffee?

Usually, yes. If it’s been kept dry and shows no mould or musty smell, coffee past its best-by date is safe; it will just taste flat. Throw it out if it has got damp.

Does ground coffee go bad faster than beans?

Yes. Grinding exposes much more surface to air, so ground coffee loses flavour in about 1–2 weeks at room temperature, compared with 1–3 weeks for whole beans.

Can old coffee make you sick?

Dry, stale coffee won’t. The risks come from mould in coffee that got damp and from brewed coffee with milk left out too long. If in doubt, throw it out. Coffee itself, in moderation, can be part of a healthy diet; see is coffee good for you?

This article is for general information and isn’t medical advice.

Share

3 thoughts on “Can Coffee Go Bad?”

  1. It’s so helpful to know that you should try to keep the beans as dry as possible if you want them to stay fresh. My brother has a store that serves a lot of coffee throughout the day. He is going to try and buy a lot of coffee at once so that he doesn’t have to think about it as much anymore.

    Reply
    • I’m glad I could help. Please let me know if it helps you keep your coffee fresh for longer.

      Reply

Leave a Comment