Hip replacement surgery generally takes 2-3 hours. You may need to spend several nights in the hospital as you begin to recover from the procedure.