We report a prospective study of gait and tibial component migration in 45 patients with osteoarthritis treated by total knee arthroplasty (TKA). Migration was measured over two years using roentgen stereophotogrammetry. We used the previously established threshold of 200 μm migration in the second postoperative year to distinguish two groups: a risk group of 15 patients and a stable group of 28 patients. We performed gait analysis before operation and at six months and at two years after TKA. On all three occasions we found significant differences between the two groups in the mean sagittal plane moments of the knee joint. The risk group walked with higher peak flexion moments than the stable group. The two groups were not discriminated by any clinical or radiological criteria or other gait characteristics. The relationship which we have found between gait with increased flexion moments and risk of tibial component loosening warrants further study as regards the aetiology of prosthetic loosening and possible methods of influencing its incidence.