Leg cramps during pregnancy are common, especially in the second and third trimesters, and they tend to strike at night. The exact cause isn’t fully understood, but a combination of increased body weight, changes in circulation, and shifts in mineral levels all play a role. The good news: a few straightforward habits can significantly reduce how often cramps happen and how intense they feel.
Why Pregnancy Causes Leg Cramps
Your body undergoes major circulatory changes during pregnancy. Blood volume increases by nearly 50%, your growing uterus puts pressure on the veins that return blood from your legs, and the extra weight on your lower body fatigues calf muscles faster. All of this makes the muscles in your calves more prone to sudden, involuntary contractions.
Mineral shifts matter too. Lower levels of calcium in the blood during pregnancy may contribute to cramps. Magnesium levels also tend to drop as your body diverts minerals to support fetal development, and magnesium plays a direct role in muscle relaxation. When levels fall short, muscles are quicker to seize up. Dehydration compounds the problem by concentrating electrolytes in ways that make nerves more excitable.
Magnesium: The Most Studied Prevention Strategy
Of all the nutrients linked to pregnancy leg cramps, magnesium has the strongest research behind it. In one randomized controlled trial, pregnant women who took 300 mg per day of magnesium bisglycinate for four weeks experienced a 50% reduction in both cramp frequency and intensity compared to a placebo group. Other trials using magnesium citrate (300 mg daily) and lower doses (200 mg daily) have shown similar benefits, with women reporting fewer cramps within two to four weeks of starting supplementation.
The forms that tend to be best absorbed and easiest on the stomach are magnesium citrate and magnesium bisglycinate (sometimes labeled glycinate). Magnesium oxide, the cheapest form found in many drugstore supplements, is less well absorbed and more likely to cause loose stools. If your prenatal vitamin already contains some magnesium, check the amount before adding a separate supplement. Many prenatals contain only 50 to 100 mg, well below the levels used in the cramp-prevention trials.
Food sources of magnesium include pumpkin seeds, almonds, spinach, black beans, and dark chocolate. A quarter cup of pumpkin seeds alone provides roughly 150 mg.
Hydration and Other Minerals
Current guidance recommends at least 6 to 8 glasses of fluid per day during pregnancy, totaling about 1.6 liters. All fluids count, including tea and other hot drinks. If you’re active, in hot weather, or experiencing morning sickness, you likely need more. A simple check: your urine should be pale yellow, not dark or concentrated.
Calcium may also play a role. Some research links lower blood calcium levels to a higher risk of pregnancy cramps. Dairy products, fortified plant milks, broccoli, and canned sardines (with bones) are reliable sources. Potassium, found in bananas, potatoes, and avocados, supports normal muscle function as well. Rather than supplementing individual minerals beyond what your prenatal provides, focusing on a varied diet rich in these foods is the most practical approach.
Stretching Before Bed
Because cramps overwhelmingly happen at night, a short calf-stretching routine before bed is one of the simplest preventive measures. Stand about arm’s length from a wall, place your palms flat against it, and step one foot back while keeping that heel on the ground. Lean into the wall until you feel a stretch in the back calf. Hold for 20 to 30 seconds on each side, and repeat two or three times.
If standing stretches feel unstable later in pregnancy, you can do the same thing seated. Sit with your legs extended, loop a towel around the ball of one foot, and gently pull back until you feel the stretch in your calf. The goal is to lengthen the calf muscles so they’re less likely to spasm once you’re asleep. Even two minutes of stretching before bed can make a noticeable difference within a few days.
Staying Active During the Day
Regular, gentle movement improves circulation in your legs and reduces the pooling of blood that contributes to cramps. Walking, swimming, and prenatal yoga are all effective. Swimming has the added benefit of hydrostatic pressure from the water, which naturally supports venous return from your legs. Even short walks throughout the day help more than a single longer session, because prolonged sitting or standing both worsen blood flow in the lower legs.
Avoid pointing your toes when you stretch or shift positions in bed. This contracts the calf muscle and is a common, almost reflexive trigger for nighttime cramps. If you need to stretch your legs in bed, flex your foot so your toes pull toward your shin instead.
Compression Socks and Sleep Position
Compression socks improve blood flow by applying graduated pressure, tighter at the ankle and loosening as they go up the leg. They help reduce swelling, varicose veins, and cramps. For mild symptoms, socks rated 15 to 20 mmHg offer comfortable everyday support. If you have varicose veins or more significant swelling, 20 to 30 mmHg provides stronger compression. Put them on first thing in the morning, before swelling starts, for the best effect.
Sleeping on your left side takes pressure off the large vein (the vena cava) that returns blood from your lower body, improving circulation to your legs. Placing a pillow between your knees keeps your hips aligned and reduces strain on your calf and thigh muscles. Elevating your feet slightly with a pillow at the end of the bed can also help fluid drain from your lower legs overnight.
What to Do When a Cramp Strikes
When a cramp hits, straighten your leg and flex your foot upward, pulling your toes toward your knee. This actively stretches the cramping calf muscle and usually brings relief within 30 to 60 seconds. Massaging the muscle or applying a warm cloth afterward helps it fully relax. Walking around for a minute once the acute spasm passes can prevent it from returning immediately.
When Leg Pain Signals Something Else
Pregnancy increases the risk of deep vein thrombosis (DVT), a blood clot in the leg. Normal cramps feel like a sudden, intense muscle contraction that resolves within minutes. DVT pain is different: it tends to persist, often presents as a heavy ache or tenderness in one calf, and may come with warmth, redness, or swelling that doesn’t go away. These symptoms typically affect only one leg.
Swelling and discomfort in your legs are common during pregnancy and don’t automatically signal a problem. But if you notice persistent pain in one calf that worsens when you walk, skin that feels unusually warm, or redness at the back of your lower leg, contact your midwife or doctor promptly. DVT is treatable, but it needs attention quickly.

