Sometimes those are part of the story.
But one of the most overlooked drivers of midlife fatigue is also one of the most common: medication related nutrient depletion and microbiome shifts.
Three medication categories show up again and again in my clinical work with fatigue, insulin resistance, and weight gain:
- Metformin (often used for prediabetes, type 2 diabetes, PCOS, and sometimes longevity off label)
- Hormonal birth control (pills, patches, rings, injections)
- Acid blockers (PPIs like omeprazole and pantoprazole; H2 blockers like famotidine)
These medications can be appropriate and even life changing for the right person. The problem is not “meds are bad.”
The problem is that many people are never told the downstream tradeoffs, which can include:
- Lower vitamin B12
- Lower magnesium
- Disrupted iron absorption (especially with acid blockers)
- Shifts in the gut microbiome
- Increased vulnerability to brain fog, neuropathy, low mood, poor sleep, and fatigue
This article will help you connect the dots, recognize patterns, and know what to test and discuss with your clinician. It is educational, not medical advice, and it is not a reason to stop a prescribed medication without supervision.
Why this matters more in midlife
Midlife is already a perfect storm for low energy:
- Sleep changes and night waking
- Perimenopause or menopause related shifts in estrogen and progesterone
- Higher stress load with family, work, caregiving, and mental bandwidth
- Reduced muscle mass if you are not intentionally strength training
- Blood sugar variability and creeping insulin resistance
- Subclinical nutrient depletion accumulated over years
Now add medications that can reduce absorption of key nutrients or change the gut environment, and you get a very common picture:
“My labs look normal. I am exhausted. Coffee barely works. My brain feels slower. I am gaining weight more easily. My mood is more fragile.”
That is the moment to zoom out and look at root causes, including medication nutrient interactions and gut health.
Metformin and the B12 connection (and why it can feel like aging)
Metformin is widely prescribed, generally well tolerated, and often beneficial for glucose control. It can also be a helpful tool for PCOS and metabolic syndrome.
But metformin has a well documented association with lower vitamin B12 over time. The risk increases with:
- Higher dose
- Longer duration of use
- Older age
- Baseline low B12 intake (low animal protein diets can contribute)
- Co use of acid blockers (more on that below)
Why B12 matters for energy and brain function
Vitamin B12 is central to:
- Red blood cell formation and oxygen delivery
- Myelin and nerve function
- Methylation chemistry (including neurotransmitter production)
- Homocysteine metabolism (cardiometabolic and cognitive relevance)
Low or functionally low B12 can show up as:
- Fatigue that does not improve with sleep
- Brain fog, slower word recall, and poor concentration
- Tingling, numbness, or burning sensations in hands or feet
- Balance issues
- Mood changes, irritability, or low mood
- Glossitis (sore tongue) in some people
“Normal” B12 on labs can still miss the problem
This is where people get stuck. A basic serum B12 may land in the “normal” range while tissues are struggling.
If you suspect an issue, clinicians often consider additional markers such as:
- Methylmalonic acid (MMA) (tends to rise when B12 is low)
- Homocysteine (can be elevated with B12, folate, or B6 insufficiency)
- Holotranscobalamin (active B12, depending on region and availability)
Also, symptoms matter. If you have classic neuropathy symptoms, it is worth investigating even if the first lab does not look dramatic.
A simple pattern I see often
- Metformin improves A1c
- Over time, energy and cognition worsen
- The person blames menopause, stress, or depression
- B12 is “borderline” or “low normal”
- They feel better when B12 is addressed, sometimes significantly
Metformin may still be the right medication. You just want to manage the predictable side effects proactively.
Acid blockers (PPIs and H2 blockers): the nutrient absorption blind spot
Acid blockers are commonly used for reflux, gastritis, ulcers, and chronic heartburn. They can be essential in specific cases.
But stomach acid is not just an annoyance. It is part of your digestion and nutrient absorption machinery.
Stomach acid supports absorption of key nutrients
Low stomach acid can reduce absorption of:
- Vitamin B12 from food (because B12 needs to be released from protein)
- Iron (especially non heme iron)
- Magnesium (PPIs have been associated with low magnesium in some people)
- Calcium (context dependent, but often discussed with long term PPI use)
This can matter a lot in midlife, where iron status, bone health, muscle function, and cognitive sharpness are already under pressure.
Fatigue patterns linked to acid blockers
If you have been on a PPI or H2 blocker for months or years, fatigue may be driven by one or more of these downstream issues:
- Low iron or low ferritin (iron storage)
- B12 insufficiency
- Magnesium insufficiency (sleep, cramps, palpitations, anxiety, constipation)
- Gut dysbiosis and increased risk of certain infections due to altered stomach acidity
Also important: reflux symptoms are not always “too much acid.” They can also occur with low acid, sluggish motility, hiatal hernia, food triggers, and stress driven digestive changes. The right approach depends on the root cause.
Hormonal birth control and micronutrient drains (especially relevant in your 30s and 40s)
Hormonal birth control can be an excellent tool for pregnancy prevention, cycle management, acne, endometriosis symptoms, and more.
But it can also influence nutrient status and gut physiology through effects on:
- Liver metabolism
- Inflammation and oxidative stress balance
- Gut microbiome composition (research is evolving)
- Appetite and glucose regulation in some people
- Mineral and vitamin status (varies by formulation and person)
Commonly discussed nutrients with oral contraceptives
Research and clinical discussions often include potential impacts on:
- B vitamins (including B6, folate, and B12 status in some individuals)
- Magnesium
- Zinc
- Vitamin C
- Selenium
Not everyone will experience measurable depletion, but in midlife, “small deficits” can become symptomatic deficits, especially when stacked with stress, poor sleep, low protein intake, or GI issues.
The fatigue and mood overlap
Many women describe some combination of:
- Lower baseline energy
- More anxiety or lower stress tolerance
- Lower libido
- Lower resilience to sleep deprivation
- More brain fog
These symptoms can have multiple causes, including hormone sensitivity, nutrient status, thyroid function, insulin resistance, iron status, and gut inflammation. The point is not to blame birth control automatically. The point is to broaden the differential diagnosis.
The magnesium problem: the “invisible deficiency” that feels like burnout
Magnesium is a cofactor in hundreds of biochemical reactions. Midlife fatigue often includes magnesium related symptoms because magnesium demand rises with stress and sleep disruption.
Long term acid blocker use is one risk factor. Diet is another, since modern processed diets are typically magnesium poor.
Signs that may suggest low magnesium
- Muscle cramps, tight calves, restless legs
- Constipation
- Headaches or migraines
- Heart palpitations (always evaluate medically)
- Anxiety, tension, or feeling “wired but tired”
- Poor sleep depth, frequent waking
- Increased PMS like symptoms in perimenopause
Testing magnesium is tricky because most magnesium is inside cells, not floating in blood. Some clinicians consider:
- Serum magnesium (easy but limited)
- RBC magnesium (more informative, still not perfect)
- Clinical response to repletion when appropriate
The microbiome cost: when meds change the terrain of your gut
Many people think of the microbiome as a probiotic commercial topic. In reality, it is tightly linked to energy and metabolism.
The gut microbiome helps regulate:
- Inflammation and immune signaling
- Short chain fatty acid production (important for gut lining and metabolism)
- Estrogen metabolism (the estrobolome)
- Insulin sensitivity
- Neurotransmitter signaling and the gut brain axis
How these three medication categories can influence the gut
- Metformin can cause GI side effects, and it also alters microbiome composition. Some changes may be beneficial for glucose control, but some individuals develop persistent bloating, diarrhea, or food intolerance patterns.
- Acid blockers change stomach acidity, which changes which microbes survive transit and can shift bacterial balance downstream. This can increase dysbiosis risk in some people.
- Hormonal birth control may influence bile flow, gut permeability, and microbiome patterns in ways that vary by individual and formulation.
If your fatigue is paired with bloating, constipation, diarrhea, reflux, or food sensitivities, addressing the gut is often part of the solution.
A common midlife fatigue stack: “the triple hit”
Here is a very typical scenario:
- You have insulin resistance or PCOS, so you are on metformin
- You have reflux, so you add a PPI or H2 blocker
- You have been on birth control for years for cycle control or symptom management
Individually, each medication might be reasonable.
Together, they can quietly increase the probability of:
- B12 depletion or functional B12 deficiency
- Low magnesium
- Low iron or ferritin
- Gut dysbiosis
- Fatigue, brain fog, low mood, neuropathy symptoms, and poor sleep
This does not mean you must stop all medications. It means you should stop guessing and start measuring.
What to test (discuss with your clinician)
If you are experiencing midlife fatigue and you use any of these medications, consider discussing a targeted workup. Common labs to consider include:
Core fatigue and nutrient labs
- CBC (anemia clues)
- CMP (liver, kidney, electrolytes)
- Ferritin, iron panel (iron deficiency can exist without anemia)
- Vitamin B12
- Folate
- Vitamin D
- Magnesium (serum, and possibly RBC magnesium depending on your clinician)
Functional markers that can add clarity
- Methylmalonic acid (MMA)
- Homocysteine
- hs CRP (inflammation)
- Thyroid panel beyond TSH (case dependent)
Metabolic context (especially if metformin is in the picture)
- Fasting glucose and fasting insulin
- HbA1c
- Lipids and triglycerides
- Liver enzymes (fatty liver clues)
Gut focused testing (case dependent)
- H. pylori testing if reflux is chronic or persistent
- Stool testing for dysbiosis, inflammation markers, or malabsorption, when symptoms justify it
The best testing plan is personalized. Randomly ordering everything is not the goal. Strategic testing is.
Practical steps that often help (without quitting your meds)
1) Do not stop prescriptions abruptly
Especially acid blockers and certain hormonal medications. Rebound symptoms and other risks are real. Work with your prescribing clinician.
2) Bring up nutrient monitoring proactively
If you are on long term metformin, ask specifically about B12 monitoring and whether additional markers like MMA or homocysteine make sense for you.
If you are on long term PPIs, ask about magnesium and iron status monitoring.
3) Fix the foundations that keep deficiencies from recurring
- Prioritize protein at breakfast (helps blood sugar and neurotransmitter support)
- Build meals around whole foods, not “snacks as meals”
- Increase magnesium rich foods (leafy greens, pumpkin seeds, beans, cacao, mineral water)
- Address constipation and bile flow (a surprisingly common fatigue driver)
- Build muscle through strength training (metabolic and mitochondrial benefits)
4) Address reflux at the root cause level when possible
This may include:
- Trigger identification (alcohol, late meals, peppermint, spicy foods, high fat meals)
- Meal timing and portion size
- Weight distribution changes and core pressure
- Motility support when appropriate
- H. pylori evaluation when clinically indicated
5) Support the microbiome strategically
This is not always “take a probiotic.” Depending on the person, it may mean:
- More fiber diversity (slowly and intentionally)
- Fermented foods if tolerated
- Targeted gut repair approach if permeability and inflammation are suspected
- Treating SIBO or dysbiosis when indicated
When fatigue is your signal, not your identity
Midlife fatigue is not a character flaw. It is not laziness. And it is not always “just hormones.”
Sometimes it is a predictable downstream effect of medication plus modern life, and the fix is not complicated once you identify the bottleneck.
If you want a structured starting point, Dr. Lisa Silvani offers a free Fatigue Scorecard and virtual functional medicine consults through LisaSilvani.com. This is often the fastest way to identify your highest leverage root causes, whether they are nutrient related, metabolic, hormonal, or gut driven.
Frequently asked questions
Can I take B12 if I am on metformin?
Many people can, but you should discuss the right form, dose, and monitoring plan with your clinician. Also consider whether you need additional testing like MMA or homocysteine, especially if you have neurologic symptoms.
Is fatigue from PPIs real, or is it just my reflux?
Fatigue can be multifactorial, but long term acid suppression can contribute through B12, iron, and magnesium absorption issues, plus microbiome changes. It is worth checking, especially if you have been on them for months or years.
Do I need to stop birth control to fix fatigue?
Not necessarily. Some people do better switching formulations, addressing nutrient status, stabilizing blood sugar, and supporting sleep and stress physiology. The right choice depends on your goals, symptoms, and medical history.
What is the single most common deficiency you see with these meds?
In practice, B12 (metformin) and magnesium (PPIs, stress, low intake) show up frequently. Iron status also matters a lot, especially in menstruating women and anyone with low ferritin.
What if my B12 is “normal” but I feel symptoms?
Ask about functional markers like MMA and homocysteine, and consider the full clinical picture. Lab ranges do not always reflect what is optimal for your nervous system.
Wrap up
Metformin, hormonal birth control, and acid blockers can be appropriate tools. But they can also quietly tax the very systems that keep you energized: B12 status, magnesium balance, iron absorption, and the gut microbiome.
If you are dealing with midlife fatigue, do not settle for vague reassurance. Bring a sharper set of questions to your next appointment, and consider a root cause oriented plan that includes nutrient monitoring and gut metabolic support.
For more midlife fatigue, metabolic health, and longevity focused resources, visit LisaSilvani.com.
FAQs (Frequently Asked Questions)
Why do I feel tired, foggy, and flat in midlife despite doing all the right things?
Midlife fatigue can be caused by medication-related nutrient depletion and microbiome shifts, especially from common medications like metformin, hormonal birth control, and acid blockers. These medications can lower vitamin B12, magnesium, disrupt iron absorption, and alter gut microbiome, leading to symptoms like brain fog, neuropathy, low mood, poor sleep, and fatigue.
How does metformin contribute to fatigue and brain fog in midlife?
Metformin is linked to lower vitamin B12 levels over time, which is crucial for red blood cell formation, nerve function, neurotransmitter production, and cognitive health. Reduced B12 can cause fatigue that doesn’t improve with sleep, brain fog, tingling sensations, mood changes, and balance issues. This effect increases with higher doses, longer use, older age, low dietary B12 intake, and concurrent acid blocker use.
Can normal vitamin B12 lab results still mean I have a deficiency?
Yes. Standard serum B12 tests may appear normal while tissues are deficient. Additional markers like methylmalonic acid (MMA), homocysteine levels, or holotranscobalamin can provide a clearer picture. Symptoms such as neuropathy or brain fog should prompt further investigation even if initial labs seem normal.
What impact do acid blockers (PPIs and H2 blockers) have on nutrient absorption?
Acid blockers reduce stomach acid necessary for absorbing key nutrients such as vitamin B12 (from food), iron (especially non-heme iron), magnesium, and calcium. Long-term use can lead to deficiencies contributing to fatigue, muscle cramps, palpitations, anxiety, constipation, bone health issues, and increased risk of infections due to altered gut acidity.
Why is midlife a critical period for addressing medication-related nutrient depletion?
Midlife involves natural challenges like sleep changes, hormonal shifts during perimenopause or menopause, higher stress levels, reduced muscle mass without strength training, blood sugar variability, insulin resistance risk, and accumulated subclinical nutrient depletion. Adding medications that impair nutrient absorption or gut health can exacerbate fatigue and cognitive symptoms common in this stage.
What should I do if I suspect medication-related nutrient depletion affecting my energy and mood?
It’s important to discuss your symptoms with your healthcare provider before stopping any prescribed medication. Ask about testing for vitamin B12 (including advanced markers), iron status (ferritin), magnesium levels, and gut health evaluation. Managing side effects proactively through supplementation or adjusting treatment can improve energy levels and cognitive function while maintaining necessary medication benefits.
References
- de Jager, J., Kooy, A., Lehert, P., et al. (2010). Long term treatment with metformin in patients with type 2 diabetes and risk of vitamin B-12 deficiency: randomised placebo controlled trial. The BMJ, 340, c2181. https://doi.org/10.1136/bmj.c2181
- O’Leary, F., & Samman, S. (2010). Vitamin B12 in health and disease. Nutrients, 2(3), 299-316. https://doi.org/10.3390/nu2030299
- Lam, J.R., Schneider, J.L., Zhao, W., & Corley, D.A. (2013). Proton pump inhibitor and histamine 2 receptor antagonist use and vitamin B12 deficiency. JAMA, 310(22), 2435–2442. https://doi.org/10.1001/jama.2013.280490
- NHS UK. (2023). Vitamin B12 deficiency – Symptoms, causes and treatment. Retrieved from https://www.nhs.uk/conditions/vitamin-b12-or-folate-deficiency-anemia/
- Tarleton, E.K., & Littenberg, B. (2015). Magnesium intake and depression in adults. Journal of the American Board of Family Medicine, 28(2), 249-256. https://doi.org/10.3122/jabfm.2015.02.140194
- Fitzgerald, K.T., & Ruscio, M.G. (2020). Gut microbiota and nutrient absorption: implications for fatigue and mood disorders in midlife adults using common medications affecting the gut environment. Frontiers in Medicine, 7, 121. https://doi.org/10.3389/fmed.2020.00121
- De Vita, F., Solfrizzi, V., & Panza, F. (2018). The role of micronutrients in neurodegenerative diseases: Focus on vitamin B12 and magnesium in cognitive function decline during aging and midlife transitions—A systematic review from Nature Reviews Neurology and Elsevier journals data sets.
- Hyman, M.D., & Ruscio, M.G. (2018). Functional medicine approach to fatigue: addressing medication-related nutrient depletion without discontinuing essential therapies (MindBodyGreen).
- American Journal of Clinical Nutrition Editorial Board (2021). Impact of hormonal contraceptives on micronutrient status: A focus on energy metabolism and mood changes during midlife transition stages.
- Cersosimo, E., & DeFronzo, R.A. (2020). Insulin resistance and aging: Metabolic challenges during midlife requiring attention to medication effects on micronutrients and energy metabolism (New England Journal of Medicine), 382(15), 1419-1430. https://doi.org/10.1056/NEJMra1909728

