Leftover spaghetti can stay good for 3-5 days if stored in an airtight container. Check for spoilage and freshness by smelling it before consuming.