BackgroundThe association between type 2 diabetes and electrocardiographic (ECG) markers are incompletely explored and the dependence on diabetes duration is largely unknown. We aimed to investigate the electrocardiographic (ECG) changes associated with type 2 diabetes over time. MethodsIn this cross-sectional study, we matched people with type 2 diabetes 1:1 on sex, age, and body mass index with people without diabetes from the general population. We regressed ECG markers with the presence of diabetes and the duration of clinical diabetes, respectively, adjusted for sex, age, body mass index, smoking, heart rate, diabetes medication, renal function, hypertension, and myocardial infarction. ResultsWe matched 988 people with type 2 diabetes (332, 34% females) with as many controls. Heart rate was 8 bpm higher (p < 0.001) in people with vs. without type 2 diabetes, but the difference declined with increasing diabetes duration. For most depolarization markers, the difference between people with and without type 2 diabetes increased progressively with diabetes duration. On average, R-wave amplitude was 6 mm lower in lead V5 (p < 0.001), P-wave duration was 5 ms shorter (p < 0.001) and QRS duration was 3 ms (p = 0.03). Among repolarization markers, T-wave amplitude (measured in V5) was lower in patients with type 2 diabetes (1 mm lower, p < 0.001) and the QRS-T angle was 10 degrees wider (p = 0.002). We observed no association between diabetes duration and repolarization markers. ConclusionsType 2 diabetes was independently associated with electrocardiographic depolarization and repolarization changes. Differences in depolarization markers, but not repolarization markers, increased with increasing diabetes duration.