How long does dry pasta last? Opened, unopened and past its date
Dry pasta lasts about 2 years unopened and about 1 year after opening, per USDA FoodKeeper, and past its best-by date it is usually still safe if it stayed dry and free of pests. Times by pasta type, spoilage signs and storage tips.
Dry pasta without egg keeps about 2 years in the pantry from the day you buy it and about 1 year once the package is open, according to the USDA's FoodKeeper. Those are quality windows, not safety deadlines. Past the best-by date, pasta that stayed dry, sealed and free of pests is usually still safe to cook: the USDA says a food past its date "should still be safe and wholesome if handled properly until the time spoilage is evident" (FSIS). So a box a year or two past its date is generally fine to eat if it smells normal and shows no bugs or mold, though its quality may have slipped. Dry egg noodles are the exception, at about 1 to 2 months once opened.


How long does dry pasta last after opening?
The exact number depends on what the pasta is made from. Plain semolina pasta (spaghetti, penne, macaroni, and the like) holds up the longest once opened. Dry egg noodles drop off fastest, since the egg content doesn't hold up well once air gets in. Whole wheat and gluten free pasta also lose quality sooner than plain pasta, because their flours carry more natural oil.
| Pasta type | Pantry, unopened | Pantry, after opening (airtight container) |
|---|---|---|
| Regular dry pasta, no egg (spaghetti, penne, macaroni, etc.) | About 2 years past purchase | About 1 year |
| Dry egg noodles | About 2 years | About 1 to 2 months (the egg content shortens the window once the seal is broken) |
| Whole wheat or whole grain dry pasta | About 1 to 2 years | About 1 year (bran oils can turn rancid sooner) |
| Gluten free dry pasta (rice, corn, lentil, or bean flour) | About 1 to 2 years | About 1 year (shorter for flax or nut based blends) |
For a broader rundown of pantry, fridge, and freezer timelines side by side, see our guide to how long food lasts. Dry pasta's low moisture content puts it in a different category from something like raw chicken, which only keeps a day or two once you bring it home.
How to tell if dry pasta has gone bad
Dry pasta rarely spoils the way fresh food does, but quality can slip in a few noticeable ways.
- Musty, sour, or rancid smell. This is the biggest tell, and it shows up most in whole wheat and gluten free pasta because of the oils in the bran or alternative flours.
- Small holes, fine webbing, or actual bugs. Pantry weevils get into dry goods through tiny gaps in packaging. If you spot any, toss the whole container, not just the affected portion.
- Clumping, dampness, or a hardened block. Moisture got into the package somehow, which raises the risk of mold.
- Any visible mold. Discard it immediately. Don't taste it to check.
You won't catch all of this by looking. A weevil egg can already be in a bag from the store and hatch weeks later, with no warning sign until the bugs show up. Rancidity in oil rich flours can start before you can smell it, too. That's why the time guide above still matters even when a box of pasta looks completely normal on the shelf.
How to store dry pasta so it lasts
- Move pasta into a truly airtight container, like a glass jar or a hard plastic bin with a gasket lid, right after opening. The folded over bag it came in isn't sealed enough to keep out moisture or pests.
- Keep it in a cool, dry spot away from the stove, oven, dishwasher, or any place that gets warm and humid. Shelf stable pantry goods generally do best below 85 degrees Fahrenheit.
- Store it somewhere dark. A closed cupboard or opaque container protects flavor better than open shelving under direct light.
- Label the container with the date you opened it. Keeping track of best-by dates and opened-on dates for a whole pantry by hand gets old fast, which is exactly the kind of thing an app that tracks food expiration dates can handle automatically.
- Keep pasta away from strong smelling foods like onions or spices, since dry goods can pick up odors over time.
Unlike a cooked grain such as rice, which needs to go in the fridge within two hours of cooking, dry pasta doesn't need refrigeration at all. Room temperature pantry storage is the right call. Once it's cooked, though, pasta goes in the fridge like the rice, and cooked pasta keeps only a few days there.
Can you freeze dry pasta?
Freezing isn't necessary for safety, since dry pasta is already shelf stable at room temperature. It can still be worth doing, for two reasons. First, sealing the bag and freezing it for 4 to 7 days kills off any weevil eggs before you move it into long term storage. Second, frozen dry pasta in an airtight, freezer safe container keeps essentially indefinitely, which is handy if you buy in bulk. Let it come back to room temperature before opening the container so condensation doesn't get into the box.
When in doubt
USDA food safety guidance for shelf stable products comes down to one line: when in doubt, throw it out. Dry pasta almost never becomes actively unsafe to eat, but if you open the container and catch a rancid or musty smell, see mold, or find pests, throw out the whole batch rather than trying to salvage part of it.
Frequently asked questions
Does dry pasta expire? Not the way perishable food does. The USDA and FDA don't require expiration dates on packaged foods other than infant formula, so the "best by" date on a pasta box is the manufacturer's estimate of peak quality, not a safety deadline. More on what best-by dates really mean.
Can I eat pasta past its best by date? Yes, as long as it's been stored properly and shows none of the spoilage signs above, such as off odor, visible mold, or pests. Quality may have dropped, but it isn't automatically unsafe. Another dry good: can you eat expired popcorn.
Why does my pasta smell like old cooking oil? That's rancidity, most common in whole wheat or gluten free pasta made with alternative flours that carry more natural oil. It's unlikely to make you sick, but the flavor is gone, so toss it.
Sources: FSIS Shelf-Stable Food Safety, FoodSafety.gov FoodKeeper App, FSIS Food Product Dating.
Quick answer: see the Dry Pasta storage reference.