No single medication is approved specifically for leg cramps, and the options that work best might surprise you. The most promising recent evidence points to vitamin K2, a supplement that cut nighttime cramp episodes in half in a 2025 clinical trial. Beyond that, a handful of supplements, over-the-counter pain relievers, and home remedies each play a different role depending on whether you’re trying to prevent cramps, stop one in progress, or manage the soreness afterward.
Vitamin K2: The Strongest Recent Evidence
A 2025 study published in American Family Physician found that a specific form of vitamin K2, called menaquinone-7, dramatically reduced nighttime leg cramps in adults 65 and older. Participants who took 180 micrograms each evening for two months averaged less than one cramp per week, down from about 2.6. The placebo group actually got worse, climbing to 3.6 cramps per week. Over the full two months, the vitamin K2 group experienced more than 21 fewer cramp episodes.
Menaquinone-7 is available without a prescription and has few side effects. The one important exception: it interferes with warfarin (a blood thinner), so anyone taking warfarin should avoid it. For most other people, it’s one of the few supplements with solid clinical evidence behind it for cramps.
Vitamin B Complex
A B-vitamin supplement that includes vitamin B6 showed promise in a smaller study. In that trial, 86% of patients who took a B complex (with 30 mg of B6 daily) went into remission from muscle cramps, compared to placebo. These patients weren’t known to be deficient in B vitamins beforehand, which makes the result more interesting. The American Academy of Neurology rates B complex as “possibly effective” for cramps. Side effects were minimal, with occasional mild nausea or abdominal discomfort occurring at the same rate as in the placebo group.
Why Magnesium Probably Won’t Help
Magnesium is the most commonly recommended supplement for leg cramps, but the clinical evidence is disappointing. In a well-designed crossover trial, participants took 900 mg of magnesium citrate twice daily for a month. The result: no significant difference from placebo. The magnesium group averaged 11.8 cramps versus 11.1 for placebo. Despite its reputation, magnesium does not appear to reduce cramp frequency in people who aren’t magnesium-deficient.
The one context where magnesium still gets a cautious recommendation is pregnancy. The Mayo Clinic notes that magnesium supplementation might help prevent leg cramps during pregnancy, though the evidence remains mixed. Pregnant women are also advised to ensure they’re getting 1,000 milligrams of calcium daily, since lower blood calcium levels during pregnancy may contribute to cramping.
Over-the-Counter Pain Relievers
Acetaminophen and NSAIDs (like ibuprofen or naproxen) are the most commonly used medicines for leg cramps. In a large patient survey published in the Journal of the American Board of Family Medicine, about 31% of cramp sufferers had tried acetaminophen and nearly 80% of those reported at least some benefit. Roughly 30% had tried an NSAID.
These medicines don’t stop the cramp itself. They won’t prevent the muscle from seizing up, and they won’t shorten how long a cramp lasts. What they can do is ease the residual soreness that lingers after a bad cramp, especially the deep ache that sometimes persists into the next day. If you’re waking up with sore calves after nighttime cramps, a dose of acetaminophen or ibuprofen can take the edge off. Just keep in mind that regular NSAID use carries risks for your stomach, kidneys, and heart, and acetaminophen in high doses can damage the liver.
Pickle Juice, Mustard, and Spicy Drinks
The old trick of drinking pickle juice to stop a cramp has a real biological explanation, and it’s not about replacing salt or electrolytes. The active ingredients in pickle juice, mustard, and certain spicy compounds activate specific nerve channels in the mouth and upper digestive tract. This triggers sensory neurons that, through a spinal reflex, reduce the excitability of the motor neurons controlling your muscles. In simpler terms, the strong taste sends a signal that turns down the “volume” on the misfiring nerve causing the cramp.
This effect works within seconds to minutes, far too fast for any nutrient to be absorbed and reach the muscle. A small swig of pickle juice or a spoonful of yellow mustard during a cramp is worth trying. Some companies now sell concentrated “anti-cramp” shots based on this same principle, using capsaicin, ginger, or cinnamon to activate those nerve channels.
Why Quinine Is No Longer Recommended
Quinine was once the go-to prescription for leg cramps, and some people still seek it out in tonic water or from overseas pharmacies. The FDA has issued repeated warnings against this. Quinine is approved only for treating malaria. When used for leg cramps, it carries risks of life-threatening blood disorders, including a dangerous drop in platelets that can lead to kidney failure requiring dialysis. Some cases have been fatal. Since 2006, the FDA has added a boxed warning (the most serious type) to quinine labeling and issued multiple safety communications to discourage its use for cramps.
When Cramps Are a Side Effect of Other Medication
If your leg cramps started or worsened after beginning a new medication, the drug itself may be the cause. Statins (cholesterol-lowering drugs) commonly cause muscle pain and cramping. In rare cases, statins can trigger a more serious condition where muscle cells break down, causing severe cramping, weakness, and dark-colored urine. That combination of symptoms needs prompt medical attention. Diuretics (water pills) are another frequent culprit because they flush out potassium, magnesium, and other electrolytes your muscles need to function properly.
Low potassium from any cause, not just diuretics, can trigger muscle cramps along with weakness, fatigue, and irregular heartbeat. A simple blood test can check your levels. Potassium supplements should only be taken under medical guidance because too much potassium is just as dangerous as too little.
What Works Best at Each Stage
- To prevent cramps from happening: Vitamin K2 (menaquinone-7, 180 mcg in the evening) has the best current evidence. Vitamin B complex is a reasonable second option. Check whether any medication you take could be causing cramps.
- To stop a cramp in progress: Stretching the affected muscle is the fastest physical remedy. A swig of pickle juice or a spoonful of mustard can help by calming the overactive nerve signal. Neither acetaminophen nor ibuprofen will stop an active cramp.
- To manage soreness afterward: Acetaminophen or an NSAID can reduce the lingering ache. Gentle stretching and heat also help.
Leg cramps remain one of those frustrating conditions where no single treatment works reliably for everyone. The fact that there are still no FDA-approved medications specifically for cramps tells you how tricky they are to treat. But the combination of newer supplements like vitamin K2, practical remedies like pickle juice, and attention to underlying causes like electrolyte imbalances or medication side effects gives most people a realistic path to fewer and less severe episodes.

