If you’ve ever had a sudden, uncontrolled, tight feeling in the muscles of your stomach, then you’ve probably had stomach cramps. They’re uncomfortable and sometimes painful. Anyone can get them.
Most of the time, stomach cramps aren’t serious and don’t need to be diagnosed. If they happen often, are severe, or last more than a day, this could be a sign of a more harmful medical problem, and you should see a doctor.
Here are some common causes of stomach cramps:
Food Poisoning
This happens when you eat food contaminated with certain germs. Stomach cramps can be one of the symptoms. You may also have:
- Upset stomach
- Nausea
- Vomiting
- Diarrhea
- Fever
It may take minutes, hours, or days for symptoms to appear.
Older adults, children younger than 5, pregnant women, and people with weakened immune systems are more likely to get food poisoning. Most people get better without seeing a doctor.
In the meantime, rest and avoid the food that might have made you sick.
If you’re throwing up or have diarrhea, experts say to drink plenty of fluids to avoid dehydration. See a doctor if your symptoms get more serious, including:
- Blood in your poop
- A high fever (temperature over 102 F)
- Throwing up many times, which can lead to dehydration
- Signs of dehydration (peeing less, dizziness, very dry mouth and throat)
- Diarrhea that lasts more than a few days
Also call the doctor if diarrhea affects a child younger than 6 months or an elderly adult with chronic medical problems or a weakened immune system.
Stomach Virus
Your doctor may call this viral gastroenteritis. People also call it stomach flu, but it's not caused by the flu virus.
There are different types of stomach viruses. Norovirus is the most common in the United States.
Since a stomach virus and food poisoning have similar symptoms, like cramps, it’s easy to confuse the two. You get a stomach virus through close contact with someone who has the virus, such as sharing food or kitchen utensils like a fork or knife. You can also get the virus by eating or drinking unsafe food or water. Unlike food poisoning, the virus can spread easily to other people — at least for the first few days you have it.
Other symptoms include:
- Watery diarrhea
- Stomach pain
- Upset stomach and vomiting
- Muscle aches or headache
- Low-grade fever
There’s no medical treatment for a stomach virus. There are some things you can do at home to avoid dehydration and feel better.
Avoid solid foods. Sip plenty of liquids instead — water, clear broths, or caffeine-free sports drinks.
Ease into eating. Start with things that are easy on your stomach, such as:
- Crackers
- Toast
- Jell-O
- Bananas
- Rice
- Chicken
See how you feel. Stop eating if you feel sick again.
Get lots of rest, too. Dehydration and being sick may make you feel weak and tired.
Most people with a stomach virus get better in a few days. Dehydration is a serious concern. You may also have to go to the hospital. Call your doctor if you think you’ve become dehydrated.
Food Allergy
It happens when your body’s immune system mistakenly identifies a food as harmful and reacts to it.
The most common food allergies are to proteins such as:
If you’re allergic to certain foods, it’s best to avoid them. A dangerous allergic reaction called anaphylaxis can cause a sudden drop in blood pressure, trouble swallowing, and shortness of breath. If not treated immediately, it can be fatal.
Food Intolerance
This is when food irritates your digestive system or your body has trouble breaking it down. Lactose — a sugar found in milk and other dairy foods — is the most common cause of food intolerance. Symptoms may show up when you eat a large amount of the problem food or eat it often.
Take an antacid to treat other symptoms of food intolerance, such as heartburn or stomachache.
Irritable Bowel Syndrome (IBS)
Sometimes stomach pain may signal something more serious. You could have what’s called irritable bowel syndrome (IBS). Symptoms include:
- Cramping
- Stomach pain
- Bloating
- Diarrhea
- Gas
IBS is a chronic disease, so you will have to manage this for the long term. However, if you see a change in your bowel movements or other symptoms, talk to your health care provider.
Menstrual Cramps
Many people who have periods experience menstrual cramps in the days leading up to and during their periods. Cramps can range in severity: Some women can take over-the-counter (OTC) pain relievers to ease their symptoms, but severe cramps can be debilitating for some women.
You’re much more likely to have severe menstrual cramps if you also have one of the following conditions:
- Endometriosis
- Pelvic inflammatory disease (PID)
- Uterine fibroids
- Cervical stenosis
- Adenomyosis
Sometimes, menstrual cramps can come with other symptoms, including diarrhea, nausea, headache or migraine, and dizziness. Talk to your doctor if your menstrual cramps are limiting you from the activities that matter most to you.
Home Remedies
There are a few home remedies you can try for stomach cramps, depending on their causes:
- If you have stomach pain from gas or indigestion, try having licorice, ginger, or peppermint to ease your symptoms.
- For period cramps, hold a hot water bottle to your stomach or take a hot bath.
- When you’re bouncing back from stomach flu, eat small amounts of bland foods that are easy on your stomach, such as crackers or bananas.
No matter what the cause of your symptoms, eating smaller meals, staying hydrated, limiting alcohol, getting plenty of fiber, and taking OTC pain relievers can usually help you find some relief.
Takeaways
Stomach cramps can have several causes. Some, like gas, indigestion, or the occasional bout of food poisoning, are more common than others. But stomach cramps can point to a more severe underlying cause if they’re frequent, very painful, and unrelated to what you’ve eaten. Talk to your doctor if you have ongoing pain. You could have IBS or a food allergy, or even a uterine condition if your pain is related to menstrual cramps.
FAQs About Stomach Cramps
How can I tell if stomach cramps are gas, indigestion, or something serious?
While gas and indigestion are normal, certain symptoms may point to a more serious problem. Watch for chest pain, blood in your stool, stomach pain that doesn't seem related to eating, or severe constipation or diarrhea.
Can stress or anxiety cause stomach cramps?
Yes. As the brain and gut are closely linked, stress can trigger stomach cramps. If you are feeling stressed, you may also find yourself eating more heavily processed foods, drinking alcohol, or having more caffeine than normal. These foods can also cause stomach pain.
How long do stomach cramps usually last?
Everyday stomach pain — the kind caused by gas, indigestion, or constipation — usually only lasts about two hours. But if your cramps last longer than 24 hours, they may be caused by something more serious. Contact your doctor if your stomach cramps last more than a day, feel suddenly sharp or painful, keep coming back, or are accompanied by ongoing diarrhea.

