Bariatric surgery prevents and induces remission of type 2 diabetes in many patients. The effect of preoperative glucose status on long-term health-care costs is unknown. We aimed to assess health-care costs over 15 years for patients with obesity treated conventionally or with bariatric surgery and who had either euglycaemia, prediabetes, or type 2 diabetes before intervention.