Alex Ehsan, MD, PhD · Medical search

Muscle Cramps

Educational information. Individual clinical review of this presentation by Dr. Ehsan is not yet documented. It does not replace personal medical evaluation.

Source: MedlinePlus, National Library of Medicine. Read the original source

MedlinePlus data edition September 26, 2026. Imported September 27, 2026. These dates do not indicate a new clinical review of the article.

What are muscle cramps?

Muscle cramps are sudden, involuntary contractions or spasms in one or more of your muscles. They are very common and often occur after exercise. Some people get muscle cramps, especially leg cramps, at night. They can be painful, and they may last a few seconds to several minutes.

You can have a cramp in any muscle, but they happen most often in the:

What causes muscle cramps?

Causes of muscle cramps include:

Sometimes the cause of muscle cramps is unknown.

Who is at risk for muscle cramps?

Anyone can get muscle cramps, but they are more common in some people:

When do I need to see a health care provider for muscle cramps?

Muscle cramps are usually harmless, and they go away after a few minutes. But you should contact your health care provider if the cramps:

What are the treatments for muscle cramps?

You usually don't need treatment for muscle cramps. You may be able to find some relief from cramps by:

If another medical problem is causing the cramps, treating that problem will likely help. There are medicines that providers sometimes prescribe to prevent cramps, but they are not always effective and may cause side effects. Talk to your provider about the risks and benefits of medicines.

Can muscle cramps be prevented?

To prevent muscle cramps, you can:

Questions for your care team

General prompts to help prepare for your appointment.

For a life-threatening emergency, call 911 in the U.S. or your local emergency number.

Browse all patient guides