Can Coffee Go Bad?

Roasted coffee beans in a small glass mason jar mug

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 opened whole beans and 1–2 weeks for ground coffee at room temperature, or 3–4 months for beans frozen airtight. 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 8 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. Why isn’t freshly roasted coffee always best?
  6. How should you store coffee beans?
  7. What can you do with stale coffee?
  8. 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.

The freshness timeline after you open the bag

  • Week one: usually the peak. The beans have degassed enough and aromas are still vivid.
  • Weeks two and three: a gradual decline. Still enjoyable, but subtler notes fade and the cup becomes more muted.
  • Beyond three weeks: generally stale: flat and dull, sometimes bitter. Still safe, but no longer what the roaster intended.

These are guidelines. Roast, storage and packaging all shift the timeline, and some coffees hold up for a month or more.

Roast date vs best-by date

Many supermarket coffees only show a best-by date. Specialty roasters print the roast date, which tells you exactly where the clock started. Aim to buy beans roasted within the last few weeks, in amounts you’ll use within a couple of weeks of opening. Our guide to the best whole bean coffee brands lists roasters worth starting with.

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 when you open the bag and when you grind it; stale coffee smells faint or of nothing much, and tastes flat, papery or hollow, sometimes bitter or sour. That coffee is still drinkable.

Watch the bloom. Fresh grounds bubble up when hot water first hits them. Little or no coffee bloom is a sign the coffee has gone stale.

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, and coffee also absorbs moisture and odours from around it. 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.

Roast level and packaging

Darker roasts are more porous and often oilier, because the longer roast breaks down more of the bean’s structure, so they tend to stale faster than lighter roasts. Very oily beans can also turn rancid sooner. Lighter roasts, with more of the cell structure intact, usually hold their flavour longer.

Packaging matters too. Choose bags with a one-way valve and a resealable closure. Some roasters also flush bags with nitrogen to push out oxygen, which helps unopened bags last longer. If the bag can’t be resealed, move the beans to an airtight container as soon as you open it. This matters most for ground coffee, which has more surface area to oxidise.

Why isn’t freshly roasted coffee always best?

Beans can be too fresh. Right after roasting they release a lot of carbon dioxide that was trapped inside during the roast. This is called degassing. While that gas is bubbling out (you see it as the bloom), it pushes water away from the grounds and can prevent full, even extraction. Brewing very fresh beans won’t taste bad as such, but the cup is less predictable and often lacks clarity and sweetness. Espresso is affected most, because gas in the puck causes the most trouble.

Coffee bag with a one-way degassing valve

Why do coffee bags have one-way valves?

The CO2 keeps leaving the beans even inside a sealed bag. The small round plastic valve on many coffee bags lets that gas out without letting outside air in, so the bag doesn’t burst and the beans aren’t exposed to oxygen while they degas. A bag without one either has to let the gas out some other way, which lets air in, or the beans were packed after most degassing had finished.

How long should beans rest before brewing?

It depends on how you brew. A common rule of thumb is around 10 days for pour-over and French press, and 14–28 days (sometimes longer) for espresso. Light roasts generally need longer than dark roasts, which degas faster. Keep the beans airtight, away from heat and light, while they rest.

The roaster, roast profile, brewing equipment and your own taste all play a part, so experiment. In my experience coffee tastes best before the 6-week mark after roasting; past that point you may taste a difference, although the coffee is still safe to drink. Brew a bag across its life and note when it tastes best to you.

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.

What can you do with stale coffee?

  • Cold brew: the slow, cold extraction is gentler and can hide some staleness.
  • Cooking and baking: use it in cakes, brownies or rubs. See cooking with coffee.
  • Scrubs and compost: used grounds make a body scrub or compost material.

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.

How long do coffee beans last after opening?

For the best flavour, use whole beans within about 1–3 weeks of opening, stored airtight in a cool, dark place. They stay safe to drink much longer, but taste flatter.

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.

Does unopened coffee go stale?

More slowly. Sealed bags with a valve, especially nitrogen-flushed ones, protect the beans, but they still age. Check the roast date and use them within the roaster’s recommended window.

How long does coffee last in the freezer?

Whole beans frozen in a truly airtight container keep their flavour for about 3–4 months. The National Coffee Association suggests taking out no more than a week’s worth at a time and returning the rest before condensation forms on the beans.

Can you brew coffee the day it’s roasted?

You can, and it won’t taste bad as such, but the heavy degassing makes extraction less predictable, and the cup often lacks clarity and sweetness. A longer bloom helps if you do. A very vigorous bloom means the coffee is fresh, not necessarily at its best, and the beans may benefit from a few more days’ rest.

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 this guide

See more Coffee Informer on Google. Add us as a preferred source and our guides show up more in your Top Stories and AI results.

Add as a preferred source on Google

Leave a Comment