No trial in the evidence file behind this page tests a B12 injection with migraine as the outcome. The nearest data are placebo-controlled injection trials in other conditions, which are small and mostly null, plus oral-versus-injection trials in people who are actually B12 deficient. If you are searching "b12 injection migraine", the honest answer is that the idea is untested, and the injection is only well supported when blood B12 is low.
Has anyone tested B12 shots for migraine attacks or prevention?
Not in the human evidence I hold. The trials in the file ask whether B12 corrects deficiency, whether pills do the same job as injections, and whether injections help nerve or pain conditions in people with and without low levels. None enrolled people for migraine frequency, severity, or disability. A popular write-up of a B-vitamin migraine study reports benefit from a daily oral combination of folic acid, B6 and B12. That design cannot separate B12 from its partners, and it was not an injection, so it says nothing about a shot.
The U.S. label for cyanocobalamin injection lists B12 deficiency from malabsorption as its indication, with pernicious anemia, gastrointestinal disease or surgery, fish tapeworm, bowel or pancreatic malignancy and folic acid deficiency as examples. Migraine is not on it. Using it for migraine is off-label, and no registered trial I found would let anyone claim otherwise.
Why B12 gets linked to migraine at all
The argument runs through homocysteine. Migraine with aura has been associated with higher homocysteine, and B12, B6 and folate lower it. That second step is real for injections. In a randomised trial of 120 people with type 2 diabetes, 500 micrograms of intramuscular methylcobalamin daily cut homocysteine by 37.3%, against 14.0% for folic acid and 2.8% for no treatment. In 40 haemodialysis patients, homocysteine normalised in 18 of 20 on intravenous methylcobalamin plus folate versus 6 of 20 on folate alone.
The gap is the last step. Lowering a blood marker is a mechanism, and nobody has shown that it means fewer migraine days after a B12 shot. The nutrients with better-known migraine prevention claims (riboflavin, magnesium, CoQ10) are oral, and none of them is B12.
What injected B12 did against placebo when deficiency was not the question
These trials are the closest proxy for "does a shot do something in people who are not clearly deficient". The pattern is that results appear when a biochemical marker is abnormal and fade when it is not.
| Trial | Population, n | Injection | Comparator | Result |
|---|---|---|---|---|
| Danish trial, 2003 | Adults with modestly raised methylmalonic acid, n=140 | Weekly for 4 weeks | Placebo injection | One of eight quality-of-life dimensions improved (general health, P=0.03) at 3 months |
| Singer trial, 2021 | Healthy singers, n=20, crossover | One 1000 microgram dose | Saline | Median difference 1.5 (95% CI -2 to 5) on the voice symptom score; no benefit |
| ALS trial, 2019 | Adults with ALS, n=373 | 25 mg or 50 mg methylcobalamin, up to 182 weeks | Placebo | No difference on either primary endpoint (minimal p=0.087) |
| Back pain trial, 2011 | Chronic nonspecific low back pain, n=60 | 500 micrograms methylcobalamin three times weekly for 2 weeks | Saline | Disability and pain scores better than placebo (p under 0.05) at 2 months |
| Back pain trial, 2000 | Mechanical chronic low back pain, n=60 | Intramuscular B12 product | Placebo | Favoured active treatment (p under 0.0001 for pain); a later review describes the product as B12 combined with liposomes, so B12 alone is not isolated |
| Infant trial, 2013 | Infants under 8 months with raised homocysteine, n=79 | One 400 microgram hydroxocobalamin dose | Sham injection | Motor score rose 7.0 vs 4.5 (P=0.003); homocysteine fell 54% |
Read together, the null results (singers, ALS, most of the Danish outcomes) came from people with no clear deficiency, and the clearest win came from infants selected for abnormal markers. The back pain trials are the exception, and both are small, two weeks of treatment each, with pain scored by the participants themselves. Pain scores are also the outcome migraine trials use. That makes the back pain result the one finding here that could be relevant, but it concerns a different pain condition and has not been replicated in a headache population.
When B12 is low, do shots beat pills?
This is the question the B12 injection literature does answer, and it matters for migraine because anyone whose migraine coexists with a real deficiency (metformin use, gastric surgery, pernicious anemia, strict vegan diet) is the person for whom an injection has a defensible reason.
- A 2024 network meta-analysis of 13 comparative studies (4,275 adults) ranked intramuscular first for raising B12 levels, but the gap versus oral was not statistically significant, and haemoglobin did not differ between routes. The authors called the injection advantage clinically insignificant.
- A systematic review of 3 randomised trials (153 adults, 74 oral and 79 intramuscular, 3 to 4 months) found no clinically relevant difference in serum B12 between 1000 micrograms of oral B12 daily and injections. It rated the evidence low certainty.
- The pragmatic OB12 trial randomised 283 adults aged 65 or older in Spanish primary care. About 90% or more reached normal B12 by week 8 in both arms. At week 52, 73.6% of the oral arm and 80.4% of the injection arm had normal levels, and non-inferiority of oral was not demonstrated. Even so, 83.4% preferred oral.
- A smaller trial of 50 gastric bypass patients (6 months) normalised B12 in everyone, with no difference in B12, methylmalonic acid or homocysteine between injected hydroxocobalamin and oral methylcobalamin.
The label is more cautious than the trials. For pernicious anemia it says parenteral B12 is required for life and that the oral form is not dependable. The labelled loading dose is 100 mcg daily for 6 or 7 days, then 100 mcg monthly. For people who absorb normally, the label says chronic treatment should be oral. A 2024 Danish review still recommends five 1 mg injections over 10 days, then oral or injected maintenance, while stating that no international treatment standard exists. Another 2024 analysis found no clinical trial or RCT backing the current protocols.
What people report after B12 injections (anecdotal, and none of it about migraine)
I read eight forum threads in which people described injection courses. None was about migraine. They were about fatigue, neuropathy-type symptoms and suspected deficiency, so they say something about the experience of the shot and nothing about headaches. Each report below is a single person's account with no control.
- Injection site: commenters describe a sting, soreness or itch. In two threads someone had a hard lump lasting about a day. One person blamed a poorly placed upper-arm injection for a frozen shoulder.
- Early weeks: several commenters in one thread had burning skin, heat intolerance and pins and needles flare in the first weeks, then settle. A separate poster developed muscle twitching, jerks at sleep onset and night itching within weeks of a course.
- Gut: one poster had gas and gut discomfort that began four days after the second injection and lasted nine days.
- Oral first: one commenter noticed improvement within about ten days on oral and sublingual forms, which matches the trials above where pills raised levels about as well as shots.
- Cost and supply: some commenters said in-office schedules became too expensive, and some had started buying their own supplies. Source and dosing quality are not checkable from a forum, and an unregulated supply is a real risk.
The weak spot in these threads is attribution. People combined injections with other nutrients, activity pacing and, in one case, a sauna. One poster with a first self-injection during lockdown credited it with relief that reads at least partly as nerves and adrenaline. Treat these as texture, not efficacy.
Can a B12 shot itself cause a headache?
A patient drug reference quoted by one clinic page lists headache among uncommon effects after cyanocobalamin injection, alongside dizziness, flushing, hives and itching. I found no rate in the trials I hold. The label's contraindication is sensitivity to cobalt or vitamin B12, and a rash, hives, trouble breathing or swallowing after a shot is a reason to stop and seek urgent care. A headache that arrives suddenly, with weakness, numbness, confusion, trouble speaking, fever with a stiff neck, or after a head injury, is an emergency in its own right and not a B12 issue.
Do IV vitamin infusions for migraine change the picture?
The label says to avoid the intravenous route for cyanocobalamin because almost all of the vitamin is lost in the urine. The top clinic page for migraine infusions lists fluids, magnesium and anti-nausea medication as its evidence base, and B12 is not among them. Any benefit someone gets from such a visit is more plausibly explained by hydration or by the anti-nausea drug than by a B vitamin.
Verdict and confidence
- B12 injection for migraine prevention or attack relief: no direct evidence. Confidence that it does nothing special is low to moderate, because the evidence is absent rather than negative.
- B12 injection to correct a confirmed deficiency: strong evidence it works. Moderate evidence it is no better than high-dose oral for most people, low certainty in the pooled trials.
- B12 injection in people with normal levels for symptom relief: weak, mostly null. The placebo-controlled trials above are small, and the two back pain trials are the only positive signals.
Who a B12 shot makes sense for, and who should skip it
It is reasonable to ask about an injection if you have migraine and a measured low B12, pernicious anemia, a history of gastric or bowel surgery that impairs absorption, or long-term metformin use with low levels. The label warns that untreated deficiency lasting more than 3 months can cause permanent spinal cord lesions, so a low level deserves treatment on its own merits.
It is not a reasonable migraine treatment if your level is normal, if you are expecting it to replace a prescribed preventive, or if you are considering an infusion in place of anything that has evidence for migraine. Do not use it with a known cobalt or B12 allergy. The label gives pregnancy category C, meaning adequate controlled studies in pregnant women have not been done. If you notice twitching, new numbness or worsening symptoms after a course, that is a reason to recheck levels and the diagnosis rather than to add more supplements.
What is still unknown
No randomised, placebo-controlled trial has compared B12 injections with saline for monthly migraine days in people with normal B12, and I found none registered. The oral combination study cannot be split into B12 and its partners. Nobody has tested whether the homocysteine drop from an injection translates into fewer headaches. The study that would settle it is a saline-controlled trial in migraine patients with and without low B12, analysed separately.