For an active charley horse, the fastest relief comes from stretching the cramping muscle and, surprisingly, swallowing a tablespoon of pickle juice. For prevention, keeping your electrolytes balanced and doing daily calf stretches are the most effective long-term strategies. The right approach depends on whether you’re dealing with occasional cramps or frequent nighttime episodes that disrupt your sleep.
Immediate Relief During a Cramp
When a charley horse strikes, your muscle is locked in an involuntary contraction. The quickest way to break it is to stretch the muscle in the opposite direction. For a calf cramp (the most common type), flex your foot upward toward your shin, pulling your toes back. You can also stand and press your heel into the floor while leaning forward. Hold the stretch until the spasm releases, usually 30 to 60 seconds.
Pickle juice works faster than you’d expect. As little as one tablespoon can abort a cramp within seconds, well before the liquid reaches your stomach. The mechanism has nothing to do with replacing electrolytes. The acetic acid in pickle brine stimulates sensory nerve channels in your mouth and throat, triggering a reflex through the vagus nerve that interrupts the cramp signal. Yellow mustard appears to work the same way, through the same type of nerve channel activation. Keep a small bottle of pickle juice or a few mustard packets on your nightstand if nighttime cramps are a regular problem.
Electrolytes and Hydration
Electrolyte imbalances are one of the most common triggers for charley horses. Sodium, potassium, magnesium, calcium, and chloride all play roles in muscle contraction and relaxation. When these minerals drop too low, whether from sweating, not eating enough, or drinking large amounts of plain water, your muscles become more prone to cramping.
Here’s a detail most people miss: drinking plain water after heavy sweating can actually make cramps worse, not better. A study that dehydrated participants through downhill running in the heat found that rehydrating with plain water made muscles significantly more susceptible to cramping at 30 and 60 minutes afterward. When participants drank an electrolyte solution instead, that effect was reversed. The problem is dilution. Flooding your system with water without replacing the sodium you lost through sweat can push sodium levels dangerously low, a condition called hyponatremia, and one of its hallmark symptoms is muscle cramping.
The practical takeaway: if you sweat heavily from exercise, hot weather, or physical labor, choose a drink that contains sodium and potassium rather than water alone. Sports drinks, coconut water, or even water with a pinch of salt and a splash of fruit juice will do the job. For everyday prevention, eating potassium-rich foods like bananas, potatoes, and leafy greens helps maintain the mineral balance your muscles need.
Magnesium: Popular but Unproven
Magnesium supplements are one of the most commonly recommended remedies for leg cramps, but the evidence is weaker than most people think. A randomized, placebo-controlled trial gave adults with frequent nighttime cramps 900 mg of magnesium citrate twice daily for a month. The result: no significant difference from placebo. Patients averaged about 11 cramps per month on magnesium and 11 on placebo. Notably, all participants improved over time regardless of what they took, likely a combination of the condition’s natural ups and downs and a genuine placebo effect.
This doesn’t mean magnesium is worthless for everyone. If you’re genuinely deficient (common in older adults, people who take certain medications, or those with poor dietary intake), correcting that deficiency may help. But for the average person with occasional charley horses, magnesium supplements are unlikely to be a game-changer.
B Vitamins for Frequent Night Cramps
A B-vitamin complex shows more promising results than magnesium for persistent nighttime cramps, at least in certain populations. In a randomized, placebo-controlled study of elderly patients with hypertension who had severe sleep-disrupting leg cramps, a B-vitamin combination significantly reduced cramp frequency, intensity, and duration. After three months, 86% of patients taking B vitamins experienced prominent remission of their cramps, while the placebo group showed no meaningful change. The supplement contained forms of vitamins B1, B2, B6, and B12. A standard B-complex supplement from a pharmacy covers all of these.
Daily Stretching for Prevention
If charley horses wake you up at night, a daily calf-stretching routine is one of the simplest preventive measures. Stand about arm’s length from a wall, place your hands on it, and step one foot back with the heel pressed flat on the floor. Lean forward until you feel a stretch in the back calf. Hold for 20 to 30 seconds and repeat on the other side. Do this once or twice daily, especially before bed.
Research on nocturnal cramps has tested structured daily stretching programs against passive exercises, and while the evidence is modest, stretching is free, safe, and takes under two minutes. For many people, it’s enough to reduce the frequency of nighttime episodes noticeably within a few weeks.
Over-the-Counter Pain Relief
No painkiller will stop an active charley horse. The cramp is a nerve-driven spasm, not an inflammation problem, so ibuprofen or acetaminophen won’t interrupt it. Where these medications do help is with the soreness that lingers afterward. A strong cramp can leave your calf feeling bruised for a day or two, and an anti-inflammatory like ibuprofen or naproxen is better suited for this residual muscle pain than acetaminophen, since the soreness involves localized tissue inflammation. Naproxen has the added convenience of lasting longer, so you only need it twice a day.
Prescription Options for Severe Cases
If you’re experiencing more than five cramps per week despite trying stretching, electrolytes, and dietary changes, prescription treatment exists. In a clinical trial of patients with frequent, long-standing cramps from various underlying conditions, a nerve-calming medication eliminated cramps entirely in all 30 patients within three months, with benefits lasting at least six months. Improvement typically began within the first two weeks. This type of treatment works by dampening the overactive nerve signals that trigger the spasm. It’s worth discussing with your doctor if cramps are significantly affecting your sleep or quality of life.
Why Quinine Is No Longer Recommended
Quinine (found in tonic water and formerly prescribed for leg cramps) was once a go-to treatment. The FDA explicitly warned against it in 2009, citing an unfavorable risk-to-benefit ratio. By 2010, the agency launched a formal risk-management plan because serious side effects kept being reported. At normal doses, quinine can cause tinnitus, hearing loss, visual disturbances, nausea, dizziness, dangerously low blood sugar, and heart rhythm problems. The most concerning risks are rare but severe blood disorders, including a condition where the immune system destroys platelets, leading to uncontrolled bleeding. The amount of quinine in a glass of tonic water is small, but using tonic water as a cramp remedy is not a strategy supported by current safety guidelines.
When Leg Pain Isn’t a Charley Horse
A typical charley horse is sudden, intensely painful, and resolves within a few minutes, leaving at most some lingering soreness. Certain symptoms, however, suggest something other than a simple cramp. A blood clot in a deep leg vein can cause calf pain or cramping that doesn’t release like a normal spasm. The distinguishing signs to watch for:
- Persistent swelling in one leg that doesn’t go down
- Skin color changes on the affected leg, such as redness or a purplish discoloration
- Warmth over a specific area of the leg
- Soreness that builds gradually rather than striking suddenly and releasing
A charley horse is almost always bilateral in risk (it can happen in either leg on different nights) and leaves no visible changes. If your pain is consistently in one leg, accompanied by swelling or color changes, that’s a different situation entirely and warrants prompt medical evaluation.

