A burning sensation in your stomach usually comes from excess acid irritating your stomach lining or escaping upward into your esophagus. The fastest relief comes from neutralizing that acid with an over-the-counter antacid, but what you do next depends on whether the burning is a one-time event or a recurring problem. Here’s how to get relief now and prevent it from coming back.
Why Your Stomach Burns
Three conditions cause the vast majority of stomach burning. Gastritis is inflammation of your stomach lining, often triggered by something you ate, drank, or took as medication. Peptic ulcers form when acid eats through the protective lining of your stomach or the first section of your small intestine. And acid reflux (GERD) allows stomach acid to escape upward into your esophagus, which has no protection against it.
All three share the same core problem: acid is reaching tissue it shouldn’t be touching. That’s why the immediate remedies overlap, even though the long-term solutions differ.
Fast Relief at Home
An over-the-counter antacid containing calcium carbonate, magnesium hydroxide, or aluminum hydroxide is the quickest option. These work within minutes by directly neutralizing stomach acid, though the relief is temporary.
If you don’t have antacids on hand, baking soda works as a substitute. Mix half a teaspoon into a glass of cold water and drink it. You can repeat this every two hours, but don’t exceed five teaspoons in a single day, and don’t rely on baking soda for more than two weeks. If you’re still reaching for it regularly after that, something deeper is going on.
A few other things help in the moment: stop eating until the burning settles, avoid lying flat (sit upright or stand), sip plain water, and loosen any tight clothing around your midsection. If the burning tends to hit at night, elevate the head of your bed by about 10 centimeters (roughly 4 inches). If that doesn’t help after a few weeks, try increasing to 20 centimeters. Stacking pillows doesn’t work as well because it bends your body at the waist rather than tilting your whole torso.
Choosing the Right Medication
Over-the-counter acid reducers fall into three categories, and they work differently enough that picking the right one matters.
- Antacids (Tums, Maalox, Mylanta) neutralize acid that’s already in your stomach. They act within minutes but wear off quickly. Best for occasional, mild burning.
- H2 blockers (famotidine/Pepcid) reduce the amount of acid your stomach produces. They kick in fairly quickly and last longer than antacids. Good for burning that you can predict, like after certain meals.
- Proton pump inhibitors (PPIs) (omeprazole/Prilosec, lansoprazole/Prevacid) are the most powerful option. They shut down acid production more completely and for longer, but they take a day or more to reach full effect. These are designed for frequent symptoms, not one-off episodes.
PPIs are not meant to be taken indefinitely without medical guidance. Long-term use has been linked to reduced absorption of calcium and vitamin B12, and a possible increase in fracture risk. If you’ve been taking a PPI daily for more than a few weeks, it’s worth talking to a doctor about whether you still need it or whether stepping down to an H2 blocker would work.
Foods and Drinks That Make It Worse
Certain foods directly increase stomach acid production or irritate an already inflamed lining. The most common triggers include coffee and other caffeinated drinks, alcohol, carbonated beverages, citrus fruits and juices, tomato-based sauces, high-fat or processed meats (bacon, sausage, salami), and spicy ingredients like chili powder, black pepper, and raw onions or garlic.
Dairy is worth mentioning separately because many people drink milk thinking it soothes a burning stomach. It may feel cooling for a few minutes, but dairy can actually stimulate more acid production and worsen symptoms shortly after. If your stomach is actively burning, plain water is a safer choice.
You don’t necessarily need to eliminate every trigger food permanently. Pay attention to which ones reliably set you off. Most people find that a handful of specific items are responsible for the majority of their symptoms.
Pain Relievers Can Be the Cause
If you regularly take ibuprofen, aspirin, or naproxen, these could be directly responsible for your burning stomach. These medications (collectively called NSAIDs) block the production of compounds that protect your stomach lining. Without that protection, your stomach produces more acid, secretes less protective mucus, and gets less blood flow to repair itself. The result can be anything from mild irritation to full erosions and ulcers.
This isn’t just a risk with high doses. Even standard doses taken regularly over weeks can damage the stomach lining. If you need ongoing pain relief, acetaminophen (Tylenol) is easier on the stomach because it doesn’t interfere with the same protective mechanisms. For people who must take NSAIDs for conditions like arthritis, doctors sometimes prescribe a PPI alongside them to counteract the damage.
The Role of H. Pylori Infection
A bacterial infection called H. pylori is one of the most common causes of chronic stomach burning worldwide. This bacterium burrows into the stomach lining and triggers persistent inflammation. Left untreated, it can lead to gastritis, ulcers, and in rare cases, stomach cancer.
The important thing to know is that H. pylori won’t go away on its own, and no amount of dietary changes or antacids will clear it. It requires a specific course of antibiotics. If your stomach has been burning on and off for weeks or months, especially if antacids only help temporarily, testing for H. pylori is a straightforward next step. The most common tests are a breath test, a stool test, or a simple blood draw.
Signs That Need Medical Attention
Most stomach burning is uncomfortable but manageable. A few warning signs suggest something more serious is happening. Seek medical evaluation if you notice unintentional weight loss, difficulty swallowing, persistent vomiting or severe nausea, pain that radiates to your back, blood in your stool (which can appear black or tarry), or yellowing of your skin or eyes.
For people 60 and older, even a month of persistent burning symptoms warrants investigation, since the risk of more serious conditions increases with age. For younger adults, a single mild warning sign like minor weight loss has less than a 1% chance of indicating something dangerous, but multiple symptoms occurring together should prompt a visit.
Burning that keeps returning despite lifestyle changes and over-the-counter medication is also worth investigating, even without red-flag symptoms. A doctor can test for H. pylori, evaluate for ulcers, and determine whether your symptoms point to a structural issue like a hiatal hernia that might need a different approach.

