You may need hip replacement surgery when arthritis limits your everyday activities such as walking and bending, resting without pain, or moving or lifting your leg without stiffness. Hip replacement is recommended only after careful diagnosis of your joint problem. Surgery is likely to be needed when you have little pain relief from non-steroidal anti-inflammatory drugs or other treatments, such as physical therapy.