Background Pain after surgery is a major issue for patient discomfort and often associated with delayed recovery. The aim of the present study was to evaluate the prevalence of pain and requirement for analgesics up to 6 months after elective surgery, independent if new pain symptoms occurred after surgery or if preoperative pain persisted in the postoperative period. Methods A prospective observational single center cohort study was conducted between January 2012 and August 2013. Eligible patients were scheduled to undergo elective surgical interventions including joint (hip, knee arthroplasty), back (nucleotomy, spondylodesis), or urological surgery (cystectomy, prostatectomy, nephrectomy). Pain was assessed on an 11-point numerical rating scale (NRS) before, on postoperative day 2 and 6 months after surgery. Clinical information was collected with structured questionnaires and by telephone interview. Results Six hundred and forty-four patients gave informed consent, including 54.4 % men (mean age 62.2, SD 14.3). Higher preoperative pain scores were found in patients undergoing joint (mean 7.6; 95 % confidence interval [CI]: 7.2–8.0) and back surgery (mean 7.1, CI: 6.8–7.5) than in patients prior to urological surgery (mean 2.3; CI: 1.8–2.8). After 6 months, about 50 % of patients after joint or back surgery indicated pain levels ≥3/10, compared to 15.9 % of patients after urological surgery (p