Epic Research is not viewable using Internet Explorer. Please try accessing it with an alternate browser.
Cosmos Study

Preoperative Weight Change Associated with Higher Likelihood of Complications After Hip and Knee Replacement

May 14, 2026
Dual-Team Study
Team A:Kersten Bartelt, RNEmily Higgs
Team B:Jeff Trinkl, MDEric Barkley

Key Findings

  • Most patients who lost weight before hip or knee replacement had a higher likelihood of surgical site infection and mechanical failure than patients in the same starting BMI class whose weight remained stable. For infection, the likelihood increased with each level of loss, reaching more than six times as likely among overweight patients who lost 20% or more before knee replacement.
  • For patients with starting BMI qualifying them as severely obese (BMI 40+), preoperative weight loss was not consistently associated with higher complication likelihood. The strongest association between weight loss and complications was among patients with a starting BMI of overweight (BMI 25-<30) or class 1 obesity (BMI 30-<35).
  • Weight gain of 2% or more before surgery was also associated with an elevated complication likelihood across BMI classes, including a 37% higher likelihood of surgical site infection among overweight patients before hip replacement and a 30% higher likelihood among severely obese patients before knee replacement.

Hip and knee replacements, also known as total hip arthroplasty (THA) and total knee arthroplasty (TKA), are commonly performed surgical procedures intended to relieve pain and restore joint function by replacing damaged or diseased joints. Obesity is a well-established risk factor for complications following these procedures, including surgical site infections, mechanical failure of the implant, and the need for revision surgery.1 As a result, many health systems and insurers require a certain BMI threshold to be eligible for surgery, and patients are frequently advised to lose weight before undergoing joint replacement. However, the evidence for preoperative weight loss as a strategy to reduce surgical complications is mixed. Some prior studies have found that patients who lost weight before joint replacement did not have improved infection or readmission rates compared to those whose weight remained stable,2 and other studies reported that patients who lost weight before hip replacement and maintained that loss actually had a higher likelihood of deep surgical site infection.3 With the growing use of GLP-1 receptor agonists for weight management, more patients might present for surgery after significant weight loss, making it increasingly important to understand how the magnitude of preoperative weight change relates to postoperative outcomes.

To understand how preoperative BMI changes across a range of starting weight categories relate to the risk of surgical site infections and mechanical failures after hip and knee replacement surgery, we studied more than one million adult patients who had one of these procedures between January 2017 and September 2025. We classified patients into five groups based on the percentage change in their BMI between a reading from the year prior to surgery and their BMI reading from within a month of the procedure: 2% or more gain, stable (within 2% change), 2% to less than 10% loss, 10% to less than 20% loss, and 20% or more loss. These weight change groups were further stratified by starting BMI class (overweight, obese class 1, obese class 2, and severely obese), comparing each weight change group to patients in the same class whose weight remained stable. We accounted for demographics, Area Deprivation Index based on most recently documented address, and relevant comorbidities (such as diabetes, obstructive sleep apnea, cardiovascular disease, hypertension, and conditions suggesting immunosuppression).

Compared to patients in the same starting BMI class whose weight remained stable, the likelihood of surgical site infection after knee replacement increased with greater preoperative weight loss, with the steepest gradient among overweight (BMI 25-<30) and class 1 obesity (BMI 30-<35) patients, as seen in Figure 1. Among overweight patients, each level of additional weight loss corresponded to a progressively higher likelihood of infection, reaching more than six times as likely among those who lost 20% or more. Among patients with class 1 obesity, losses of 20% or more were associated with more than four times the likelihood. The gradient was less steep at higher starting BMI classes; among severely obese (BMI 40+) patients, losses of 20% or more were associated with only a 27% higher likelihood. Weight gain was also associated with modestly elevated likelihood across all BMI classes.

Figure 1
Surgical Site Infection Likelihood After Knee Replacement
Surgical Site Infection Likelihood After Knee Replacement
Figure 1. Adjusted likelihood of surgical site infection within 90 days of a knee replacement by starting BMI class and preoperative weight change

Compared to patients in the same BMI class whose weight remained stable, preoperative weight loss was also associated with higher likelihood of surgical site infection after hip replacement among overweight, class 1, and class 2 obesity patients, as seen in Figure 2. Among overweight patients, losses of 20% or more were associated with a 169% higher likelihood, and among class 1 obesity patients, a 152% higher likelihood. Among severely obese patients, however, preoperative weight loss was not associated with a statistically significant change in infection likelihood at any level of loss. Weight gain of 2% or more was associated with a modestly higher likelihood across all BMI classes, ranging from a 31% to 38% increase.

Figure 2
Surgical Site Infection Likelihood After Hip Replacement
Surgical Site Infection Likelihood After Hip Replacement
Figure 2. Adjusted likelihood of surgical site infection within 90 days of a hip replacement by starting BMI class and preoperative weight change.

Compared to patients in the same BMI class whose weight remained stable, preoperative weight loss showed associations with mechanical failure after knee replacement that was dependent on starting BMI. Among patients with an overweight BMI, losses of 20% or more were associated with a 128% higher likelihood, and among class 1 obesity patients, a 102% higher likelihood. Among severely obese patients, greater weight loss corresponded to a lower likelihood of mechanical failure, though not statistically significantly. Losses under 10% showed little meaningful association for any BMI class.

Figure 3
Mechanical Failure Likelihood After Knee Replacement
Mechanical Failure Likelihood After Knee Replacement
Figure 3. Adjusted likelihood of mechanical failure within 90 days of a knee replacement by starting BMI class and preoperative weight change

Compared to patients in the same BMI class whose weight remained stable, the relationship between preoperative weight change and mechanical failure after hip replacement was the most variable of the four outcomes. Among overweight patients, losses of 10–20% were associated with a 103% higher likelihood and losses of 20% or more with a 138% higher likelihood, as seen in Figure 4. Among class 1 obesity patients, losses of 20% or more were associated with a 169% higher likelihood. Among severely obese patients, weight loss was not associated with higher mechanical failure likelihood at any level.

Figure 4
Mechanical Failure Likelihood After Hip Replacement
Mechanical Failure Likelihood After Hip Replacement
Figure 4. Adjusted likelihood of mechanical failure within 90 days after a hip replacement by starting BMI class and preoperative weight change.

This study measured the association between preoperative weight change and surgical complications but cannot distinguish whether weight loss itself influenced outcomes or whether it reflects underlying factors, such as illness, frailty, or nutrition status, which might independently affect surgical risk. Additionally, obesity carries well-established risks beyond those studied here.1,3


These data come from Cosmos, a dataset created in collaboration with a community of Epic health systems representing more than 300 million patient records from 2,000 hospitals and more than 47,000 clinics from all 50 U.S. states, Canada, Lebanon, and Saudi Arabia. This study was completed by two teams that worked independently, each composed of a clinician and research scientists. The two teams came to similar conclusions. Graphics by Brian Olson.

References

  1. Kerkhoffs GM, Servien E, Dunn W, Dahm D, Bramer JA, Haverkamp D. The influence of obesity on the complication rate and outcome of total knee arthroplasty: a meta-analysis and systematic literature review. J Bone Joint Surg Am. 2012;94(20):1839-1844. doi:10.2106/JBJS.K.00820
  2. Seward MW, Grimm JA, Hannon CP, Bedard NA, Berry DJ, Abdel MP. Weight Loss Before Total Hip Arthroplasty Was Not Associated with Decreased Postoperative Risks. J Bone Joint Surg Am. 2025;107(8):849-857. doi:10.2106/JBJS.24.01110
  3. Inacio MC, Kritz-Silverstein D, Raman R, et al. The risk of surgical site infection and re-admission in obese patients undergoing total joint replacement who lose weight before surgery and keep it off post-operatively. Bone Joint J. 2014;96-B(5):629-635. doi:10.1302/0301-620X.96B5.33136

Data Definitions

Study period
Study population: inclusion
Study population: exclusion
Exposures
Outcomes
Adjustment factors
Immunosuppression
Total knee replacement
Hip replacement
Pregnancy or birth
Amputation
Revision
SSI
Mechanical failure
Race and ethnicity
Area Deprivation Index (ADI)
Face-to-face encounter
Model specifications
Limitations