A muscle cramp is a sudden, painful, and tight feeling in a muscle. It can happen on its own or because of other health issues. It feels like the muscle is locked up.
Every report comes from a Lived member, sent anonymously.
Have you tried Magnesium for Muscle Cramp?
A muscle cramp is a sudden, involuntary tightening of a muscle that does not relax on its own. The muscle may feel hard or bulging, and the pain can be sharp enough to stop someone mid-stride or wake them from sleep. Most cramps last from a few seconds to several minutes, and the area can stay sore for a while afterward. Cramps can affect any muscle, but the calf, the back and front of the thigh, and the feet are the most common sites. A calf cramp is often called a charley horse. Cramps are very common and usually harmless, especially after exercise or at night. Frequent or unusual cramps, however, can sometimes point to another health problem worth looking into.
Straining or overusing a muscle is the most common cause, which is why cramps often appear during or after exercise. Losing fluid through heavy sweating, vomiting or diarrhea, and low levels of minerals such as sodium, potassium, calcium or magnesium, can make cramps more likely. Cramps are also more common in older adults, during pregnancy, in people having dialysis, and with certain medical conditions, including an underactive thyroid (hypothyroidism), kidney failure, nerve disorders, a pinched nerve in the neck or back, and reduced blood flow to the legs. Heavy alcohol use and some medicines can contribute as well. For many people, especially those with night-time leg cramps, no specific cause is found.
A cramp is usually recognized from its description alone: a sudden, painful tightening that eases with time or stretching. When cramps are frequent, severe or unexplained, a clinician looks for a cause rather than confirming the cramp itself. They will ask when the cramps started, how long they last, which muscles are involved, how they relate to exercise or rest, recent fluid loss, alcohol use, pregnancy and the medicines you take. An examination looks for clues to an underlying cause. Blood tests may measure calcium, potassium and magnesium, along with kidney and thyroid function. Further testing depends on what these first steps suggest.
Most cramps need no medical treatment. Gently stretching and massaging the muscle usually brings relief. Heat can help loosen a tight muscle, and ice can ease soreness afterward. Drinking fluids helps if dehydration played a part, and sports drinks can replace minerals lost during long or hot workouts. To reduce future cramps, people often stretch regularly, especially the calf muscles before bed if cramps strike at night, and keep exercise within what their body is used to. When another condition such as a thyroid or kidney problem is driving the cramps, treating that condition is the most useful step. Medicines to prevent cramps have real limits. Magnesium supplements are widely marketed, but careful reviews of trials found they are unlikely to help older adults with recurring cramps; results in pregnancy are mixed, and diarrhea is a common side effect. Quinine (sold as Qualaquin) reduces cramps modestly, but it is approved in the US only for treating malaria. Its label carries a warning against using it for leg cramps because it can cause serious, sometimes life-threatening blood problems, including a dangerous drop in platelets (the cells that help blood clot). A clinician may occasionally consider other prescription options, but the evidence for them is limited, so the decision rests on how much the cramps disrupt daily life.
Occasional cramps are usually harmless and pass within minutes, although the muscle may stay sore for a while afterward. Night-time leg cramps can keep recurring, particularly in older adults, and their main toll is broken sleep. Regular stretching and attention to fluids help many people, but cramps may not stop entirely. When cramps stem from pregnancy, dialysis or another condition, treating or managing that condition is often what helps most.
Arrange a visit if cramps are severe, happen often, last a long time, or keep returning despite stretching and drinking enough fluids. It is also worth asking whether a medicine you take could be contributing. Contact your care team if cramps come with muscle weakness, or if leg pain comes with swelling, redness or warmth, since these signs suggest something other than an ordinary cramp.
Last reviewed • Oct 2026
Educational content, not medical advice.
Share what living with Muscle Cramp is like, what's helped you, or ask the community a question.