Objective To study the effectiveness of pain management on sleep quality of patients after total hip arthroplasty( THA ).Methods 80 patients with unilateral total hip replacement were recruited and equal randomly divided into experimental group and control group by Excel.Each patient completed the preoperative the Pittsburgh Sleep Quality Index (PSQI) scale and visual analogue scale (VAS) to evaluate the sleep quality and pain after THA.In experimental group,oral analgesics were administrated routinely at the preoperative 48th and 24th hour and after operation,if the postoperative pain scale was larger than 3 point,extra analgesic was used.In control group,no analgesic was used pre-operation,and postoperative oral analgesics were administrated according to the requirement of the patients.Pain scale and PSQI scale were recorded at the postoperative 24 hours in both groups.Results The VAS pain score and PSQI at the postoperative 24 hours in experimental group were both significant lower than control group [(2.13 ± 1.28) vs (4.90 ± 1.38 ),( 1.83 ±0.84) vs ( 5.55 ± 1.40 ),respectively],the difference was statistically significant ( t =5.286,7.674,respectively ;P < 0.01 ).Conclusions Standardization pain management after total hip replacement can relieve the postoperative pain and improve sleep quality; it is benefit for the early rehabilitation of the patients.