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