Guide
How long do coffee beans last? Freshness windows and how to store them
Coffee doesn't spoil so much as fade. The roast date, the valve on the bag, the right container and a freezer used properly decide how long it tastes fresh.
Published
Roasted coffee starts losing aroma almost as soon as it leaves the roaster, but slowly enough that a little care buys you weeks. How long do coffee beans last? Opened and kept airtight at room temperature, about one to three weeks of real freshness; ground, about half that; frozen properly, three to four months. Below are the numbers, what the date and the little valve on the bag tell you, and how to store beans so the last cup from a bag tastes close to the first.
How long do coffee beans last?
These are the freshness windows the National Coffee Association gives for coffee kept in an airtight container. "Fresh" here means it still tastes like itself; past these windows coffee isn't unsafe, it just tastes flatter.
| Coffee | Where | Stays fresh |
|---|---|---|
| Unopened bag, beans or ground | Pantry | Until the best-by date |
| Pods and instant | Pantry | Until the best-by date |
| Roasted whole beans, opened | Room temperature | 1–3 weeks |
| Roasted whole beans, opened | Refrigerator | About 2 weeks |
| Roasted whole beans, opened | Freezer | 3–4 months |
| Ground coffee, opened | Room temperature | 1–2 weeks |
Breville's roasting guide gives a similar picture from the roaster's side: roasted beans are at their best roughly 5 to 30 days after roasting.
Whole beans vs ground coffee
Grinding multiplies the surface that touches air, so aroma escapes and oils oxidize much faster. That's the main reason ground coffee has the shorter window, and why the most useful storage habit of all is to grind only what you're about to brew. If you buy pre-ground, the container matters even more: the NCA singles out pre-ground coffee as the one that most needs moving into an airtight container once the bag is opened.
The roast date matters more than the best-by date
A best-by date is often many months after roasting and tells you little about flavor. A roast date tells you where the beans are on the clock. Look for one on the bag, and buy beans roasted within the last couple of weeks if you can.
The first few days: degassing and the one-way valve
Freshly roasted beans give off carbon dioxide for days. In a sealed bag with no way out, that gas would puff the bag up like a balloon. The small round valve on most coffee bags is a one-way valve: gas can leave, outside air can't get in. America's Test Kitchen explains it with the help of a coffee club's chief operating officer, who adds that the carbon dioxide inside is heavier than air and helps push out oxygen that gets in when the bag is opened.
What that means for you:
- A puffy bag or a hiss from the valve is a sign the beans were roasted recently.
- Very fresh beans can bubble hard when hot water hits them, which is why pour-over recipes start with a bloom.
- Keeping the original bag is fine if it has a valve and a zip: press out the air, fold it down tightly and seal it every time.
Where to keep coffee beans
The enemies are air, light, heat and moisture, and a good spot deals with all four.
Airtight and opaque
Use a container that seals and lets no light in. The NCA advises opaque containers and says clear canisters are better left for display, since light degrades flavor. A ceramic or metal canister with a gasket lid, or the original valve bag folded tight, both work. What to look for in a canister, from valve lids to sizing, is in our airtight coffee container guide.

Cool and dry
Keep the container in a cupboard away from the oven, the dishwasher and any spot that gets strong afternoon sun. Coffee also takes up moisture and smells from around it, which matters more in a humid kitchen.
Skip the fridge
A fridge is cold but damp and full of smells, and the NCA's own numbers show refrigerated beans keeping about two weeks, no longer than a cupboard. Every time you take a cold container out, moisture can condense on the beans. The cupboard or the freezer are both better choices.
Clean the container
Coffee oils build up on the inside of a canister and go stale, then transfer to the next batch. Wash and fully dry it between bags, especially with dark roasts, which carry more oil on the surface.
Buy less, more often
The simplest fix is quantity. The NCA suggests buying enough coffee for one or two weeks at a time. A 12 oz (340 g) bag at about 20 g a day lasts a bit over two weeks for one person, which fits the window well.
The freezer method, done right
Freezing is the way to keep coffee for longer than a few weeks. The NCA notes that experts disagree about freezing, but the research that exists is encouraging. A Penn State food science study stored six roast levels for nine weeks, frozen and at room temperature: freezing kept the aroma's intensity and pleasantness, especially for dark roasts, and light roasts lost less aroma over that time either way. The researcher also reported finding no evidence in the scientific literature that condensation harms frozen beans, though that wasn't tested in the study.
The NCA's rule is the one to follow: if you freeze coffee, use a truly airtight container, because ordinary containers let in enough air to cause freezer burn over time.

How to freeze coffee beans
- Freeze it fresh. Put beans in the freezer within a few days of opening, not after they're already fading.
- Portion it. Divide the beans into airtight bags or jars of about a week's worth each, or into single-dose containers.
- Push out the air and seal each portion fully.
- Freeze flat at the back of the freezer, away from the door.
- Take out one portion at a time. The NCA suggests removing no more than a week's worth and getting the rest back into the freezer before condensation forms on it.
- Leave the thawing portion sealed until it reaches room temperature, so moisture forms on the outside of the container rather than on the beans.
Freeze whole beans rather than ground coffee when you can, and grind straight from the thawed portion, since grinding is what speeds staling.
What stale coffee tastes like
Stale coffee isn't dangerous; it's disappointing. The signs, roughly in the order you notice them:
- Faint aroma when you grind. Fresh beans fill the room; old ones barely register.
- A weak bloom. Older beans have lost most of their gas, so there is little bubbling when water first hits them.
- A flat, hollow cup. Less sweetness and character, more of a generic bitterness, and you may find yourself adding more coffee to make it taste like anything.
- A rancid smell on very oily dark roasts. Breville notes that surface oil on dark beans can turn rancid, which is one reason dark roasts are best bought in smaller bags. The light vs dark roast comparison explains why darker beans carry that oil.
One real safety exception: coffee that got wet can grow mold. The NCA names it as the main safety concern with stored coffee. If beans or grounds look fuzzy or smell musty, throw them out.
Making the most of beans past their best
Older beans still brew a decent cup with a few changes: grind a step finer, use a gram or two more coffee, or move them to a method that hides less, such as a French press or cold brew. The grind size chart shows the next setting to try.
Questions
How long do coffee beans last once opened?
Roasted whole beans in an airtight container at room temperature stay fresh for about 1 to 3 weeks, according to the National Coffee Association. Frozen in a truly airtight container, they keep for about 3 to 4 months.
How long do coffee grounds last?
Ground coffee in an airtight container at room temperature stays fresh for about 1 to 2 weeks, and it loses aroma faster than whole beans because far more surface is exposed to air.
Should I store coffee beans in the fridge?
It doesn't help much. Refrigerated beans keep for about 2 weeks, no better than a cupboard, and coffee picks up moisture and smells from the fridge. A cool, dark cupboard or the freezer is a better choice.
Do coffee beans go bad?
Roasted coffee usually doesn't become unsafe after its best-by date; it loses aroma and tastes stale. The exception is beans that got wet: if you see mold, throw them out.
What is the valve on a coffee bag for?
It's a one-way valve. It lets carbon dioxide from freshly roasted beans escape so the bag doesn't balloon, without letting outside air in.
Sources
Read next
Airtight coffee container guide: vacuum, valve or plain seal, and how big to buy
Roasted coffee loses flavor to oxygen, heat, moisture and light. A good canister blocks all four, and the right size matters as much as the lid.
Light roast vs dark roast: flavor, caffeine and how to brew each
Light tastes of the bean, dark tastes of the roast, and the caffeine difference depends on whether you scoop or weigh.
Coffee grind size chart: from extra fine to extra coarse, by brewer
Most bad cups are fixed by one move on the grinder. This is where each brewer starts and which way to turn the dial when the coffee comes out sour, bitter or muddy.