Medical expert of the article
New publications
Leg cramps during pregnancy: causes and remedies
Last updated: 16.03.2026
All iLive content is medically reviewed or fact checked to ensure as much factual accuracy as possible.
We have strict sourcing guidelines and only link to reputable media sites, academic research institutions and, whenever possible, medically peer reviewed studies. Note that the numbers in parentheses ([1], [2], etc.) are clickable links to these studies.
If you feel that any of our content is inaccurate, out-of-date, or otherwise questionable, please select it and press Ctrl + Enter.
A cramp is a sudden, painful, and involuntary contraction of a muscle, most often the calf, which often occurs at night and disrupts sleep. During pregnancy, episodes become more frequent, especially in the third trimester. According to current data, 48-65% of pregnant women experience leg cramps in the third trimester, which significantly reduces their quality of life. [1]
The causes in pregnant women are multifactorial: changes in fluid volume and venous congestion, increased strain on the muscles of the lower extremities, possible electrolyte fluctuations, decreased physical activity, and sleep disturbances. A direct "deficiency of a single substance" as a universal cause has not been confirmed; the pathogenesis remains complex. [2]
It's important to distinguish cramps from restless legs syndrome and pain associated with venous disease. A cramp is a brief episode of sharp, rock-hard muscle tension followed by pain, whereas restless legs syndrome is characterized by an irresistible urge to move the legs without obvious spasm. [3]
Although most episodes are harmless, unilateral pain with swelling, redness, and warmth of the skin requires urgent evaluation to exclude deep vein thrombosis, as pregnancy itself increases the risk of thromboembolism.[4]
The good news is that there are simple non-drug measures with proven benefits, and supplements should be considered carefully and on a personalized basis. [5]
Table 1. How to distinguish a seizure from other conditions
| Sign | Muscle cramp | Restless legs syndrome | Venous pain or swelling |
|---|---|---|---|
| Time | More often at night, suddenly | In the evening and at night, it increases with rest | In the evening it gets worse with prolonged standing. |
| Feeling | Sharp "rock" muscle pain | An irresistible urge to move, crawling ants | Heaviness, distension, possible pain |
| Episode duration | Seconds - minutes | Minutes - hours, in waves | Long, dull pain |
| Relief | Stretching, dorsiflexion of the foot | Movement and stretching provide partial relief. | Leg raises, compression |
| Red flags | Swelling and redness of one leg | There is no anxiety | Unilateral swelling, skin heat, pain |
[6]
Why do cramps occur during pregnancy?
During the second half of pregnancy, body weight increases and the center of gravity shifts, increasing the strain on the calf muscles and leading to fatigue and night cramps. Venous congestion and compression of large veins by the growing uterus also play a role. [7]
There is evidence linking cramps with sleep disturbances and a general decrease in physical activity. The less regular gentle exercise, the higher the risk of nocturnal cramps due to shortening of the muscle-tendon structures. [8]
It is believed that in some pregnant women, relative dehydration or electrolyte fluctuations contribute, but a single culprit marker is not always identified. Several studies have found no consistent link between seizures and calcium levels, and the role of magnesium remains controversial. [9]
The contribution of varicose veins and edema is discussed separately. Although they are not a direct cause of cramps, venous congestion can increase discomfort and provoke nocturnal cramps. Symptomatic care includes compression stockings to reduce swelling and heaviness. [10]
Bottom line: In pregnant women, cramps are the result of a combination of mechanical, vascular, neuromuscular, and behavioral factors, so an effective approach is to combine stretching, exercise regimen adjustments, positioning, and targeted work with triggers. [11]
Table 2. Most likely triggers for cramps during pregnancy
| Factor | What's happening | What can be done |
|---|---|---|
| Calf muscle fatigue | Overload and shortening | Regular gentle stretching, measured walking |
| Venous congestion and edema | Slowing of blood outflow | Compression hosiery, leg lifts, activity |
| Dehydration | Increased muscle excitability | Adequate drinking regime |
| Decreased physical activity | Muscle shortening during sleep | Daily gentle exercise and walks |
| Sleep disorders | Increased frequency of nocturnal episodes | Sleep hygiene, stretching before bed |
[12]
When to See a Doctor: Red Flags and Differential Diagnosis
A combination of symptoms requires urgent evaluation: unilateral leg pain, increasing swelling, redness or increased local skin temperature, tenderness to pressure along the veins, sudden shortness of breath, or chest pain. These are typical signs of venous thrombosis and possible embolism. [13]
Cramps should be distinguished from restless legs syndrome. The latter is characterized by a distressing sensation of "internal movement" in the legs, which intensifies with rest and is relieved by movement, without obvious muscle spasm. Management approaches differ, and drug therapy is limited during pregnancy. [14]
Leg pain can be associated with varicose veins and chronic venous insufficiency. During pregnancy, invasive treatment is usually postponed; symptomatic relief measures, including compression stockings, are recommended. [15]
Less commonly, sudden muscle spasms can mask the effects of certain medications or metabolic disorders. For persistent, frequent, or atypical episodes, a doctor may order basic tests to rule out abnormalities in electrolytes, thyroid function, and kidney function. [16]
Local trauma, neurological causes and orthopedic problems of the ankle complex also fall into the differential diagnosis in cases of atypical presentation or prolonged pain syndrome. [17]
Table 3. Red flags
| Symptom | Possible cause | Action |
|---|---|---|
| Unilateral swelling, redness, and heat of the skin | Deep vein thrombosis | Seek immediate medical attention |
| Chest pain, shortness of breath | Pulmonary embolism | Emergency assistance |
| Persistent daily cramps, weakness | Electrolyte disturbances, endocrine causes | See a doctor and get tested |
| Pronounced varicose veins, pain and heaviness | Venous insufficiency | Conservative measures, specialist consultation |
| Nighttime sensations of "movement" without spasm | Restless legs syndrome | Non-pharmacological measures, individual tactics |
[18]
First Aid for a Cramp: 60-Second Algorithm
Immediately dorsiflex the foot: gently pull the toe toward you, holding the stretch until the pain subsides. If the cramp is severe, you can stand up and put weight on the affected leg while maintaining dorsiflexion. [19]
Gently massage the spasmed muscle after the initial stretch. A warm shower or heating pad for a few minutes to relax the muscle is acceptable. Cold should be applied less frequently and briefly. [20]
After an episode, brief stretching of the antagonists and light walking around the room are recommended to prevent a recurrence of the spasm that same night.[21]
Your position in bed is important: try not to sleep with your toes pointed down, use a bolster under your knees, and avoid putting prolonged pressure on your feet with a heavy blanket. [22]
If cramps recur frequently, include a preventative program of stretching the calf muscles during the day and before bed for at least 14 days. [23]
Table 4. Basic stretches for cramps
| Exercise | How to perform | Repetitions and frequency |
|---|---|---|
| Wall stretch | Palms on the wall, sore leg behind, heel on the floor, knee straight, stretch your body forward | Hold for 30-45 seconds, 3 sets, 2-3 times a day |
| Stretching with a towel | Place a towel on your foot and gently pull your toe towards you. | 30 seconds, 3 sets, in the evening |
| Step stretching | Toe on the step, heel hanging down, slowly lower the heel | 20-30 seconds, 3 sets |
| Roller massage | Rolling the calf on a soft roller after stretching | 1-2 minutes |
| Post-isometric relaxation | Gentle dorsiflexion resistance, then stretch | 10 seconds of tension and 30 seconds of stretching |
[24]
Prevention without medication: lifestyle, positioning, compression
Regular moderate activity during pregnancy is safe and beneficial: walking, swimming, and prenatal exercises help maintain muscle tone and elasticity, reducing the risk of night cramps. Start with light exercise and do it daily. [25]
Stretching the calf muscles before bed reduces the frequency of night cramps in some people. The effect is incomplete, but the method is safe, inexpensive, and recommended as a basic preventative measure. [26]
To reduce evening swelling and heaviness in the legs during pregnancy, compression hosiery is recommended, especially for those with varicose vein symptoms. This alleviates symptoms and can indirectly reduce the potential for nighttime cramps. [27]
Shoes with arch support and without high heels are important. In the evening, it's helpful to elevate your legs above heart level for 20-30 minutes and avoid prolonged standing or sitting. Maintain adequate fluid intake during the day. [28]
Sleep hygiene is important: a consistent bedtime, a comfortable temperature, adequate ventilation, and a knee bolster if needed. Systematic sleep management reduces the likelihood of nocturnal episodes. [29]
Table 5. Prevention: What to do every day
| Measure | Why does this work? | How to implement |
|---|---|---|
| Daily walking | Maintains tone and venous outflow | 20-40 minutes, depending on how you feel |
| Stretching before bed | Lengthens the calf muscles | 5 minutes of the complex from Table 4 |
| Compression hosiery | Relieves swelling and heaviness | Fits true to size, wear during the day |
| Evening leg raises | Reduces congestion | 20-30 minutes on the pillow |
| Drinking regimen | Reduces muscle excitability | Evenly throughout the day |
[30]
Nutrition and Supplements: What the Evidence Says
Magnesium. Large reviews show mixed results: some studies note a reduction in seizure frequency with magnesium supplementation, while others do not confirm a clinically significant effect. The current conclusion is moderate-quality evidence and variable response. The decision should be made individually with a physician. [31]
Magnesium forms vary in bioavailability, but high-quality studies during pregnancy have not demonstrated any decisive superiority of any particular salt. Intake is possible, taking into account tolerance, interactions, and the total daily intake of magnesium from diet and supplements. [32]
Dose safety. The upper tolerable level for supplements is 350 mg of elemental magnesium per day for adults, including pregnancy. Magnesium from food sources is safe, and excess magnesium is usually excreted by the kidneys. The risk of hypermagnesemia is higher in people with kidney disease and taking magnesium-containing laxatives. [33]
Calcium, B vitamins, and vitamin C. There is no convincing evidence for these supplements to reduce cramps in pregnant women, so routine use is not recommended. Diet remains important: a balanced diet covers needs and reduces the likelihood of deficiencies. [34]
Kinine is avoided. Regulators emphasize that kinine should not be used to treat night cramps due to the risk of serious side effects and the lack of proven benefit, especially during pregnancy. [35]
Table 6. Magnesium: forms, doses and notes
| Form | Elemental magnesium per standard dose | Peculiarities | Safety Notes |
|---|---|---|---|
| Citrate, lactate, glycinate | Intermediate level | Often better tolerated by the stomach | Estimate total magnesium per day |
| Oxide | High magnesium content per tablet | It may weaken | Do not exceed the upper limit of supplements |
| Sulfate | More often parenterally in preeclampsia | Not for routine seizure prevention | As prescribed by a doctor |
| Complex forms | It varies | Evidence of effectiveness is variable | Individual selection |
[36]
When tests and medications are needed
If cramps are frequent, severe, accompanied by weakness, paresthesia, swelling, or unusual pain, the doctor may order basic tests: electrolytes, creatinine, glucose, and thyroid function tests. The goal is to rule out causes that require specific treatment. [37]
If venous thrombosis is suspected, urgent diagnostic testing is performed according to obstetric recommendations. Self-medication in this situation is unacceptable. [38]
Drug therapy specifically for seizures during pregnancy is extremely limited. Classic medications for nocturnal cramps outside of pregnancy, including kinin, are not recommended due to an unfavorable safety profile. [39]
If a trial course of magnesium is decided upon, it is considered as an adjunct to non-drug measures for a limited period of time, with the effect being assessed. If there is no improvement, the supplement is discontinued. [40]
Always consider the overall vitamin regimen for prenatal use to avoid exceeding the total levels of individual nutrients. Monitoring of tolerance and interactions is essential. [41]
Table 7. What a doctor may prescribe for frequent cramps
| Step | Target | Comment |
|---|---|---|
| Basic tests | Rule out electrolyte and endocrine causes | According to the readings |
| Thrombosis risk assessment | Eliminate dangerous conditions | Urgently at red flags |
| Correction of the regime | Increased stretching, activity, and sleep | Base for everyone |
| Trial course of magnesium | Possible reduction in the frequency of episodes | Only taking into account total consumption |
| Effect control | Decision to continue or cancel | In 2-4 weeks |
[42]
Two-week cramp reduction program
Day 1-3: daily walks for 20-30 minutes, stretching the calf muscles in the morning and before bed, raising the legs in the evening for 20 minutes, correction of footwear and drinking regime. [43]
Day 4-7: Add graded stretching and gentle self-massage after evening stretching; if swelling is symptomatic, wear daytime compression hosiery of the appropriate size. [44]
Day 8-10: assess the dynamics of the frequency of night episodes, adjust the time of going to bed and the position of the legs in bed, avoid prolonged static sitting during the day. [45]
Day 11-14: If frequent episodes persist, discuss with your doctor the advisability of a trial course of magnesium, taking into account diet and tolerance, while continuing basic measures. [46]
After 14 days: If episodes become less frequent and less painful, maintain stretching and activity habits; if symptoms worsen or red flags appear, seek medical assessment. [47]
Table 8. Criteria for assessing progress over 14 days
| Indicator | How to evaluate | Target benchmark |
|---|---|---|
| Frequency of episodes per week | Diary, number of nights with cramps | A reduction of 30% or more |
| Intensity of pain | Scale from 0 to 10 | A decrease of 2 points or more |
| Sleep quality | Time of awakening, subjective assessment | Fewer awakenings |
| Evening swelling | Self-assessment of heaviness and volume | The downward trend |
| Portability of measures | Adverse effects | Absent or minimal |
[48]
Frequently Asked Questions
Do bananas, electrolyte water, or magnesium cream help? Maintaining hydration and a well-balanced diet are important, but there is no "magic product." The effectiveness of topical magnesium for preventing cramps has not been scientifically proven. [49]
What is a safe dose of magnesium? For supplements, the upper tolerable intake level for adults, including during pregnancy, is 350 mg of elemental magnesium per day. All supplement sources should be added together. There is no limit to dietary magnesium intake. [50]
Can you drink kinin or tonics for cramps? Kinin is not recommended for treating cramps due to the risks, and kinin-containing drinks are not a cramp therapy. [51]
How long does it take to see results from stretching? Initial changes are possible within 1-2 weeks with daily use, but complete elimination of episodes is not guaranteed. The method is safe and remains a first-line strategy. [52]
When to see a doctor? Immediately – if you experience swelling and pain on one side of your body, redness, warmth of the skin, shortness of breath, or chest pain. Elective – if cramps are frequent, very painful, interfere with sleep, and don't respond to self-care measures. [53]
Result
Leg cramps during pregnancy are common and multifactorial. The basic treatments include daily gentle activity, stretching, proper leg positioning, managing swelling, and sleep hygiene. Supplements, particularly magnesium, are considered on an individual basis, taking into account the ambiguity of the evidence and the safety of the dose. If signs of thrombosis occur, seek immediate medical attention. [54]
Who to contact?

