In this article
The other, equally important, part is understanding why the vitamin is lacking. The causes of vitamin B12 deficiency range from a diet low in animal products to stomach and bowel disorders, as well as very commonly used medicines. The cause determines the type and duration of treatment and whether long-term monitoring is needed.
This article describes vitamin B12's journey from food to the cells, the main causes of deficiency and the tests that can help the doctor identify them. It is not intended to interpret individual cases: the doctor who requested the tests investigates the cause based on the medical history, medicines and physical examination.
Vitamin B12's journey through the body
Vitamin B12 absorption is a multi-stage process, and each stage can fail. In food, the vitamin is bound to proteins. In the stomach, acid and digestive enzymes release it from these proteins. At the same time, cells in the stomach lining produce intrinsic factor, a protein that binds to B12 in the bowel and carries it to the ileum, the final part of the small intestine, where it is absorbed.
Once in the blood, the vitamin is carried by specific proteins; holotranscobalamin is the fraction that delivers B12 to the cells. Excess B12 is stored mainly in the liver, in amounts sufficient for several years. This is why many causes of deficiency only become apparent long after they begin.
| Stage | Where it occurs | What can go wrong |
|---|---|---|
| Intake | Diet | Diet low in animal products |
| Release from food proteins | Stomach | Too little acid (atrophic gastritis, medicines) |
| Binding to intrinsic factor | Stomach and duodenum | Lack of intrinsic factor (autoimmune gastritis, gastrectomy) |
| Absorption | Terminal ileum | Crohn's disease, ileal surgery, other bowel disorders |
| Transport and use | Blood and cells | Nitrous oxide, rare inherited conditions |
Diet
Vitamin B12 is produced by bacteria and reaches the human diet almost exclusively through animal products: meat, fish, seafood, eggs and dairy products. Plant foods are not reliable sources unless they are fortified.
People following an unsupplemented vegan diet will exhaust their stores after a few years. The risk is lower in vegetarians who eat eggs and dairy products, but remains if intake is low. Older people with a poor diet, people with eating disorders and those with alcohol dependence may also have an insufficient intake. The 2014 British Society for Haematology guideline notes that deficiency due solely to diet is relatively rare outside these groups.
Autoimmune gastritis (pernicious anaemia)
Autoimmune gastritis is a condition in which the immune system attacks cells in the stomach lining that produce acid and intrinsic factor. Without intrinsic factor, virtually no B12 from food is absorbed, however rich the diet. For decades, this condition was called pernicious anaemia. The 2024 NICE guideline chose the term autoimmune gastritis because the condition can cause deficiency and neurological symptoms even before anaemia develops.
It is more common from middle age onwards and in people with other autoimmune conditions, such as thyroid disease, type 1 diabetes or vitiligo. Diagnosis is supported by antibody tests: intrinsic factor antibodies are highly specific but are only present in some people with the condition, so a negative result does not rule it out. Parietal cell antibodies are more common but less specific. If suspicion remains, the doctor may refer the patient for a gastroenterology assessment.
| Feature | Autoimmune gastritis |
|---|---|
| Mechanism | Autoimmune destruction of the cells that produce acid and intrinsic factor |
| Groups more commonly affected | Middle-aged and older people; people with other autoimmune conditions |
| Intrinsic factor antibodies | Highly specific, but negative in some patients |
| Parietal cell antibodies | More common, less specific |
| Implications for treatment | Usually lifelong treatment |
| Monitoring | NICE addresses monitoring for the risk of stomach cancer |
Medicines
Some medicines used by many people for years can lower vitamin B12. Metformin, one of the most widely used medicines for type 2 diabetes, is associated with lower B12 levels, particularly at high doses and with long-term use. Proton pump inhibitors and other medicines that reduce stomach acid make it harder to release B12 from food.
These medicines are important to the health of those who take them, and finding low B12 is not a reason to stop them. The decision to continue, adjust or add a supplement should be made by the doctor. The 2024 NICE guideline includes specific recommendations for medicine-induced deficiency.
| Medicine or substance | Likely mechanism | Note |
|---|---|---|
| Metformin | Interference with absorption in the ileum | Risk increases with dose and duration |
| Proton pump inhibitors | Less acid, less B12 released from food | Prolonged use |
| H2-receptor antagonists | Less acid | Prolonged use |
| Nitrous oxide | Inactivation of existing B12 | Recreational use or repeated anaesthesia |
| Colchicine | Possible interference with absorption | Rarely relevant |
Never stop a prescribed medicine because of a test result without speaking to your doctor.
Surgery and digestive conditions
Operations that remove or bypass part of the stomach, such as gastrectomy and various forms of bariatric surgery, reduce the production of acid and intrinsic factor. People who have had these operations therefore usually need B12 supplements and lifelong monitoring.
Conditions or operations affecting the terminal ileum, such as Crohn's disease or surgical removal of this part of the bowel, impair absorption. Other causes include pancreatic insufficiency, small intestinal bacterial overgrowth and, less commonly, coeliac disease and certain parasitic infections.
| Digestive condition | Why B12 falls |
|---|---|
| Total or partial gastrectomy | Less intrinsic factor and less acid |
| Bariatric surgery | Changes to the anatomy of the stomach and bowel |
| Crohn's disease involving the ileum | Damage to the site of absorption |
| Surgical removal of the ileum | Loss of the site of absorption |
| Bacterial overgrowth | The bacteria consume B12 |
| Pancreatic insufficiency | Difficulty releasing B12 from carrier proteins |
Age and atrophic gastritis
Atrophic gastritis becomes more common with age. This chronic inflammation reduces acid production in the stomach. Some people retain intrinsic factor but cannot release B12 properly from food. Sometimes called food-cobalamin malabsorption, this is considered one of the most common causes of low B12 in older people.
In these cases, B12 in supplement form, which is not bound to proteins, is usually absorbed better than B12 from food. Chronic Helicobacter pylori infection may contribute to atrophic gastritis, and the doctor may decide to investigate it.
Nitrous oxide and rare causes
Nitrous oxide, used in anaesthesia and recreationally as "laughing gas", inactivates vitamin B12 already in the body. Repeated recreational use has been linked to severe neurological damage in young people, sometimes within a few weeks. The 2024 NICE guideline includes this cause and highlights that the blood B12 level may appear normal.
There are also rare inherited conditions that affect the transport or use of vitamin B12, usually diagnosed in childhood. In breastfed babies whose mothers have untreated deficiency, low B12 can cause serious developmental problems.
How the doctor investigates the cause
The investigation begins with the medical history: diet, medicines, previous surgery, autoimmune conditions, digestive symptoms, alcohol consumption and any nitrous oxide use. The doctor may request intrinsic factor antibody tests, particularly when there is no other obvious cause. An endoscopy or other digestive investigations may be needed in some cases.
The 2014 British guideline and the 2024 NICE guideline emphasise that identifying the cause is essential when deciding on treatment. A dietary deficiency may be corrected with oral supplements and changes in habits; autoimmune gastritis or stomach surgery may require lifelong treatment, often by injection.
| Clue in the medical history | Cause to consider |
|---|---|
| Unsupplemented vegan diet | Insufficient intake |
| Other autoimmune conditions | Autoimmune gastritis |
| Diabetes treated with metformin | Medicine |
| Long-term use of acid-reducing medicines | Medicine |
| Stomach or bowel surgery | Malabsorption |
| Recreational use of "laughing gas" | Nitrous oxide |
| Older age with no other cause | Atrophic gastritis |
At Clínica Alegre in Setúbal and Seixal, you can have laboratory tests and ask our team any questions about the results.
Frequently asked questions
Can I be deficient in B12 if I eat meat and fish?
Yes. Many deficiencies result from absorption problems, such as autoimmune gastritis or medicines, rather than diet.
What is pernicious anaemia?
It is the traditional name for deficiency caused by this form of gastritis. NICE now uses a more precise term for the condition.
Does metformin lower B12?
It can, particularly with long-term use and high doses. Do not stop the medicine; speak to your doctor about monitoring.
Can stomach medicines cause B12 deficiency?
Medicines that reduce acid, when used for a long time, can make it harder to absorb B12 from food.
Do negative antibodies rule out autoimmune gastritis?
Not necessarily. Intrinsic factor antibodies are negative in some people with the condition.
Is "laughing gas" dangerous for B12?
Yes. Recreational use can inactivate B12 and cause severe neurological damage in a short time.
Will I need B12 for life after bariatric surgery?
In many cases, yes. The team managing your surgery will set the supplementation and monitoring plan.
Did you enjoy this article?
Scientific references2
- Devalia V, Hamilton MS, Molloy AM; British Committee for Standards in Haematology. Guidelines for the diagnosis and treatment of vitamin B12 and folic acid disorders. Br J Haematol. 2014;166(4):496–513.
- National Institute for Health and Care Excellence. Vitamin B12 deficiency in over-16s: diagnosis and management. NICE guideline NG239. London: NICE; 2024.





