Nighttime Leg Cramps: Causes and Solutions

  • FDA Disclaimer
    The information on this website has not been evaluated by the Food & Drug Administration or any other medical body. We do not aim to diagnose, treat, cure or prevent any illness or disease. Information is shared for educational purposes only. Learn More
  • Affliliate Disclosure
    In compliance with the FTC guidelines, please assume the following about links and posts on this site: Many of the links on are affiliate links of which I receive a small commission from sales of certain items, but the price is the same for you. If I post an affiliate link to a product, it is something that I personally use, support and would recommend without an affiliate link. Learn More
  • Privacy Policy
    Please read the Privacy Policy carefully before you start to use By using or by clicking to accept or agree to Terms of Use when this option is made available to you, you accept and agree to be bound and abide by the Privacy Policy. Learn More
Print Friendly, PDF & Email

leg crampsNighttime Leg Cramps: Causes and Solutions

Experiencing pain when you are trying to sleep is not pleasant, to say the least. Nighttime leg cramps are intensely painful involuntary contractions or spasms in your lower leg muscles that don’t let up and may be hard to touch. They interfere with your sleep, energy levels, and overall health and well-being. 

It’s time to end these painful nighttime leg cramps and help you improve your health. Discover some natural methods to support your recovery in this article.

In this article, you will learn what nighttime leg cramps are and what are the main causes. You will also learn some natural solutions that may help you prevent, reduce, and eliminate nighttime leg cramps.

leg cramps

What are Nighttime Leg Cramps

Nighttime leg cramps are also called nocturnal leg cramps and may be referred to as charley horses or muscle spasms. They are characterized by involuntary contractions or spasms in your leg muscles that are painful and often severe. They tend to occur at night when you are in bed. Most commonly, they are located in your calf muscles, however, you may also experience nighttime leg cramps in your thighs or feet as.

You should not confuse nighttime leg cramps with restless leg syndrome. They are not the same thing. Restless leg syndrome is more of a discomfort with a crawling sensation, but it is rarely painful or severe. The discomfort of restless leg syndrome is relieved when the movement stops and stretching usually helps the issue, while nighttime leg cramps are more severe and more difficult to relieve.

leg cramps

Main Causes of Nighttime Leg Cramps

Nighttime leg cramps are more common than you may think. They affect up to 60 percent of adults and 7 percent of children and teens. The risk of nighttime leg cramps tends to increase with age and affects more women than men. They also affect 40 percent of pregnant women. While leg cramps are common, only about 20 percent of people with nighttime leg cramps seek medical attention (1, 2, 3, 4, 5, 6).

To find relief from nighttime leg cramps, first, you need to understand some of the potential main causes of the cramps. Let’s get into it.

leg cramps

Muscle Injury

It may not be surprising to you that a muscle injury may result in nighttime leg cramps. While an injury from an accident or a sports injury may lead to an issue that causes nighttime leg cramps, you may also be dealing with a muscle injury without one specific event being the cause.

Over-exertion of your muscles, sitting improperly, sitting for long periods of time without getting up, or standing or working on concrete floors may lead to a chronic muscle injury or inflammation that may come with nighttime leg cramps. It is important that you consider your posture and daily activities to see if you may be dealing with a muscle injury.


Dehydration may occur for a number of reasons. One of the most common causes of dehydration is simply not drinking enough water throughout the day. However, exercising, gardening, or doing physical labor, especially in hot weather, having diarrhea or vomiting, or being sick can also dehydrate your body.

Dehydration depletes your body from important fluids, salts, and minerals, such as potassium, calcium, and magnesium. Dehydration may lead to muscle pain, muscle spasms, and nighttime leg cramps.

When you are dehydrated, your body has to prioritize keeping enough fluids for your brain and other vital organs instead of your muscles. This means that fluid is being drawn away from your muscles.

There are also many nerves that are connected to your muscles. They cannot function properly without enough water and sodium, which may lead to involuntary contractions and nighttime muscle cramps. If you are sweating at night, you may continue to lose fluids and dehydrate your body further leading to more nighttime leg cramps overnight (7, 8, 9).

Electrolyte Imbalance and Leg Cramps

An electrolyte imbalance or mineral depletion is one of the common causes of nighttime leg cramps and muscle cramps in general. Specifically, too little potassium, calcium, or magnesium in your daily diet may interrupt the proper electrical signals being sent to your muscles and result in nighttime leg cramps.

Diuretics, which may be prescribed for high blood pressure or other issues, may also lead to the depletion of these minerals causing an electrolyte imbalance and consequent nighttime leg cramps (7).

electrolyte imbalance, Electrolyte Imbalance: Symptoms and How to Correct

Edema & Swelling 

Edema is the medical term used for swelling. When your small blood vessels leak fluids into tissues in the area, it may result in edema. Your leg may swell as a result of an injury, inflammation, pregnancy, medications, or infections. You may also experience lymphedema, or lymphatic obstruction as a result of lymphatic congestion.

Your lymphatic system circulates a fluid called lymph. It is a vital part of your immune system and essential for your immune function. Lymphedema is often caused by the damage or removal of the lymph nodes during cancer treatment.

This may lead to lymphatic blockage preventing the lymph to drain causing swelling. Other issues of the lymphatic system may also lead to lymphatic congestion and consequent swelling, cramps, pain, edema, and swelling may all lead to restless leg syndrome (10, 11).

Lymphatic, Lymphatic Cleansing: 8 Ways to Clear Lymph Congestion

Chemical & Heavy Metal Toxicity

Toxins are all around us. Air pollution, smoking, chemicals in our tap water, pesticides in our non-organic and processed foods, chemicals in our conventional body, beauty, and cleaning products, chemicals in plastic, and heavy metals in dental fillings may all lead to inflammation and health issues.

Chemical and heavy metal toxicity, especially higher levels of urinary pesticides, heavy metals, phthalates, and polyaromatic hydrocarbons, have been associated with nighttime leg cramps while sleeping (12).

Solutions For Nighttime Leg Cramps

About three-fifths of the population is dealing with nighttime leg cramps. Hence you are not alone.  This obviously impacts the quality of sleep you are getting at night and can be a major nuisance.  

With some natural strategies, you can reduce, prevent, and eliminate nighttime leg cramps and return to enjoying a goodnight sleep.  Here is what you want to consider.

Good Hydration

As you’ve learned, dehydration may cause your muscles to cramp up and spasm at nighttime. To prevent dehydration, it is important that you drink plenty of water throughout the day. I recommend at least 8 to 10 glasses (8 oz) of water a day.

If you are exercising, doing physical labor, sweating, or outside in the hot sun a lot, sick, or feeling dehydrated, I recommend more. Listen to your body. Remember, once you feel thirsty, chances are, you are already dehydrated, so it’s crucial that you drink on a regular basis instead of chugging down a big glass once you feel very thirsty. 

In addition to water, add hydrating vegetables and fruits, green juices, smoothies, and herbal tea to your day. Remove any dehydrating sodas, energy drinks, sugary drinks, and limit coffee. Make sure to hydrate in the evening to avoid nighttime dehydration and leg cramps.

Trace Mineral-Rich Diet

An unhealthy diet low in nutrients, dehydration, medications, and illness may deplete your body from important minerals that are critical to your well-being. Missing these minerals may lead to electrolyte imbalance and nighttime leg cramps. To ensure balanced electrolyte and mineral levels, eat a nutrient-rich diet rich in trace minerals

Remove any refined sugar, refined oils, and processed and junk foods that are low in nutrients and may lead to mineral depletion. Focus on foods that are rich in minerals. Pay special attention to potassium, calcium, and magnesium. Avocados, bananas, oranges, cooked spinach, cooked broccoli, sweet potatoes, pumpkins, eggplant, zucchini, leafy greens, peas, cucumbers, apricots, prunes, and grapefruit juice are fantastic sources of potassium.

Leafy greens, seafood, and grass-fed dairy are great sources of calcium. Green leafy veggies, broccoli, avocados, nuts, seeds, dark chocolate, and cacao are excellent sources of magnesium. Additionally, eat lots of greens, vegetables, fruits, nuts, seeds, pasture-raised meat, free-range poultry and eggs, and wild-caught fish (13, 14, 15).

Mineral Rich Foods, Top 12 Trace Mineral Rich Foods

Daily Movement & Stretching 

Muscle injuries, sitting too much, and lack of movement may lead to nighttime leg cramps. Hence, it is critical that you stay active throughout the day and remain physically fit in general in order to develop more flexibility and strength (16)

I recommend that you exercise for 20 to 30 minutes at least five times a week. Mix it up with both cardiovascular and resistance or strength training exercises. High-intensity interval training (HIIT) is fantastic for both, however, you may try what works for you.

Swimming, biking, running, walking, hiking, dancing, and aerobics classes are great for cardio, while weight lifting CrossFit, TRX, and pilates are good for strength. Yoga and pilates are great low-impact choices. Make sure to warm-up and cool-down before and after your workouts to prevent muscle fatigue and injuries. 

Additionally, avoid sitting or standing too much or for too long. Get up and move a bit throughout the day. Go for a walk at lunchtime or before and after work. Stretch your legs regularly. Try some self-massage. You may also visit a physical therapist, chiropractor, or massage therapist for further guidance and bodywork to relieve muscle tension and nighttime leg cramps. Research has shown that massage and bodywork can relieve muscle pain and aid relaxation (17)

Low Energy, Low Energy: 8 Common Things That Rob Your Energy

Use Calcium and Magnesium at Night 

A mineral-rich, nutrient-dense diet is not always enough. If your body is depleted from key minerals, such as calcium and magnesium, it may lead to a serious imbalance within your body leading to nighttime leg cramps. This is why I recommend CalMag Support for a boost of calcium and magnesium at night. 

This supplement is a delicious, pear-flavored powdered supplement that provides high-quality, patented Albion® minerals in a state-of-the-art calcium/magnesium formulation. This supplement is incredibly easy to take. Its special forms of the minerals promote optimal absorption and utilization while being gentle on the gastrointestinal tract.

It helps muscle function and healthy nerve conduction which may benefit nighttime leg cramps. In addition to providing relief from nighttime leg cramps, it boosts neurological function, energy production, mood, and bone health. Dissolve one scoop in 6 oz of cool, pure water. Take it once a day at night. 

This is the first supplement I use to help people with leg cramps and if they don’t alleviate after a week of using this then I consider other options that I discuss further in this article.

Consider More Potassium For Leg Cramps

In addition to achieving optimal magnesium and calcium levels, it’s important that you have enough potassium as well. To achieve optimal potassium levels and relieve nighttime leg cramps, I recommend Mg-K Citrate.

This supplement has a necessary amount of potassium and magnesium. It provides two intracellular cations that are vital to maintaining healthy muscle contractility, nerve conduction, and blood pressure levels already within the normal range.

These minerals help maintain healthy electrolyte and acid-base balance and support kidney health and function. It may help with nighttime leg cramps, chronic pain, headaches, insomnia, fatigue, cognition, and mood. Take one capsule one to two times daily with meals.

potassium, Potassium Deficiency: 5 Warning Signs and Solutions

Consider Kidney & Lymphatic Support

Kidney and lymphatic congestion is one of the potential causes of nighttime leg cramps. You may want to consider supporting the health of your kidneys and lymphatic system. Some helpful strategies here include dry brushing, regular movement and exercise and bouncing on a rebounder.  There are also key herbs that help to enhance the health of the kidneys and lymphatic system.

I recommend Plant Based Kidney Health which is an enhanced blend of potent, organic herbs, that contains powerful antioxidants and nutrients that cleanse the kidneys and encourage normal kidney function and support the lymphatic system and drainage pathways.

This product contains cranberry, horsetail, hydrangea, uva-ursi, marshmallow root, juniper berry, gingko biloba and it is powered by bioactive carbons in the shilajit complex. This combination of nutrients supports drainage and immune function in the kidneys and liver.  Take 1 ml in the morning and again in the evening, or as directed by your healthcare provider.

leg cramps

Get Tested for Environmental Toxicity & Heavy Metals

Environmental toxicity and heavy metals may lead to health issues, including nighttime leg cramps. To check for environmental toxicity and heavy metals, I recommend Hair Mineral Analysis and the Enviro Tox Test

Hair Mineral Analysis provides an overview of your mineral levels. Hair element analysis provides important information that may help with the early diagnosis of physiological disorders associated with aberrations in essential and toxic element metabolism. Scalp hair is easy to sample, and because it grows an average of one to two cm per month, it contains a “temporal record” of element metabolism and exposure to toxic elements. 

Enviro Tox Test will test for a long list of environmental pollutants, mitochondrial disorders, and metabolites of pollutants to provide a full picture. It tests for 172 different toxic chemicals including organophosphate pesticides, phthalates, benzene, xylene, vinyl chloride, pyrethroid insecticides, acrylamide, perchlorate, diphenyl phosphate, ethylene oxide, acrylonitrile, and more.

, Environmental Toxicity Testing

Consider Heavy Metal & Chemical Detoxification Support 

If your test results show heavy metals or chemical toxicity in your body or if you’ve been exposed to chemicals or heavy metals in your diet or environment (that’s essentially all of us!), you may want to consider heavy metal and chemical detoxification support. I recommend Heavy Metal and Chemical Cleanse and CT Minerals

Heavy Metal and Chemical Cleanse is a blend of powerful herbs that help rejuvenate vitality, energy, mental clarity, and overall health by encouraging detoxification of harmful chemicals and toxic metals. Take 20 drops twice daily on an empty stomach. Hold drops in your mouth for 30 seconds then swallow. 

CT Minerals is made with naturally occurring, highly refined and naturally chelated extracts of Fulvic Acid for detoxification support. Take 1-2 capsules, 1-2 times daily for best results.

leg cramps

Final Thoughts on Leg Cramps

Nighttime leg cramps are a common problem characterized by painful involuntary contractions or spasms in your lower leg muscles that don’t let up and are hard to touch. They may interrupt your sleep, energy levels, and overall health and well-being.

You don’t have to deal with nighttime leg cramps anymore. Follow my natural solutions and tips to reduce, prevent, and eliminate nighttime leg cramps and regain your health and well-being.

leg cramps

Inflammation Crushing Ebundle

The Inflammation Crushing Ebundle is designed to help you improve your brain, liver, immune system and discover the healing strategies, foods and recipes to burn fat, reduce inflammation and Thrive in Life!

As a doctor of natural medicine, I have spent the past 20 years studying the best healing strategies and worked with hundreds of coaching clients, helping them overcome chronic health conditions and optimize their overall health.

In our Inflammation Crushing Ebundle, I have put together my very best strategies to reduce inflammation and optimize your healing potential.  Take a look at what you will get inside these valuable guides below!

Nutritional Deficiencies, 5 Body Signs of Nutritional Deficiencies

Sources in This Article Include:

1. Night leg cramps. Mayo Clinic. Link Here ALSO MUSClE INJURY
2. Leg cramps at night. Cleveland Clinic. Link Here
3. Leg cramps at night. Healthline. Link Here
4. Noctural leg cramps. American Family Physician. Link Here
5. Allen RE. Nocturnal leg cramps. Am Fam Physician. 2012 Aug 15;86(4):350-5. PMID: 22963024
6. Hallegraeff J, de Greef M, Krijnen W, van der Schans C. Criteria in diagnosing nocturnal leg cramps: a systematic review. BMC Fam Pract. 2017 Feb 28;18(1):29. doi: 10.1186/s12875-017-0600-x. PMID: 28241802
7. Grandner MA, Winkelman JW. Nocturnal leg cramps: Prevalence and associations with demographics, sleep disturbance symptoms, medical conditions, and cardiometabolic risk factors. PLoS One. 2017 Jun 6;12(6):e0178465. doi: 10.1371/journal.pone.0178465. PMID: 28586374
8. Muscle cramp. Mayo Clinic. Link Here 
9. St. Lifer H. Are you drinking enough water? AARP. Link Here
10. Leg problems, non-injury. HealthLinkBC. Link Here
11. Edema. WebMD. Link Here
12. Shiue I. Urinary arsenic, pesticides, heavy metals, phthalates, polyaromatic hydrocarbons, and polyfluoroalkyl compounds are associated with sleep troubles in adults: USA NHANES, 2005-2006. Environ Sci Pollut Res Int. 2017 Jan;24(3):3108-3116. doi: 10.1007/s11356-016-8054-6. Epub 2016 Nov 17. PMID: 27858272
13. Potassium rich foods. WebMD. Link Here
14. A guide to calcium-rich foods. National Osteoporosis Foundation. Link Here
15. Magnesium-rich foods. Cleveland Clinic. Link Here
16. What Causes Muscle Spasms And What Is The Best Way To Treat Muscle Spasms? ABC News. Link Here
17. Jane SW. Effects of massage on pain, mood status, relaxation, and sleep in Taiwanese patients with metastatic bone pain: a randomized clinical trial. Pain. 2011 Oct;152(10):2432-42. PMID: 21802850
glymphatic system, Glymphatic System: Critical for Brain and Immune Health
Was this article helpful?

Take Control Of Your Health Today!

Subscribe to Dr. Jockers Newsletter & unlock FREE ACCESS to TWO of his MOST POPULAR eBooks instantly!

"Join my tribe today to discover hidden strategies to improve your energy, brain, digestion & metabolism."

Doctor David Jockers DMN, DC, MS
Functional Nutrition & Natural Health Specialist
Dr Jockers




  1. I had such serious restless leg syndrome that I would wake up kicking the bed so hard, that I was afraid that one day I would break the bones in my feet! … I mentioned this to my DC and he handed me a bottle of Magnezyme and said: “Try these. If they work, you can pay me for the bottle.” Next time in to his office, I gladly paid him for the Magnezyme, as my restless leg syndrome was gone! That simple!

  2. Hi. I am a person who is doing LCHF in Korea. I’m translating and informing you of your posts. Thank you for posting a helpful post today.

  3. My emergency treatment (only used occasionally though) is pickle juice. Don’t know why but it usually works in 2 or 3 minutes.

  4. i suffered leg cramps for many years and the first relief that i got from them was with quinine. T hat solved my cramp problem for many years until they changed the formula for the quinate and back came the cramps. A freind introduced me to Nikken magnetic insoles for my shoes and within a few weeks my cramps in my foot, calves and thighs just disappeared It has been 15 years since i used the insoles and still no problems. As it is i think an american company there should be no problems with access to them. they are a little expensive but i would have to say they are worth the price for the relief that they gave me.

  5. I take 1 gram of Vitamin C, 250mg of Pantothenic Acid, 100mg of Vitamin B2, 100mg of Vitamin B6 and 100mg of B1, with just enough water to swallow the bills. It works very quickly, but I would be happier if I would not get it in the first place.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.