Part of our Mushroom Coffee guide library.
Short answer: Dry coffee, whether whole beans, ground or instant, rarely becomes unsafe, but it does go stale. The date on the bag is about flavor and quality, not safety, so old coffee that has stayed dry is usually safe to drink, just flat. Once opened, beans taste best within about 1 to 3 weeks and ground coffee within 1 to 2 weeks, according to the National Coffee Association. Brewed coffee is different: coffee with milk should not sit out more than 2 hours, and any coffee that smells musty, looks moldy or got wet should be thrown out.
Most of us have found a half-used bag of coffee at the back of the cupboard or a cup left on the counter since morning. Here is how long each kind of coffee lasts, what actually happens as it ages, how to store it, and the few situations where old coffee is worth pouring out.
What you'll learn
- Whether coffee expires and what the date on the bag means
- How long beans, ground, instant, brewed coffee and cold brew last
- Whether coffee goes bad in the fridge, in the freezer or left out overnight
- How to store coffee so it stays fresh longer
- How to tell when coffee is stale and when it is spoiled
- Whether old or expired coffee is safe to drink
Does coffee go bad?
Coffee goes stale long before it becomes unsafe. Roasted beans and ground coffee will not expire in the sense of becoming unsafe to brew and drink unless they are exposed to moisture and grow mold, according to the National Coffee Association, the U.S. coffee industry's trade group. What changes is quality: older coffee loses aroma, can look lighter, and brews a flat, stale-tasting cup.
The date on the package works the same way. According to the FDA, a "use by" date is the manufacturer's recommendation for the best flavor or quality, not a safety date, and a product may still be safe after it. Brewed coffee is a different story, because once it is liquid, and especially once it has milk in it, it can spoil like other drinks.
How long does coffee last?
Unopened coffee keeps its freshness until the best-by date. Once opened, beans keep for about 1 to 3 weeks and ground coffee for about 1 to 2 weeks, according to the National Coffee Association, while brewed coffee is best within a few hours.
| Type of coffee | How long it keeps its best quality | Source |
|---|---|---|
| Unopened whole beans or ground coffee | Until the best-by date | National Coffee Association |
| Unopened instant coffee and coffee pods | Until the best-by date | National Coffee Association |
| Opened whole beans, airtight, room temperature | 1 to 3 weeks | National Coffee Association |
| Opened whole beans, airtight, refrigerated | 2 weeks | National Coffee Association |
| Whole beans, airtight, frozen | 3 to 4 months | National Coffee Association |
| Opened ground coffee, airtight, room temperature | 1 to 2 weeks | National Coffee Association |
| Brewed coffee with milk or creamer, left out | No more than 2 hours (1 hour above 90°F) | FDA two-hour rule for foods that need refrigeration (FDA) |
| Brewed black coffee, hot | A few hours for flavor | Batali et al., 2023 |
These times are about freshness, not safety. In a Greek study of finely ground coffee stored the way people store it at home after opening, a tasting panel still found it acceptable for about 104 days when it stayed dry at 77°F, but only about 20 days when it had absorbed moisture and was kept at 113°F (Orfanou et al., 2019). So stale coffee is mostly a flavor problem, and dryness matters as much as time.
What happens to coffee as it ages?
Coffee slowly loses the aroma compounds that make it smell and taste like fresh coffee, and other compounds change. Warmth, air, moisture and light speed this up, according to the National Coffee Association.
Temperature makes a measurable difference. In a 2024 study, opened whole beans were resealed and kept for one month either in the fridge at about 41°F or at room temperature at about 68°F. The refrigerated beans kept more of their original aroma compounds, while the room-temperature beans tasted more earthy, sharp and smoky, with fewer chocolatey and sweet notes (Gantner et al., 2024).
Moisture is the other big factor. Coffee absorbs moisture, odors and flavors from the air around it (National Coffee Association), and in the Greek study above, coffee that had absorbed moisture went stale much faster (Orfanou et al., 2019).
Does coffee go bad in the fridge?
Dry coffee does not spoil in the fridge, but it can pick up moisture and odors. The National Coffee Association says opinions differ on refrigerating or freezing coffee, and that it may help most in a humid climate. If you do refrigerate it, use a truly airtight container, take out only what you need for about a week at a time, and close it again before condensation forms on the coffee.
Brewed coffee keeps longer in the fridge than on the counter, but its flavor still fades. In a study of sealed bottles of cold-brewed and hot-brewed coffee kept at about 45°F, the researchers found no detectable bacterial growth over 42 days, but sour, papery and stale off-flavors increased over time (Lopane et al., 2024). Those bottles were filled under careful lab conditions, so a jug you pour from at home every day may not keep as well. We found no official U.S. guideline for how long home-brewed coffee keeps in the fridge, so keep it covered, cold and use it within a few days for the best taste.
Does coffee go bad if left out overnight?
Coffee with milk, creamer or other dairy should be thrown out if it sat out overnight. The FDA advises not to leave foods that need refrigeration at room temperature for more than 2 hours, or 1 hour if it is above 90°F, and milk falls in that group.
For plain black coffee, we found no official U.S. guidance. Its flavor certainly suffers: in a UC Davis study, drip coffee held for up to 3 hours became more sour for light and medium roasts and lost aroma, although a panel of 93 coffee professionals showed no clear preference for fresh coffee over coffee held for 3 hours (Batali et al., 2023). Our practical take: black coffee that sat out a few hours is fine if it still tastes good to you, but after a night on the counter, or if it smells sour or off or has anything floating on it, pour it out.
Does cold brew go bad?
Yes, cold brew can spoil, so keep it cold and use it quickly. It is never heated, so the brewing step does not kill germs that get into the coffee, the water or the equipment (Claassen et al., 2021).
Research on cold brew safety is limited, but it points in one direction:
- When researchers deliberately added food-poisoning bacteria to unprocessed cold brew, the bacteria were still detectable after 60 days in the fridge (Polanco-Estibález et al., 2023). Most of the authors work for a company that makes food-processing equipment.
- In a German pilot study of commercial cold brews, 2 samples (9%) had high microbial counts: one with spoilage microbes and one with a type of bacteria that can cause food poisoning, in a cold brew that had been stored for 5 days (Claassen et al., 2021).
- Shelf-stable canned cold brew is classified as a low-acid product and must be processed to prevent the growth of the bacteria that cause botulism (Lopane et al., 2024). That is why a cold brew labeled "keep refrigerated" must stay in the fridge.
For store-bought cold brew, follow the date and storage instructions on the label. For homemade cold brew, we found no official U.S. guideline, so we suggest starting with a clean container, steeping and storing it in the fridge, and using it within a few days. Throw it out if it tastes sour in a fermented or winey way, smells off, looks cloudy or slimy, or was left out at room temperature.
Does instant coffee go bad?
Instant coffee lasts a long time, but it goes stale and clumps once moisture gets in. Unopened instant coffee keeps its freshness until the best-by date, according to the National Coffee Association. After opening, close the lid tightly after each use and keep the jar away from steam, the stove and the dishwasher.
Clumps on their own usually mean the powder absorbed moisture, which makes it go stale faster (Orfanou et al., 2019). If the powder has turned into a hard, sticky mass, smells musty or shows any mold, throw it out. The same rules apply to instant mushroom coffee, including our NeuroCoffee: keep the package sealed, dry and cool, and use it by the date printed on it. For how instant compares with brewed coffee on health, see is instant coffee bad for you?.
How should you store coffee?
Keep coffee airtight, dark, cool and dry. The National Coffee Association recommends these five steps:
- Buy smaller amounts, enough for one or two weeks, because coffee starts losing freshness soon after roasting.
- Move it into an airtight container, since retail bags are often not designed for long-term storage. This matters most for ground coffee.
- Use an opaque container, because light can affect the taste. Clear jars are for decoration.
- Store it somewhere dark and cool, away from the oven, the dishwasher and afternoon sun.
- Grind just before brewing if you buy whole beans.
Freezing: frozen whole beans keep their freshness for about 3 to 4 months (National Coffee Association). Freeze them in a truly airtight container, ideally in small portions, so you do not keep opening the same container and letting condensation in.
How can you tell if coffee has gone bad?
Smell and look before you brew. Stale coffee is safe but disappointing. Spoiled coffee should go in the trash.
| What you notice | What it usually means | What to do |
|---|---|---|
| Weak aroma, flat or papery taste | Stale coffee (National Coffee Association) | Safe to use, but it will not taste its best |
| Beans look lighter or dull | Older, stale beans (National Coffee Association) | Safe to use; consider buying smaller amounts |
| Brewed coffee tastes sour, fermented or winey | Brewed coffee that has aged (Lopane et al., 2024) | Pour it out |
| Musty smell, visible mold, or coffee that got wet | Spoilage (FDA) | Throw it out |
| Milky coffee left out more than 2 hours | Possible bacterial growth (FDA) | Throw it out, even if it looks fine |
The FDA notes that food can make you sick even when it does not look, smell or taste spoiled, so time and temperature matter for milky drinks, not just your nose (FDA).
Is it safe to drink old or expired coffee?
Old dry coffee is usually safe if it stayed dry and shows no mold. It will just taste flat. The main safety concern with coffee is mold, which is why coffee that got wet or smells musty should be thrown out.
Some molds can make a toxin called ochratoxin A, which is mostly a risk on farms and in storage before coffee reaches you. A 2024 review of studies worldwide found it in 54.6% of 3,256 coffee samples tested, but estimated intake from coffee was below the tolerable daily limits set by international food safety experts (Massahi et al., 2024). Roasting also breaks down much of it; in one lab study, a roasting profile reduced it by about 76% (Restrepo Salazar and Peñuela Mesa, 2025). At home, the practical rule is simple: keep coffee dry, and do not use coffee that has grown mold. The FDA advises throwing out moldy food (FDA).
Common myths (quick reality check)
Myth: Coffee lasts forever in the freezer. Reality: Frozen whole beans keep their freshness for about 3 to 4 months, and condensation and freezer burn can still affect them if the container is not airtight (National Coffee Association).
Myth: Expired coffee is dangerous. Reality: The date on coffee is about quality, not safety (FDA). Old dry coffee is usually just stale. Mold or moisture is what makes it unsafe.
Myth: The fridge is always the best place for coffee. Reality: Cold slows the loss of aroma (Gantner et al., 2024), but coffee also absorbs moisture and odors, so it needs a truly airtight container if it goes in the fridge (National Coffee Association).
Frequently asked questions (FAQ)
Does coffee go bad?
Dry coffee rarely becomes unsafe, but it goes stale. Beans and ground coffee lose aroma and flavor over weeks to months. Brewed coffee with milk can spoil within hours if left out, and any coffee that got wet or grew mold should be thrown out.
How long does coffee last after opening?
Opened whole beans keep their freshness for about 1 to 3 weeks at room temperature and ground coffee for about 1 to 2 weeks, in an airtight container, according to the National Coffee Association.
How long does coffee last after the expiration date?
There is no set safety cutoff, because the date is about quality. Coffee that stayed sealed and dry is usually safe after the date but will taste less fresh. Throw it out if it smells musty or shows mold.
Does unopened coffee go bad?
Unopened coffee keeps its freshness until the best-by date. After that it slowly goes stale, but it does not usually become unsafe unless moisture gets in.
Can you drink coffee that sat out overnight?
Not if it has milk or creamer. According to the FDA, foods that need refrigeration should not sit out more than 2 hours. For black coffee there is no official guideline, but after a night on the counter it will taste stale, so the safest choice is to pour it out.
How long does brewed coffee last in the fridge?
We found no official U.S. guideline. In a lab study, sealed bottles of coffee kept in the fridge showed no bacterial growth for 42 days, but the flavor got worse over time. At home, keep it covered and drink it within a few days.
Does cold brew go bad?
Yes. Cold brew is never heated, so germs that get in are not killed by brewing. Keep it refrigerated, follow the label on store-bought cold brew, and use homemade cold brew within a few days.
Can you freeze coffee beans?
Yes. Frozen whole beans keep their freshness for about 3 to 4 months in a truly airtight container. Freeze small portions so you do not let condensation in every time you open it.
Related guides
- Does matcha expire?
- Is instant coffee bad for you?
- How to make iced coffee
- How to make mushroom coffee
- How much caffeine is in a cup of coffee?
- Is coffee acidic?
- What does mushroom coffee taste like?
Disclaimer and when to seek help
This article is for general education and is not medical advice. These statements have not been evaluated by the Food and Drug Administration. Our products are not intended to diagnose, treat, cure, or prevent any disease. Food safety guidance can differ for people who are pregnant, older adults, young children and people with weakened immune systems, so ask your health care provider if you are unsure. If you feel very sick after a food or drink, for example with vomiting that will not stop, bloody diarrhea, a high fever or signs of dehydration, contact a health care provider.
References
- National Coffee Association. "Storage and Shelf Life" aboutcoffee.org. Accessed November 9, 2026.
- U.S. Food and Drug Administration. "Are You Storing Food Safely?" Content current as of January 18, 2023.
- Gantner M, Kostyra E, Górska-Horczyczak E, Piotrowska A. "Effect of temperature and storage on coffee's volatile compound profile and sensory characteristics." Foods, 2024;13(24):3995. doi:10.3390/foods13243995
- Orfanou F, Dermesonlouoglou EK, Taoukis PS. "Greek coffee quality loss during home storage: modeling the effect of temperature and water activity." Journal of Food Science, 2019;84(10):2983-2994. doi:10.1111/1750-3841.14756
- Batali ME, Cotter AR, Lim LX, Ristenpart WD, Guinard JX. "The effect of post-brew holding time and carafe type on the sensory properties of drip brew coffee." Journal of the Science of Food and Agriculture, 2023;103(8):4095-4106. doi:10.1002/jsfa.12390
- Lopane SN, McGregor JU, Rieck JR. "An investigation of the shelf life of cold brew coffee and the influence of extraction temperature using chemical, microbial, and sensory analysis." Food Science & Nutrition, 2024;12(2):985-996. doi:10.1002/fsn3.3812
- Polanco-Estibález B, et al. "High-pressure processing for cold brew coffee: safety and quality assessment under refrigerated and ambient storage." Foods, 2023;12(23):4231. doi:10.3390/foods12234231
- Claassen L, et al. "Cold brew coffee: pilot studies on definition, extraction, consumer preference, chemical characterization and microbiological hazards." Foods, 2021;10(4):865. doi:10.3390/foods10040865
- Massahi T, et al. "A worldwide systematic review of ochratoxin A in various coffee products: human exposure and health risk assessment." Food Additives & Contaminants: Part A, 2024;41(12):1594-1610. doi:10.1080/19440049.2024.2400697
- Restrepo Salazar IC, Peñuela Mesa GA. "Influence of temperature, relative humidity, and storage time conditions on ochratoxin A production by fungi in dry parchment coffee." Food Additives & Contaminants: Part A, 2025;42(4):491-502. doi:10.1080/19440049.2025.2459211