Abstract Background Ventricular tachycardia (VT) and ventricular fibrillation (VF) are devastating tachyarrhythmias that can cause sudden cardiac death in patients with heart failure (HF) if not anticipated or treated promptly. Although post-hoc analysis in DAPA-HF showed promise in their benefit, Sodium-glucose transport protein 2 inhibitors (SGLT2i) have not yet been evaluated for their effect on these tachyarrhythmias. This retrospective analysis aims to compare the 2 most commonly used SGLT2i agents, dapagliflozin and empagliflozin, and the incidence of VT in patients with HF. Methods The TriNetX Research network was used for this study. The two initial patient cohorts were created using ICD-10 codes and medication codes from the TriNetX platform. Both cohorts consisted of patients over age 60 with a history of heart failure and either VF or VT. One cohort was on treatment with dapagliflozin and the other with empagliflozin. The cohorts were balanced by propensity score matching and the greedy nearest neighbor algorithm for age, gender, race, ethnicity, hyperkalemia, and the current use of spironolactone, amiodarone, metoprolol, and carvedilol, resulting in 9,841 patients in each arm. The cohorts were then evaluated for the development of VF or VT over the subsequent five years as well as all-cause mortality. Additional cohorts were created to evaluate dapagliflozin vs empagliflozin in diabetics, nondiabetics, and patients with ejection fractions less than 35% Results Dapagliflozin was associated with an increased risk of ventricular arrhythmia in heart failure patients compared to empagliflozin (46.0% vs. 40.8%, RR 1.13, 95% CI (1.09,1.16), P value < 0.0001). It was also associated with higher mortality at five years (RR 1.10, 95% CI (1.03,1.18), P value 0.0034). Conclusions In comparisons between dapagliflozin and empagliflozin in heart failure patients with previously documented ventricular arrhythmias, empagliflozin had 13% less risk of recurrence of ventricular arrhythmias. Secondarily, the empagliflozin cohort also exhibited lower all-cause mortality (14.8% vs 16.3%) at five years from starting the drug. Our analysis does not disprove findings in DAPA-HF, but rather may support the potential class effect of SGLT2 inhibitors in their ability to suppress VT.(1) Importantly, the overall incidence of ventricular tachyarrhythmias is high in both cohort, given we selected a high-risk population. Notably, our documented recurrence rate is similar to past reports of recurrence after VT ablation, the gold standard for treatment of VT. (2) SGLT2 inhibitors have shown clear benefit in multiple placebo-controlled studies in terms of heart failure outcomes like mortality and readmission, but their effect on arrhythmias is one more additional benefit this class may have. (3) Given these associations, empagliflozin may be a more favorable options for HF patients who have already had VT or VF.