PDF download Download Article PDF download Download Article

Leg cramps at night are an unfortunately common ailment that can strike anyone for a variety of reasons. Pregnant women and the elderly are particularly susceptible, as are those who engage in particular sports activities or who take certain medications. Leg cramps are an unfortunately widespread phenomenon, but you should be able to eliminate nighttime leg cramps on your own. However, if chronic leg cramps are bothering you or if they do not resolve with some stretching and gentle massage, then see a doctor for help.

Method 1
Method 1 of 4:

Performing Stretches to Relieve Cramps

PDF download Download Article
  1. Sit with your cramped leg out in front of you and wrap a towel around the ball of your foot. Grab both ends of the towel and pull it towards yourself so that you feel a stretch in the back of your leg. Hold this stretch for 30 seconds and repeat 3 times.[1]
    • This stretch works by compressing the leg and effectively massaging it.
    • Be careful not to overstretch and cause greater injury to your leg. Stop stretching if you start to feel pain in your calf.
  2. In a sitting position, extend the leg that has the cramp in it and keep the other leg bent, then lean forward so that your knee approaches your chest. Take hold of the bottom of the toe from the extended leg and pull it toward your body as much as you can.[2]
    • If you’re unable to completely perform this stretch, simply lean forward and stretch your hands towards your toes as far as you comfortably can.
    Advertisement
  3. Lean forward and place your hands on a wall, then take a step forward with your non-cramping leg and extend the other leg straight out behind you. Keeping the toes and heel of your extended leg flat on the ground, slowly transfer your weight onto your bent leg until you feel the stretch in your cramping calf. Hold this stretch for 15-30 seconds.[3]
    • You should repeat this stretch until the cramp in your calf dissipates.
    • You can also perform this stretch before you go to bed as a preventive measure to better ensure you don’t get leg cramps during the night.
  4. Lie flat on your back and bend the knee in your non-cramping leg, so that your foot is flat on the floor. Then, extend and raise your cramping leg and pull it towards you while keeping it straight. Hold this stretch for 10-15 seconds.
    • Make sure you pull your leg at the back of your thigh instead of at the knee to make sure you’re adequately stretching your hamstring.
    • If you can’t completely extend your cramped leg as you raise, simply extend it as far as you comfortably can and until you start to feel a stretch.
  5. Advertisement
Method 2
Method 2 of 4:

Using Home Remedies to Treat and Prevent Leg Cramps

PDF download Download Article
  1. Tight bedsheets or covers can cause you to unconsciously point your toes downward while sleeping, which can trigger calf cramps. Stick with looser bedsheets to minimize the chance of your feet getting stuck in 1 position for too long and causing cramps.[4]
    • You can also avoid distorting your toes by hanging your feet over the end of the bed when you sleep so that your toes are pointing down.
  2. Applying heat to the cramped area can do a lot to loosen tight muscles and relieve pain. Use an electric heating pad, a warm towel, or even a warm water bottle wrapped in cloth to relax your muscles and ease your cramps.[5]
    • If you choose to use an electric heating pad, be sure not to fall asleep while it’s on to avoid the risk of a fire starting. Make sure your heating pad has an automatic shutoff.
    • You might also be able to use heat to relax away your cramps by taking a nice warm bath.[6] n
    • Make sure to check your leg for swelling before you do this. If your leg is swollen and you are also having pain and cramping, then you may have a blood clot, or deep vein thrombosis. In this case, seek medical attention and do not apply a heating pad.
  3. Leg cramps can sometimes be caused by ill-fitting footwear, especially among people who have flat feet and other structural problems. To avoid leg cramps caused by footwear, be sure to only wear shoes that properly fit you and that are designed to compensate for any structural issues you have with your feet.[7]
    • You may need to get shoes specially fitted and made by a podiatrist. These will cost more than store-bought shoes, but they may help to stop your leg cramps. Sole inserts for shoes are unlikely to help.
    • People who suffer from nighttime leg cramps should also avoid wearing high heels, as these shoes have been linked to leg cramps.
  4. Advertisement
Method 3
Method 3 of 4:

Changing Your Diet

PDF download Download Article
  1. Tonic water contains quinine, which some people have reported as helpful for nighttime leg cramps. However, quinine is not FDA approved for treating leg cramps, and tonic water only contains a small amount.[8]
    • The very small amount of quinine in tonic water is unlikely to cause any side effects.
  2. There’s some evidence that suggests nighttime leg cramps may be caused by nutrient deficiencies, especially low levels of potassium, calcium, and magnesium. This may be more of a problem for athletes. To avoid such deficiencies, make sure you are getting adequate amounts of these minerals from food or supplements.[9]
    • Good sources of these minerals may include milk, bananas, oranges, apricots, grapes, cabbage, broccoli, sweet potatoes, yogurt, and saltwater fish.
    • Be aware that the research on the causal connection between mineral deficiencies and leg cramps has been mixed, so increasing your consumption of these minerals may not by itself alleviate your night leg cramps. It is best to follow a balanced diet to get adequate amounts rather than to change your diet drastically.
    • If you don't want to take a magnesium supplement, try adding magnesium or Epsom salts to your bath water.[10]
  3. Pregnant women are generally more susceptible to having leg cramps, especially during the second and third trimesters. Talk to your doctor if you’re pregnant and experiencing leg cramps to determine whether taking magnesium supplements is right for you.[11]
    • Pregnant women are more likely to benefit from magnesium supplementation, which is critical to normal bodily function. For older or non-nursing adult women, studies show that magnesium supplements are far less conclusive.
    • Be sure not to begin to take any supplement without your doctor’s approval, especially if you are pregnant. Your doctor may determine that you can consume an adequate amount of magnesium simply by changing your diet.
  4. Dehydration can sometimes worsen leg cramps, so make sure to drink plenty of water each day.[12] Women should aim to drink about 2.2 litres (0.58 US gal) a day, while men should drink about 3 litres (0.79 US gal) of water a day.[13]
    • If you’re not sure whether you’re drinking enough water, check the transparency of your urine. Clear urine signals adequate hydration, while yellowish urine or urinating infrequently signals less adequate hydration.
    • Avoid drinking too much alcohol. Excessive alcohol consumption robs the body of water, making the possibility for cramping that much worse.
  5. Calcium channel blockers keep calcium from entering various cells and blood vessel walls in the body. Though they are primarily used to treat high blood pressure, they can also be used to help with nighttime muscle cramps. You will need to take your blood pressure regularly if you take this medication.[14]
    • If your doctor feels you should be on calcium channel blockers, they will give you a prescription along with specific dosage information.
    • The side effects of calcium channel blockers may include drowsiness, increased appetite, weight gain, and breathing difficulty (within the first few doses if you have an allergy to the medication).
    • Note that people taking calcium channel blockers should not eat grapefruit, drink grapefruit juice, or consume alcohol while on the medication.
  6. Advertisement
Method 4
Method 4 of 4:

Avoiding Drugs That May Cause Leg Cramps

PDF download Download Article
  1. Diuretics that are used to treat high blood pressure may also help get rid of excess water in the body. This unfortunately can result in dehydration, a common cause of night leg cramps.[15]
    • If you take one of these drugs and experience leg cramps at night, talk to your doctor about taking a diuretic.
  2. Thiazide diuretics, used to treat high blood pressure and heart failure, may deplete key electrolytes in the body, paving the way for possible cramping. ACE-inhibitors may also cause an electrolyte imbalance and lead to muscle cramps.[16]
    • Talk to your doctor if you have an abnormal blood pressure reading while taking an anti-hypertensive medication. They may recommend changing the dose or taking you off of the medication.
  3. Used to control high cholesterol, statins and fibrates may interfere with muscle growth, causing a decrease in muscle energy. Ask your doctor whether it's prudent to swap statins and fibrates with vitamin B12, folic acid, and vitamin B6. This may be an option if your cholesterol is borderline rather than high.
    • Tell your doctor if your leg cramps started just as you began taking a new medication. More often than not, they can find other medicines to treat high cholesterol.
    • Ask your doctor if you may be able to control your cholesterol levels with diet. Also, make sure that you are only taking 1 medication if it is needed to control your cholesterol.
    • Commonly prescribed statins include Lipitor, Lescol, and Crestor. Commonly prescribed fibrates include Bezalip, Lipidil, and Lopid.
  4. Drugs that are used to treat depression, schizophrenia, and other mental conditions can induce fatigue, lethargy, and weakness, sometimes resulting in leg cramps. Talk to your doctor if you believe you may be experiencing leg cramps as a result of antipsychotics and see if you can be prescribed a different medication.[17]
    • This class of drugs includes Abilify, Thorazine, and Risperdal.
    • Some antipsychotics can cause serious side effects. If you’re experiencing muscle spasms and other impacts on your physical movement, such as twitching or difficulty walking, from antipsychotics, tell your doctor immediately.
  5. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    I wake up with muscle cramps then my calf hurts all day! Why is this happening?
    Jurdy Dugdale, RN
    Jurdy Dugdale, RN
    Medical Review Board
    Jurdy Dugdale is a Registered Nurse in Florida. She received her Nursing License from the Florida Board of Nursing in 1989.
    Jurdy Dugdale, RN
    Medical Review Board
    Expert Answer
    Is this just one leg? If so, you should seek medical help to make sure there are no circulation issues.
  • Question
    Will a muscle relaxer help?
    Jurdy Dugdale, RN
    Jurdy Dugdale, RN
    Medical Review Board
    Jurdy Dugdale is a Registered Nurse in Florida. She received her Nursing License from the Florida Board of Nursing in 1989.
    Jurdy Dugdale, RN
    Medical Review Board
    Expert Answer
    Yes, muscle relaxants may be helpful for leg cramps. Ask your doctor if this option is right for you.
  • Question
    How do you get rid of leg cramps?
    Michele Dolan
    Michele Dolan
    Certified Fitness Trainer
    Michele Dolan is a Fitness Trainer based in Sidney, British Columbia. She has been a personal trainer and fitness instructor since 2002, and was certified as a Personal Trainer by the British Columbia Recreation and Parks Association (BCRPA). Michele is also a Registered Clinical Counselor, and uses her 20+ years of fitness coaching experience to help clients understand their mind-body connection. She is a Registered Clinical Counsellor (RCC) and Certified Clinical Counsellor (CCC), certified by the British Columbia Association of Clinical Counsellors and the Canadian Counselling and Psychotherapy Association. In her work, Michele uses the tools of Cognitive Behavioral Therapy, Dialectic Behavior Therapy and Cognitive Processing Therapy for Post Traumatic Stress Syndrome. She practices and teaches mindfulness and acceptance in all of her coaching work. She holds a Master’s Degree in Counselling Psychology.
    Michele Dolan
    Certified Fitness Trainer
    Expert Answer
    Start by drinking more water. If that doesn't help, take a warm to hot bath or go for a 20 minute walk, and follow that with gentle leg stretches. Since the back of the leg is notorious for cramping, be sure to include hamstring and calf stretches. Check out this article: http://www.wikihow.com/Stretch-Hamstrings
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

  • There are other supplements that have helped to alleviate leg cramps in some people, although results in clinical trials have been mixed. Ask your doctor if you might benefit from taking primrose oil or brewer’s yeast on a regular basis.
  • Try putting an ordinary motel-sized bar of soap under the part of your leg which has the cramp. Alternatively, apply hypo-allergenic liquid soap directly to the center of the cramp. Although no research exists to support this, some people report that these methods are effective at treating their leg cramps.

Tips from our Readers

  • Rub apple cider vinegar on your legs before bed to help prevent and soothe cramps as needed. It seems to help! You can also take a swig of ACV to relieve the cramps faster and get to sleep!
  • When you're experiencing a cramp, try a spoonful of yellow mustard. Sometimes, this has helped ease a cramp immediately.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

Warnings

  • If leg cramps are frequent (as in 2-4 or more times every night), it could be a serious health problem. Consider getting checked out by a doctor if you experience chronic leg cramps or if the cramping is in 1 leg or around the calf region.
Advertisement

About This Article

Andrea Rudominer, MD, MPH
Co-authored by:
Board Certified Pediatrician & Board Certified Integrative Medicine Doctor
This article was co-authored by Andrea Rudominer, MD, MPH. Dr. Andrea Rudominer is a board certified Pediatrician and board certified Integrative Medicine Doctor based in the San Francisco Bay Area. Dr. Rudominer has over 15 years of medical care experience and specializes in preventive health care, obesity, adolescent care, ADHD, and culturally competent care. Dr. Rudominer received her MD from the University of California, Davis, and completed a residency at the Lucile Packard Children's Hospital at Stanford University. Dr. Rudominer also has an MPH in Maternal Child Health from the University of California, Berkeley. She is a Member of the American Board of Pediatrics, a Fellow of the American Academy of Pediatrics, a Member and Delegate of the California Medical Association, and a Member of the Santa Clara County Medical Association. This article has been viewed 861,936 times.
107 votes - 95%
Co-authors: 43
Updated: January 17, 2024
Views: 861,936

Medical Disclaimer

The content of this article is not intended to be a substitute for professional medical advice, examination, diagnosis, or treatment. You should always contact your doctor or other qualified healthcare professional before starting, changing, or stopping any kind of health treatment.

Article SummaryX

If you get leg cramps at night, try getting rid of them with gentle stretching. One stretch you can do is to sit with your cramped leg extended out and the other bent. Wrap a towel around the ball of your foot with your cramped leg and pull both ends towards you. Hold this stretch for 30 seconds and repeat it 3 times. Another stretch is to place your hands against a wall and take a step forward with your non-cramping leg so that your cramping leg is straight out behind you. While keeping the foot of your extended leg flat on the floor, slowly lean forward and hold this stretch for 15 to 30 seconds. If you need more help managing your leg cramps, you should consult your doctor for their advice. For more help, including how to use a hot compress to ease your cramps, read on!

Did this summary help you?

Thanks to all authors for creating a page that has been read 861,936 times.

Reader Success Stories

  • Charlie S.

    Charlie S.

    Nov 24, 2018

    "I'm over 50, fit, active and exercise daily, taking vitamins and supplements. I started getting calf cramps in..." more
    Rated this article:
Share your story

Did this article help you?

Advertisement