Storage guide

How to Store Coffee Beans So They Stay Fresh

Roasted coffee does not go off like milk, but it does go stale. Air, moisture, heat and light are the enemies. Here is how to store whole beans and ground coffee, and how long each keeps.

Updated October 16, 2026 · 3 sources · 6 min read

Knowing how to store coffee beans is the cheapest way to make every cup taste better. Roasted coffee rarely becomes unsafe, but it loses aroma and flavor steadily from the day it is roasted, and poor storage speeds that up. This guide follows the advice of the National Coffee Association (NCA) of the USA: what kind of container to use, where to keep it, when freezing makes sense, and how long whole beans and ground coffee stay fresh. It also explains how storing green (unroasted) coffee is different.

Back of a Jamaica Blue Mountain coffee bag with a resealable zip closure, beside roasted coffee beans
A resealable bag helps, but for longer storage the NCA recommends an opaque, airtight container. Photo: Mamre Blue Coffee.

What makes coffee go stale

The NCA names four things to limit: air, moisture, heat and light. Oxygen reacts with the oils and aromatic compounds created in roasting; moisture lets coffee absorb odors and can, in the worst case, allow mold; heat speeds every one of these reactions; and light, especially direct sun, degrades flavor through a clear container. Grinding multiplies the surface area exposed to air, which is why ground coffee goes stale faster than whole beans.

Coffee also picks up smells easily. The NCA warns that coffee absorbs moisture, odors and flavors from the air around it, which is the main argument against keeping an open bag in the refrigerator next to other food.

How to store coffee beans: step by step

  1. Buy in small amounts. The NCA suggests buying freshly roasted coffee in quantities of about one to two weeks' supply and buying more often, rather than a large bag that sits for a month.
  2. Move it to an airtight, opaque container. A truly airtight container matters most, especially for pre-ground coffee. The NCA specifically warns that clear canisters let in light. A good resealable bag with the air pressed out is acceptable for short periods.
  3. Keep it cool and dark. Store the container in a cupboard or pantry away from the oven, dishwasher, kettle and afternoon sun. Room temperature is fine; warm spots are not.
  4. Grind just before brewing. Grind only the amount you need for each brew. If you have no grinder, buy smaller bags of ground coffee more often.
  5. Freeze only what you will not use soon. If you buy more than a week or two's worth, freeze the extra in a truly airtight container (see below) and keep only a week's supply at room temperature.
  6. Check the dates. Look for a roast date as well as a best-by date, and use opened coffee within the time frames in the table below.

How long does coffee stay fresh?

The NCA gives these time frames for coffee once the package is opened and stored in an airtight container. They describe quality, not safety.

CoffeeWhere storedStays fresh for about
Unopened roasted beans or ground coffee, pods, instantSealed, as packedUntil the best-by date
Roasted whole beansRoom temperature1 to 3 weeks
Roasted whole beansRefrigeratorAbout 2 weeks
Roasted whole beansFreezer3 to 4 months
Ground coffeeRoom temperature1 to 2 weeks

Note that the refrigerator does not extend whole-bean freshness compared with a good container at room temperature in this table, while the freezer does.

Should you freeze coffee beans?

Experts disagree about freezing, and the NCA says so. Its advice is practical: freezing is most useful for coffee you will not open for a while, and in humid climates. If you freeze coffee, use a truly airtight container, take out no more than a week's worth at a time, and put the rest back in the freezer before any condensation forms on the cold beans. The real risk is repeated thawing: taking a container in and out every morning lets moisture condense on the beans, which is exactly what storage is trying to prevent.

The refrigerator is the least useful option. It is cold enough to cause condensation when the coffee comes out, but not cold enough to slow staling much, and it is full of odors the coffee can absorb.

Does coffee expire?

Roasted coffee kept dry does not usually become unsafe. According to the NCA, it loses aroma and flavor over time, may lighten in color and tastes stale or flat, but it does not spoil in the way perishable food does unless moisture allows mold to grow. Any coffee that smells musty or shows mold should be thrown away. A flat, papery taste is the usual sign that coffee is simply old; our brewing guide lists that as the most common cause of a dull cup.

Common coffee storage mistakes

  • A clear canister on the counter. It may look good, but the NCA warns that clear containers let in light, and counters near a window, oven or kettle are warm.
  • An open bag in the refrigerator. The coffee can absorb food odors and pick up condensation each time it comes out.
  • Taking frozen coffee in and out every day. Repeated thawing causes condensation; freeze in portions and take out a week's worth at a time.
  • Grinding a week's coffee at once. Ground coffee goes stale faster than whole beans; grind just before brewing.
  • Buying the biggest bag for the price. A month's supply opened on day one will be stale long before it is finished. Buy one to two weeks' worth, or freeze the rest unopened.
  • Ignoring the roast date. A best-by date can be many months away; the roast date tells you how fresh the coffee really is.

Green coffee is stored differently

Unroasted green coffee keeps far longer than roasted coffee because the roasting reactions have not happened yet. Sweet Maria's coffee library explains that coffee usually leaves the mill at around 12% moisture and that storage is mainly about keeping it close to that level, away from humidity, heat and strong odors. Home roasters can usually hold green coffee for months, but it does fade over time. Our guide to green coffee beans covers grading, storage and shelf life in more detail.

Storage, roast level and premium coffee

Storage matters most for the coffees you bought for their subtlety. A mild, balanced coffee such as Jamaica Blue Mountain (see what Blue Mountain coffee tastes like) has less strong roast flavor to fall back on than a dark roast, so staleness shows sooner. Lighter roasts are denser and can taste fresh a little longer than very dark, oily roasts, whose surface oils are exposed to air (see coffee roast levels). If you are bringing coffee home from a trip, our guide to bringing coffee back from Jamaica covers packing and customs.

Disclosure: this site is published by Mamre Blue Coffee, a Jamaica Blue Mountain estate (see about us), so we rely on official and independent sources for the facts on this page.

Questions people ask

What is the best way to store coffee beans?
Keep them in an opaque, airtight container in a cool, dark cupboard at room temperature, away from the stove and sunlight, and grind just before brewing. Buy about one to two weeks of coffee at a time.
Should coffee beans be kept in the fridge?
Usually not. The refrigerator can cause condensation and the coffee can absorb food odors. The NCA puts refrigerated whole beans at about two weeks of freshness, no better than a good container at room temperature.
Can you freeze coffee beans?
Yes, if you will not use them soon. Use a truly airtight container, take out no more than a week's supply at a time, and return the rest to the freezer before condensation forms. The NCA puts frozen whole beans at about three to four months.
How long does ground coffee last once opened?
About one to two weeks at room temperature in an airtight container, according to the National Coffee Association. Whole beans last longer, about one to three weeks.
Does old coffee go bad?
Roasted coffee kept dry rarely becomes unsafe; it loses aroma and tastes flat. Throw it away if it smells musty or shows any mold, which can happen if it gets damp.

Sources

  1. Coffee Storage and Shelf Life (National Coffee Association USA, About Coffee)
  2. Green Coffee Storage by Chris Lee (Sweet Maria's Coffee Library)
  3. Coffee roasting (Wikipedia)

Taste the benchmark