Why Do You Get Leg Cramps During Pregnancy?

Leg cramps during pregnancy are caused by a combination of increased blood volume, pressure from your growing uterus, and changes in circulation. They affect roughly half of all pregnant women, with the highest rates in the third trimester. The cramps are usually harmless, but understanding what drives them can help you manage the pain and recognize when something else might be going on.

How Common They Are by Trimester

Leg cramps tend to follow a predictable arc. About 21% of women report them in the first trimester. That number climbs to roughly 25 to 48% in the second trimester, then peaks at 48 to 65% in the third. A 2024 cross-sectional study put the third-trimester prevalence at 58%. So if you’re deep into pregnancy and waking up with a seized calf muscle at 3 a.m., you’re in the majority.

They typically strike at night and most often target the calf muscles, though the feet and thighs can cramp too. Episodes tend to become more frequent and more intense as pregnancy progresses, largely because the underlying causes compound over time.

What’s Actually Happening in Your Body

Several changes pile on top of each other to make your leg muscles more cramp-prone.

Your Blood Volume Nearly Doubles

By the third trimester, your body is circulating close to twice as much blood as it did before pregnancy. That sounds like it should help deliver more oxygen to your muscles, but the extra volume actually slows circulation, especially in your lower body. Sluggish blood flow means your leg muscles don’t clear metabolic waste as efficiently, and they don’t get a steady supply of the oxygen and nutrients they need. The result is muscles that fatigue faster and cramp more easily.

Your Uterus Compresses Pelvic Blood Vessels

As your uterus expands, it presses on the major veins that return blood from your legs to your heart. This creates a bottleneck. Blood pools in your lower limbs, contributing to both the swelling you can see and the cramping you can feel. The effect is worst when you’re lying on your back, because the weight of the uterus lands directly on the large vein running along your spine. That’s one reason cramps tend to hit at night.

Extra Weight Means Extra Muscle Fatigue

Your legs are carrying significantly more weight than they’re used to. The additional load on your calf muscles throughout the day leads to fatigue, and fatigued muscles are far more likely to cramp. This is the same mechanism that gives athletes cramps after long events, just happening at a slower pace over months.

Electrolyte Shifts

Pregnancy changes how your body handles minerals like calcium, potassium, and magnesium. Severe nausea and vomiting can deplete potassium and calcium, which are essential for normal muscle contraction and relaxation. When those electrolytes drop, muscles become more excitable and more prone to involuntary contractions. Your kidneys also filter minerals differently during pregnancy, and the baby draws from your mineral stores as it grows.

Does Magnesium Actually Help?

Magnesium supplements are one of the most commonly recommended remedies for pregnancy leg cramps. The evidence, however, is surprisingly weak. A 2020 systematic review of 11 randomized controlled trials involving 735 participants found no reduction in leg cramps from magnesium supplementation. A 2021 meta-analysis looking specifically at pregnant women (332 participants across four trials) found no difference in cramp frequency between magnesium and placebo.

A separate 2021 trial tested daily magnesium oxide supplements against a placebo over 30 days. Cramp frequency dropped in both groups by similar amounts, suggesting the improvement was a placebo effect or simply the natural fluctuation of symptoms over time. Based on this body of evidence, the American Academy of Family Physicians recommends against using magnesium for short courses of fewer than 60 days to treat pregnancy-related leg cramps.

This doesn’t mean your mineral status is irrelevant. It means that for most women, a supplement on top of a normal diet probably won’t fix the problem, because the cramps are driven more by circulatory and mechanical changes than by a simple magnesium shortage. Similarly, adding extra calcium or salt to your diet has not been shown to reduce cramping.

What Actually Relieves the Pain

When a cramp hits, the most effective immediate response is to flex your foot, pulling your toes toward your shin. This stretches the cramping calf muscle and usually forces it to release within 30 seconds to a minute. Gently massaging the muscle or walking around on a cool floor can also help it relax.

For prevention, a few strategies have more practical support than supplements:

  • Calf stretches before bed. Stretching your calves for a few minutes before you lie down can reduce nighttime cramp frequency. Stand facing a wall, step one foot back, and press your heel into the floor until you feel the stretch.
  • Staying hydrated. Dehydration worsens muscle cramping. Your fluid needs increase during pregnancy, so drinking water consistently throughout the day matters more than it normally would.
  • Changing sleep position. Sleeping on your left side takes the weight of your uterus off the major vein that returns blood from your legs. This improves circulation and may reduce nighttime cramps.
  • Keeping legs elevated. Propping your feet up during the day helps blood flow back toward your heart instead of pooling in your calves.
  • Comfortable shoes. Supportive footwear reduces the strain on your calf muscles during the day, leaving them less fatigued by bedtime.

When Leg Pain Could Be Something Else

Pregnancy increases the risk of blood clots in the legs, a condition called deep vein thrombosis (DVT). Normal leg cramps and DVT can feel similar at first, but there are important differences. A typical pregnancy cramp is a sudden, intense muscle contraction that releases within minutes. DVT pain tends to be a persistent, heavy ache rather than a sharp spasm, and it usually affects only one leg.

Contact your midwife or doctor promptly if you notice pain, swelling, and tenderness concentrated in one leg (typically the calf), warmth in the affected area, or red skin on the back of your leg below the knee. Swelling and general discomfort in both legs is common and usually benign during pregnancy. One-sided symptoms with warmth or redness are the pattern that warrants a call.