Elderly patients often have more than one disease that affects walking behavior. An objective tool to identify which disease is the main cause of functional limitations may aid clinical decision making. Therefore, we investigated whether gait patterns could be used to identify degenerative diseases using machine learning. Data were extracted from a clinical database that included sagittal joint angles and spatiotemporal parameters measured using seven inertial sensors, and anthropometric data of patients with unilateral knee or hip osteoarthritis, lumbar or cervical spinal stenosis, and healthy controls. Various classification models were explored using the MATLAB Classification Learner app, and the optimizable Support Vector Machine was chosen as the best performing model. The accuracy of discrimination between healthy and pathologic gait was 82.3%, indicating that it is possible to distinguish pathological from healthy gait. The accuracy of discrimination between the different degenerative diseases was 51.4%, indicating the similarities in gait patterns between diseases need to be further explored. Overall, the differences between pathologic and healthy gait are distinct enough to classify using a classical machine learning model; however, routinely recorded gait characteristics and anthropometric data are not sufficient for successful discrimination of the degenerative diseases.© 2024 The Authors. Journal of Orthopaedic Research® published by Wiley Periodicals LLC on behalf of Orthopaedic Research Society.