Leg Cramps During Pregnancy: What's Causing Them and How to Get Relief
At a glance
- How common / up to 30% of pregnant women experience leg cramps
- Peak timing / second and third trimester, especially at night
- Most common cause / magnesium and calcium shifts driven by placental demand
- Red flag / calf swelling + warmth + pain = rule out DVT urgently
- First-line relief / calf stretching, magnesium supplementation, hydration
- Life-stage note / cramps typically resolve within weeks of delivery
- Evidence gap / most treatment trials are small; magnesium data strongest
Why Pregnancy Makes Leg Cramps So Much More Likely
Leg cramps in pregnancy are not just bad luck. Specific physiological changes that begin in the first trimester and intensify through the third make calf and foot muscles dramatically more vulnerable to involuntary, painful contractions.
Your blood volume expands by roughly 45 percent during pregnancy, and your kidneys work overtime filtering a much larger fluid load. That increased renal throughput changes how your body handles electrolytes, particularly magnesium, calcium, and potassium, all of which regulate muscle membrane excitability. When any of them shift, your muscles fire more easily and take longer to relax.
At the same time, your growing uterus begins compressing the inferior vena cava and pelvic veins from around 20 weeks gestation, reducing venous return from the legs. The result is pooling, mild tissue edema, and nerves that are already slightly irritated before you even get into bed.
Why Cramps Peak at Night
Nocturnal timing is not random. During the day, walking and weight-bearing keep calf muscles gently active and blood moving. Lying down flattens the venous gradient and removes that continuous low-level stimulation. Foot position matters too. Sleeping with your feet in plantar flexion, the natural relaxed-foot position when lying flat, shortens the gastrocnemius and puts it at greater risk of cramping when a spontaneous nerve signal fires.
Research published in the Journal of Obstetrics and Gynaecology found that nocturnal leg cramps were reported by 45 percent of pregnant women in the third trimester. That figure is consistent with clinical experience: the cramps are genuinely common, not a sign that something has gone badly wrong.
How This Differs From Pre-Pregnancy
Women who have never had leg cramps before pregnancy are often alarmed by their sudden appearance. Outside of pregnancy, nocturnal leg cramps are more common in older adults and people with peripheral vascular disease or neurological conditions. In pregnancy, the mechanism is distinct. It is driven by volume, hormonal, and mechanical changes, not by vascular disease. That distinction matters for how you investigate and treat them.
The Main Causes: What the Evidence Says
Several causes overlap in most pregnant women. Breaking them apart helps you target relief more precisely.
Magnesium Depletion
Magnesium is the most studied cause of pregnancy leg cramps, and the evidence is more nuanced than most pregnancy apps suggest. The placenta actively transports magnesium to the fetus, and urinary magnesium excretion increases significantly during pregnancy. A 2021 Cochrane review of six randomized trials found that oral magnesium supplementation reduced cramp frequency compared with placebo, though the certainty of evidence was rated as low-to-moderate due to small trial sizes. The review included 390 women across trials, which is a thin evidence base for a condition affecting millions.
Magnesium bisglycinate and magnesium citrate are absorbed better than magnesium oxide. Typical doses studied in pregnancy trials range from 300 mg to 360 mg elemental magnesium daily, split into two doses to reduce the laxative effect. Standard prenatal vitamins contain only 25 to 50 mg of elemental magnesium, well below the amounts used in cramp-reduction trials.
Calcium and Phosphate Imbalance
Calcium demand rises sharply in the third trimester as fetal bone mineralization accelerates. A diet low in dairy or calcium-rich plant foods may leave your neuromuscular system short of the calcium needed to terminate muscle contractions cleanly. ACOG recommends 1,000 mg of calcium daily during pregnancy for women aged 19 and older, rising to 1,300 mg for those under 19.
High dietary phosphate, common in processed foods and carbonated drinks, can bind calcium in the gut and reduce absorption. Some clinicians recommend reducing phosphate-heavy foods if calcium-corrected cramps persist, though direct trial evidence for this intervention in pregnancy is limited.
Reduced Circulation and Venous Pooling
As your uterus grows, sustained pressure on pelvic veins reduces venous return. This is a mechanical cause, not a nutritional one, which is why it responds better to positional changes and compression than to supplements. Sleeping on your left side reduces aorto-caval compression and may modestly improve leg circulation overnight. Compression stockings rated at 15 to 20 mmHg are safe in uncomplicated pregnancy and reduce lower-leg edema, which may indirectly reduce cramp frequency.
Dehydration
Plasma osmolality changes throughout pregnancy, and many women are chronically under-hydrated, particularly in the first trimester when nausea limits fluid intake. Dehydration concentrates electrolytes and raises neuromuscular irritability. The Institute of Medicine recommends approximately 3 liters of total water daily during pregnancy, including fluid from food sources. That is about 10 cups of water-equivalent, more than most non-pregnant women habitually drink.
Nerve Compression and Sciatica
Not every sharp leg pain in pregnancy is a muscle cramp. Sciatic nerve compression from the expanding uterus or lumbar disc changes during pregnancy can produce sudden shooting pain down the back of the thigh and calf that women sometimes interpret as a cramp. The distinction: true muscle cramps produce a hard, palpable knot in the calf that you can feel with your hand and that resolves within seconds to a few minutes. Sciatic pain radiates in a band, does not produce a palpable muscle knot, and may linger for minutes to hours.
Restless Legs Syndrome: A Separate but Overlapping Condition
Restless legs syndrome (RLS) affects approximately 26 percent of pregnant women, a rate roughly three times higher than in the general population. RLS is not the same as leg cramps, but women often describe both in similar terms. RLS is characterized by an uncomfortable urge to move the legs, worsens in the evening, and is temporarily relieved by movement. Leg cramps are involuntary contractions relieved by stretching. The distinction matters because treatment differs. RLS in pregnancy is linked to iron deficiency and low ferritin, and checking a serum ferritin level is a reasonable first step if you have symptoms of both conditions.
When to Worry: Ruling Out DVT
Most leg cramps in pregnancy are benign. But pregnancy itself increases the risk of deep-vein thrombosis (DVT) by four to five times compared with non-pregnant women of the same age, because pregnancy raises clotting factor levels and reduces venous flow.
The clinical problem is that DVT and a severe calf cramp can feel almost identical in the moment. Both produce sudden calf pain, sometimes severe. What distinguishes DVT is the persistence and the associated signs:
- Pain that does not fully resolve within 10 to 15 minutes of stretching
- Unilateral calf or thigh swelling, especially if one leg is visibly larger than the other
- Skin that is warm, red, or tender to touch along the course of a vein
- Pain that worsens with walking rather than improving
If you have any combination of these findings, do not wait for your next prenatal appointment. Go to an emergency department or call your provider the same day. A compression ultrasound of the leg veins is the standard diagnostic test and is safe in pregnancy. ACOG Practice Bulletin 196 states that diagnostic imaging should not be withheld from pregnant women when VTE is clinically suspected.
Homan's sign, the old teaching of pain with passive dorsiflexion of the foot, has poor sensitivity and specificity and is no longer recommended as a clinical screening tool. Clinical pre-test probability scoring combined with D-dimer and ultrasound is the current standard.
Treatment and Relief: What Actually Works
Immediate Cramp Relief (What to Do in the Moment)
When a calf cramp wakes you up, the fastest relief comes from forceful passive dorsiflexion: flex your foot hard toward your shin, either by standing and leaning forward onto a flat-footed stretch or by pulling your toes toward you while lying down. Hold for 30 to 60 seconds. The stretch works by mechanically lengthening the gastrocnemius, which interrupts the involuntary contraction. Massage of the cramping muscle after stretching speeds recovery.
Walking on the cramped leg for 30 seconds after stretching helps flush lactic acid and signals the muscle to relax fully.
Magnesium Supplementation
Given the Cochrane evidence discussed above, trialing oral magnesium is a reasonable first step for frequent cramps. Magnesium bisglycinate at 200 to 300 mg elemental magnesium per day at bedtime is a practical starting dose, as it has a lower laxative burden than oxide forms. Check with your obstetric provider before adding any supplement to your prenatal regimen, since very high magnesium intake can cause nausea and, at extreme doses used in clinical settings by IV, respiratory depression.
Dietary sources of magnesium include pumpkin seeds (156 mg per ounce), dark chocolate (64 mg per ounce), almonds (80 mg per ounce), and cooked spinach (78 mg per half cup).
Calcium
If your diet is low in dairy or calcium-fortified foods, bring calcium-rich foods in before turning to supplements. Calcium carbonate and calcium citrate are both safe in pregnancy; citrate absorbs better when taken without food. Take calcium and iron supplements at separate times of day, as they compete for absorption.
Stretching Before Bed
A randomized trial published in the Journal of Midwifery and Women's Health found that a simple calf-stretching program performed nightly for six weeks significantly reduced the frequency of nocturnal leg cramps in pregnant women compared with no stretching. The protocol: stand arm's length from a wall, place both hands on the wall, step one foot back, keep the back knee straight and heel flat, hold 30 seconds, repeat three times each side.
This is the lowest-risk intervention with direct pregnancy-specific trial data. Do it before bed, every night.
Hydration
Aim for pale yellow urine as your hydration target during pregnancy. Dark urine is a reliable sign that your plasma is concentrated enough to raise neuromuscular irritability. If nausea limits your ability to drink plain water, electrolyte-containing drinks without excessive sugar, or water with a squeeze of lemon and a small pinch of salt, may be better tolerated.
Compression Hosiery
Graduated compression stockings at 15 to 20 mmHg reduce lower-leg venous pooling and edema. Put them on before getting out of bed in the morning, when venous pooling is lowest, to get full benefit. They are available without prescription and are safe throughout pregnancy. Women with varicose veins or pre-existing venous insufficiency are most likely to benefit.
What Does Not Have Good Evidence
Vitamin B6 (pyridoxine) is sometimes recommended for leg cramps in pregnancy, though the evidence is very weak. It has better-studied use for nausea and vomiting of pregnancy at doses of 10 to 25 mg three times daily, but there are no high-quality pregnancy-specific cramp trials. Quinine was historically used for leg cramps but is contraindicated in pregnancy due to associations with fetal harm including thrombocytopenia and hearing defects. Do not take it.
Pregnancy and Lactation Safety: Drug Considerations
This section covers medications and supplements you may encounter when researching leg-cramp treatment.
Quinine: Contraindicated in pregnancy. The FDA issued a drug safety communication warning against off-label use for leg cramps in any population; fetal risks are documented and serious. Do not use.
Magnesium oxide/bisglycinate/citrate: Considered generally safe in pregnancy at supplemental doses. High-dose IV magnesium sulfate is used clinically for preterm labor tocolysis and eclampsia prevention, which establishes a reasonable safety record, though oral supplemental dosing is far lower. Excreted in breast milk at low levels; the American Academy of Pediatrics considers oral magnesium compatible with breastfeeding.
Calcium carbonate/citrate: Safe in pregnancy and lactation at recommended daily allowance doses. Excess calcium supplementation (above 2,500 mg daily total) may increase constipation and, rarely, hypercalcemia.
NSAIDs (ibuprofen, naproxen): Sometimes used for acute pain relief. ACOG advises avoiding NSAIDs at or beyond 20 weeks of gestation due to risk of fetal renal dysfunction and premature closure of the ductus arteriosus. Acetaminophen (paracetamol) at the lowest effective dose for the shortest duration remains the preferred analgesic for acute pain in pregnancy when non-pharmacological measures fail, though ongoing research is examining cumulative exposure.
Iron supplementation: Relevant if RLS is coexisting. Iron supplementation in iron-deficient pregnant women should be guided by ferritin levels. Excess iron is not benign; it causes constipation and may interfere with zinc absorption.
During lactation: Most of the supplements discussed here, magnesium, calcium, and iron at standard doses, are compatible with breastfeeding. Leg cramps typically resolve within days to weeks postpartum as hormonal and volume changes normalize. If cramps persist beyond 6 weeks postpartum, re-evaluation is warranted to look for persistent electrolyte disorders or thyroid dysfunction, particularly postpartum thyroiditis, which affects 5 to 10 percent of postpartum women and can cause muscle aching.
Who Is More Likely to Experience Severe or Persistent Cramps
Most pregnant women with leg cramps fall into the common, benign category. Certain factors increase the likelihood of more frequent or more severe cramps:
- Multiple gestation (twins or more): Greater fetal mineral demand and more pronounced uterine compression of pelvic veins.
- PCOS with insulin resistance: Magnesium handling is altered in insulin-resistant states; women with PCOS have higher baseline rates of magnesium deficiency even before pregnancy.
- Hyperemesis gravidarum: Severe vomiting depletes electrolytes rapidly. Women with hyperemesis need regular electrolyte monitoring and are at higher risk of hypomagnesemia-driven cramps.
- Pre-existing varicose veins or venous insufficiency: Increased venous pooling amplifies the circulatory component of cramps.
- Sedentary work: Long periods of sitting reduce calf-muscle pump activity and worsen venous pooling.
- Nutritionally restricted diets: Vegan diets that are not carefully planned may be lower in bioavailable calcium and magnesium; vegetarian and vegan pregnant women should review their prenatal supplement regimen with a registered dietitian.
The Evidence Gap: What We Still Do Not Know
Women have been historically under-represented in clinical trials, and pregnancy makes that gap worse. The 2021 Cochrane review on magnesium for leg cramps included only 390 women across all included trials combined. For context, a typical Phase 3 pharmaceutical trial in non-pregnant adults might enroll 3,000 to 10,000 participants.
We do not have good trial data on:
- The optimal magnesium formulation or dose specifically for pregnancy-associated cramps
- Whether treating RLS in pregnancy reduces coexisting cramp frequency
- The contribution of progesterone and relaxin to muscle excitability changes in the second and third trimesters
- Whether PCOS-related magnesium dysregulation requires higher supplemental doses in pregnancy
Clinicians currently extrapolate from small trials, physiological plausibility, and safety data from magnesium's established use in obstetric emergencies. That is honest clinical reasoning, but it is not the same as high-certainty evidence. When your provider says "try magnesium," they are making a reasonable, low-risk recommendation based on the best available data, not on a definitive large trial.
How Cramps Are Diagnosed
Leg cramps in pregnancy are diagnosed clinically. No blood test definitively confirms that a cramp was caused by magnesium or calcium deficiency, because serum levels of these minerals often remain within the normal range even when muscle stores are depleted. Serum magnesium is a poor proxy for total body magnesium status.
Your provider may check:
- Serum magnesium and calcium: Useful if you have other symptoms of deficiency or if cramps are severe.
- Serum ferritin: If RLS symptoms coexist; a ferritin below 50 mcg/L is associated with worsened RLS in pregnancy.
- Compression ultrasound of the leg veins: If DVT is clinically suspected based on the features described above.
- Thyroid function (TSH, free T4): Not routine for cramps alone, but relevant if cramps are severe and other symptoms of thyroid dysfunction are present.
- 25-hydroxyvitamin D: Low vitamin D impairs calcium absorption; deficiency is common in pregnancy and may compound calcium-related cramp risk.
A physical exam that finds a hard, painful, palpable calf muscle knot that resolves within minutes, without swelling, warmth, or redness, is the classic presentation of a benign nocturnal leg cramp.
Practical Week-by-Week Approach by Trimester
First trimester (weeks 1 to 13): Cramps are less common but can occur, particularly if nausea is limiting fluid and food intake. Focus on hydration and electrolyte intake. Hyperemesis gravidarum in this window warrants prompt electrolyte assessment.
Second trimester (weeks 14 to 27): Cramps begin to appear for most women. This is the right time to start nightly calf stretching, review your prenatal vitamin's magnesium content, and assess dietary calcium. The uterus is growing rapidly and venous compression begins in earnest.
Third trimester (weeks 28 to 40): The most common and most intense period for leg cramps. Add compression hosiery if not already using it. Sleep on your left side. If cramps are disrupting sleep more than twice per week, discuss a magnesium supplement with your provider. DVT vigilance is highest in this period and immediately postpartum.
Postpartum: Cramps should improve within days to weeks after delivery. Persistent cramps beyond 6 weeks warrant electrolyte and thyroid evaluation.
Frequently asked questions
›What causes leg cramps in pregnancy?
›How is a leg cramp diagnosed during pregnancy?
›When should I worry about leg cramps in pregnancy?
›Is magnesium safe to take for leg cramps during pregnancy?
›Can leg cramps in pregnancy be a sign of something serious?
›Why do leg cramps happen more at night during pregnancy?
›Does stretching actually help with pregnancy leg cramps?
›Can dehydration cause leg cramps in pregnancy?
›How is restless legs syndrome different from leg cramps in pregnancy?
›Is quinine safe for leg cramps in pregnancy?
›Do leg cramps go away after delivery?
›Does having PCOS make leg cramps worse in pregnancy?
References
- Sanghavi M, Rutherford JD. Cardiovascular physiology of pregnancy. Circulation. 2014;130(12):1003-1008.
- Heazell A, Bhatti NR. Physiological changes in pregnancy. Obstetrics, Gynaecology and Reproductive Medicine. 2005;15(9):293-298.
- Skajaa GK, Fuglsang J. Nocturnal leg cramps in pregnancy. Acta Obstet Gynecol Scand. 2001;80(11):1003-1007.
- Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2021;9:CD009070.
- Supakatisant C, Phupong V. Oral magnesium for relief in pregnancy-induced leg cramps: a randomised controlled trial. Matern Child Nutr. 2015;11(2):139-145.
- ACOG. Nutrition during pregnancy. American College of Obstetricians and Gynecologists.
- National Academies of Sciences. Dietary Reference Intakes for Water, Potassium, Sodium, Chloride, and Sulfate. National Academies Press; 2004.
- Picchietti D, Hensley JG, Bainbridge JL, et al. Consensus clinical practice guidelines for the diagnosis and treatment of restless legs syndrome/Willis-Ekbom disease during pregnancy and lactation. Sleep Med Rev. 2015;22:64-77.
- Lee KA, Zaffke ME, Baratte-Beebe K. Restless legs syndrome and sleep disturbance during pregnancy: the role of folate and iron. J Womens Health Gend Based Med. 2001;10(4):335-341.
- ACOG Practice Bulletin 196. Thromboembolism in pregnancy. Obstet Gynecol. 2021;138(3):e1-e15.
- FDA Drug Safety Communication. New risk management plan and patient medication guide for quinine (marketed as Qualaquin). U.S. Food and Drug Administration.
- Young GL, Jewell D. Interventions for leg cramps in pregnancy. Cochrane Database Syst Rev. 2002;(1):CD000121.
- ACOG. Medically indicated late-preterm and early-term deliveries. Practice Bulletin No. 764. 2022.
- Stagnaro-Green A. Postpartum thyroiditis. J Clin Endocrinol Metab. 2002;87(9):4042-4047.
- Soma-Pillay P, Nelson-Piercy C, Tolppanen H, Mebazaa A. Physiological changes in pregnancy. Cardiovasc J Afr. 2016;27(2):89-94.