Joint replacement can relieve pain and improve quality of life for people who wouldn’t or aren’t appreciably benefiting from noninvasive remedies. This includes those whose pain persists despite medication, preventing sleep. In the case of a hip, a surgeon replaces the ruined parts with metal, hard-plastic, or ceramic ones. Physical therapy before and after can ease pain and speed recovery.