Muscle spasms (muscle cramps) are painful contractions and tightening of your muscles. They’re common, involuntary and unpredictable. Although there are steps you can take to prevent a muscle spasm and treat it when it attacks, those methods aren’t always dependable. Muscle relaxants, stretching and massage are most likely to help.
Advertisement
Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy
Muscle spasms (also called muscle cramps) occur when your muscle involuntarily and forcibly contracts uncontrollably and can’t relax. Muscle spasms are normal and quite common. They can involve part or all of a muscle or several muscles in a group. You can get muscle spasms anywhere in your body. Some of the most common types include:
Advertisement
Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy
Muscle spasms can happen to anyone at any time. They can occur when you walk, sit, exercise or sleep. Some people are prone to muscle spasms and get them regularly with any type of physical exertion.
People who are most likely to get muscle spasms include:
Most of the time, muscle spasms aren’t something to worry about. But in some cases, muscle cramps can indicate an underlying neurological condition. These conditions affect your brain — your brain helps your muscles move. When involuntary muscle movements result from a neurological condition, it’s called dystonia.
If you have chronic muscle cramps, along with other symptoms like pain, muscle weakness or poor coordination, schedule an appointment with a healthcare provider. They can help determine if you have an underlying neurological issue.
Muscle spasms can range from mild to severe. In mild cases, it might feel like your muscle is jumping around on its own. Sometimes, you might even see your muscle twitching. In severe cases, it might feel like your entire muscle stiffens up into a tight ball. (This happens a lot with leg cramps.) If a cramp is particularly painful, you might even have lingering discomfort in that area for a day or two.
Advertisement
If muscle spasms result from a neurological condition, you may develop additional symptoms like:
Experts aren’t exactly sure why some people get muscle spasms more than others. One or more of the following may be to blame in most cases:
Possible causes for nocturnal leg cramps (leg cramps at night), specifically, include:
In addition to reviewing your health history and medications, your provider may ask questions, including:
There’s no pill or injection that instantly relieves muscle spasms. But there are things you can do to try and stop muscle cramps fast:
If you have severe or frequent muscle spasms, a healthcare provider may prescribe muscle relaxers to help ease your symptoms. Muscle relaxers can cause drowsiness, dizziness and nausea. Because of these side effects, this medication may not be a long-term solution. Talk to your healthcare provider about the risks and benefits of muscle relaxers.
Muscle spasms can strike at any time. Because they’re so unpredictable, they can be difficult to prevent. There are risk factors you can’t avoid, like your age. But there are also things you can do to reduce your risk:
Advertisement
Muscle spasms can worsen and happen more frequently with age. Preventive techniques, like the exercises outlined above, can reduce your overall risk for muscle spasms.
See your healthcare provider if the spasms are unbearably painful, happen frequently or last for a long time. Also, talk to your provider right away if you develop:
See your healthcare provider immediately if you think your muscle spasms could be a symptom of an underlying medical condition.
Typically, muscle spasms — although painful — shouldn’t last very long. But you should call 911 (or your local emergency service number) or go to your nearest emergency room if you have:
If you’re having frequent muscle spasms, here are some questions you might want to ask your healthcare provider:
Advertisement
It’s different for everyone. But you probably know it when it happens.
Some muscle spasms cause twitching but no pain. Other spasms are so painful you can’t move until they’re over. You might even notice that your muscle looks distorted or feels hard to the touch. Spasms typically last from seconds to 15 minutes or longer and may recur (repeat) multiple times before going away.
Deficiencies in these vitamins and minerals may cause muscle cramps:
Talk to your healthcare provider about supplements if you think you might have a vitamin or mineral deficiency.
Severe muscle cramps all over your body could indicate an electrolyte imbalance or a serious underlying medical condition like atherosclerosis, thyroid disease or multiple sclerosis (MS). If you develop this type of cramping, head to your local emergency room.
A note from Cleveland Clinic
You don’t have to “just live with” muscle spasms. They may be unpredictable, but there are a few steps you can take to soothe them or even prevent them in some cases. If muscle cramps keep you from sleeping well or doing the things you love, like playing sports, talk to your healthcare provider. They can find out why you’re having muscle cramps and determine whether you have an underlying condition that needs treatment.
Advertisement
Last reviewed on 10/20/2023.
Learn more about the Health Library and our editorial process.