Magnesium has a genuine, well-documented role in preventing and treating certain types of seizures, but the answer depends heavily on which seizures you’re talking about. For eclamptic seizures during pregnancy, intravenous magnesium sulfate is the gold-standard treatment worldwide, backed by large randomized trials. For seizures caused by magnesium deficiency itself, replacing the missing mineral can stop the episodes entirely. Beyond those two clear-cut situations, the picture gets murkier. Magnesium shows promise in emergency settings for hard-to-treat seizures, and researchers suspect it could help people with everyday epilepsy, but that question hasn’t been rigorously tested in humans yet.
How Magnesium Keeps Neurons From Firing Out of Control
To understand why magnesium matters for seizures at all, it helps to know what the mineral does in the brain. Magnesium sits inside certain receptor channels on nerve cells and acts as a gatekeeper. The most important of these channels is the NMDA receptor, which handles excitatory signaling between neurons. When magnesium levels are adequate, the mineral physically plugs these channels and prevents them from opening too easily. When magnesium drops, that plug loosens, and neurons become far more excitable than they should be.
Animal research has shown that reduced magnesium outside cells removes this natural brake on NMDA receptors, leading to abnormal electrical discharges that look a lot like seizure activity.1PubMed Central. Seizures Related to Hypomagnesemia A Case Series and Review of the Literature Magnesium also influences voltage-gated calcium and sodium channels, both of which play key roles in how signals travel along nerves.2PubMed Central. Magnesium Ions as Modulators of Voltage-Gated and Ligand-Gated Ion Channels in Central Neurons On top of all that, magnesium activates certain inhibitory pathways that counterbalance excitation. Think of it as a natural membrane stabilizer: when magnesium is present in the right amounts, it opposes conditions of neural hyperexcitability across the board.
Lab studies on a model of the human blood-brain barrier have found that higher magnesium concentrations actually decrease barrier permeability while simultaneously allowing magnesium itself to cross into the brain in a dose-dependent fashion.3Magnesium Research. Magnesium and the blood-brain barrier in vitro: effects on permeability and magnesium transport That’s a favorable combination: the mineral gets where it needs to go while helping protect the brain from swelling and inflammatory molecules that can worsen seizures.
Eclampsia Is Where the Evidence Is Strongest
If there’s one seizure context where magnesium has proven itself beyond doubt, it’s eclampsia. Women with severe preeclampsia or eclampsia face a serious risk of seizures during late pregnancy or shortly after delivery. Since the early 1900s, clinicians have used magnesium sulfate to manage these convulsions, and over nearly a century the evidence has only gotten more convincing.4PubMed. Magnesium sulfate: past, present, and future
A Cochrane review covering six trials and more than 11,000 women found that magnesium sulfate cut the risk of eclamptic seizures by more than half compared to placebo.5Cochrane Database of Systematic Reviews. Magnesium sulphate and other anticonvulsants for women with pre‐eclampsia That effect held up against competing anticonvulsants too, which is why guidelines worldwide now recommend magnesium sulfate as the first-line drug for this situation. The treatment clearly prevents seizures, though it has not been shown to reduce overall maternal and perinatal death rates beyond the seizure benefit itself.6American Journal of Obstetrics & Gynecology. Magnesium sulfate in the treatment of eclampsia and preeclampsia
Beyond just stopping the electrical storm, magnesium sulfate appears to protect the brain during eclamptic seizures. Rodent studies modeling eclampsia have shown that magnesium reduces brain swelling and dampens the inflammatory response in brain tissue, promoting neuron survival in regions that are especially vulnerable to seizure-related damage.7PubMed. Magnesium sulfate attenuates brain edema by lowering AQP4 expression and inhibits glia-mediated neuroinflammation in a rodent model of eclampsia 8PubMed. Magnesium Sulfate Provides Neuroprotection in Eclampsia-Like Seizure Model by Ameliorating Neuroinflammation and Brain Edema This neuroprotective layer helps explain why magnesium sulfate outperforms other drugs that simply suppress seizure activity without shielding the brain from collateral damage.
When Low Magnesium Is the Problem in the First Place
Sometimes seizures aren’t a condition that magnesium treats so much as a symptom of magnesium deficiency itself. Hypomagnesemia, the clinical term for abnormally low blood magnesium, can directly trigger convulsions. The connection makes intuitive sense given the gatekeeper role described above: pull away enough magnesium, and the brain’s excitatory circuits lose their restraint.
This shows up in clinical practice more often than you might expect. In veterinary medicine, it’s been recognized for decades as grass tetany in cattle, where low dietary magnesium leads to muscle cramps and seizures closely tied to magnesium levels in cerebrospinal fluid.9PubMed. Pathophysiology of grass tetany and other hypomagnesemias. Implications for clinical management In humans, case series have documented seizures that resolved when magnesium was replaced intravenously, particularly in patients whose low magnesium had gone unrecognized while doctors tried one anti-seizure drug after another.1PubMed Central. Seizures Related to Hypomagnesemia A Case Series and Review of the Literature
The tricky part is that some people are genetically predisposed to chronic magnesium wasting. Mutations in the TRPM6 gene cause a rare condition called familial hypomagnesemia with secondary hypocalcemia. Affected children typically develop neurological symptoms including seizures within the first months of life, because their intestines simply cannot absorb magnesium normally.10PubMed Central. A novel TRPM6 variant (c.3179T>A) causing familial hypomagnesemia with secondary hypocalcemia These children need lifelong high-dose magnesium supplementation, and managing their levels is notoriously difficult because the same genetic defect that causes the problem also limits the body’s ability to hold onto the replacement mineral.11PubMed Central. Treatment Difficulties in Hypomagnesemia Secondary to the Transient Receptor Potential Melastatin 6 Gene: A Case Report with Novel Mutation
Febrile Seizures in Children
Febrile seizures, the convulsions some young children experience during high fevers, have drawn attention in the magnesium research world. Multiple studies have compared magnesium levels in children who had febrile seizures with children who had fevers but no seizures. One study found that low ionized magnesium was dramatically more common in children with febrile seizures than in fever-only controls, appearing in roughly 43% of the seizure group compared to about 7% of controls.12PubMed Central. Risk of low serum levels of ionized magnesium in children with febrile seizure Another study found a negative correlation between magnesium levels and febrile seizure occurrence, suggesting that lower magnesium made seizures more likely.13PubMed Central. Serum hypomagnesemia is associated with febrile seizures in young children
These findings are suggestive but don’t prove that giving magnesium supplements would prevent febrile seizures. It’s possible that the fever itself redistributes minerals in the body, temporarily dropping magnesium. Or children prone to febrile seizures might have subtly different mineral metabolism for reasons unrelated to dietary intake. The association is strong enough to be worth investigating further, but no randomized trial has tested magnesium supplementation as a preventive measure for febrile seizures in children.
Refractory Status Epilepticus and Emergency Use
Some of the most dramatic reports of magnesium helping with seizures come from intensive care units. When a patient has status epilepticus, a prolonged seizure that won’t stop, and the usual medications fail one after another, physicians sometimes turn to intravenous magnesium sulfate as a last-resort option. These cases are rare enough that the evidence comes from case reports and small series rather than randomized trials, but the results have been striking in certain patients.
Two children with febrile illness-related epilepsy syndrome, a devastating condition where seizures become nearly continuous during a febrile illness, were treated with continuous magnesium sulfate infusions after multiple standard anti-seizure drugs failed. One child showed seizure reduction and eventual cessation once magnesium levels were pushed well above the normal range.14PubMed Central. Use of Magnesium Sulfate Infusion for the Management of Febrile Illness-Related Epilepsy Syndrome: A Case Series In two patients with genetic mutations affecting mitochondrial function (POLG1 mutations) who developed refractory status epilepticus, intravenous magnesium led to both clinical and neurophysiological improvement, allowing the patients to be taken off mechanical ventilation relatively quickly.15PubMed Central. Magnesium treatment for patients with refractory status epilepticus due to POLG1-mutations
In another case, a woman with probable autoimmune encephalitis developed super-refractory status epilepticus that resisted multiple medications and even anesthetic drugs. A prolonged magnesium sulfate infusion with serum magnesium titrated well above normal achieved seizure control after 11 days.16PubMed. Prolonged Magnesium Sulphate Infusion in the Management of Super-Refractory Status Epilepticus in a Probable Anti-GABA-B Autoimmune Encephalitis Eleven days is a long time, but for a seizure state that wasn’t responding to anything else, the outcome was considered a success. These emergency protocols involve careful monitoring and intentionally elevated magnesium levels that would be dangerous outside an ICU, so they’re not something anyone should try to replicate at home.
Alcohol Withdrawal Seizures
Chronic heavy drinking depletes magnesium from the body through several pathways: alcohol increases urinary magnesium excretion, damages the gut lining where magnesium is absorbed, and disrupts the hormones that regulate mineral balance. Estimates suggest that roughly 30 to 60% of chronic alcohol users are deficient in magnesium.17Archives of Biological Psychiatry. The importance of monitoring magnesium levels in alcohol withdrawal delirium When someone with this underlying deficiency suddenly stops drinking, the brain is already primed for trouble: magnesium levels are low, NMDA receptors are upregulated from chronic alcohol exposure, and the braking systems that alcohol was artificially providing disappear. The result can be withdrawal seizures, tremors, and in severe cases delirium tremens.
Replacing magnesium intravenously during alcohol withdrawal is a well-established clinical practice. Evidence indicates that parenteral magnesium sulfate reduces the severity of withdrawal symptoms, decreases the need for benzodiazepines (the usual first-line treatment), and shortens hospital stays.18PubMed. Use of magnesium sulfate in alcohol withdrawal Magnesium isn’t a replacement for standard withdrawal management, but it’s a valuable addition, especially when lab work confirms a deficiency.
Can Magnesium Supplements Help Everyday Epilepsy?
Here’s where a lot of people with epilepsy get frustrated: despite the biological logic and the success in other seizure contexts, no one has run a proper randomized trial testing whether oral magnesium supplements reduce seizures in people with garden-variety epilepsy. As far back as 2012, researchers explicitly called out this gap, proposing that a controlled supplementation trial should be conducted and that if the hypothesis held, magnesium would need to be considered in managing refractory epilepsy.19Elsevier (Epilepsy Research). Can magnesium supplementation reduce seizures in people with epilepsy? A hypothesis More than a decade later, that trial still hasn’t been done.
There is some indirect evidence from animal studies. In rats, supplementation with magnesium oxide alongside standard anti-epileptic drugs like phenytoin and carbamazepine appeared to reduce the duration of seizure activity compared to the drugs alone.20PubMed Central. Effect of magnesium oxide on the activity of standard anti-epileptic drugs against experimental seizures in rats That’s an intriguing hint that magnesium might enhance the effectiveness of existing seizure medications, but rat studies don’t always translate to humans. And the specific doses used in animal models don’t map neatly onto what a person would take as a daily supplement.
The bottom line for people with epilepsy: magnesium supplementation is unlikely to replace anti-seizure medication, but if you’re deficient, correcting that deficiency could make your medications work better and lower your overall seizure threshold. That’s a conversation worth having with your neurologist, particularly if you have risk factors for magnesium depletion like chronic stress, poor diet, certain medications (proton pump inhibitors, for instance, are notorious for depleting magnesium), or gastrointestinal conditions that impair absorption.
The Problem With Measuring Magnesium
One reason the relationship between magnesium and seizures remains hard to pin down is that we’re not great at measuring it. The standard blood test reports serum magnesium, which reflects magnesium floating freely in the bloodstream. But magnesium is overwhelmingly an intracellular mineral: the vast majority of it is inside cells, tucked into bones, muscles, and brain tissue. Serum levels can look perfectly normal while the brain is actually running low.
Researchers studying epilepsy patients in Nigeria noted this challenge directly, pointing out that serum magnesium may not truly reflect intracellular magnesium levels, and that low serum readings could be a secondary phenomenon rather than a true cause.21Nigerian Journal of Clinical Practice. Serum Magnesium in Adult Patients with Idiopathic and Symptomatic Epilepsy in Maiduguri, Northeast Nigeria The ideal test would measure magnesium inside red blood cells or directly in cerebrospinal fluid, but those tests are more expensive and not widely available. This measurement gap means that even if you get a normal magnesium level on routine bloodwork, it doesn’t definitively rule out a functional brain deficiency.
This also complicates research. Studies comparing magnesium levels in seizure patients versus controls are generally using the less reliable serum measurement, which adds noise to the data and makes it harder to detect real differences. Until better, more accessible methods for assessing tissue magnesium become routine, the field will keep struggling to answer questions about exactly how often subclinical deficiency contributes to seizure disorders.
Safety Considerations and the Risk of Overcorrection
If magnesium prevents seizures, you might wonder whether more is better. It isn’t. Hypermagnesemia, too much magnesium in the blood, brings its own set of dangers including muscle weakness, dangerously low blood pressure, breathing difficulties, and cardiac arrest.22PubMed Central. Hypermagnesemia in Clinical Practice This is why the ICU protocols for refractory seizures involve constant monitoring of magnesium levels and vital signs: physicians are deliberately pushing levels above normal, knowing the window between therapeutic and toxic is relatively narrow.
For someone taking oral magnesium supplements at standard over-the-counter doses, the risk of hypermagnesemia is very low as long as your kidneys work normally. The kidneys are remarkably efficient at dumping excess magnesium into the urine. The more common side effect of taking too much oral magnesium is diarrhea, which is why magnesium-heavy compounds like milk of magnesia are sold as laxatives. People with kidney disease need to be especially careful, because impaired kidneys can’t clear excess magnesium, and levels can build up to dangerous territory even with modest supplementation.
The form of magnesium matters too, though more for absorption and tolerance than for seizure-specific effects. Magnesium oxide is cheap and widely available but relatively poorly absorbed and more likely to cause gastrointestinal upset. Other forms like magnesium glycinate and magnesium citrate tend to be better tolerated. For intravenous use, magnesium sulfate is the standard in hospitals. If you’re exploring supplementation, the specific salt matters less than getting a form your body can absorb without making you run to the bathroom.
How Magnesium Got From Tetanus Treatment to Obstetric Mainstay
The medical use of magnesium for seizures has an interesting origin story. Before anyone tried it for eclampsia, magnesium salts were used to control the convulsions of tetanus, a bacterial infection that causes devastating muscle spasms.23PubMed. Magnesium sulfate for the prevention of seizures in preeclampsia: origin, experimental basis, clinical studies, and the evolution in obstetrical practice In the early 1900s, clinicians noticed this anticonvulsant effect and started trying magnesium sulfate for eclamptic seizures. It worked, but for decades the evidence was largely anecdotal, and obstetricians in different parts of the world disagreed about whether magnesium was actually better than other anti-seizure drugs or just a regional tradition.
That debate wasn’t settled until large international trials in the 1990s and 2000s demonstrated magnesium’s superiority head-to-head against other anticonvulsants for eclampsia.4PubMed. Magnesium sulfate: past, present, and future The story is a useful reminder that even treatments with strong biological plausibility and decades of clinical use can take surprisingly long to accumulate definitive evidence. The same dynamic may be at play with magnesium and general epilepsy: the biological case is strong, clinicians have observed apparent benefits in individual patients, but the definitive trial hasn’t happened yet.
Diet, Ketogenic Therapy, and Magnesium
People who follow ketogenic diets for epilepsy sometimes wonder whether the diet’s seizure-reducing effect might work partly through changing magnesium levels. It’s a reasonable guess, since dietary changes can shift mineral balance. However, research looking at this connection found that fasting and ketogenic diets did not markedly or consistently affect serum mineral levels, including magnesium.24DigitalCommons@USU. Interrelationships among Magnesium Deficiency, Ketogenic Diet, and Fasting on Seizure Susceptibility The implication is that whatever makes ketogenic diets work against seizures, it’s probably not mediated through magnesium changes. The two approaches to seizure control appear to operate through independent pathways.
That said, anyone on a restricted diet of any kind should pay attention to their mineral intake. The ketogenic diet can be low in certain nutrients depending on food choices, and magnesium deficiency from poor dietary variety wouldn’t help a seizure condition regardless of what the diet’s primary anti-seizure mechanism turns out to be. A daily magnesium supplement is often recommended alongside ketogenic therapy for epilepsy as basic nutritional insurance, not as part of the anti-seizure mechanism itself.