The objective of this longitudinal cohort study was to investigate if preoperative pain mechanisms, anxiety, and depression increase risk of developing chronic post-thoracotomy pain (CPTP) after lung cancer surgery. Patients with suspected or confirmed lung cancer undergoing surgery by either video-assisted thoracoscopic surgery or anterior thoracotomy were recruited consecutively. Preoperative assessments were conducted by: quantitative sensory testing (QST) (brush, pinprick, cuff pressure pain detection threshold, cuff pressure tolerance pain threshold, temporal summation and conditioned pain modulation), neuropathic pain symptom inventory (NPSI), and the Hospital Anxiety and Depression Scale (HADS). Clinical parameters in relation to surgery were also collected. Presence of CPTP was determined after six months and defined as pain of any intensity in relation to the operation area on a numeric rating scale form 0 (no pain) to 10 (worst pain imaginable). A total of 121 patients (60.2 %) completed follow-up and 56 patients (46.3 %) reported CPTP. Development of CPTP was associated with higher preoperative HADS score (p=0.025), higher preoperative NPSI score (p=0.009) and acute postoperative pain (p=0.042). No differences were observed in relation to preoperative QST assessment by cuff algometry and HADS anxiety and depression sub-scores. High preoperative HADS score preoperative pain, acute postoperative pain intensity, and preoperative neuropathic symptoms were was associated with CPTP after lung cancer surgery. No differences in values of preoperative QST assessments were found. Preoperative assessment and identification of patients at higher risk of postoperative pain will offer opportunity for further exploration and development of preventive measures and individualised pain management depending on patient risk profile.