Pharmacy shelves hold several medicines that can calm the burning pain of an ulcer, from chewable antacids to stronger once-a-day acid reducers. None of them is meant to heal an ulcer or fix what caused it.1Mayo Clinic. Peptic ulcer – Diagnosis and treatment Drugstore medicine works best as a bridge to a proper diagnosis, not as the treatment itself. That matters more than it used to, because most ulcers are now curable for good, a big change from when they were treated as a lifelong condition.2NobelPrize.org. Nobel Prize in Physiology or Medicine 2005
Why Drugstore Medicine Eases Ulcers but Rarely Cures Them
A bacterium called H. pylori, which lives in the stomach lining, causes more than 90% of ulcers in the first part of the small intestine and up to 80% of stomach ulcers.2NobelPrize.org. Nobel Prize in Physiology or Medicine 2005 Ulcers healed only by cutting acid often came back, because the bacteria and the inflammation they caused stayed put.2NobelPrize.org. Nobel Prize in Physiology or Medicine 2005 Clearing the bacteria with one to two weeks of antibiotics plus an acid reducer gives a better than 90% chance the ulcer is cured for good.3Illinois Department of Public Health. Helicobacter pylori So if you have an ulcer, getting tested for H. pylori matters more than which antacid you buy.
Until the 1980s, doctors blamed stress and lifestyle for most ulcers. Stress and spicy food can make discomfort worse, but they are not the main cause.
The other major cause is NSAIDs, the painkiller family that includes ibuprofen, naproxen and aspirin. They block chemicals the stomach uses to make its protective mucus and acid-neutralizing bicarbonate, and to keep blood flowing to its lining.4PubMed Central. Nonsteroidal Anti-Inflammatory Drug-Induced Peptic Ulcer Disease The lining loses its defenses, and acid can wear a sore into it.
The two causes can overlap. H. pylori and NSAID painkillers can both be present in the same person, and together they raise ulcer risk more than either alone. That is why someone who stops the painkiller can still need an H. pylori test: removing one cause does not remove the other. Many people carry H. pylori and never get an ulcer, so a positive test calls for treatment when there is an ulcer or ulcer symptoms, but it doesn’t make an ulcer certain.
Relief means the burning stops for a few hours while the sore stays open. Healing means the sore closes, and that needs the cause removed. Pain that comes back when you stop the medicine is a sign the cause remains.
Antacids for Fast Relief
Antacids such as calcium carbonate (Tums), magnesium hydroxide, or aluminum-magnesium mixes neutralize acid already in the stomach. That lets them relieve ulcer pain quickly.1Mayo Clinic. Peptic ulcer – Diagnosis and treatment Their effect on healing a stomach ulcer is minimal, if any.5PubMed Central. Antacids and peptic ulcer–a reappraisal Depending on the main ingredient, they can also cause constipation or diarrhea.1Mayo Clinic. Peptic ulcer – Diagnosis and treatment
Magnesium products tend to loosen stools, while calcium and aluminum ones tend to constipate. Ulcer pain often flares after meals and at night, so a dose after eating and another at bedtime matches the pattern. Check the label’s daily maximum, and treat needing more than that as a reason to see a doctor.
Pepto-Bismol is a different kind of product. Its active ingredient, bismuth subsalicylate, coats the stomach lining and can kill H. pylori. Doctors use bismuth as part of some prescription H. pylori combinations, but on its own it won’t reliably clear the infection. It also contains a salicylate, a relative of aspirin, so anyone avoiding aspirin should ask a pharmacist first. And it can turn your tongue and stool black. That is harmless, but it can look like bleeding.
H2 Blockers Like Famotidine
H2 blockers such as famotidine (Pepcid AC) reduce how much acid the stomach makes rather than neutralizing acid already there. A single 20 mg dose of famotidine can keep acid output about halved 12 hours later,6PubMed. Famotidine, a new H2-receptor antagonist. Effect on parietal, nonparietal, and pepsin secretion in man and famotidine lasts longer than older H2 blockers.7PubMed. Famotidine, a new, potent, long-acting histamine H2-receptor antagonist: comparison with cimetidine and ranitidine in the treatment of Zollinger-Ellison syndrome The catch is that the body builds tolerance fast, often by the second day or second dose.8PubMed Central. Histamine2-receptor antagonists: Rapid development of tachyphylaxis with repeat dosing H2 blockers suit occasional use better than daily treatment of an ulcer. Easing the pain says nothing about whether the sore is healing or what caused it.
An H2 blocker takes roughly an hour to start working, slower than an antacid. Taking one before a meal or at bedtime can head off pain. Some people pair a fast antacid with an H2 blocker to get both quick and longer relief.
Prescription-strength H2 blockers were once used to heal ulcers, but PPIs largely replaced them because they cut acid more strongly and keep working with daily use.
People with kidney disease clear famotidine more slowly, so the usual dose can build up, and they should ask a pharmacist or doctor before using it. Famotidine is far less prone to drug interactions than older H2 blockers such as cimetidine, but anyone on several regular medicines should still mention it to a pharmacist. The package is meant for short, occasional use, so follow its limit on how many days in a row you can take it without a doctor’s advice.
OTC Proton Pump Inhibitors Like Omeprazole
Proton pump inhibitors (PPIs) such as omeprazole (Prilosec OTC), esomeprazole and lansoprazole switch off the pumps in the stomach lining that release acid. They are activated by acid inside working stomach cells, so they work best taken before a meal.9Journal of Neurogastroenterology and Motility. Pharmacokinetics and Pharmacodynamics of the Proton Pump Inhibitors Each dose blocks the pumps until the body builds new ones, which can take up to 36 hours.10PubMed Central. 25 Years of Proton Pump Inhibitors: A Comprehensive Review That means relief builds over a few days rather than minutes. Doctors also use PPIs, often at higher doses, as part of ulcer and H. pylori treatment.
Take an OTC PPI 30 to 60 minutes before breakfast, not with food or at bedtime. The packaging allows a 14-day course, with repeat courses only every few months. If you need it beyond that, you should be seen rather than keep buying more.
When a PPI is used to treat an ulcer, a doctor confirms the ulcer and its cause first, and for H. pylori the PPI is combined with antibiotics. Taking a PPI before testing can make H. pylori breath and stool tests falsely negative, so mention any PPI use when you book a test.
Heartburn that seems like an ulcer can be something else, and a PPI can hide symptoms that need a different workup. People taking medicines that depend on stomach acid for absorption, or those with liver disease, should ask a pharmacist before starting. Pregnant or breastfeeding people should check with a doctor before using one.
Which Painkillers Are Safer With an Ulcer
Acetaminophen (Tylenol) has long been considered gentle on the stomach and suitable for people at risk of ulcers.11PubMed. Gastrointestinal safety of paracetamol: is there any cause for concern? There are caveats. In adults 65 and older, acetaminophen use was linked to a slightly higher rate of ulcers and stomach bleeding.12PubMed Central. Incidence of Side Effects Associated With Acetaminophen in People Aged 65 Years or More: A Prospective Cohort Study Using Data From the Clinical Practice Research Datalink At OTC doses, stomach upset was similar for acetaminophen and ibuprofen, around 7 to 8%.13PubMed. Gastrointestinal safety and tolerability of oral non-aspirin over-the-counter analgesics Its bigger risk is liver damage at high doses.13PubMed. Gastrointestinal safety and tolerability of oral non-aspirin over-the-counter analgesics So stay within the label’s daily maximum and avoid it with heavy drinking.
If you already have an ulcer, choose acetaminophen first, since it is the usual starting point for pain in someone with a suspected ulcer. If it doesn’t control the pain, ask a doctor before trying any NSAID rather than deciding on your own. A doctor who approves an NSAID for something like arthritis may add a stomach-protecting medicine such as a PPI.
NSAIDs hide in other products. Cold and flu combinations and some sleep aids contain ibuprofen or aspirin, so read the “active ingredients” box for ibuprofen, naproxen or aspirin. Daily low-dose aspirin for the heart also harms the stomach, but stopping it needs a doctor’s input. Topical NSAID gels reach the stomach far less than pills do.
Ibuprofen and naproxen are riskier than they look. Their harm comes mainly from the body-wide effect on protective chemicals, so taking the pill with food or milk does not remove the risk. Coated or buffered aspirin is often thought to be safe for the stomach, but the aspirin still acts through the bloodstream and can still damage the lining. Risk rises with higher doses, longer use, and age, so an occasional single dose is a smaller worry than daily use for weeks.
Symptoms That Need a Doctor or the ER
Call 911 or go to an emergency room right away for any of these:14Yale Medicine. 8 Things to Know About Peptic Ulcers
- Vomiting blood or material that looks like coffee grounds
- Black, sticky or tarry stool, or dark red blood in stool
- Sudden sharp belly pain, dizziness or fainting
- Fever with a tender, painful belly, which can mean the ulcer has torn through
Blood that has been digested in the stomach or upper intestine turns stool black, sticky, and foul-smelling, which is different from ordinary dark stool. Iron pills and bismuth products such as Pepto-Bismol can also darken stool, so black stool alone doesn’t prove bleeding, but don’t assume it’s harmless; get it checked. A single episode matters, and waiting to see if it repeats can delay care.
While you wait for help, don’t drive yourself if you feel faint or have been vomiting blood. Call 911 or have someone else take you. Avoid eating, drinking, and taking more painkillers. Bring the medicine bottles or a list of what you have taken, especially aspirin, NSAIDs, or blood thinners, because these affect how doctors treat bleeding.
Other signs call for a prompt doctor visit. A camera exam of the stomach is usually advised if you are 50 or older or have a family history of stomach cancer.15Canadian Digestive Health Foundation. Peptic Ulcers: Causes, Risks, and the Red-Flag Symptoms Unexplained weight loss, food sticking, feeling full after a few bites, or repeated vomiting are reasons too.15Canadian Digestive Health Foundation. Peptic Ulcers: Causes, Risks, and the Red-Flag Symptoms
Acid reducers can quiet pain while an ulcer keeps bleeding slowly, and tiredness or breathlessness can be a sign of that slow blood loss. If you’ve taken Pepto-Bismol, mention it to the doctor, since it can turn stool black.
What Happens at the Doctor
Doctors may check for H. pylori with a breath test, a stool test, or a blood test.16National Institute of Diabetes and Digestive and Kidney Diseases. Diagnosis of Peptic Ulcers (Stomach or Duodenal Ulcers) Stool tests can miss some infections.17PubMed Central. Diagnosis of Helicobacter pylori: What should be the gold standard?3Illinois Department of Public Health. Helicobacter pylori An upper endoscopy, a thin camera passed down the throat, confirms an ulcer and its cause.16National Institute of Diabetes and Digestive and Kidney Diseases. Diagnosis of Peptic Ulcers (Stomach or Duodenal Ulcers)
The urea breath test has you drink a special solution and breathe into a bag before and after. It detects the bacteria’s activity, so it shows a current infection and can confirm the bacteria are gone after treatment. The stool test asks you to collect a small sample at home and return it to a lab. The blood test shows past exposure but cannot reliably tell whether the infection is still active, so it is less useful after treatment.
For an endoscopy, you are usually sedated, so you feel little, and it often takes only a few minutes. The doctor can look directly at the ulcer, take small tissue samples to test for H. pylori, and check for signs of cancer. You will need to fast beforehand and have someone take you home afterward because of the sedation.
Bring a list of every OTC product and painkiller you’ve used, including doses, and ask whether to pause a PPI before an H. pylori test. If you’re prescribed antibiotics, finish the whole course even once you feel better. Ask about a follow-up test to confirm the bacteria are gone.
Safety of Using Acid Reducers for Weeks or Longer
Long-term PPI use has been linked to fractures, gut infections such as C. difficile, low magnesium and vitamin B12, and kidney problems.18PubMed Central. Adverse Effects Associated with Long-Term Use of Proton Pump Inhibitors Whether PPIs actually cause these remains unclear.19Journal of Neurogastroenterology and Motility. Potential Risks Associated With Long-term Use of Proton Pump Inhibitors and the Maintenance Treatment Modality for Patients With Mild Gastroesophageal Reflux Disease Low B12 and vitamin C are more likely in older adults and people who are poorly nourished,20PubMed Central. Multidisciplinary Consensus for Rationalizing the Use of Acid Suppressants in Children and Adults: CONFOR and older adults may face more infection risk with acid reducers.21PubMed. Acid-Suppressive Therapy and Risk of Infections: Pros and Cons
Acid reducers also change how some other drugs are absorbed or broken down,22PubMed. Drug interactions with agents used to treat acid-related diseases and more than 100 medicines have meaningful interactions with them.23PubMed Central. A Systematic Review of Gastric Acid-Reducing Agent-Mediated Drug–Drug Interactions with Orally Administered Medications Some antifungals, HIV drugs and cancer drugs absorb poorly with less stomach acid. Clopidogrel, a blood thinner, can be affected by omeprazole. Antacids can bind some antibiotics and thyroid pills, so space those doses a few hours apart.
After long use, acid can rebound for a while once you stop a PPI. Tapering the dose with a doctor’s plan can ease this. Rebound burning doesn’t necessarily mean the ulcer is back, but burning that persists should be checked by a doctor.
Diet and Supplements That May Help
Ginger and a blend of peppermint and caraway oils have the best evidence for easing upper-stomach symptoms.24PubMed Central. Effectiveness of Nutritional Ingredients on Upper Gastrointestinal Conditions and Symptoms: A Narrative Review Zinc-carnosine, sold in Japan as an ulcer drug, has only limited evidence elsewhere.24PubMed Central. Effectiveness of Nutritional Ingredients on Upper Gastrointestinal Conditions and Symptoms: A Narrative Review Diets rich in plant polyphenols may support healing alongside standard treatment.25PubMed Central. Role of dietary polyphenols in the management of peptic ulcer
Most supplement research looks at general stomach discomfort rather than confirmed ulcers, so results do not necessarily apply to an ulcer. Supplements are not tested the way medicines are, so strength and purity can vary between brands. Tell your doctor about any you take, since some interact with medicines.
Spicy food, coffee, and acidic foods can aggravate pain for some people, but they do not cause ulcers or stop them from healing. Notice which foods trigger your symptoms and skip those for now. Otherwise, eat what you tolerate, as no special bland diet is needed.
Smoking slows ulcer healing, so quitting or cutting back helps. Alcohol irritates the lining and is best limited.

