itamin B 12 deficiency is relatively common, especially among older adults; it has potentially serious medical complications if undiagnosed. Left untreated, vitamin B 12 deficiency can lead to dementia, neurologic damage, anemia, and other complications, which may be irreversible. According to data from the National Health and Nutrition Examination Survey, 3.2% of adults older than 50 years are estimated to have low serum vitamin B 12 levels. 1 Other studies have reported prevalence rates of 5% to 15%, although these may be underestimates of the true prevalence in some population subgroups. 2,3 Thus, identifying modifiable risk factors for vitamin B 12 deficiency is of significant public health importance. Acid inhibitors are among the most commonly used pharmaceuticals in the United States. In 2012, 14.9 million patients received 157 million prescriptions for proton pump inhibitors (PPIs); thus, use of PPIs could theoretically increase the population's risk of vitamin B 12 deficiency. 4 Gastric acid is required to cleave vitamin B 12 from ingested dietary proteins for the essential vitamins to be absorbed, and it is produced by the same cells that produce intrinsic factor, a compound required for vitamin B 12 absorption. 5 Thus, PPIs and histamine 2 receptor antagonists (H 2 RAs), which suppress the production of gastric acid, may lead to malabsorption of vitamin B 12. IMPORTANCE Proton pump inhibitors (PPIs) and histamine 2 receptor antagonists (H 2 RAs) suppress the production of gastric acid and thus may lead to malabsorption of vitamin B 12. However, few data exist regarding the associations between long-term exposure to these medications and vitamin B 12 deficiency in large population-based studies. OBJECTIVE To study the association between use of PPIs and H 2 RAs and vitamin B 12 deficiency in a community-based setting in the United States. DESIGN, SETTING, AND PATIENTS We evaluated the association between vitamin B 12 deficiency and prior use of acid-suppressing medication using a case-control study within the Kaiser Permanente Northern California population. We compared 25 956 patients having incident diagnoses of vitamin B 12 deficiency between January 1997 and June 2011 with 184 199 patients without B 12 deficiency. Exposures and outcomes were ascertained via electronic pharmacy, laboratory, and diagnostic databases. MAIN OUTCOMES AND MEASURES Risk of vitamin B 12 deficiency was estimated using odds ratios (ORs) from conditional logistic regression. RESULTS Among patients with incident diagnoses of vitamin B 12 deficiency, 3120 (12.0%) were dispensed a 2 or more years' supply of PPIs, 1087 (4.2%) were dispensed a 2 or more years' supply of H 2 RAs (without any PPI use), and 21 749 (83.8%) had not received prescriptions for either PPIs or H 2 RAs. Among patients without vitamin B 12 deficiency, 13 210 (7.2%) were dispensed a 2 or more years' supply of PPIs, 5897 (3.2%) were dispensed a 2 or more years' supply of H 2 RAs (without any PPI use), and 165 092 (89.6%) had not received prescriptions for eithe...