Aims: Research related to type 2 diabetes mellitus (DM) and parameters of electrocardiography (ECG) was limited. Patients with and without DM (NDM) were randomly enrolled in a study to exploit the influence of DM on planar QRS and T vectors derived from the Virtual Holter process.Methods: A total of 216 (NDM) and 127 DM patients were consecutively and randomly recruited. We selected a 1-minute length of ECG, which was scheduled for analysis at 4 AM. After a series of calculating algorisms, we received the virtual planar vector parameters.Results: Patients with DM were elderly (65.61 ± 12.08 vs 59.41 ± 16.86 years, P < 0.001); higher morbidity of hypertension (76.38% vs 58.14%, P < 0.001) and coronary artery disease (44.09% vs 32.41%, P = 0.03); thicker interventricular septum (10.92 ± 1.77 vs 10.08 ± 1.96 mm, P < 0.001) and left ventricular posterior wall (9.84 ± 1.38 vs 9.39 ± 1.66 mm, P = 0.03); higher lipid levels and average heart rate (66.67 ± 12.04 vs 61.87 ± 13.36 bpm, P < 0.01); higher angle of horizontal QRS vector (HQRSA, -2.87 ± 48.48 vs -19.00 ± 40.18 degrees, P < 0.01); lower maximal magnitude of horizontal T vector (HTV, 2.33 ± 1.47 vs 2.88 ± 1.89 mm, P = 0.01) and maximal magnitude of right side T vector (2.77 ± 1.55 vs 3.27 ± 1.92 mm, P = 0.03), and no difference in angle of frontal QRS-T vector (FQRSTA, 32.77 ± 54.20 vs 28.39 ± 52.87 degrees, P = 0.74) compared with patients having NDM. After adjusting for confounding factors, DM was significantly effective on FQRSTA (regression coefficient -40.0, 95%CI -66.4 to -13.6, P < 0.01), HQRSA (regression coefficient 22.6, 95%CI 2.5 to 42.8, P = 0.03), and HTV (regression coefficient 0.9, 95%CI 0.2 to 1.7, P = 0.01). Confounding