Roasted coffee starts changing the day it leaves the roaster. For the first few days it’s full of carbon dioxide, which gets in the way of espresso far more than filter; then it opens up, peaks and slowly goes flat. Whole beans do this over weeks. Ground coffee does a lot of it in minutes.
The typical timeline for whole beans
These are the stages our Freshness tool uses, counted in days since the roast date on the bag, for beans brewed as filter coffee.
The day counts are the Freshness tool’s typical windows, built on practical advice rather than on a measured curve. James Hoffmann’s rules in The World Atlas of Coffee are to buy within two weeks of roasting and use the coffee within a month, because it’s “at its most vibrant during the first few weeks”. The boundaries after a month (fading from day 31, stale from day 60) are our own guide, not a rule from any study.
The resting days come from Hoffmann and Scott Rao. For espresso at home Hoffmann recommends at least three to four days between roasting and brewing, and the Freshness tool rests espresso beans through day 6, a little longer than he suggests; Rao explains in Espresso Extraction that the gas pushes back against the water in a shot and forces a coarser grind. For filter coffee Hoffmann says the rest matters less, though he finds coffee tastes better after two to three days than straight off the roaster, and Rao writes that in an open brewer most of the gas escapes into the air above the slurry without significantly affecting extraction or flavor. So the tool calls filter beans very fresh and fine to brew from day 0. If your espresso beans pull well sooner, use them.
Stale coffee isn’t unsafe. Hoffmann notes that coffee is considered shelf stable and safe to drink two years after roasting, “but it will taste pretty terrible at that point.” He describes stale coffee as tasting flat, woody and “vaguely of cardboard”.
What staling actually is
In The Physics of Filter Coffee, Jonathan Gagné describes three things happening at once:
- Carbon dioxide leaves. Roasting fills the beans with CO₂, and they slowly lose it. It doesn’t affect the taste of filter coffee directly, but it interferes with extraction, which is one reason very fresh beans are often rested. In a bag with a one-way valve, it also pushes oxygen out and protects the beans.
- Aromas escape. Aroma compounds leave at different rates, so a coffee’s smell and taste shift as it ages before they fade overall. Moisture speeds this up.
- Oils come to the surface and oxidize. Oils migrate outward over days to months, faster in darker roasts and decaf, and turn rancid once they meet oxygen. Fresh beans usually don’t look oily, so a glossy bean is usually a sign of age, a dark roast, or both.
He lists the enemies of freshness as time, heat, moisture, oxygen and UV light. Our guide to storing coffee beans turns those into everyday decisions.
Darker roasts move faster
The sources agree on the direction. Samo Smrke and colleagues at the Zurich University of Applied Sciences measured whole beans degassing for weeks: the darker the roast, the more gas came out and the faster it came. At medium and dark roast levels, roasting faster had the same effect; in their light roasts it didn’t. Even their light roast, kept warm at 95°F (35°C), was still degassing a month after roasting. Gagné adds that darker roasts lose aromas faster because their pores are larger, and Hoffmann writes that “the darker the coffee has been roasted, the faster it will go stale.”
None of them gives day counts by roast level, so the Freshness tool uses one set of windows for every roast, and we don’t print separate ones. Going by the direction they agree on, a dark roast will likely open up and fade a little sooner, and a light roast that tastes sharp and thin in its first week may simply need more rest.
Ground coffee runs on a different clock
Grinding breaks open the pores that hold the gas. Smrke’s team found that for freshly roasted coffee, up to 75% of the trapped gas was released during and immediately after grinding, within about 90 seconds. They cite earlier studies that measured 40% to 73% lost within the first few minutes. Gagné explains that aromas degas much like CO₂, and that a ground particle gives oils a far shorter path to the surface than a whole bean does.
You’ll often read that ground coffee is stale 15 to 30 minutes after grinding. Treat that as a rule of thumb, not a measured threshold: the measurements above are of gas, and how soon the lost aroma becomes something you can taste depends on the coffee, the grind and how you brew. The safe habit is Hoffmann’s: buy whole beans and grind them yourself, just before you brew. If you buy pre-ground coffee, the National Coffee Association’s advice is to keep it in an airtight container and buy smaller batches.
Sealed bags, opened bags
A good bag changes the picture. Many roasters use foil bags with a one-way valve that lets gas out without letting air in. Hoffmann notes that coffee goes stale more slowly in these, and most slowly of all in bags flushed with nitrogen, but once a bag is opened the staling speeds up.
Gagné goes further. In a blind tasting, he couldn’t tell a fresh bag from a three-month-old bag of the same coffee from the same roaster, as long as the old bag had never been opened. Every time a bag is opened, moisture and oxygen get back in, at a point when there’s little gas left to push them out.
That’s one taster’s comparison, and the Freshness tool doesn’t model it: it counts from the roast date whether the bag is sealed or opened, adds a note that opened bags go stale faster, and says the bag can move its windows by days to weeks.
Slowing the clock
You can’t stop staling, but you can slow it:
- Keep whole beans sealed, cool, dark and dry, in the roaster’s bag with the air pressed out or an airtight container. The storage guide compares bags and canisters.
- Freeze what you won’t use within about two weeks. Gagné writes that freezing, done properly, can keep coffee fresh for up to a year or more. Our freezing guide covers the method.
- Buy coffee with a roast date. Hoffmann notes that supermarket coffee often carries a best-before date 12 to 24 months after roasting, which says nothing about when it was roasted. Look for the roast date on the bag.
The bloom is a weaker clue. Fresher coffee usually bubbles more when the water hits it, but the size of the bloom also depends on the roast, so it isn’t a reliable test of age on its own.
Sources
- Jonathan Gagné, The Physics of Filter Coffee (2021), chapter 8, “Freshness,” §§8.1–8.5, pp. 159–165
- James Hoffmann, The World Atlas of Coffee, revised edition (Mitchell Beazley, 2018), “Buying and Storing Coffee,” pp. 62–65 (“Golden rules for fresh coffee,” “Freshness,” “Staling,” “‘Resting’ coffee” and “Packaging coffee”)
- National Coffee Association, “Storage and shelf life,” About Coffee (aboutcoffee.org), checked October 15, 2026: aboutcoffee.org
- Scott Rao, Espresso Extraction: Measurement and Mastery (2013), chapter 8, “Roast Age,” and chapter 9, “Grinding” (resting beans for espresso and for filter brewing)
- Samo Smrke, Marco Wellinger, Tomonori Suzuki, Franz Balsiger, Sebastian E. W. Opitz and Chahan Yeretzian, “Time-Resolved Gravimetric Method To Assess Degassing of Roasted Coffee,” Journal of Agricultural and Food Chemistry 66, no. 21 (2018): 5293–5300, Introduction and Results (“Whole Roasted Coffee Beans”; “Roast and Ground Coffee”): doi.org/10.1021/acs.jafc.7b03310