What to Take for Leg Cramps and What to Skip

The most effective things to take for leg cramps depend on what’s causing them, but for most people, the answer starts with fluids, electrolytes, and a consistent stretching habit rather than a single supplement. Magnesium gets the most attention, yet the evidence for it is weaker than most people expect. Here’s what actually works, what might help, and what to avoid.

Fluids and Electrolytes Come First

Dehydration is the most common physiological trigger for muscle cramps. When you lose fluids, the resulting drop in sodium, potassium, and chloride disrupts the electrical signals that control muscle contraction. Your muscles become hyperexcitable, meaning they fire and lock up more easily.

For everyday cramps, especially those triggered by exercise or hot weather, plain water is enough if you’re doing short or low-intensity activity. For longer or more intense exercise, a sports drink or oral rehydration solution that contains sodium and potassium helps replace what you lose through sweat. You don’t need anything fancy. The goal is consistent hydration throughout the day, not a large volume right before bed or a workout.

Magnesium: Helpful but Overhyped

Magnesium is the supplement most commonly recommended for leg cramps, but the clinical evidence is surprisingly mixed. A large 2020 systematic review of 11 randomized controlled trials involving 735 people found no reduction in leg cramps from magnesium supplementation. A separate 2021 meta-analysis focused on pregnant women (332 participants) also found no benefit compared to placebo.

There is one notable exception. A 2021 double-blind, placebo-controlled trial of 184 people tested 226 mg of magnesium oxide taken daily. After 60 days, the magnesium group dropped from about 5.4 cramps per week to 1.9, while the placebo group only dropped from 6.4 to 3.7. Cramp duration also fell significantly. The key detail: this benefit only appeared after 60 days. Short courses of magnesium, anything under two months, have not shown meaningful results in clinical trials.

So if you want to try magnesium, commit to at least two months before judging whether it’s working. And don’t expect results from topical magnesium sprays or creams. While magnesium chloride can penetrate the skin quickly, no controlled studies have demonstrated that topical application delivers enough magnesium to affect muscle cramps or soreness.

Potassium and Calcium

Potassium plays a direct role in how your nerve cells signal muscles to contract and relax. Low potassium can destabilize muscle cell membranes, making cramps more likely. Most people can maintain adequate potassium through diet: bananas, potatoes, spinach, beans, and avocados are all rich sources. Potassium supplements are worth considering only if a blood test confirms a deficiency, because excess potassium carries its own serious risks.

Calcium matters too, particularly for people with parathyroid disorders or other endocrine conditions that throw off calcium levels. If your cramps are frequent and unexplained, a basic metabolic panel can check whether your calcium or potassium is low.

Vitamin B Complex

A small but notable study found that a vitamin B complex supplement (containing 30 mg of vitamin B6 per day) led to cramp remission in 86% of treated patients who weren’t known to be vitamin deficient. The American Academy of Neurology considers vitamin B complex “possibly effective” for muscle cramps, though they rate the evidence as limited (Level C). It’s a low-risk option worth trying, particularly if your diet is restricted or you suspect a nutritional gap.

Stretching and Light Exercise

Stretching isn’t something you “take,” but it’s one of the most consistently recommended interventions for nocturnal leg cramps. Forcefully dorsiflexing your foot (pulling your toes toward your shin) during an active cramp can interrupt the spasm and bring relief. As a preventive measure, calf stretches before bed have been recommended for decades, though the formal study evidence is limited. A few minutes on a stationary bike or treadmill before bed may also reduce nighttime cramp frequency, based on longstanding clinical experience.

Deep tissue massage of the calves is another safe, patient-controlled option that many people find helpful for both acute cramps and prevention.

Medications That Cause Leg Cramps

Before adding a supplement, it’s worth checking whether something you’re already taking is causing the problem. Diuretics (water pills) are a well-known trigger because they increase fluid and electrolyte loss. Statins, commonly prescribed for cholesterol, list muscle pain as a common side effect and can occasionally cause muscle inflammation or weakness. If your cramps started or worsened after beginning a new medication, that connection is worth raising with your prescriber.

Why You Should Avoid Quinine

Quinine, found in tonic water and formerly prescribed for cramps, is no longer considered safe for this purpose. The FDA has issued repeated warnings, including a boxed warning on quinine labeling, because off-label use for leg cramps has been linked to life-threatening blood disorders, dangerous heart rhythm changes, kidney failure requiring dialysis, and deaths. Quinine is approved only for treating malaria. The risks far outweigh any benefit for cramps.

When Cramps Signal Something Else

Most leg cramps are harmless, but a few warning signs point to something more serious. A blood clot in the leg (deep vein thrombosis) can feel like a charley horse, but it typically also involves swelling in one leg, skin that looks reddish or bluish, and warmth to the touch. A regular muscle cramp grabs and releases. A clot produces persistent pain and visible changes in the leg. If you notice these together, that warrants urgent medical attention.

Cramps that happen frequently despite good hydration and adequate nutrition, or cramps accompanied by muscle weakness or twitching throughout the day, can sometimes signal nerve or neuromuscular conditions that need evaluation beyond supplements.