How long is it safe to eat leftover pasta?

3 to 5 days
PASTA – COOKED LEFTOVERS

Properly stored, cooked pasta will last for 3 to 5 days in the refrigerator. How long can cooked pasta be left at room temperature? Bacteria grow rapidly at temperatures between 40 °F and 140 °F; cooked pasta should be discarded if left out for more than 2 hours at room temperature.

How long can I keep cooked pasta in the fridge?

5 days
Store cooked pasta in the refrigerator for 5 days. Freeze leftover cooked pasta up to 3 months. Save water and energy by cooking pasta in a small amount of water.