What to Take for a Burning Stomach and When to Worry

Over-the-counter antacids, H2 blockers, and proton pump inhibitors can all quiet a burning stomach, but the right choice depends on how often the burning happens, what triggers it, and how long it has been going on. A one-off episode after a spicy meal is a different situation from a burn that returns most days for weeks. The burning itself is rarely dangerous, but certain accompanying signs, like unexplained weight loss, bleeding, or trouble swallowing, shift the picture from self-care to medical urgency.

Why Your Stomach Burns in the First Place

Your stomach lining is designed to withstand its own acid, thanks to a barrier made of tightly packed cells, a thick mucus layer, and bicarbonate that neutralizes acid right at the surface. When that barrier weakens or when acid production overwhelms it, the acid contacts tissue that is not equipped to handle it, and you feel a burn. The location of the burn gives a rough clue: a burn high behind the breastbone usually points toward acid washing up into the esophagus (heartburn or reflux), while a deeper ache or burn in the upper-middle abdomen suggests something happening in the stomach itself, such as gastritis or an ulcer.

The two most common culprits behind a damaged stomach lining are the bacterium H. pylori and regular use of anti-inflammatory painkillers like ibuprofen and aspirin. NSAIDs work by blocking an enzyme called COX-1, which happens to be the same enzyme responsible for producing the protective prostaglandins that keep mucus and blood flow healthy in the stomach wall. Without those prostaglandins, the lining becomes vulnerable to its own acid.

1PubMed Central. Peptic ulcer disease and non-steroidal anti-inflammatory drugs

H. pylori takes a different route: the bacterium attaches to the stomach’s surface cells and triggers a sustained inflammatory response that damages the lining over months and years.

2PubMed Central. Review of Peptic Ulcer Disease: Insights from Pathophysiology, Mechanisms, Pharmacotherapy, Phytotherapy, and Case Reports

Less commonly, a burning stomach can come from functional dyspepsia, a condition where the stomach hurts or burns despite looking perfectly normal on an endoscopy. Functional dyspepsia overlaps frequently with acid reflux; about 12–15% of people who get a normal upper endoscopy still meet the criteria for it.

3PubMed Central. Gastroesophageal reflux disease, functional dyspepsia and irritable bowel syndrome: common overlapping gastrointestinal disorders

Gastroparesis, where the stomach empties too slowly, is another overlooked source of burning. In one study of gastroparesis patients, nearly 90% reported abdominal pain, and many described it specifically as a burning sensation; 60% said it worsened after meals and 80% said it disrupted their sleep.

4PubMed. Pain: the overlooked symptom in gastroparesis

Antacids, H2 Blockers, and PPIs: How They Differ

If your stomach is burning right now and you want it to stop in the next few minutes, an antacid (think Tums, Maalox, or Gaviscon) is the fastest option. Antacids work by directly neutralizing the acid that is already sitting in your stomach. Relief tends to start within minutes but wears off within an hour or two. Alginate-based products like Gaviscon add an extra trick: the sodium alginate reacts with stomach acid to form a gel-like raft that floats on top of the stomach contents and physically blocks acid from splashing up into the esophagus.

5PubMed Central. Raft Formation of Sodium Alginate in the Stomach

H2 blockers (famotidine is the most widely available) take a different approach. Rather than neutralizing existing acid, they reduce how much acid the stomach makes by blocking histamine receptors on acid-producing cells. They start working within about 30 minutes and the effect lasts up to 12 hours, making them good for predictable triggers like a heavy dinner or lying down at night.

6PubMed Central. Self-Management of Reflux-Like Symptoms: A Patient-Centered Decision-Making Approach

One downside is that the body can develop tolerance to H2 blockers relatively quickly, meaning the same dose becomes less effective over days to weeks of continuous use. That same source notes that this tolerance, called tachyphylaxis, is a recognized limitation.

Proton pump inhibitors (omeprazole, lansoprazole, esomeprazole, and others) are the strongest acid suppressors available without a prescription. They shut down the acid-producing pump itself, keeping stomach pH above 4 for roughly 15 to 22 hours per day compared to about 4 hours with an H2 blocker.

7PubMed Central. Comparing the Safety and Efficacy of Proton Pump Inhibitors and Histamine-2 Receptor Antagonists in the Management of Patients With Peptic Ulcer Disease: A Systematic Review

PPIs are packaged over-the-counter as a 14-day course meant for people who have frequent symptoms, not a single bad day. They take a few days to reach full effect because they only shut down acid pumps that are actively firing, and new pumps take time to get caught in the net.

6PubMed Central. Self-Management of Reflux-Like Symptoms: A Patient-Centered Decision-Making Approach

A practical way to think about it: antacids are for right now, H2 blockers are for tonight, and PPIs are for this week and beyond. Many people mix these up and reach for a PPI when an antacid would have been enough, or lean on antacids for months when a short PPI course would actually let the irritation heal.

Matching the Treatment to the Problem

For occasional burning after eating, especially meals that are large, fatty, or acidic, a chewable antacid is usually all you need. If the burning comes mainly when you lie down, an H2 blocker taken 30 minutes before bed is a reasonable step up. If you are getting burning most days of the week for two or more weeks, a 14-day over-the-counter PPI course is the standard self-treatment recommended on the packaging.

If you take NSAIDs regularly and notice stomach burning, the first move is not adding another pill. It is reconsidering the NSAID. Switching to acetaminophen (which does not disrupt the stomach lining in the same way) or taking the NSAID with food may help. When regular NSAID use is medically necessary, doctors often prescribe a daily PPI alongside it to protect the lining, because the damage NSAIDs do is cumulative and often silent until a full ulcer develops.

1PubMed Central. Peptic ulcer disease and non-steroidal anti-inflammatory drugs

For burning caused by confirmed H. pylori infection, no amount of acid suppression alone will solve the problem. The standard treatment combines a PPI with two or three antibiotics for 10 to 14 days to eradicate the bacterium. Testing and treatment require a doctor; this is not self-treatable territory. An endoscopy case study illustrates the point: one patient with ongoing stomach pain and indigestion was found on endoscopy to have erosive gastritis with a positive H. pylori test, and targeted treatment made the difference in resolving symptoms.

8Journal of Emergency and Critical Care Nursing Science. Erosive Gastritis Showing Symptoms of Stomach Pain and Indigestion: An in-depth Case Study

Lifestyle Adjustments That Actually Help

Medications get the burning under control, but if the triggers persist, so will the problem. A handful of behavioral changes have consistent support behind them:

  • Eat earlier: Lying down within two to three hours of a meal allows stomach contents to pool near the lower esophageal sphincter. Eating your last meal earlier creates a buffer.
  • Elevate the head of the bed: Propping the head of your bed up by about six inches (using blocks under the legs, not just extra pillows) uses gravity to keep acid in the stomach while you sleep.
  • Identify your food triggers: Common offenders include coffee, alcohol, tomato-based sauces, chocolate, and peppermint, though individual triggers vary widely. Keeping a simple diary for a week can narrow the list faster than following a generic elimination diet.
  • Manage stress: Chronic stress affects the gut through the brain-gut axis, altering gut motility and pain sensitivity. Animal research shows that stress-induced disruption of gut bacteria can amplify pain signaling in the digestive tract, and these changes can persist long after the stress has passed.
  • 9PubMed Central. Stress & the gut-brain axis: Regulation by the microbiome
  • Quit smoking: Smoking weakens the lower esophageal sphincter and slows stomach emptying, creating a two-hit problem for acid-related symptoms.

None of these changes is a substitute for medication when the burning is frequent or severe, but they reduce the load on your stomach lining so that shorter courses of medication are more likely to be enough.

When to Worry

Most stomach burning is uncomfortable, not dangerous. But certain red-flag symptoms alongside burning suggest something more serious is going on, like an ulcer that is bleeding, a stricture, or, rarely, a malignancy. You should see a doctor promptly if your burning comes with any of the following:

  • Unintentional weight loss: Losing weight without trying, particularly combined with upper abdominal symptoms, had the highest sensitivity for upper gastrointestinal malignancy in one study of over 300 patients with alarm symptoms.
  • Vomiting blood or dark “coffee ground” material: This signals active or recent bleeding in the upper GI tract.
  • Black, tarry stools: Another indicator of bleeding higher in the digestive system.
  • Difficulty swallowing or pain when swallowing: This can signal esophageal narrowing from chronic acid damage or, less commonly, a growth.
  • Iron-deficiency anemia: Chronic slow bleeding from an ulcer or mass can drain iron stores without dramatic visible bleeding. In the alarm-symptom study mentioned above, iron-deficiency anemia was present in about 31% of patients referred with alarm features and showed meaningful sensitivity for catching malignancy.
  • A palpable mass in the abdomen: Although uncommon, this finding had the highest specificity for malignancy at over 96%.
10Akademik Gastroenteroloji Dergisi. Are alarm symptoms valuable in predicting upper gastrointestinal malignancy?

Age also matters. New-onset burning or dyspepsia that starts after age 45 to 50, without an obvious trigger like a new NSAID, generally warrants investigation. The same study found that new-onset dyspepsia over age 45 was the single most common alarm feature in patients ultimately found to have upper GI cancer. This does not mean every person over 45 with heartburn needs an endoscopy, but persistent or worsening symptoms in that age range deserve a conversation with a doctor rather than another bottle of antacids.

Gastrointestinal stromal tumors (GISTs), though uncommon, are another example of how seemingly routine upper GI symptoms can occasionally mask something more serious. A case report described a 69-year-old man whose weight loss and dark stools turned out to be caused by a GIST in the stomach wall.

11International Journal of Medical Science and Clinical Research Studies. Upper Gastrointestinal Bleeding as Presentation of Gastric Gastrointestinal Stromal Tumor: Case Report

Risks of Relying on Acid Suppressors Too Long

PPIs are remarkably effective, and that effectiveness can become a trap. Many people who start a 14-day course never stop, drifting into months or years of daily use because the symptoms come back whenever they try to quit. Part of that rebound is real: after prolonged acid suppression, the stomach compensates by increasing its capacity to produce acid. When the PPI is withdrawn, acid production temporarily overshoots its original level, producing what researchers call rebound acid hypersecretion. The symptoms feel like the original problem returning, and many people mistakenly restart the medication thinking their underlying disease is back.

12PubMed Central. Rebound Acid Hypersecretion after Withdrawal of Long-Term Proton Pump Inhibitor (PPI) Treatment-Are PPIs Addictive?

Long-term PPI use has also been linked in observational studies and meta-analyses to a range of potential harms including kidney problems, fractures, gut infections (particularly C. difficile), and deficiencies in magnesium, calcium, vitamin B12, and iron.

13PubMed Central. Adverse Effects Associated with Long-Term Use of Proton Pump Inhibitors

A retrospective study specifically examining nutrient levels in long-term PPI users confirmed a high prevalence of B12, magnesium, and calcium deficiencies, with differences depending on which PPI was used.

14PubMed Central. Association of Long-Term Proton Pump Inhibitor Use With Nutrient Deficiencies: A Retrospective Cross-Sectional Study

These associations do not mean PPIs are dangerous for a short course. A two-week course to heal an irritated esophagus or stomach is one of the best-validated treatments in gastroenterology. The concern is open-ended use without a clear ongoing indication. If you have been taking a PPI for more than eight weeks without a doctor’s recommendation, it is worth discussing a plan to taper rather than stopping cold turkey, since gradual dose reduction helps avoid that rebound effect.

Even humble antacids carry risks when overused. Calcium-containing antacids taken in large quantities over long periods can cause a condition called milk-alkali syndrome, which involves dangerously high blood calcium, metabolic alkalosis, and kidney injury. Once considered rare, it is now recognized as the third leading cause of severe hypercalcemia, driven largely by the widespread use of calcium-containing supplements and antacids.

15PubMed Central. The Hidden Threat of Antacid Overuse: A Case of Severe, Slow-Burning Hypercalcemia

Burning Stomach During Pregnancy

Heartburn and stomach burning are extremely common during pregnancy, especially in the second and third trimesters, as the growing uterus pushes the stomach upward and hormonal changes relax the sphincter between the esophagus and stomach. The good news is that calcium-containing antacids are considered the preferred first-line treatment during pregnancy. They carry a Grade A recommendation for treating reflux symptoms in pregnant women and have the added benefit of supplementing calcium intake, which may help reduce the risk of hypertension and preeclampsia.

16PubMed Central. Evidence-based treatment recommendations for gastroesophageal reflux disease during pregnancy: A review

What pregnant women should avoid is magnesium trisilicate in high doses (which has been linked to fetal kidney issues in animal studies) and bismuth subsalicylate (the active ingredient in Pepto-Bismol), which contains a salicylate and is not recommended during pregnancy. If antacids are not enough, famotidine is generally considered acceptable in pregnancy, and PPIs such as omeprazole have been used when the benefit clearly outweighs the risk, though this decision belongs with a prescribing clinician.

Complementary Remedies and Where the Evidence Stands

A number of herbal and dietary approaches are commonly tried for stomach burning, though the evidence is thinner than for conventional treatments. Licorice-derived compounds are among the better-studied options. Deglycyrrhizinated licorice (DGL) has been used for decades to soothe the stomach, and laboratory research on licorice flavonoids shows they can reduce inflammation, support mucus production, and promote repair of the stomach’s protective lining in animal models. One study found that licorice flavonoid treatment increased levels of protective mucus proteins and activated a cell-signaling pathway involved in regenerating mucus-producing cells.

17PubMed. Licorice flavonoid alleviates gastric ulcers by producing changes in gut microbiota and promoting mucus cell regeneration

Ginger is another frequently recommended remedy. Small clinical trials have shown it can ease nausea and may have mild anti-inflammatory effects in the stomach, though the data is less robust for actual burning pain than for nausea. Chamomile tea and slippery elm bark are popular in traditional use; they are generally harmless, but human trial data is scarce.

The practical takeaway with complementary approaches is that they are reasonable to try alongside conventional treatment for mild symptoms, but they should not replace proven medications when symptoms are frequent, severe, or accompanied by any of the alarm signs discussed above. Animal and laboratory studies, no matter how promising, do not always translate to meaningful results in humans, and the doses used in research often differ from what you would get in a cup of tea or an over-the-counter supplement.

How Doctors Investigate Persistent Burning

If you have tried two weeks of a PPI and lifestyle modifications without improvement, or if any alarm symptoms are present, the next step is typically an upper endoscopy. This is a procedure where a flexible camera is passed through the mouth to visually inspect the esophagus, stomach, and first part of the small intestine. It allows doctors to spot inflammation, ulcers, erosions, or masses and to take biopsies for H. pylori and other conditions.

Testing for H. pylori can also be done non-invasively through a breath test or a stool antigen test. If the test comes back positive, treatment with antibiotics and a PPI is straightforward and highly effective. Given how common H. pylori is worldwide, testing before committing to long-term acid suppression makes a lot of sense, because eradicating the bacterium can resolve the problem entirely.

For people whose endoscopy looks normal but the burning persists, the diagnosis may land in the functional dyspepsia category. Treatment in that case often involves low-dose tricyclic antidepressants (for their pain-modulating effects on the gut, not for depression) or prokinetic agents that help the stomach empty more efficiently. The burning in these cases is real, but the mechanism is more about how the brain and gut communicate than about acid eating through tissue.

When Children Have a Burning Stomach

Children can experience acid reflux and gastritis, though the causes and red flags differ somewhat from adults. Infants who spit up frequently usually have physiological reflux that resolves on its own as the esophageal sphincter matures, and acid-suppressing drugs are generally not recommended for uncomplicated infant reflux. In older children and teenagers, burning stomach symptoms often overlap with stress and anxiety, particularly around school pressures, and the gut-brain connection plays a larger role than many parents realize.

Antacids are sometimes used for occasional symptoms in children, but dosing differs by age and weight, and prolonged use of PPIs in children carries the same nutrient-absorption concerns as in adults. Any child with persistent burning, poor growth, vomiting, or refusal to eat should be evaluated rather than managed indefinitely with over-the-counter products. Pediatric gastroenterologists tend to be conservative about prescribing acid suppressors for children, particularly given evidence that early gut-microbiome disruption from acid suppression may have effects that extend well beyond the stomach.