I have a box of dried spaghetti that has been sitting in my pantry for two years, and a container of leftover fettuccine from three days ago in my fridge. I also bought some ready-to-eat pasta at the grocery store and was thinking of warming it up. Three different pasta situations and three different answers.
Does pasta go bad?
Short answer: Yes, there are two different food safety risks associated with cooked pasta, but they are worth understanding separately. Leaving cooked pasta at room temperature for more than two hours can develop Bacillus cereus, a toxin-producing bacteria that cannot be destroyed by reheating. Pre-made, refrigerated pasta carries a risk of Listeria monocytogenes. Dried fresh pasta is one of the most shelf-stable foods in the pantry and can be stored for 1 to 2 years past the printed date without significant food safety concerns.
For more information on food storage and safety, see our food storage guide.
Important points
- Cooked pasta: Refrigerate within 2 hours. Use up within 3-5 days
- Reheating does not neutralize B. cereus toxins already present in pasta.
- Ready-made, refrigerated pasta dishes: Always respect expiration dates. Do not eat after expiry date
- Dried pasta: 1 to 2 years past its expiration date in a sealed pantry container.
- Fresh pasta: refrigerate for 1-2 days. Frozen for 2-3 months
- Gluten-free pasta (dry): 1 year, but may be shorter due to rice flour and soybean flour oil
Two Food Safety Risks of Cooked Pasta
Most food spoils in one direction: bacteria grows, it’s noticed, and it’s thrown away. There are two different risk mechanisms for cooked pasta, each of which works differently and requires different precautions.
Risk 1: Bacillus cereus (homemade and restaurant pasta)
Bacillus cereus is a spore-forming bacterium found in starchy foods such as pasta. Cooking kills active bacteria, but spores do not and can survive boiling. When cooked pasta is left at room temperature, those spores germinate and bacteria multiply, producing heat-stable toxins. Toxins survive reheating, so pasta left out too long remains dangerous even after thorough reheating. This is the same mechanism behind fried rice syndrome, which is affected when cooked pasta is left in the critical temperature range (40 to 140 degrees Fahrenheit) for more than two hours.
Risk 2: Listeria monocytogenes (ready-made chilled pasta dishes)
Listeria monocytogenes is another bacterium with a different risk profile. Unlike Bacillus cereus, Listeria monocytogenes grows in the refrigerator itself and cannot be neutralized by pre-cooking if the pasta is recontaminated after cooking. Pre-made, refrigerated pasta products are particularly at risk because they are handled after cooking in commercial settings where Listeria monocytogenes can enter during packaging. A 2025 U.S. outbreak linked to Nate’s Fine Foods cooked pasta resulted in 28 illnesses, 27 hospitalizations, and seven deaths in 19 states before the CDC declared the outbreak over in February 2026.
What is the expiry date of pasta?
| type | pantry | refrigerator | freezer |
|---|---|---|---|
| Dried pasta (white flour) | The expiration date has passed 1 to 2 years | Unlimited (no benefits) | Unlimited (no benefits) |
| gluten free dried pasta | up to 1 year | up to 2 years | indefinitely |
| Fresh pasta (refrigerated, unopened) | Refrigerated only | Until expiry date (1-2 weeks) | 2-3 months |
| Fresh pasta (opened) | Refrigerated only | 1-2 days | 2-3 months |
| Boiled pasta (plain or with sauce) | up to 2 hours | 3-5 days | up to 2 months |
| ready-made refrigerated pasta | never | Only until expiration date | Check product label |
The 2025 Pasta Listeria Epidemic: What Happened and What It Means
In 2025, a multi-state listeria outbreak linked to ready-to-eat pasta products from Nate’s Fine Foods in Roseville, Calif., resulted in 28 confirmed cases in 19 states, 27 hospitalizations, and seven deaths. The outbreak began in August 2024 and was declared over by the CDC on February 12, 2026. Products from major grocery retailers were affected, including Walmart Marketside, Trader Joe’s, Kroger, Sprouts, HomeChef and Scott & Johns brand pasta. Recalled products will no longer be available for sale. For more information, CDC Outbreak Investigation Page.
The cause was Listeria contamination in the ready-to-eat pasta supply chain, not improper storage by consumers. Recalled products will no longer be available for sale. However, the outbreak has reinforced two important points for those purchasing pre-made, refrigerated pasta products:
First, the expiration date on pre-made, refrigerated pasta does not indicate quality. It’s a safety perimeter. Listeria monocytogenes can grow in the refrigerator, so even unopened products can become unsafe as they approach and pass their use-by date. Second, at-risk groups such as pregnant women, adults over 65, and people with compromised immune systems should follow CDC Listeria guidance and be especially careful with pre-made, refrigerated pasta dishes and consider heating them to 165 degrees Fahrenheit (steaming hot) before eating them, even if they are within the expiration date.
How to tell if pasta is spoiled
signs of rot
- Sour or off-flavor: Freshly cooked pasta has a neutral, mild starchy odor. A sour or fermented odor means that bacterial activity has taken hold. Please throw it away.
- Slimy texture: Cooked pasta should feel soft, but not smooth or slippery. A slimy coating on the noodles indicates bacterial colonization.
- Type: If your cooked pasta develops fuzz, it means throwing away the entire container. Do not remove moldy parts.
- discoloration: Greyish, yellowish, or off-color pasta that turns white or yellow when cooked.
- If the time frame has passed: Items that have been stored at room temperature for more than 2 hours, refrigerated for more than 5 days, or have passed their expiration date if they are ready-made items. These time limits are the most reliable indicators, not just what they look like or smell like.
Important notes specific to cooked pasta: Like rice, pasta contaminated with Bacillus cereus toxin may not show any visible or olfactory signs of spoilage. The time rule is more reliable than the sensory check of pasta left at room temperature.
Will dried pasta go bad?
Dried pasta made from semolina flour is one of the most shelf-stable foods in your pantry. The moisture content is very low (approximately 12%), creating an environment in which bacteria and mold cannot grow. An unopened box or bag of dried pasta stored in a cool, dry place can be stored for 1 to 2 years past the printed best-before date without serious food safety concerns, and often longer with only a slight decrease in quality. The printed date reflects quality, not safety.
Exception: Gluten-free pasta made from rice flour, lentil flour, or bean flour has a shorter shelf life of about a year, due to the high oil content of alternative flours, which can spoil. A stale or paint-like smell from dried pasta is a sign of spoilage. It won’t cause any serious illness, but the taste is unpleasant.
After opening dried pasta, transfer it to an airtight container to prevent moisture absorption and pantry pests. Moisture is the main enemy to the quality of dried pasta in long-term storage.
See also

How to store boiled pasta
Best practices for storing cooked pasta
- Refrigerate within 2 hours after cooking. Don’t leave cooked pasta in a colander or pot while you do other tasks.
- Store in an airtight container. Uncovered pasta will dry out and absorb refrigerator odors.
- Stir in some olive oil before chilling in the refrigerator. When storing plain pasta without sauce. This prevents clumping.
- Please use up within 3-5 days. Pasta with sauce is typically kept for closer to three days because the moisture in the sauce promotes bacterial growth. Normally boiled pasta can be stored for about 5 days.
- Reheat to 165 degrees Fahrenheit (Overall it’s hot and humid). This will kill any Bacillus cereus present, but not the toxins that have already formed due to improper storage.
- Do not reheat more than once.
Recipes using leftover pasta
The best way to use leftover pasta that is nearing its expiration date is to reuse it by heating it thoroughly and putting it in a dish. For a fresh pasta night where you can enjoy properly made pasta, try the gluten-free Penne Alla Vodka. For an easy weeknight meal, try this gluten-free chicken pesto pasta. Both provide leftovers that are worth preserving properly. For complete USDA guidance on the safety of leftovers, visit USDA FSIS Leftovers and Food Safety Page. For a complete clinical overview of Bacillus cereus, NIH StatPearls Bacillus cereus review. F.D.A. bad bug book features B. cereus as part of a comprehensive foodborne pathogen reference. Especially in the case of Listeria monocytogenes, CDC Listeria Main Page Learn about symptoms, risk groups, and prevention.
Does pasta go bad? Frequently asked questions
FAQ: Can stale pasta make you sick?
Yes, in two ways. Leaving cooked pasta at room temperature for more than 2 hours can develop B. cereus toxins that are not destroyed by reheating. Ready-made, refrigerated pasta products that are past their expiration date are at increased risk for Listeria monocytogenes. Dried pasta is an exception. There is no significant food safety risk beyond the print date, only quality may deteriorate.
FAQ: Is it safe to eat pasta that has been left overnight?
No, if you leave cooked pasta at room temperature overnight, it will reach dangerous temperatures for more than 8 hours. B. cereus spores germinate and the bacteria produce a heat-stable toxin. Even if thoroughly reheated, the pasta is not safe to eat. Please throw it away. This is true whether the pasta is covered or uncovered, plain or with sauce, in a bowl or in a pot.
FAQ: Will pasta go bad if I store it in the freezer?
According to USDA guidance, cooked pasta continuously stored at 0 degrees Fahrenheit is safe indefinitely. The best quality is within 1-2 months, before the texture becomes soft and the flavor deteriorates. Pasta with sauce freezes somewhat easier than plain pasta because the sauce protects the noodles during freezing. Thaw in the refrigerator overnight and reheat to 165 degrees Fahrenheit. Please use within 24 hours after thawing. Do not refreeze.
FAQ: What is the shelf life of dried pasta?
Standard dried semolina pasta can usually be stored for 1 to 2 years after the printed date if stored in a sealed container in a cool, dry place. The date printed on dried pasta indicates the expiry date of its quality and does not indicate its safety date. If the odor is neutral and there are no signs of moisture damage or pest infestation, it is safe to cook and eat. Gluten-free pasta made from alternative flours has a shorter shelf life, close to a year, due to the oil content in alternative flours.
Read more
Better Living earns commissions through affiliate links and may feature sponsored and partner content. If you make a purchase through our links, we may receive a small commission at no cost to you.
Source: Better Living – onbetterliving.com
