Whole coffee beans last 2–4 weeks after opening for peak flavor, or 1–3 months when stored in an airtight container away from light and heat. Ground coffee lasts just 1–2 weeks before flavor degrades significantly. For espresso specifically, most roasters recommend brewing within 7–14 days of the roast date for the best shot.

Coffee doesn’t “go bad” in the food safety sense — it won’t make you sick. But it does go stale, losing the aromatics and CO₂ that make it taste good. Here’s exactly how long it lasts under every condition.


Coffee Shelf Life at a Glance

FormOpened / After RoastSealed / Unopened
Whole beans (room temp)2–4 weeks (peak flavor)Up to 3–6 months
Whole beans (freezer)6–12 months (if frozen correctly)Up to 2 years
Ground coffee (room temp)1–2 weeks3–5 months (sealed bag)
Ground coffee (freezer)3–5 monthsUp to 2 years
Green (unroasted) beansN/A1–3 years
Instant coffee1–2 years after opening2–20 years sealed

How Long Do Whole Coffee Beans Last?

Whole beans last significantly longer than ground coffee because grinding dramatically increases the surface area exposed to air, moisture, and light — all enemies of freshness.

Opened bag at room temperature: 2–4 weeks of peak flavor. After that, the beans are still drinkable but noticeably flat, less aromatic, and missing the brightness of fresh coffee.

Sealed, unopened bag at room temperature: 3–6 months from roast date, sometimes longer for vacuum-sealed bags with one-way valves. However, “fresh” coffee is rarely more than a few weeks old when it reaches you — so this time frame rarely applies to freshly roasted specialty coffee.

Roast date vs. best-by date: Most specialty roasters print a roast date, not a best-by date. For espresso, aim to brew within 7–21 days of the roast date. For filter coffee (pour over, drip), within 2 days to 4 weeks post-roast. Very freshly roasted beans (0–3 days off-roast) can also taste underdeveloped because CO₂ is still degassing.


Does Freezing Coffee Beans Work?

Yes — if done correctly, freezing extends coffee bean shelf life to 6–12 months or longer with minimal flavor loss.

The rules for freezing coffee beans:

  1. Freeze in small portions — Divide beans into one-week portions before freezing. Only thaw what you’ll use in 7–10 days.
  2. Use airtight, moisture-free containers — Vacuum-sealed bags or airtight freezer containers work best. Oxygen and moisture are the enemies.
  3. Never refreeze — Once a portion is thawed, use it within 1–2 weeks. Do not put it back in the freezer.
  4. Let beans come to room temperature before opening — This prevents condensation from forming on the cold beans, which adds moisture.

Freezing does work for long-term storage (buying in bulk or preserving a special bag). It’s not ideal as a daily practice — constant thaw-freeze cycles damage the bean cell structure.


Does Refrigerating Coffee Beans Work?

No — the refrigerator is one of the worst places to store coffee beans. The refrigerator introduces two problems:

  1. Moisture — Coffee beans absorb odors and moisture from refrigerator air, especially near produce, leftovers, or open containers.
  2. Temperature fluctuations — Each time you open the fridge and take beans out, condensation can form on the cold beans.

If you want to extend shelf life beyond a few weeks, freeze (see above). If you’re going through coffee within 2–4 weeks, store at room temperature in an airtight container.


How Long Does Ground Coffee Last?

Ground coffee has dramatically shorter shelf life because grinding exposes the interior of the bean to oxygen. The cell walls that protected the aromatics are broken, releasing CO₂ and flavor compounds rapidly.

Ground coffee at room temperature: 1–2 weeks for peak flavor in an airtight container. After that, it becomes noticeably flat and stale.

Pre-ground grocery store coffee: Often vacuum-sealed or nitrogen-flushed, which extends the sealed shelf life to 3–5 months. But once opened, the same 1–2 week window applies.

Best practice for espresso: Grind fresh immediately before pulling each shot. Pre-ground espresso loses its body and crema potential within hours.


Signs Your Coffee Has Gone Stale

Stale coffee doesn’t look different — the beans still appear fine, even months later. You detect staleness by smell and taste:

  • No aroma: Fresh coffee smells intensely of roasted beans when you open the bag. Stale coffee smells faint, flat, or slightly like cardboard.
  • No crema (espresso): Espresso from fresh beans produces a thick, reddish-brown crema. Stale beans produce thin, pale, or nonexistent crema. The CO₂ needed for crema has already escaped.
  • Flat taste: Missing brightness, complexity, or the distinctive flavor notes of the roast. Just tastes generically “coffee-ish.”
  • Oily beans: Some dark roast beans develop surface oils naturally. But excessive oiliness combined with flat aroma usually means the beans are past their prime.

Best Way to Store Coffee Beans

The ideal storage: airtight container, at room temperature, away from light, heat, and moisture.

What to use:

  • A dedicated coffee canister with a one-way valve (allows CO₂ to escape without letting oxygen in) — the best option for daily use
  • Any airtight container (mason jar with a tight lid, ceramic canister, etc.) — excellent for 2–4 week use
  • The original bag with the one-way valve, rolled tight and clipped — acceptable if it seals well

What to avoid:

  • Refrigerator (moisture and odors)
  • Clear containers on the counter (light degrades coffee)
  • The bag open or loosely clipped (accelerates staling)
  • Storing near the stove or oven (heat)

The counter is fine — as long as it’s not in direct sunlight or next to a heat source.


Common Questions

Are 10-year-old coffee beans still good? No — not in any meaningful sense. The coffee is safe to drink but will taste like nothing. All volatile aromatics have long since evaporated. You’d be drinking hot, slightly brown water.

Can you use 2-year-old coffee beans? You can drink them, but they’ll be flat and stale. If they were vacuum-sealed and stored in a cool, dark place, they might have some flavor left — but expect a significant downgrade from fresh coffee. Green (unroasted) beans stored properly can last 2+ years; roasted beans cannot.

What is the 15-15-15 rule for coffee? This rule (sometimes cited by specialty roasters) refers to a freshness window: avoid brewing espresso within the first 15 hours after roasting (too much CO₂), between 15 and 15 days is the peak window, and after 15 days quality starts declining. The numbers vary by source and roast style, but the idea is the same: freshly roasted ≠ immediately optimal, and there’s a peak window to hit.

How long do coffee beans last after grinding? Ground coffee loses most of its distinctive flavor within 15–30 minutes of grinding. For espresso, grind fresh for every shot. For drip or pour over, grinding fresh immediately before brewing is also ideal — but pre-ground stored in an airtight container works acceptably within 1 week.

Do coffee beans expire? Coffee has a shelf life but doesn’t “expire” in a safety sense — it won’t make you sick after any normal storage period. What it does is lose flavor, aroma, and character. The “best by” date is about taste, not safety.


Freshness for Espresso Specifically

Espresso is particularly sensitive to coffee bean freshness because:

  1. Crema requires CO₂ — The pressurized extraction forces dissolved CO₂ out of the coffee to create crema. Stale beans have lost their CO₂ and produce thin or no crema.
  2. Flavor is magnified — The high pressure of espresso extraction concentrates flavors, including staleness. Problems that hide in drip coffee are obvious in espresso.
  3. Grind performance changes — Fresh beans have a brittleness that grinds into consistent particles. Stale beans grind differently, affecting extraction.

For home espresso, buy in quantities you’ll use within 3–4 weeks, or buy smaller bags more frequently if possible.