Most stomach cramps respond well to a combination of simple remedies you can pick up at a pharmacy or already have at home. The right choice depends on what’s causing the cramping, whether that’s gas, indigestion, muscle spasms, or a food intolerance. Here’s what works for each type.
Heat: The Simplest First Step
A heating pad or hot water bottle placed on your abdomen is one of the most effective and immediate things you can try. Research from University College London found that heat above 40°C (104°F) activates heat receptors near the site of internal pain, essentially blocking pain signals for up to an hour. This works for nearly all types of stomach cramping, from menstrual cramps to digestive spasms, and it costs nothing if you already own a heating pad. Place it over the area that hurts, lie down, and give it 15 to 20 minutes.
Cramps From Gas and Bloating
If your cramps come with a tight, bloated feeling or the urge to pass gas, trapped air in your gut is the likely culprit. Simethicone (sold as Gas-X and similar brands) works by merging small gas bubbles in your intestines into larger ones, making it easier for trapped air to move through and exit your body. It doesn’t get absorbed into your bloodstream, so side effects are rare. You can take it after meals or whenever bloating starts.
Cramps From Indigestion or Acid
Stomach cramps that come with a burning sensation, nausea, or a feeling of fullness after eating often point to excess stomach acid irritating your stomach lining. You have three tiers of options here, each with a different speed and duration.
Antacids (like Tums or Maalox) work the fastest, neutralizing acid within minutes, but the relief is short-lived. H2 blockers (like famotidine) take about an hour to kick in but keep working for four to ten hours. Proton pump inhibitors (like omeprazole) are the slowest to start, sometimes taking one to four days for full effect, but they last the longest and are better suited for recurring acid problems rather than one-off cramps.
For a sudden episode, start with an antacid. If you find yourself reaching for antacids regularly, switching to an H2 blocker gives you longer coverage.
Muscle Spasm Cramps
Some stomach cramps feel like a squeezing or clenching sensation that comes in waves. This is your intestinal smooth muscle contracting, and it responds to a different class of remedy than acid-related pain. Antispasmodic medications work by relaxing the muscles in your gut wall. In many countries, hyoscine butylbromide is available over the counter for this purpose, typically taken as a 10 to 20 mg tablet up to three or four times a day as needed.
Enteric-coated peppermint oil capsules are another option, particularly if your cramping is related to irritable bowel syndrome. The enteric coating is important because it prevents the capsule from dissolving in your stomach (where peppermint oil can worsen heartburn) and instead releases it in your intestines where it relaxes the muscle. The NHS recommends one capsule three times a day, increasing to two capsules three times a day if needed. Take them before meals, not with or after food.
Cramps After Eating Dairy
If your cramps consistently follow milk, cheese, ice cream, or other dairy products, lactose intolerance is a strong possibility. Lactase enzyme tablets replace the enzyme your body isn’t producing enough of, letting you digest dairy without the cramping, bloating, and diarrhea that follow. The key detail most people miss: you need to take the tablet with your first bite of dairy food. It won’t help if you take it after symptoms have already started. If you forget a dose at the beginning of the meal, take it as soon as you can while still eating, but once the meal is over, it’s too late for that round.
What to Avoid
Your instinct when something hurts might be to reach for ibuprofen or another anti-inflammatory painkiller. For stomach cramps specifically, this is a bad idea. NSAIDs irritate the stomach lining directly and can cause ulcers, bleeding, or in rare cases perforation of the stomach wall. These risks exist even with short-term use and can occur without warning symptoms. If your cramps are actually caused by gastritis or a developing ulcer, NSAIDs will make the problem significantly worse. Stick to the options above, or use acetaminophen (paracetamol) if you want a general painkiller that’s gentler on your stomach.
Signs That Need Urgent Attention
Most stomach cramps are uncomfortable but harmless, resolving on their own or with the remedies above. A few patterns signal something more serious. Abdominal pain that comes on suddenly and is excruciating from the start can indicate a perforation, obstruction, or internal bleeding. Pain accompanied by fever, a racing heartbeat, or dizziness suggests your body is fighting something that needs medical evaluation. If pressing on your abdomen causes sharp pain when you release the pressure (called rebound tenderness), or if your abdominal muscles feel rigid and tight involuntarily, these are signs of peritonitis, an inflammation of the abdominal lining that requires emergency care.
Cramping that worsens steadily over hours, comes with vomiting and an inability to pass gas, or involves bloody stool also falls outside the range of what home remedies can address.

