Does vitamin B12 supplementation cause insomnia?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: March 7, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Does B12 Cause Insomnia?

Vitamin B12 supplementation can cause insomnia, particularly at high doses or with certain formulations, though the relationship is complex and bidirectional—both deficiency and excess can disrupt sleep.

The Dual Nature of B12 and Sleep

The evidence reveals a nuanced picture where B12 affects sleep in opposite directions depending on dose, formulation, and baseline status:

High-Dose B12 Can Trigger Insomnia

The FDA drug label lists insomnia as a recognized adverse effect of vitamin B12 treatment 1. A case report documented clear toxicity symptoms including insomnia, anxiety, and akathisia in a patient who received 12 mg total of cyanocobalamin over multiple days for pernicious anemia treatment 2. These symptoms resolved two weeks after stopping the medication.

Methylcobalamin appears more likely to cause sleep disruption than cyanocobalamin. A controlled study found that methylcobalamin (MB12) significantly reduced sleep time and affected melatonin metabolism, with effects on alertness correlating with plasma B12 levels 3. The mechanism involves direct suppression of melatonin—both forms of B12 reduced urinary melatonin metabolite (aMT6s) excretion, particularly during morning hours (0700-1100), while increasing nighttime activity 3.

Elevated B12 Levels Associated with Insomnia

In diabetic patients, elevated serum B12 levels (>517.50 pg/mL) independently predicted insomnia risk with an odds ratio of 1.61 4. Importantly, this elevation was closely correlated with mecobalamin supplementation use, suggesting iatrogenic causation rather than a protective effect 4.

Low B12 Also Linked to Sleep Problems

Conversely, vitamin B12 levels below 342 pg/mL were significantly associated with insomnia symptoms in primary care patients, with an odds ratio of 2.434, particularly in elderly, non-obese, and female participants 5. B12 deficiency can manifest with insomnia as part of its neuropsychiatric presentation 6.

Clinical Algorithm for Managing B12 and Sleep

When evaluating insomnia in the context of B12:

  1. Check current B12 supplementation status first

    • If taking high-dose B12 (>1000 mcg daily) or methylcobalamin specifically, consider this as a potential cause
    • Symptoms typically include insomnia plus anxiety, palpitations, or akathisia 2
    • Trial discontinuation or dose reduction; improvement expected within 2 weeks 2
  2. Measure serum B12 levels

    • Levels >517 pg/mL: Consider B12 excess as contributing to insomnia, especially if on supplementation 4
    • Levels <342 pg/mL: Deficiency may be contributing to sleep problems 5
    • Use either total B12 or active B12 (holotranscobalamin) as initial test 7
  3. For treatment-related insomnia:

    • Switch from methylcobalamin to cyanocobalamin if possible (less alerting effect) 3
    • Reduce dose to minimum effective level
    • Time administration to morning rather than evening

Important Caveats

  • The therapeutic window matters: both deficiency and excess can cause insomnia through different mechanisms
  • Methylcobalamin has more pronounced effects on circadian rhythm and alertness than cyanocobalamin 3
  • In infants, B12 supplementation showed no benefit for sleep, with a small negative effect on sleep onset latency 8, suggesting age-dependent responses
  • When B12 is part of combination supplements (with magnesium and melatonin), beneficial effects on insomnia were observed 9, but this doesn't isolate B12's individual contribution

The NICE guidelines 7 focus on deficiency diagnosis and treatment but don't address sleep-related adverse effects, highlighting a gap in formal guidance on this issue.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.