Updated November 5, 2026 · The Vein Clinic of Rockmart

Leg cramps at night are sudden, painful tightenings of a muscle, most often the calf, that can wake you from a sound sleep. Most last from a few seconds to several minutes, and the muscle may stay sore afterward. Stretching or gently massaging the muscle can ease the pain. They get more common as people get older.

How do you stop a leg cramp right now?

For a cramp in your foot or toes, gently pull your toes back toward your shin, or stand up and put your weight on that foot.

What causes leg cramps at night?

Often there's no clear cause. Night cramps may be more likely when your muscles are tired or strained, such as after hard exercise or long hours on your feet. Sleeping with your toes pointed down may bring them on, too.

Some health conditions and medicines are linked with cramps as well:

If the cramps started after you began a new medicine, ask your doctor whether the two are connected. Don't stop a prescription on your own.

Can vein problems cause leg cramps?

They can play a part. When the valves in your leg veins leak, blood pools in the lower legs, and many people with vein disease have cramps at night along with aching, heaviness or swelling. An occasional cramp isn't a reason to worry about your veins. If your cramps come with visible varicose veins, swollen ankles or skin changes near the ankle, though, a vein evaluation may help find the cause. You can learn how those valves fail in what causes varicose veins.

Leg cramps during pregnancy

Calf cramps are common in pregnancy, mostly in the second and third trimesters and often at night. Gentle calf stretches before bed and staying active during the day may help. Check with your doctor or midwife before you take any supplement for cramps.

How to prevent leg cramps at night

Don't take quinine pills for leg cramps. The FDA warns against it, because quinine can cause serious and sometimes deadly side effects, including blood problems and an irregular heartbeat. Magnesium is a popular remedy, but studies haven't shown it helps most older adults with night cramps, so ask your doctor before you try it.

Is it a cramp, restless legs or a blood clot?

These can feel alike in the middle of the night, but each one has its own pattern:

When to see a doctor about leg cramps

Talk to a doctor if cramps happen often or keep you from sleeping, if they don't get better with stretching, or if they come with muscle weakness, numbness, swelling or skin changes. Frequent cramps sometimes have a cause that can be treated once it's found.

This guide is general information, not medical advice. If you think you have a blood clot, call your doctor right away or go to an emergency room. Call 911 for chest pain or trouble breathing.

Common Questions

More Questions About Night Cramps

Why do I get leg cramps every night?

Night cramps have been linked to tired or tight muscles, long hours on your feet, older age, pregnancy and some medicines. They're worth a doctor's visit, because a treatable cause, such as a mineral imbalance or vein disease, can be behind them.

Does tonic water help leg cramps?

Tonic water contains quinine, which the FDA limits to 83 parts per million in soft drinks. The FDA warns against quinine pills for leg cramps because of their serious side effects.

What deficiency causes leg cramps?

Low potassium, magnesium or calcium can cause muscle cramps, but most people with night cramps don't have a deficiency. A blood test can check your levels, so ask your doctor before you take supplements.

Cramps Along With Aching or Swollen Legs?

Schedule a vein evaluation at The Vein Clinic of Rockmart to find out whether your veins are involved.