Leg cramps during pregnancy are common, especially in the second and third trimesters, and a few simple strategies can make a real difference. Most cramps strike at night, locking up your calf muscle for seconds to minutes, and they tend to get more frequent as your pregnancy progresses. The good news: a combination of daily stretching, staying hydrated, and addressing your mineral intake can reduce how often they happen and how much they hurt.
Why Pregnancy Causes Leg Cramps
Your body goes through several changes that make your leg muscles more cramp-prone. As your uterus grows, it puts increasing pressure on the blood vessels that return blood from your legs, slowing circulation. The extra weight you’re carrying also puts more strain on your calf and foot muscles throughout the day, leaving them fatigued and more likely to spasm.
Shifts in your electrolyte balance play a role too. Your blood volume increases by roughly 50% during pregnancy, which dilutes the concentration of minerals like magnesium, calcium, and potassium in your bloodstream. These minerals are essential for normal muscle contraction and relaxation. When levels dip, your muscles are more likely to fire involuntarily, especially at night when circulation slows further.
How to Stop a Cramp in the Moment
When a cramp hits, the fastest relief comes from stretching the muscle in the opposite direction of the spasm. If your calf seizes up, flex your foot by pulling your toes toward your shin. You can do this by reaching down and gently pulling your toes back, or by pressing the ball of your foot against a wall or headboard. Hold the stretch until the cramp releases, usually 15 to 30 seconds.
Once the acute spasm passes, massaging the area helps the muscle relax fully. You can follow up with either heat or cold. A heating pad or warm towel on your calf increases blood flow and loosens the lingering tightness. A towel-wrapped ice pack works too, especially if the muscle feels sore afterward. Some people find alternating between the two most helpful.
Try to avoid pointing your toes during a cramp or when you’re lying in bed, since that shortens the calf muscle and can trigger or worsen the spasm.
Stretching Before Bed
A nightly calf stretch is one of the most consistently recommended ways to reduce cramp frequency. Stand at arm’s length from a wall with your hands flat against it. Step one foot back, keeping that back knee straight and your heel pressed firmly into the floor. Bend your front knee forward slowly until you feel a stretch through the back calf. Hold for about 30 seconds, keeping your back straight and your hips facing the wall. Don’t let your feet angle inward or outward. Switch legs and repeat.
Doing this stretch two to three times on each side before bed gives your calf muscles a chance to lengthen after a full day of bearing extra weight. Many women notice a difference within the first week.
Magnesium and Other Minerals
Magnesium supplementation has the strongest (though still modest) evidence behind it. A Cochrane review of trials in pregnant women found that magnesium supplements made women about five times more likely to report having no leg cramps at all during treatment, and roughly 40% more likely to experience at least a 50% reduction in cramp frequency. Women taking magnesium also reported lower pain intensity scores. The evidence was rated low-certainty, meaning the benefits are plausible but not guaranteed for every person.
Food sources of magnesium include nuts, seeds, whole grains, dark leafy greens, and dark chocolate. For calcium, dairy products, fortified plant milks, and canned fish with bones are good options. Potassium-rich foods like bananas, sweet potatoes, and avocados round out the trio of minerals most relevant to muscle function. Getting these through food is ideal, but if your diet falls short, a supplement may help. Your prenatal vitamin likely contains some magnesium and calcium already, so check the label before adding more.
Hydration and Daily Movement
Dehydration makes cramps worse because it concentrates the waste products muscles produce and reduces blood flow to your extremities. Aim for roughly 8 to 12 cups of water daily during pregnancy, more if you’re active or in warm weather. A good rule of thumb: if your urine is pale yellow, you’re drinking enough.
Gentle daily movement, like walking or swimming, keeps blood circulating through your legs and prevents the muscle stiffness that comes from prolonged sitting or standing. If you spend long stretches at a desk, take a few minutes every hour to walk around or do some ankle circles. Avoid standing in one position for extended periods, which pools blood in your lower legs and sets the stage for nighttime cramps.
Compression Socks
Graduated compression socks, which are tightest at the ankle and gradually loosen toward the knee, help push blood back up toward your heart and reduce the swelling and pooling that contribute to cramps. For mild swelling, socks in the 15 to 20 mmHg range offer comfortable support that’s easy to wear all day. If you have varicose veins or more significant swelling, the 20 to 30 mmHg range provides stronger compression. Put them on in the morning before swelling starts for the best effect, and remove them at night.
When Leg Pain Needs Attention
Most pregnancy leg cramps are harmless, but it’s important to distinguish them from a deep vein thrombosis (DVT), or blood clot, which pregnancy makes more likely. A normal cramp is a temporary muscle spasm that you can feel contract and then release. DVT symptoms are different: persistent pain, swelling, and tenderness in one leg (usually the calf), along with skin that feels warm to the touch or looks red, particularly at the back of your lower leg below the knee.
The key distinctions are that DVT pain doesn’t come and go like a cramp, it typically affects only one leg, and the swelling doesn’t resolve with stretching or elevation. If you notice these signs, contact your midwife or doctor right away. DVT is uncommon but treatable, and catching it early is what matters.

