Prior studies of the glycemic effect of statins have been inconsistent. Also, most studies have only considered a short duration of statin use; the effect of long-term statin use on fasting glucose (FG) has not been well examined. The aim of this work is to investigate the effect of long-term statin exposure on FG levels. Using electronic health record (EHR) data from a large and diverse longitudinal cohort, we defined long-term statin exposure in two ways: the cumulative years of statin use (cumulative supply) and the years’ supply-weighted sum of doses (cumulative dose). Simvastatin, lovastatin, atorvastatin and pravastatin were included in the analysis. The relationship between statin exposure and FG was examined using linear regression with mixed effects modeling, comparing statin users before and after initiating statins and statin never-users. We examined 593,130 FG measurements from 87,151 individuals over a median follow up of 20 years. Of these, 42,678 were never-users and 44,473 were statin users with a total of 730,031 statin prescriptions. FG was positively associated with cumulative supply of statin but not comulative dose when both measures were in the same model. While statistically significant, the annual increase in FG attributable to statin exposure was modest at only 0.14 mg/dl, with only slight and non-significant differences among statin types. Elevation in FG level is associated with statin exposure, but the effect is modest. The results suggest that the risk of a clinically significant increase in FG attributable to long-term statin use is small for most individuals.