A muscle cramp is a sudden and involuntary contraction of one or more of your muscles. If you've ever been awakened in the night or stopped in your tracks by a sudden charley horse, you know that muscle cramps can cause severe pain. Though generally harmless, muscle cramps can make it temporarily impossible to use the affected muscle.
Long periods of exercise or physical labor, particularly in hot weather, can lead to muscle cramps. Some medications and certain medical conditions also may cause muscle cramps. You usually can treat muscle cramps at home with self-care measures.
Products & Services
Most muscle cramps develop in the leg muscles, particularly in the calf. Besides the sudden, sharp pain, you might also feel or see a hard lump of muscle tissue beneath your skin.
When to see a doctor
Muscle cramps usually disappear on their own and are rarely serious enough to require medical care. However, see your doctor if your cramps:
- Cause severe discomfort
- Are associated with leg swelling, redness or skin changes
- Are associated with muscle weakness
- Happen frequently
- Don't improve with self-care
- Aren't associated with an obvious cause, such as strenuous exercise
From Mayo Clinic to your inbox
Sign up for free, and stay up to date on research advancements, health tips and current health topics, like COVID-19, plus expertise on managing health.
ErrorEmail field is required
ErrorInclude a valid email address
To provide you with the most relevant and helpful information, and understand which
information is beneficial, we may combine your email and website usage information with
other information we have about you. If you are a Mayo Clinic patient, this could
include protected health information. If we combine this information with your protected
health information, we will treat all of that information as protected health
information and will only use or disclose that information as set forth in our notice of
privacy practices. You may opt-out of email communications at any time by clicking on
the unsubscribe link in the e-mail.
Thank you for subscribing
Our Housecall e-newsletter will keep you up-to-date on the latest health information.
Sorry something went wrong with your subscription
Please, try again in a couple of minutes
Overuse of a muscle, dehydration, muscle strain or simply holding a position for a prolonged period can cause a muscle cramp. In many cases, however, the cause isn't known.
Although most muscle cramps are harmless, some may be related to an underlying medical condition, such as:
- Inadequate blood supply. Narrowing of the arteries that deliver blood to your legs (arteriosclerosis of the extremities) can produce cramp-like pain in your legs and feet while you're exercising. These cramps usually go away soon after you stop exercising.
- Nerve compression. Compression of nerves in your spine (lumbar stenosis) also can produce cramp-like pain in your legs. The pain usually worsens the longer you walk. Walking in a slightly flexed position — such as you would use when pushing a shopping cart ahead of you — may improve or delay the onset of your symptoms.
- Mineral depletion. Too little potassium, calcium or magnesium in your diet can contribute to leg cramps. Diuretics — medications often prescribed for high blood pressure — also can deplete these minerals.
Factors that might increase your risk of muscle cramps include:
- Age. Older people lose muscle mass, so the remaining muscle can get overstressed more easily.
- Dehydration. Athletes who become fatigued and dehydrated while participating in warm-weather sports frequently develop muscle cramps.
- Pregnancy. Muscle cramps also are common during pregnancy.
- Medical conditions. You might be at higher risk of muscle cramps if you have diabetes, or nerve, liver or thyroid disorders.
These steps may help prevent cramps:
- Avoid dehydration. Drink plenty of liquids every day. The amount depends on what you eat, your sex, your level of activity, the weather, your health, your age and medications you take. Fluids help your muscles contract and relax and keep muscle cells hydrated and less irritable. During activity, replenish fluids at regular intervals, and continue drinking water or other fluids after you're finished.
- Stretch your muscles. Stretch before and after you use any muscle for an extended period. If you tend to have leg cramps at night, stretch before bedtime. Light exercise, such as riding a stationary bicycle for a few minutes before bedtime, also may help prevent cramps while you're sleeping.
March 03, 2021
- Muscle cramp. American Academy of Orthopaedic Surgeons. http://orthoinfo.aaos.org/topic.cfm?topic=A00200. Accessed Nov. 18, 2015.
- Winkelman JW. Nocturnal leg cramps. http://www.uptodate.com/home. Accessed Nov. 18, 2015.
- Muscle cramps. Merck Manual Professional Version. http://www.merckmanuals.com/professional/neurologic-disorders/approach-to-the-neurologic-patient/muscle-cramps. Accessed Nov. 18, 2015.
Products & Services