Stomach burning usually comes from excess acid irritating the lining of your stomach or esophagus, and in most cases you can relieve it within minutes to hours with the right approach. The fix depends on whether you’re dealing with a one-time flare or a recurring problem, so this guide covers both immediate relief and longer-term strategies.
Why Your Stomach Burns
Your stomach produces hydrochloric acid to digest food. Normally, a layer of mucus and bicarbonate keeps that acid from damaging the tissue underneath. Cells lining the stomach constantly secrete bicarbonate on their surface, maintaining a neutral pH right against the tissue even while the stomach interior stays highly acidic. Certain protective compounds in the body stimulate mucus production, increase blood flow to the stomach wall, and prevent acid from seeping back into the tissue.
Burning starts when something disrupts this protective barrier. Common culprits include pain relievers like ibuprofen and aspirin (which suppress those protective compounds), a bacterial infection called H. pylori, excessive alcohol, and chronic stress. The result is either gastritis, a general inflammation of the stomach lining, or in more advanced cases, an ulcer, which is an actual eroded patch in the lining. Gastritis tends to produce a diffuse gnawing or burning feeling between meals or at night, while ulcers cause more intense, localized pain and carry a risk of bleeding.
Sometimes the burning is actually acid reflux, where stomach acid pushes up into the esophagus. This happens when certain foods or habits relax the muscular valve between your esophagus and stomach, letting acid escape upward.
Immediate Relief Options
If you need the burning to stop right now, an over-the-counter antacid (the chewable tablet kind containing calcium carbonate or magnesium hydroxide) works fastest. These neutralize acid on contact and typically bring relief within minutes, though the effect wears off in an hour or two.
A second tier of medications, called H2 blockers (sold as Pepcid AC or Zantac 360), reduce acid production and start working within one to three hours. They provide about eight hours of relief, making them a solid option for overnight burning. Proton pump inhibitors like Prilosec are the most powerful choice and suppress acid for 15 to 21 hours per day, but they can take up to four days to reach full effect. PPIs work best for recurring symptoms rather than one-time flares.
If you don’t have medication on hand, baking soda dissolved in water is a traditional remedy that does work as a short-term antacid. The Mayo Clinic lists a dose of 1 to 2½ teaspoons in a glass of cold water after meals, with a daily maximum of 5 teaspoons. But there are real limits to this approach: baking soda is high in sodium, so it’s a poor choice if you have high blood pressure, heart disease, kidney problems, or swelling in your legs. Don’t take it within one to two hours of other medications, since it can interfere with absorption. And don’t combine it with large amounts of milk.
Foods That Make It Worse
Certain foods relax the valve at the top of your stomach and slow digestion, letting food sit longer and giving acid more opportunity to cause problems. According to Johns Hopkins Medicine, the biggest offenders are foods high in fat, salt, or spice: fried food, fast food, pizza, chips, fatty meats like bacon and sausage, and cheese. Chili powder, black pepper, and cayenne are particularly irritating.
Several other foods trigger the same valve relaxation through different mechanisms:
- Tomato-based sauces (high acidity)
- Citrus fruits (high acidity)
- Chocolate (contains compounds that relax the valve)
- Peppermint (same valve-relaxing effect)
- Carbonated beverages (increase stomach pressure)
You don’t necessarily need to eliminate all of these permanently. Start by cutting them out during a flare, then reintroduce one at a time to identify your personal triggers.
Foods and Drinks That Help
Ginger has genuine evidence behind it for stomach discomfort. A natural component in ginger root improves the rate at which food moves out of the stomach and through the digestive tract, so food doesn’t sit and trigger acid production as long. Fresh ginger tea, made by steeping sliced ginger root in hot water, is the simplest way to use it. Non-citrus fruits, vegetables, oatmeal, and lean proteins are all well-tolerated during a flare because they don’t provoke extra acid.
Eating smaller meals more frequently also helps. A large meal stretches the stomach and puts pressure on that valve, making acid escape more likely. Eating your last meal at least two to three hours before lying down gives your stomach time to empty.
Sleep Position and Timing
If burning wakes you up at night or hits when you lie down, your sleep position matters. Research from Harvard Health found that lying on your left side allows acid to clear from the esophagus much faster than lying on your back or right side. The anatomy is straightforward: when you’re on your left, gravity keeps the stomach contents pooled away from the valve leading to your esophagus.
Elevating the head of your bed by 6 to 8 inches (using a wedge pillow or blocks under the bed frame) also reduces nighttime acid exposure. Stacking regular pillows doesn’t work as well because it bends your body at the waist rather than creating a gradual incline.
When Stress Is the Cause
Some people experience persistent stomach burning despite no visible damage to the stomach lining. This is called functional dyspepsia, and it affects a significant portion of people with chronic upper-belly discomfort. The problem appears to involve a disrupted connection between the gut and brain, leading to visceral hypersensitivity, where the nerves in your stomach overreact to normal levels of acid and stretching.
Chronic stress plays a direct role. Animal research has shown that sustained stress alters the permeability of the intestinal lining, which triggers changes in gut bacteria and eventually increases pain sensitivity in the digestive tract. This means the burning is real, not imagined, even though the tissue looks normal on a scope. Probiotics may help by reducing that heightened nerve sensitivity and improving gut barrier function. Psychological approaches like cognitive behavioral therapy have also shown benefit for functional dyspepsia, specifically because they target the gut-brain pathway driving the symptoms.
Habits That Protect Your Stomach Long-Term
If stomach burning keeps coming back, a few changes can reduce how often it happens. Limit or stop using ibuprofen and aspirin when possible, since these directly suppress the compounds that protect your stomach lining. If you need regular pain relief, talk to your provider about alternatives. Alcohol and smoking both weaken the stomach’s defenses and increase acid production.
Maintaining a healthy weight reduces pressure on the stomach valve. Even modest weight loss can noticeably improve reflux symptoms. Wearing loose-fitting clothing around the abdomen sounds minor, but tight waistbands genuinely increase upward pressure on stomach contents.
Signs That Need Medical Attention
Most stomach burning is manageable at home, but certain symptoms signal something more serious. The International Foundation for Gastrointestinal Disorders identifies these as alarm symptoms that warrant prompt evaluation:
- Vomiting blood or material that looks like coffee grounds, which indicates bleeding in the stomach or esophagus
- Black, tarry stools, a sign of slower bleeding from the upper digestive tract
- Unintentional weight loss of 10 pounds or more over three months without explanation
- Difficulty swallowing that is worsening or persistent
- Pain that wakes you from sleep, which is more likely to reflect a structural problem like an ulcer
- Persistent fever alongside digestive symptoms
A sudden change in digestive symptoms in anyone over 50 also deserves attention, even if the symptoms seem mild. If your burning hasn’t improved after two weeks of consistent over-the-counter treatment and dietary changes, that’s a reasonable point to seek evaluation. A simple breath test can check for H. pylori infection, which is responsible for most ulcers and many cases of chronic gastritis, and treatment with antibiotics can resolve the underlying problem.

