Background and purpose After joint replacement, a repair process starts at the interface between bone and cement. If this process is disturbed, the prosthesis may never become rigidly fixed to the bone, leading to migration—and with time, loosening. Cox-2 inhibitors are widely used as postoperative analgesics, and have adverse effects on bone healing. This could tamper prosthesis fixation. We investigated whether celecoxib, a selective Cox-2 inhibitor, increases prosthesis migration in total knee replacement (TKR).Methods 50 patients were randomized to either placebo or celecoxib treatment, 200 mg twice daily, for 3 weeks after TKR (NexGen; Zimmer). Maximum total point motion (MTPM) of the tibial component was measured after 2 years using radiostereometric analysis (RSA). In addition, range of motion, pain, and, subjective outcome were evaluated.Results No differences in prosthesis migration, pain scores, range of motion, and subjective outcome were found after 2 years. Confidence intervals were narrow.Interpretation It is unlikely that Celecoxib increases the risk of loosening, and it may be used safely in conjunction with TKR.