For quick ulcer pain relief, over-the-counter antacids work fastest by neutralizing stomach acid on contact. But lasting relief requires reducing acid production with stronger medications, and truly resolving the problem means treating whatever caused the ulcer in the first place. Here’s what works, how fast each option acts, and what to expect from treatment.
Fastest Relief: Antacids
Liquid or chewable antacids (calcium carbonate, magnesium hydroxide, aluminum hydroxide) neutralize acid already sitting in your stomach. They start working within minutes, which makes them the go-to option when ulcer pain flares up and you need something now. The tradeoff is that relief fades relatively quickly, usually within an hour or two, because your stomach keeps producing new acid.
Antacids are fine for occasional flare-ups, but they won’t heal an ulcer on their own. Think of them as a bridge while you wait for stronger medications to kick in.
Next Step Up: H2 Blockers
Famotidine (sold as Pepcid) is the most common H2 blocker available without a prescription. Instead of neutralizing acid after it’s made, it reduces how much acid your stomach produces in the first place. It takes roughly an hour to feel the effect, but relief lasts significantly longer than an antacid. If you know a meal is likely to trigger pain, taking famotidine 30 to 60 minutes beforehand can help prevent it. The typical over-the-counter dose is 20 mg once or twice daily.
The Standard Treatment: Proton Pump Inhibitors
Proton pump inhibitors, commonly called PPIs, are the cornerstone of ulcer treatment. Omeprazole (Prilosec) and esomeprazole (Nexium) are both available over the counter. These work by shutting down the acid-producing pumps in your stomach lining, cutting acid output far more dramatically than H2 blockers can.
PPIs don’t provide instant pain relief. They take a few days to reach full effect, which is why many people use antacids alongside them during the first week. But by suppressing acid so thoroughly, PPIs create an environment where damaged tissue can actually rebuild. Most ulcers heal within 4 to 8 weeks on PPI therapy. The standard OTC dose of omeprazole is 20 mg once daily, taken before your first meal.
Because PPIs are so effective, it’s tempting to stay on them indefinitely. Long-term use (beyond several months) has been linked to increased oxidative stress in the stomach lining, so most doctors recommend using them for a defined treatment period rather than as a permanent fix.
Protective Coatings for the Ulcer Itself
Some medications work by physically shielding the ulcer crater from acid rather than reducing acid levels. Sucralfate, available by prescription, forms a thick gel-like barrier over the damaged tissue, protecting it from acid, digestive enzymes, and bile salts. It’s taken on an empty stomach, typically 1 gram four times daily for active duodenal ulcers, followed by a lower maintenance dose.
Bismuth subsalicylate (Pepto-Bismol) offers a milder version of this coating effect and is available over the counter. It also has mild antibacterial properties, which is why bismuth is included in some prescription ulcer treatment regimens. On its own, it can help with pain and nausea, but it’s not strong enough to heal an ulcer without additional therapy.
Treating the Root Cause: H. pylori Infection
Pain relief only lasts as long as you keep taking medication unless you address what caused the ulcer. The majority of peptic ulcers are caused by either a bacterial infection called H. pylori or long-term use of anti-inflammatory painkillers like ibuprofen and naproxen. If you’ve been taking these regularly, switching to acetaminophen (Tylenol) removes a major source of ongoing damage.
If H. pylori is the culprit, your doctor will prescribe a combination of a PPI plus two or three other medications taken together for 10 to 14 days. This combination approach is necessary because a single antibiotic isn’t reliable enough on its own. One common regimen pairs a PPI with two antibiotics for two weeks. Another adds bismuth to the mix for cases where antibiotic resistance is a concern, boosting eradication rates significantly.
Once the infection is cleared, ulcers typically don’t come back. Without treating H. pylori, though, ulcers tend to recur even after they’ve healed with acid-suppressing medication.
Zinc Carnosine as a Supplement
One supplement with genuine clinical evidence behind it is zinc carnosine (sometimes called polaprezinc). It’s a chelated compound that acts as a mucosal protective agent, helping shield and repair the stomach lining. In clinical trials, adding zinc carnosine to standard antibiotic therapy improved H. pylori eradication rates by roughly 18 to 24 percentage points compared to antibiotics alone. A typical supplemental dose used in studies is 75 mg twice daily. It’s not a replacement for medical treatment, but it may support healing when used alongside it.
When Ulcer Pain Signals an Emergency
Most ulcer pain is a dull, burning ache that responds to the medications above. But ulcers can erode through the stomach or intestinal wall, and this is a medical emergency. The hallmark sign is sudden, severe abdominal pain where you can pinpoint the exact moment it started. It feels nothing like the gradual gnawing of typical ulcer pain.
Vomiting blood (which may look like coffee grounds) or passing black, tarry stools are signs of active bleeding from the ulcer. Either of these warrants an emergency room visit, not a trip to the pharmacy. Significant blood loss can happen quickly and isn’t something you can manage at home.
Putting It All Together
A practical approach to ulcer pain usually layers these options. Antacids handle the immediate flare. A PPI taken daily for 4 to 8 weeks does the heavy lifting of healing. If H. pylori is present, a short course of combination therapy clears the infection and prevents the ulcer from returning. During that process, avoiding NSAIDs, alcohol, and smoking removes the factors that slow healing and worsen pain. Most people feel noticeably better within the first week of starting a PPI, with the ulcer fully healed within two months.

