night cramps

Quick Summary

Night cramps are sudden, involuntary muscle spasms—most commonly in the calves or small muscles of the foot—that strike during sleep and can range from mildly uncomfortable to intensely painful. These spasms may last seconds to several minutes and often leave the muscle sore the next day.

Most cases are idiopathic, meaning no specific cause is found, but the underlying mechanism is usually overstretching or overuse of the muscle during the day. Older adults tend to experience them more frequently, and episodes may occur in clusters, disrupting sleep. Night cramps should not be confused with restless leg syndrome, which involves an urge to move rather than painful tightening.

Certain medical conditions and lifestyle factors can increase the likelihood of cramping, including dehydration, electrolyte imbalances, pregnancy, peripheral vascular disease, thyroid disorders, kidney disease, nerve disorders, and excessive alcohol use. Several medications—such as diuretics, nifedipine, cimetidine, salbutamol, lithium, and others—may also trigger or worsen cramps.

Treatment focuses on relieving the spasm and reducing recurrence. Stretching and massage often provide immediate relief. Some individuals benefit from magnesium, potassium-rich foods, vitamin E, or quinine-containing beverages, though these options must be used cautiously due to potential side effects. Children may experience night cramps as “growing pains,” especially if they over‑pronate; orthotics can help reduce muscle strain in these cases.

⚠️ Frequent or severe night cramps may signal an underlying medical issue or medication side effect and should be evaluated, especially when accompanied by swelling, weakness, or changes in circulation.
Author: Dr. Marc Mitnick
Reviewed by: Medical Review Board



(muscle spasms)



WHAT CAUSES NIGHT CRAMPS



They are muscle spasms that occur primarily in the calf muscles behind the lower leg and in the small foot muscles on the bottom of the foot. It seems out of nowhere the attack will occur with pain ranging from mild to moderately severe. In some cases just staying in bed and allowing the spasm to run its course is enough. Others find that when a cramp occurs it can be so painful that it forces them out of bed in order to stretch the muscle and relieve the pain.

The cramp can last for a few minutes or as long as up to ten minutes. Once it has finished it is not uncommon to have another. Thus this condition can make for a very restless sleep. Muscle cramps should not be mistaken for restless leg syndrome.

The cramps particularly in the leg can be so severe that the muscle is tender the next day.

Most muscle cramps occurring in the foot and leg are known as idiopathic, (unknown origin). The general principle of muscle is that if it is overstretched it will tend to go into spasm. So, sometimes if a patient has spent the day doing a lot of activity they be more prone to night cramps during the evening.

For most people, these types of cramps are an irregular occurring problem but there are some, especially older individuals who are more prone to regular bouts.

As stated, cause for leg-foot cramps have no origin other than from overstretching of the muscles during the day. There are however, some conditions which may cause muscle cramping:

  • Some medicines can cause cramps as a side-effect, or make cramps occur more often. These include: diuretics (water pills), nifedipine, cimetidine, salbutamol, terbutaline, lithium, clofibrate, morphine (withdrawal), phenothiazines, and nicotinic acid.
  • Dehydration
  • Conditions that cause alterations in the balance of salts in the bloodstream (such as a high or low sodium or potassium level).
  • Some people who have renal (kidney) dialysis get leg cramps.
  • Pregnancy - usually in the later stages.
  • An untreated under-active thyroid gland.
  • peripheral vascular disease (narrowing of the leg arteries which causes poor circulation).
  • Cirrhosis of the liver is a rare cause.
  • Lead poisoning.
  • Sarcoidosis.
  • Rare disorders of nerves.
  • Excess alcohol.

Avoiding night cramps may be possible by modifying life style or looking at other medical issues and better controlling them.

TREATMENT FOR NIGHT CRAMPS



There are many simple treatments for this type of cramps, some work better than others, so some experimentation may be necessary. These include:

  • Magnesium- this mineral helps your muscles relax. Take 500mg twice a day, just be careful because it may cause diarrhea in some people. Natural sources of magnesium include whole grains, wheat germ, nuts, seed, seafood and low-fat dairy products.
  • Potassium- low levels of potassium will cause muscle cramping. Rather than take potassium supplements (too much potassium can cause heart problems) try getting your potassium from foods like grains, beans, fruits, vegetables, lean meat, fish and poultry.
  • Stretching-for occasional simple night cramps, stretching and massaging the muscle is all you need.
  • Quinine-taken either as a pill or as quinine water every evening has been proven to be very beneficial in the treatment of night cramps. This is contraindicated in women who are pregnant or contemplating pregnancy as quinine has been used over the years in abortion.
  • Vitamin E- 800iu daily can be very effective in reducing night cramps. Note that vitamin E should not be taken by people who are on anti-coagulant therapy as vitamin E has a tendency to thin blood.

For those who like to try home remedies here are two for you:

1. Put a piece of silverware such as as spoon right on the cramp. The spoon does not have to be sterling; stainless steel is fine.

2. Pinch your philtrum, which is the area between your nose and upper lip, until the cramp is gone, which should take no more than a few seconds.

Children, especially prepubescent, are especially prone to night cramps in the legs. The problem here is that skeletal development is faster than muscle development so all of a sudden in a fast growing child, the muscles of the legs become too "short" for the legs and during the course of the day they are overstretched and then at night they will go into spasm.

This is also commonly referred to as "growing pains". This seems to be more prevalent in children who pronate excessively. In an over-pronatory individual the leg muscles are forced to over-work during the gait cycle compared to someone who does not excessively pronate.

Typically the child will have spent the day either in the playground or at the mall doing a lot of walking, many times complaining to their parent that they want to sit down because their legs ache. Then at night the legs will go into spasm and generally can be a very uncomfortable experience.

If the child exhibits excessive pronation we generally put them in orthotics. By reducing the pronatory phase of their gait cycle we can keep the leg muscles from overworking and like magic, the pain goes away, including the night cramps. Children's orthotics are a great way to solve this common problem.

The remedies described for adults generally do not work very well in children.

More muscle strain information.

Frequently Asked Questions

What are night cramps?
Night cramps are sudden, involuntary muscle spasms—usually in the calves or small muscles of the foot—that occur during sleep and can range from mildly uncomfortable to intensely painful. They may last seconds to several minutes and often leave the muscle sore afterward.
What causes night cramps to occur?
Most cases are idiopathic, meaning no specific cause is found, but overstretching or overuse of the muscles during the day is a common trigger. Other contributors include dehydration, electrolyte imbalances, pregnancy, certain medications, poor circulation, thyroid disorders, kidney disease, and excessive alcohol use.
Which medications can increase the likelihood of night cramps?
Several medications may provoke or worsen cramps, including diuretics, nifedipine, cimetidine, salbutamol, terbutaline, lithium, clofibrate, morphine (withdrawal), phenothiazines, and nicotinic acid. Reviewing medication lists can help identify potential contributors.
How can night cramps be treated?
Stretching and massaging the affected muscle often provides immediate relief. Some people find benefit from magnesium, potassium-rich foods, vitamin E, or quinine-containing beverages, though these options must be used cautiously due to possible side effects. Identifying and addressing underlying medical issues can also reduce recurrence.
Why do children get night cramps?
Children—especially during rapid growth—may experience cramps because their bones grow faster than their muscles, leading to overstretching. Excessive pronation can worsen this strain. Orthotics often help by reducing muscle overwork and preventing nighttime spasms.


REFERENCES

Mayo Clinic

Harvard Health

Cleveland Clinic


Questions I Have Answered From Patients

Top of feet cramps

By: Marilyn
Location: Texas

I have occasional cramps in the top of my feet that are not associated with an outside source (as far as I can determine). They occur at night more often than during the day. The cramps are VERY painful and my toes are drawn back toward the top of my feet. My feet are always sore for several days after the cramping.

The only relief is to soak my feet in warm water and rub them, or apply Tiger Balm patches (the heat‑causing patches also work) to the tops of my feet.

Please tell what causes the cramps and what I need to do to be rid of them.


Hi Marilyn,

Read my section on night cramps. Most cramps of this nature are idiopathic, meaning they occur for no particular reason. In some individuals, depending on their shoes and daily activity, overstretching of the tendons on the top of the foot may cause them to go into spasm when at rest.

Most night cramps occur on the bottom of the foot, forcing people to get out of bed and stretch the tendon, but they can occur on the top of the foot as well.

There are different things you can try; see my section on night cramps.

Marc Mitnick DPM

Use this search box to search FOOT PAIN EXPLAINED exclusively


If you happen to live in the New York - New Jersey area and would like to visit our office
Dr. Marc Mitnick

151 Summit Ave.
Summit, NJ 07901
908-522-0761


To make an appointment online or for directions to our office click Dr. Marc Mitnick.

DISCLAIMER: The purpose of this site is purely informational in nature. It is not intended to diagnose, treat or cure any medical condition. This information is not a substitute for advice from a medical professional. Please consult your healthcare provider for accurate diagnosis and treatment. The information presented here may be subject to errors and omissions.


SITE LAST UPDATED: October 2026

translate page

ORTHOTICS for multiple types of foot pain
best buy in a pre-made orthotic
click link below


SuperStepOrthotics


Recent Articles

  1. Vitamin D impact on health

    Feb 06, 23 07:17 PM

    Researchers are suggesting that the effectiveness of Vitamin D in fighting and preventing disease is predicated on a persons body mass index (BMI). The thinner the person the greater the positive impa…

    Read More

  2. Foods to speed up healing

    Feb 01, 23 02:41 PM

    One of the best ways to help yourself heal faster after surgery is to eat well. Getting the proper nutrition will provide your body with the essentials it needs to promote healing. Here is a suggestio…

    Read More

  3. Cancer and Type 2 Diabetes

    Jan 25, 23 04:52 PM

    An article revealing that older type 2 diabetics have a higher incidence of cancer then non-diabetics. It is suggested that cancer may surpass CVD as the number one cause of death in older diabetics.

    Read More

  4. Does glucosamine or MSM reduce arthritis pain?

    Jan 22, 23 01:41 PM

    A good review of the possible benefits to taking glucosamine, chondroitin or MSM for arthritis. Always beware of the possible side effects of over the counter supplements.

    Read More

  5. shin splints

    Jan 18, 23 05:12 PM

    A great review on the various causes of shin splints, along with treatment options.

    Read More

  6. Whats new in skin cancer?

    Jan 15, 23 08:32 PM

    A presentation of newer skin protection combinations in an effort to better protect the skin from the hazards of sun exposure.

    Read More

  7. Causes and risk factors of warts

    Jan 14, 23 05:02 PM

    A good review of the causes of warts and protective measures you can take to prevent developing them.

    Read More

  8. Do chronic wounds need to be dressed daily?

    Jan 11, 23 02:18 PM

    Because of supply chain shortages as well as staffing shortages particularly during the pandemic, many institutions extended the time between dressing changes for chronic wounds. Is this really the be…

    Read More

  9. Food choices that raise your risk of type 2 diabetes

    Jan 08, 23 10:07 AM

    A good review of how blood sugars can become elevated and the harm that can do. Certain food groups have a tendency to raise your blood sugars and should be avoided.

    Read More

  10. Outcome stats from Scarf bunionectomy

    Jan 03, 23 03:04 PM

    The Journal of Foot and Ankle Surgery recently reported a meta analysis of outcomes in 1583 Scarf bunionectomies that met their inclusion criteria. Adverse events did not seem to be any better or wors…

    Read More