What Are Potassium and Magnesium Good For?

Potassium and magnesium are two essential minerals that work across nearly every major system in your body, from keeping your heart beating in rhythm to helping your muscles contract and relax properly. Most people don’t get enough of either one. Adult men need about 3,400 mg of potassium and 420 mg of magnesium daily, while adult women need around 2,600 mg of potassium and 320 mg of magnesium.

Blood Pressure and Heart Health

Potassium is one of the most important nutrients for blood pressure control. It works by relaxing the walls of your blood vessels. When potassium levels rise around smooth muscle cells in artery walls, those cells shift into a more relaxed state, allowing blood to flow with less resistance. This is why diets rich in potassium, like the DASH diet, are a cornerstone recommendation for managing high blood pressure.

Magnesium supports the heart in a different but complementary way. It helps regulate the electrical signals that keep your heartbeat steady. In clinical trials, patients with a rapid, irregular heart rhythm (atrial fibrillation) who received magnesium were three times as likely to return to a normal heart rate compared to those given a placebo. Even mild magnesium deficiency is linked to dangerous irregular heart rhythms in people with existing heart disease.

The two minerals also influence each other directly. When magnesium drops too low, your body starts losing potassium as well, because magnesium helps maintain the cellular machinery that keeps potassium inside your cells. This means a magnesium deficiency can trigger or worsen a potassium deficiency, compounding the cardiovascular risk.

Muscle Function and Cramps

Magnesium is a cofactor for over 300 enzymes in your body, and many of those are involved in energy production. Your cells store energy in a molecule called ATP, but ATP only becomes fully active when it binds to magnesium. Without enough magnesium, your muscles literally have less usable fuel.

Magnesium also acts as a natural calcium blocker inside muscle cells. Calcium triggers muscle contraction, and magnesium counterbalances it by helping muscles relax afterward. When magnesium is too low, excess calcium floods into cells, leading to cramps, spasms, and muscle tightness. This is why persistent, unexplained cramping is one of the earliest and most recognizable signs of magnesium deficiency.

Potassium plays its own role in muscle function by helping conduct the electrical signals that tell muscles when to fire. Low potassium can cause weakness, fatigue, and in more severe cases, muscle paralysis.

Blood Sugar and Insulin Sensitivity

Magnesium has a well-documented relationship with how your body handles sugar. The insulin-producing cells in your pancreas become less responsive when magnesium is low, which means your body struggles to regulate blood sugar efficiently. Over time, this contributes to insulin resistance, a precursor to type 2 diabetes.

The clinical evidence here is strong. Meta-analyses of multiple randomized controlled trials found that magnesium supplementation significantly improved fasting blood sugar, glucose tolerance after meals, and insulin resistance in people at high risk for type 2 diabetes, including those who were overweight or had prediabetes. In one trial, people with low magnesium who took a daily supplement for four months saw meaningful improvements in both fasting and post-meal blood sugar levels. The key caveat: these benefits appear most clearly in people who are actually deficient. If your magnesium levels are already normal, supplementing may not move the needle.

Bone Strength

About 60% of all the magnesium in your body is stored in your skeleton, where it directly affects bone structure. When magnesium levels in bone tissue drop, the mineral crystals that give bones their hardness become larger and more brittle, somewhat like a ceramic that cracks more easily under stress. Studies have found that women with osteoporosis tend to have lower magnesium content and these larger, more fragile crystals in their bones compared to women without the condition.

Magnesium deficiency also disrupts the hormonal chain that maintains bone density. Low magnesium leads to low calcium in the blood, reduced response to parathyroid hormone, and diminished effects of vitamin D, all of which accelerate bone loss. In a small randomized trial of postmenopausal women with osteoporosis, magnesium supplementation for one month slowed the rapid bone loss characteristic of the disease.

Nerve Function and Mental Health

Both minerals are essential for nerve signaling. Potassium helps generate the electrical impulses that nerves use to communicate, while magnesium regulates how excitable those nerves become. Magnesium blocks certain receptors in the nervous system that, when overactivated, can amplify pain signals and increase neural excitability. This is why low magnesium often shows up first as neurological symptoms: tingling, numbness, tremors, or heightened sensitivity to stimulation.

Severe magnesium deficiency can also pull calcium levels down, a combination that increases neuromuscular excitability to the point of involuntary muscle spasms or, in extreme cases, seizures.

Best Food Sources

You can get both minerals from many of the same whole foods, though some are richer in one than the other. For magnesium, the most concentrated sources per serving are pumpkin seeds (649 mg per cup of roasted kernels), almonds (385 mg per cup), black beans (332 mg per cup), and other nuts and legumes. For potassium, bananas get the most attention but aren’t the top source. Potatoes, sweet potatoes, beans, spinach, and avocados all deliver more potassium per serving, often in the range of 700 to 1,000 mg.

Many of these foods, particularly beans, leafy greens, and nuts, are rich in both minerals simultaneously, making them efficient choices if you’re trying to close gaps in your intake.

Signs You’re Not Getting Enough

Early magnesium deficiency tends to cause muscle cramps, fatigue, and loss of appetite. As it worsens, you may experience numbness, tingling, or an abnormal heart rhythm. Because low magnesium drags potassium and calcium levels down with it, the symptoms can compound quickly. Clinically, magnesium deficiency that goes untreated often produces a potassium deficiency that won’t respond to potassium supplementation alone until magnesium is corrected first.

Low potassium typically shows up as muscle weakness, fatigue, and constipation. More significant drops can cause heart palpitations and, in severe cases, dangerous cardiac rhythm changes.

Supplementation and Safety

Most people can meet their needs through food, but supplements are common for those with confirmed deficiencies or conditions that increase mineral losses. Certain medications are known to deplete magnesium, including proton pump inhibitors (used for acid reflux), loop and thiazide diuretics (used for blood pressure), and some immunosuppressive drugs.

If you do supplement magnesium, the form matters. Magnesium oxide, one of the cheapest and most common forms, has poor absorption and frequently causes loose stools. Magnesium citrate, glycinate, and chloride are generally better absorbed.

People with kidney disease need to be particularly cautious with both minerals. Healthy kidneys efficiently filter excess potassium and magnesium, but impaired kidneys cannot. Magnesium levels above 3.1 mg/dL in the blood are associated with higher mortality, and dangerously high potassium can cause life-threatening cardiac arrest. If you have reduced kidney function or take medications that affect how your kidneys handle these minerals, supplementation should be guided by blood work.