How long to rest coffee beans after roasting (and how long they stay fresh)
By the BrewLog team · Updated · 12 min read
Short answer
As a rule of thumb, rest freshly roasted coffee about 3 to 14 days for filter brewing and about 7 to 30 days for espresso, with light roasts usually needing the longer end and dark roasts the shorter. Whole beans in a sealed valve bag then taste their best for roughly 4 to 6 weeks after the roast date; once the bag is open, aim to finish it within about 2 to 3 weeks. Store beans airtight, opaque, cool and dry (not in the fridge), and freeze sealed portions if you need them to last longer. Ground coffee loses aroma within minutes, so grind just before brewing.
- Rest for filter
- About 3 to 14 days
- Rest for espresso
- About 7 to 30 days
- Best window, whole bean
- About 4 to 6 weeks off roast
- Opened bag
- Finish in about 2 to 3 weeks
- Ground coffee
- Brew within minutes
- Storage
- Airtight, opaque, cool, dry
Why does coffee need to rest after roasting?
Coffee needs to rest because roasting fills the beans with carbon dioxide, and that gas gets in the way of brewing. Roasting breaks down sugars and other compounds inside the bean and produces a lot of CO₂, which stays trapped in the bean's cell structure. Over the following days and weeks the beans slowly release it. This is called degassing.
When you brew coffee that is still full of gas, the CO₂ rushes out as soon as hot water hits the grounds. Those bubbles push water away from the coffee and create uneven paths through the bed, so some grounds extract too much and others too little. In a pour-over you see a huge, foamy bloom that keeps rising. In espresso you get a shot that gushes or sputters, with a thick, bubbly crema that collapses quickly. Either way the cup tends to taste sharp, unsettled and harder to read, sometimes sour and bitter at the same time.
Resting lets enough gas escape for water to wet the coffee evenly. The flavors also tend to settle and round out during this time. Most of the gas comes out in the first few days, but dense, lightly roasted beans keep releasing it for weeks, which is why espresso (where pressure makes gas even more disruptive) usually needs a longer rest than filter.
How long should you rest coffee for filter and espresso?
For filter brewing (pour-over, batch brew, French press, AeroPress), most coffee is ready about 3 to 14 days after the roast date. For espresso, most coffee tastes best from about 7 to 30 days after roast. Roast level moves those windows: lighter roasts are denser, degas more slowly and usually want more time, while darker roasts are more porous, degas quickly and both peak and fade sooner.
| Roast | Filter: brew from | Espresso: brew from | Flavor starts to fade |
|---|---|---|---|
| Light | About day 5 to 7 | About day 10 to 14, sometimes later | After about 6 to 8 weeks |
| Medium | About day 3 to 5 | About day 7 | After about 5 to 6 weeks |
| Medium-dark | About day 2 to 4 | About day 5 to 7 | After about 4 to 5 weeks |
| Dark | About day 2 to 3 | About day 4 to 5 | After about 3 to 4 weeks |
If you open a bag and it is younger than its window, you can still brew it. For filter, a longer bloom (45 to 60 seconds) helps the gas escape before the main pour. For espresso, expect to grind a little coarser than usual and to re-adjust daily as the coffee settles. Our guide to dialing in espresso covers how to make those changes one at a time.
Coffee does not hit a single perfect day and then fall off a cliff. It changes gradually: a little sharp and gassy at first, then sweeter and clearer, then slowly flatter as aromatics fade. The "best" day is partly personal. Some people like the brighter, livelier taste of a younger bag; others prefer the rounder taste of a bag a few weeks old.
How long do coffee beans stay fresh?
Whole beans in a sealed, one-way valve bag usually taste their best for about 4 to 6 weeks after the roast date. They are still safe to drink long after that, because roasted coffee is dry and does not spoil the way fresh food does, but the flavor slowly goes flat. Staling is mostly two things: oxygen reacting with the oils and aroma compounds (oxidation), and the volatile aromatics that carry fruit, floral and sweet notes evaporating away.
Once you open the bag, oxygen gets in every time you scoop, so the clock speeds up. Aim to finish an opened bag within about 2 to 3 weeks. Buying smaller bags more often is the simplest way to drink coffee at its best.
| Form and storage | Tastes good for about | Notes |
|---|---|---|
| Whole bean, sealed valve bag | 4 to 6 weeks from roast | Nitrogen-flushed bags may hold longer |
| Whole bean, opened and resealed | 2 to 3 weeks after opening | Squeeze out air, keep sealed |
| Whole bean, frozen airtight | Several months | Freeze in portions, no refreezing |
| Pre-ground, sealed bag | A few weeks from packing | Already less aromatic than whole bean |
| Pre-ground, opened | About 1 to 2 weeks | Noticeably flatter each day |
| Freshly ground, open air | Minutes | Aroma drops fast; brew right away |
Grinding is the biggest single step toward staleness. It multiplies the surface area of the coffee many times over, so aroma escapes and oxygen reaches the oils far faster than with whole beans. That is why grinding right before you brew makes such a clear difference, and why the grind size chart assumes you are grinding fresh.
Roast date vs best-by date: which one matters?
The roast date is the one that matters for flavor. It tells you exactly where the coffee is in its resting and freshness window, so you can plan when to open it and how soon to finish it. Most specialty roasters print a roast date on every bag.
A best-by date is a shelf-life date, often set many months (sometimes a year or more) after roasting. It tells you when the producer stops guaranteeing quality, not when the coffee tastes its best, and it usually does not reveal when the coffee was roasted. If a bag only shows a best-by date, you cannot tell whether it was roasted last week or last season.
- Look for a roast date and buy bags roasted within the last few weeks.
- Write the open date on the bag when you first break the seal.
- Check the window before buying a lot of coffee at once. Two bags roasted the same day will not both be at their best if you drink them one after the other.
What does the one-way valve on a coffee bag do?
The small round valve on many coffee bags lets CO₂ out while keeping outside air from getting in. Without it, a sealed bag of freshly roasted coffee would puff up or even burst as the beans degas. The valve lets roasters seal coffee soon after roasting, so it can rest inside the bag without taking on much oxygen.
The valve only protects the coffee while the bag is sealed. After opening, press out as much air as you can and close the zip (or roll and clip the top) every time. Squeezing the bag to sniff the coffee through the valve is fun, but it pushes aroma out that you would rather have in the cup.
How should you store coffee beans?
Store coffee beans whole, in an airtight, opaque container, somewhere cool and dry at room temperature. The four things that stale coffee fastest are oxygen, light, heat and moisture, so good storage is about keeping all four out.
- Airtight: a well-sealed original bag works fine. A dedicated canister with a seal or a vacuum lid can help if your bag does not reseal well.
- Opaque: clear jars on the counter look nice but let light in. Keep them in a cupboard or use an opaque container.
- Cool: away from the stove, the oven, the top of the espresso machine and sunny windows.
- Dry: away from the kettle, the sink and the dishwasher steam.
- Not the fridge: a fridge is humid and full of food odors, and coffee absorbs both. Taking beans in and out also causes condensation on them.
- Whole, not ground: grind only what you need right before brewing.
Can you freeze coffee beans?
Yes, and done properly, freezing is the best way to keep coffee tasting fresh for months. Cold slows down both staling and degassing, so frozen beans come out close to where they went in. The risks are moisture and repeated temperature swings, so the method matters more than the freezer.
Let the coffee rest first (optional)
Many people freeze beans once they are near the start of their peak window, for example a week or so after roast for filter. Freezing very fresh coffee is fine too; it will resume resting slowly after it comes out.
Portion it out
Divide the bag into single-dose or few-day portions, such as 15 to 20 g for one brew or 100 to 150 g for a few days. The goal is to never return beans to the freezer once they have come out.
Seal each portion airtight
Use small airtight jars, vacuum-sealed bags, or zip bags with the air pressed out. Less air means less oxidation and less frost.
Freeze flat and away from the door
Put the portions at the back of the freezer, where the temperature is most stable, not in the door where it swings every time you open it.
Grind from frozen, or thaw sealed
You can grind beans straight from the freezer; many grinders handle it well, and you may need a slightly different grind setting than with room-temperature beans. If you prefer to thaw, leave the portion sealed until it reaches room temperature so condensation forms on the outside of the container, not on the beans.
Never thaw and refreeze
Each thaw and refreeze cycle risks moisture on the beans and speeds up staling. Take out only what you will use.
Frozen coffee can keep good flavor for several months. It is not frozen in time forever, so label each portion with the roast date and use the oldest first.
How can you tell if coffee is stale?
Stale coffee smells and tastes flat: less aroma, less sweetness, less brightness, and often a papery, woody or cardboard note. It is not unsafe, just dull. Very old or poorly stored coffee can also smell rancid or musty from oxidized oils.
| Sign | Too fresh | At its best | Stale |
|---|---|---|---|
| Smell of the beans | Sharp, roasty, gassy | Strong, sweet, distinct | Weak, papery, dusty |
| Pour-over bloom | Big, foamy, keeps rising | Steady, even rise | Little or no bloom |
| Espresso flow | Gushes, sputters | Steady, predictable | Runs fast, needs finer grind |
| Crema | Thick, bubbly, fades fast | Even, fine, lasting | Thin, pale, disappears quickly |
| Taste | Sharp, uneven, hard to read | Sweet, clear, balanced | Flat, hollow, bitter without sweetness |
In espresso, staleness is easy to spot: the crema gets thinner and paler, the shot runs faster at the same grind, and the cup loses sweetness and body. Grinding finer can claw some of it back, but it cannot replace aromatics that are already gone. If a once-great bag keeps tasting duller even after you adjust, it is probably past its window. A flat, hollow cup is different from a sour or bitter one, and the sour vs bitter espresso guide helps you tell them apart.
In filter coffee, the bloom is a good freshness check. Fresh coffee bubbles and rises when you first pour; stale coffee barely moves. The pour-over guide covers how to bloom and what to look for. Tasting the same coffee over its life, and writing down what changes, is one of the fastest ways to learn your own preferred window. Our guide on how to taste coffee explains what to pay attention to.
Frequently asked questions
Can you brew coffee the day after it was roasted?
You can, but it usually tastes sharp and uneven because the beans are still full of CO₂. For filter, waiting at least 3 days helps; for espresso, about a week or more is a good rule of thumb.
Why do light roasts need to rest longer?
Light roasts are denser and less porous, so the gas inside escapes more slowly and they keep changing for longer. Many light roasts taste best for espresso from about two weeks after roast or later.
Is coffee past its best-by date safe to drink?
Generally yes, as long as it has been kept dry and does not smell rancid or musty. Roasted coffee goes stale long before it becomes unsafe; it simply tastes flatter.
Should I store coffee beans in the fridge?
No. The fridge is humid and full of odors that coffee absorbs, and moving beans in and out causes condensation. Keep beans at room temperature in an airtight, opaque container, or freeze sealed portions for longer storage.
Can you grind coffee beans straight from the freezer?
Yes. Most grinders handle frozen beans, and grinding from frozen avoids the condensation that comes from thawing. Expect to adjust your grind setting slightly compared with room-temperature beans.
How long does ground coffee stay fresh?
Freshly ground coffee loses aroma within minutes, so brew it right away for the best flavor. Opened pre-ground coffee is noticeably flatter after about one to two weeks.
Does stale coffee have less caffeine?
Not in any meaningful way. Caffeine is stable; staling affects the aromatic compounds and oils that carry flavor, so stale coffee tastes worse but is about as strong in caffeine.
Is there an app to track coffee roast dates?
BrewLog is a free iPhone app that stores each bag with its roast date, roaster, origin and process, counts down how much is left as you brew, and keeps a rated log of every cup.
BrewLog for iPhone
Better coffee, one cup at a time.
Log every cup in seconds, get one clear tip for the next one, and save the settings that work to each bag of beans. Free on the App Store.
Download on theApp Store