We evaluated longitudinal rates, risk factors, and costs of superficial and deep incisional surgical-site infection (SSI) 6 months after primary total knee arthroplasty (pTKA) and revision total knee arthroplasty (rTKA). Patients were identified from January 1, 2016 through March 31, 2018, in the IBM MarketScan administrative claims databases. Kaplan-Meier survival curves evaluated time to SSI over 6 months. Cox proportional hazard models evaluated SSI risk factors. Generalized linear models estimated SSI costs up to 12 months. Of the 26,097 pTKA patients analyzed (mean age, 61.6 years; SD, 9.2; 61.4% female; 60.4% commercial insurance), 0.65% (95% CI, 0.56%-0.75%) presented with a deep incisional SSI and 0.82% (95% CI, 0.71%-0.93%) with a superficial incisional SSI. Also, 3,663 patients who had rTKA (mean age, 60.9 years; SD, 10.1; 60.6% female; 53.0% commercial insurance), 10.44% (95% CI, 9.36%-11.51%) presented with a deep incisional SSI and 2.60% (95% CI, 2.07%-3.13%) presented with a superficial incisional SSI. Infections were associated with male sex and multiple patient comorbidities including chronic pulmonary disease, pulmonary circulatory disorders, fluid and electrolyte disorders, malnutrition, drug abuse, and depression. Adjusted average all-cause incremental commercial cost ranged from $14,298 to $29,176 and from $41,381 to 59,491 for superficial and deep incisional SSI, respectively. SSI occurred most frequently following rTKA and among patients with pulmonary comorbidities and depression. The incremental costs associated with SSI following TKA were substantial.