The short answer
Dried pasta that has been stored dry and sealed may still be safe to eat after ten years. Its quality will probably have faded, though, so inspect it before cooking. A date on the box does not settle the question, and neither does the age alone. Check the pasta for pests, moisture, mold and smell first.
What the date on the box means
Most pasta packages carry a “best by” or “best if used by” date. In US food-safety guidance, these dates mark when a product is at its best quality. Apart from infant formula, they are not a safety indicator. A box past its date is not automatically unsafe. It may simply taste flatter.
Some university extension guides give dried pasta a best-quality window of about two years. Storage conditions can change that a great deal, so treat two years as a rough guide rather than a rule.
Why dried pasta keeps so well
Dried pasta has very little moisture. Most bacteria need moisture to grow, so the spoilage risk is lower than with fresh food. In a pantry, the real concerns are:
- Pests: Pantry moths and weevils can get in through a torn bag or thin packaging.
- Moisture: Damp pasta can let mold grow.
- Off smells: A musty, sour or stale odor is a sign that something has gone wrong.
What to check before cooking
- Look for webbing, larvae, moths or small holes in the package. If you see any of these, throw the pasta out.
- Look for mold, fuzzy spots or dark patches. Discard anything with them.
- Smell the pasta. A musty, sour or stale odor means discard.
- Feel for dampness. Damp or sticky pasta should go.
If the pasta looks, smells and feels normal, cook a small test batch before serving it to other people.
What old pasta tastes like
Old dried pasta may taste flat or stale, and its texture can change. It may soften or break up more during cooking. None of this automatically makes it unsafe, but it may not be worth serving. Salt the water well and taste a piece before you cook the rest.
Storage that makes a difference
Keep dried pasta in a cool, dry, dark spot. Once a package is open, move the pasta to a sealed container. Writing the opening date on the container helps you rotate stock.
Fresh homemade pasta is a different case, and it does not keep for years. For storing and freezing tips, see “basic fresh pasta dough.”
Egg noodles need more care
Dried egg noodles contain eggs, so they may not keep as well as plain dried pasta made from durum wheat and water. Be stricter with an old package of egg noodles, and discard it if anything looks or smells wrong.
For how egg noodles differ from spaghetti, see “the difference between spaghetti and egg noodles.”
When in doubt, throw it out
If you cannot inspect the pasta well, or it shows any sign of spoilage, discard it. A new box costs far less than the risk of cooking something that has gone bad.