We attempted to explore the association between metformin use and hearing loss in in a large-scale study. This retrospective multicenter cohort study assessed the data of patients with type 2 diabetes mellitus (DM) aged over 40 years using the Observational Health Data Science and Informatics open-source software and the Common Data Model database from 1 January 2002 to 31 December 2019. Each participant was selected using the ICD-10-CM diagnosis code E11 for type 2 DM with sensorineural hearing loss. The participants were divided into metformin and non-metformin users. The outcome measure was the first occurrence of hearing loss after the diagnosis of DM as measured by the CDM cohort study. A total of 80,596 patients, including 46,152 metformin users and 34,444 non-metformin users from three hospitals were assessed. After calibration, we compared the risk of hearing loss using Kaplan–Meier curves, and found significant differences between the groups. The calibrated hazard ratio in the three hospitals (0.79 [95% confidence interval, 0.57–1.12]) was summarized. These findings suggest that the probability of hearing loss-free survival in the metformin user group is higher than that in the non-metformin user group.