Proton pump inhibitors (PPIs) and histamine 2 receptor antagonists (H2RAs) suppress the production of gastric acid and thus may lead to malabsorption of vitamin B12. However, few data exist regarding the associations between long-term exposure to these medications and vitamin B12 deficiency in large population-based studies.