Why Do I Get Leg Cramps During Pregnancy?

Leg cramps during pregnancy are extremely common, especially in the second and third trimesters. They tend to strike at night, often in the calves, and can jolt you out of a deep sleep with sudden, intense muscle tightening. The exact cause isn’t fully understood, but several overlapping factors, from shifting mineral levels to the physical demands of carrying extra weight, make your muscles more prone to cramping as pregnancy progresses.

What Causes Pregnancy Leg Cramps

Your body undergoes enormous changes during pregnancy, and several of them converge on your leg muscles. Blood volume increases by nearly 50%, which changes how efficiently blood circulates back up from your legs. At the same time, your growing uterus puts pressure on the blood vessels and nerves that serve your lower body. Slower venous return means your calf muscles may not get the steady supply of oxygen and nutrients they need, making them more likely to seize up.

Weight gain shifts your center of gravity, forcing your legs to work harder throughout the day. Muscles that are fatigued are simply more cramp-prone, especially overnight when small involuntary movements can trigger a full contraction in a tired calf. Hormonal shifts also loosen ligaments and change how your muscles respond to signals from your nerves, adding another layer of vulnerability.

The Role of Magnesium

Of the minerals linked to muscle function, magnesium appears to play the biggest role in pregnancy leg cramps. A study published in the Indonesian Journal of Obstetrics and Gynecology found a statistically significant relationship between low magnesium levels and calf cramps in third-trimester women. Interestingly, calcium and potassium levels did not show the same effect in that study, despite older theories pointing to all three minerals as culprits.

Your body’s demand for magnesium rises during pregnancy. Magnesium helps muscles relax after contraction, so when levels dip, muscles can stay contracted longer than they should, producing that painful, locked-up sensation. Some research from the Mayo Clinic also suggests lower blood calcium levels may contribute, but the evidence is stronger for magnesium as a primary driver.

Here’s the catch: supplementing with magnesium doesn’t always fix the problem. A controlled trial published in PLOS One gave pregnant women 300 mg of magnesium citrate daily for four weeks. Leg cramps decreased by about 28% across all participants, but the placebo group improved by nearly 33%. There was no meaningful difference between the two groups. So while low magnesium may contribute to cramps, taking a supplement isn’t a reliable solution for everyone.

When Cramps Typically Start

Most women notice leg cramps beginning in the second trimester and peaking in the third. The timing makes sense: that’s when the uterus is large enough to compress pelvic blood vessels, when weight gain accelerates, and when mineral demands on the body are highest. First-trimester cramps are less common but not unheard of.

Night is prime time. During the day, walking and shifting positions keeps blood moving through your legs. When you lie down, circulation slows, and small involuntary foot movements (like pointing your toes in your sleep) can trigger a sudden, sustained contraction in your calf.

How to Prevent and Relieve Cramps

No single strategy eliminates pregnancy leg cramps entirely, but combining several approaches can reduce how often they happen and how intense they feel.

  • Stretch your calves before bed. Stand facing a wall, step one foot back, and press your heel into the floor while leaning forward. Hold for 20 to 30 seconds on each side. This lengthens the calf muscles and can reduce overnight cramping.
  • Stay hydrated. Most pregnant women need 8 to 12 cups (64 to 96 ounces) of fluid per day, more if you’re active or in hot weather. Water is ideal, but milk, broth, and approved herbal teas count too. Dehydration makes muscles more irritable.
  • Eat magnesium-rich foods. Nuts, seeds, leafy greens, whole grains, and dark chocolate all provide magnesium in a form your body absorbs well. Getting magnesium through food is generally preferred over supplements, since high-dose supplements can cause diarrhea.
  • Flex, don’t point. When a cramp hits, pull your toes up toward your shin rather than pointing them away. This forces the cramping calf muscle to lengthen and release. Walking around for a minute afterward helps the muscle fully relax.
  • Try compression socks. Graduated compression stockings improve blood flow in the lower legs. Socks rated 15 to 20 mmHg offer mild support for general discomfort, while 20 to 30 mmHg socks provide more help if you have noticeable swelling or varicose veins.

Warm baths or a heating pad on the calf can also ease soreness after a cramp. Some women find that sleeping on their left side improves circulation enough to reduce nighttime episodes, since it takes pressure off the large vein that returns blood from your lower body.

Normal Cramps vs. Something More Serious

A typical pregnancy leg cramp grabs both sides of the calf, lasts seconds to a few minutes, and releases on its own or with stretching. It may leave the muscle sore for a few hours, but the pain is symmetrical and temporary.

Deep vein thrombosis, or DVT, is a blood clot in the leg. Pregnancy increases your risk for DVT, and it can mimic a cramp. The key differences: DVT typically affects only one leg and causes persistent pain (often worse when walking), visible swelling, warmth, and redness, usually at the back of the lower leg below the knee. Swelling and mild discomfort in both legs is normal during pregnancy, but pain, swelling, and tenderness concentrated in a single leg warrants an immediate call to your midwife or doctor. DVT is treatable but needs prompt attention.