Nighttime leg cramps are sudden, painful muscle contractions that usually affect the calf, but they can also occur in the foot or thigh. They are common, especially as people get older.
Possible causes include:
- Muscle fatigue or overuse, especially after strenuous activity.
- Sitting or standing for long periods.
- Dehydration or fluid loss.
- Pregnancy, particularly in the second and third trimesters.
- Certain medications, such as some diuretics (water pills), statins, or others in some people.
- Medical conditions, including diabetes, kidney disease, thyroid disorders, or nerve problems.
- In many cases, no specific cause is found.
A common belief is that cramps are mainly caused by low potassium, magnesium, or calcium, but for most people with ordinary nighttime leg cramps, there isn’t strong evidence that mineral deficiencies are the primary cause.
What can help
- Gently stretch the affected muscle when a cramp occurs.
- Massage the muscle and walk around if possible.
- Stay adequately hydrated.
- Stretch your calf and hamstring muscles before bed if cramps are frequent.
- Wear supportive footwear if you’re on your feet a lot during the day.
When to see a doctor
Make an appointment if your cramps:
- Are frequent or severe.
- Disturb your sleep regularly.
- Are accompanied by muscle weakness, swelling, redness, or numbness.
- Begin after starting a new medication.
While nighttime cramps are usually harmless, persistent or worsening symptoms can sometimes point to an underlying condition that should be evaluated.
