What Causes Leg Cramps During Pregnancy and How to Stop Them

Leg cramps during pregnancy are caused by a combination of factors: increased weight on fatigued muscles, shifting mineral levels (especially magnesium), expanded blood volume that slows circulation, and pressure from the growing uterus on blood vessels. They affect roughly 58% of pregnant women, with the highest rates in the third trimester. Most are harmless, though intensely painful, and tend to strike at night.

How Common They Are and When They Peak

Leg cramps can happen at any point in pregnancy, but they become significantly more frequent as the pregnancy progresses. A study from India tracked prevalence across all three trimesters and found that about 27% of women experienced calf cramps in the first trimester, rising to 48% in the second and peaking at nearly 65% in the third. Cross-sectional research across the U.S., Iran, and India has consistently placed third-trimester prevalence between 48% and 64%.

The cramps almost always hit at night, often waking you from sleep with a sudden, involuntary tightening of the calf muscle. They typically last seconds to a few minutes, but the soreness can linger into the next day.

Muscle Fatigue and Extra Weight

Your leg muscles carry progressively more load as the baby grows. By the third trimester, you may have gained 25 to 35 pounds or more, and your calf muscles absorb much of that extra demand with every step. Muscles that are chronically overworked become more prone to involuntary contractions, especially during rest when they finally relax after a long day of compensating for the shifted center of gravity.

Magnesium Levels Matter Most

Hormonal shifts and dietary changes during pregnancy can deplete several minerals, but magnesium appears to be the key player in leg cramps. A study of 263 third-trimester women published in the Indonesian Journal of Obstetrics and Gynecology measured blood levels of magnesium, calcium, and potassium and then compared women who experienced calf cramps to those who did not. Magnesium levels had a statistically significant association with cramping. Calcium and potassium did not.

This makes physiological sense. Magnesium helps regulate muscle contraction and relaxation. When levels drop, muscles are more likely to fire on their own and have a harder time releasing. During pregnancy, your body diverts magnesium to support the baby’s bone and tissue development, which can leave your own muscles short. Foods rich in magnesium include nuts, seeds, dark leafy greens, whole grains, and dark chocolate. Some prenatal vitamins contain magnesium, but the amount varies widely between brands, so it’s worth checking the label.

Blood Volume and Circulation Changes

Your blood volume nearly doubles over the course of pregnancy. While this is essential for supplying the placenta and baby, it creates extra work for your cardiovascular system. Circulation slows, particularly in the legs, where blood has to travel the farthest to return to the heart. The result is swelling, fluid retention, and reduced oxygen delivery to the calf muscles, all of which set the stage for cramping.

On top of that, the growing uterus puts direct pressure on the large blood vessels in the pelvis. This compresses the veins that carry blood back from the legs, further slowing return flow. Lying on your back makes this worse because the uterus presses more heavily on those vessels. Sleeping on your side, particularly your left side, takes some of that pressure off and improves circulation to the lower body.

Dehydration Plays a Bigger Role Than You Think

Pregnant women need more water than usual, yet many fall short. Dehydration reduces blood volume and makes it harder for the heart to pump oxygen-rich blood to your muscles. Even mild dehydration can make cramps more frequent. If you notice your cramps are worse on days when you haven’t been drinking enough, that connection is likely real. Most guidelines suggest around 8 to 12 cups of water per day during pregnancy, though your needs increase in hot weather or if you’re physically active.

How to Relieve a Cramp When It Strikes

When a cramp hits, flex your foot so your toes pull toward your shin rather than pointing away from you. This stretches the calf muscle and signals it to release. You can do this sitting or lying down. Gently massaging the cramped muscle or applying a warm towel can also help it relax faster. Walking around for a minute or two once the worst of the spasm passes increases blood flow and helps clear the metabolic byproducts that contribute to lingering soreness.

The one thing to avoid during a cramp is pointing your toes downward, which shortens the calf muscle and can intensify or restart the spasm.

Reducing Cramp Frequency

Calf stretches before bed are the simplest preventive measure. Stand facing a wall with one foot behind the other, keeping the back heel on the floor, and lean forward until you feel a stretch in the back calf. Hold for 20 to 30 seconds and repeat on the other side. Doing this nightly can meaningfully reduce how often cramps wake you up.

Beyond stretching, staying well hydrated throughout the day, eating magnesium-rich foods, and avoiding long periods of standing or sitting in one position all help. Light exercise like walking or swimming keeps circulation moving. Elevating your legs in the evening, even just propping them on a pillow while on the couch, encourages blood to flow back toward the heart and reduces the pooling that contributes to nighttime cramps.

When a Cramp Might Be Something Else

Pregnancy increases the risk of blood clots in the legs, a condition called deep vein thrombosis (DVT). While ordinary cramps are usually bilateral (they can happen in either leg on different nights) and resolve quickly, DVT typically presents differently. Warning signs include persistent pain, swelling, and tenderness in one leg, particularly in the calf. The skin over the affected area may feel warm to the touch or appear red, especially at the back of the leg below the knee.

Swelling on its own is common during pregnancy and usually not a sign of a clot. But if you notice one-sided swelling paired with warmth, redness, or pain that doesn’t go away after stretching and walking, contact your midwife or doctor promptly. DVT is uncommon but treatable, and catching it early matters.