Several over-the-counter medications can relieve ulcer symptoms by reducing or neutralizing stomach acid. The most effective OTC option is omeprazole (Prilosec OTC), a proton pump inhibitor that blocks acid production at the source. But OTC medicines only manage symptoms. If you have a confirmed or suspected ulcer, the underlying cause, often a bacterial infection, typically requires prescription treatment to fully heal.
Proton Pump Inhibitors: The Strongest OTC Option
Proton pump inhibitors, or PPIs, are the most powerful acid-reducing medications you can buy without a prescription. They work by shutting down the tiny pumps in your stomach lining that produce acid. Omeprazole (sold as Prilosec OTC) is the most widely available. The prescription version is used at 20 mg daily to heal duodenal ulcers (the most common type), with most patients healing within four weeks.
The OTC version contains the same 20 mg dose, but the FDA approves it specifically for frequent heartburn rather than ulcer treatment. OTC PPIs are intended for a 14-day course and can be used up to three times per year. They don’t work instantly. It takes one to four days to reach full acid suppression, so they’re not the best choice if you need relief in the next hour. Lansoprazole (Prevacid 24HR) is another OTC PPI that works the same way.
If your symptoms persist beyond a 14-day OTC course, that’s a signal to get a proper evaluation rather than repeating cycles on your own.
H2 Blockers: Faster but Less Powerful
H2 blockers reduce acid by a different mechanism, blocking histamine receptors on acid-producing cells. Three are currently FDA-approved in the U.S.: famotidine (Pepcid), cimetidine (Tagamet), and nizatidine. Famotidine is the most commonly used. Ranitidine (Zantac) was previously popular but was withdrawn from the market due to contamination with a cancer-causing substance during manufacturing.
The main advantage of H2 blockers over PPIs is speed. They start working in about 60 minutes and provide relief lasting 4 to 10 hours, making them useful for on-demand symptom control. You can also take them 30 to 60 minutes before eating foods you know trigger pain. However, they reduce acid less completely than PPIs do, which is why gastroenterology guidelines recommend PPIs over H2 blockers for more serious acid-related damage. For mild, intermittent ulcer pain, though, an H2 blocker can bridge the gap while you arrange to see a doctor.
Antacids: Quick Relief, Short Duration
Antacids like Tums (calcium carbonate), Maalox, and Mylanta (aluminum and magnesium compounds) neutralize acid that’s already in your stomach rather than preventing its production. They work within minutes, which makes them the fastest option for a flare of burning pain. The tradeoff is that the relief is brief, typically lasting 30 to 60 minutes, sometimes up to two hours.
Antacids won’t heal an ulcer. Think of them as a temporary pain reliever while a PPI or H2 blocker does the deeper work. One practical concern: antacids can interfere with the absorption of other medications, including certain antibiotics, anti-inflammatory drugs, and antifungals. If you take other medicines regularly, separate them from antacid doses by at least two hours.
Bismuth Subsalicylate: A Unique Protector
Pepto-Bismol (bismuth subsalicylate) occupies its own category. Unlike acid reducers, it physically coats ulcers and erosions, creating a protective barrier against acid and digestive enzymes. It also stimulates your stomach to produce more of its own natural protective mucus and bicarbonate.
What makes bismuth particularly interesting is that it has a direct antibacterial effect against H. pylori, the bacterium responsible for most ulcers. It disrupts the bacterial cell wall and can even make the bacteria more vulnerable to antibiotics. This is why bismuth is included in some prescription combination therapies for H. pylori. On its own, it won’t eradicate the infection, but it adds a layer of protection that pure acid reducers don’t provide. If you’re dealing with ulcer symptoms and want something that soothes while also offering modest antibacterial activity, bismuth subsalicylate is worth considering alongside an acid reducer.
Note that bismuth turns your stool black, which is harmless but can be confused with a more serious symptom (see below). People who are sensitive to aspirin should avoid it, since the subsalicylate component is chemically related.
Why OTC Medicines Can’t Fully Treat Most Ulcers
The majority of peptic ulcers are caused by H. pylori infection, and eradicating this bacterium requires a combination of at least two antibiotics plus a PPI or bismuth. No single antibiotic works well alone. Even amoxicillin by itself achieves less than a 20% eradication rate. When H. pylori is properly treated, ulcer healing improves dramatically and the chance of the ulcer coming back drops significantly.
The second most common cause is regular use of NSAIDs like ibuprofen, naproxen, or aspirin. If that’s what triggered your ulcer, the most important step is stopping the NSAID. An H2 blocker or PPI can then help the ulcer heal, but continuing to take anti-inflammatory drugs while relying on OTC acid reducers is working against yourself.
OTC medications are reasonable for managing symptoms while you wait for an appointment or a diagnosis. They are not a substitute for identifying and treating the root cause.
Symptoms That Need Immediate Attention
Certain symptoms indicate an ulcer complication like bleeding or perforation, and no OTC medication is appropriate in these situations:
- Black, tarry stools or visible red or maroon blood in your stool
- Vomiting blood or material that looks like coffee grounds
- Sudden, sharp abdominal pain that doesn’t let up
- Feeling faint, dizzy, or having a rapid pulse
- Worsening symptoms despite OTC treatment
These are signs of a medical emergency. A bleeding ulcer can become life-threatening quickly, and OTC acid reducers cannot address it.
Choosing the Right Combination
For ongoing ulcer-type symptoms, the most practical OTC approach combines a PPI like omeprazole for sustained acid reduction with an antacid or bismuth subsalicylate for immediate symptom relief during the first few days before the PPI reaches full effect. An H2 blocker like famotidine is a reasonable alternative if you prefer something faster-acting than a PPI but don’t want to take multiple products.
Whichever option you choose, treat OTC therapy as a bridge, not a destination. If symptoms improve but return after you stop, or if they don’t improve within two weeks, that pattern strongly suggests an underlying cause that OTC medicines alone won’t resolve.

