Stomach ulcer pain responds best to acid-reducing medications, which can bring noticeable relief within days. Over-the-counter antacids offer temporary help, but the real improvement comes from drugs that cut acid production at the source, giving the ulcer a chance to heal. Pain management works best when paired with identifying and treating whatever caused the ulcer in the first place, whether that’s a bacterial infection or regular use of anti-inflammatory painkillers.
Medications That Reduce Acid
The two main classes of drugs used to treat ulcer pain work by lowering the amount of acid your stomach produces. Proton pump inhibitors (PPIs) are the stronger option. They block the tiny pumps in your stomach lining that release acid, and they’re effective enough to keep ulcers from recurring in roughly 96% of patients over six months. PPIs are available over the counter at lower doses and by prescription at higher ones. H2 blockers are the other option. They work through a different mechanism but achieve the same goal: less acid bathing the raw ulcer, which means less pain and faster healing.
Antacids (the chewable tablets or liquids you can buy at any pharmacy) neutralize acid that’s already in your stomach. They work fast, often within minutes, but the relief is temporary. Think of them as a bridge for immediate discomfort while longer-acting medications build up in your system. They don’t heal the ulcer on their own.
Treating the Root Cause
Most stomach ulcers are caused by one of two things: infection with a bacterium called H. pylori, or regular use of NSAIDs like ibuprofen, naproxen, or aspirin. Treating the pain without addressing the cause is like mopping a floor while the faucet is still running.
If H. pylori is the culprit, the current recommended treatment is a 14-day course of four medications taken together: a PPI, two antibiotics, and a bismuth compound. The American College of Gastroenterology now recommends against the older three-drug regimen that included clarithromycin unless testing has confirmed the bacteria will respond to it, because resistance to that antibiotic has become widespread. It’s not a pleasant two weeks, but eradicating the infection is what prevents the ulcer from coming back.
If NSAIDs caused your ulcer, the most effective step is stopping them. When that isn’t possible (some people need them for chronic conditions like arthritis), taking a PPI alongside the NSAID dramatically lowers the risk of ulcer recurrence. In clinical trials, patients who took a PPI while continuing NSAID therapy had ulcer rates of about 5% over six months, compared to 17% on placebo. Selective COX-2 inhibitors, a different class of anti-inflammatory, are gentler on the stomach lining and may be an option your doctor considers. In high-risk patients, combining a COX-2 inhibitor with a PPI reduced recurrent ulcer bleeding to 0% in one study, compared to nearly 9% with the COX-2 inhibitor alone.
Foods That Soothe and Foods That Don’t
Diet won’t heal an ulcer, but it can meaningfully affect how much pain you feel day to day. The foods most likely to aggravate ulcer pain are spicy dishes, greasy or fried foods, caffeine, alcohol, carbonated drinks, and highly acidic foods like citrus fruits and tomatoes. You don’t necessarily need to eliminate all of these permanently, but cutting them out while you’re healing makes a noticeable difference for most people.
On the helpful side, fiber-rich foods like whole grains, legumes, fruits, and vegetables support digestive health and may protect the stomach lining. Lean proteins and healthy fats round out a diet that gives your body what it needs to repair tissue. Eating smaller, more frequent meals rather than large ones can also keep acid levels more stable throughout the day.
Cabbage Juice, Honey, and Other Home Remedies
Cabbage juice has a long folk reputation as an ulcer remedy, and there’s some laboratory science behind it. In animal studies, cabbage extract combined with honey reduced ulcer severity more than either substance alone, and in some measures outperformed omeprazole (a common PPI). The combination significantly lowered stomach acidity and raised gastric pH toward normal levels. That said, these results come from rats, not humans, and the doses were carefully controlled. Drinking cabbage juice or adding honey to your diet is unlikely to cause harm and may offer some comfort, but it’s not a substitute for proven medical treatment, especially if you have an active ulcer.
Smoking and Alcohol Slow Healing
Smoking increases stomach acid production and reduces blood flow to the stomach lining, both of which directly interfere with ulcer healing. It also makes H. pylori treatment less effective. Quitting, or at least cutting back significantly while your ulcer heals, gives medication a much better chance of working.
Alcohol irritates and erodes the mucosal lining of the stomach. Even moderate drinking can worsen ulcer symptoms and delay recovery. If you’re actively treating an ulcer, avoiding alcohol entirely during the healing period (typically 4 to 8 weeks) is the most helpful approach.
Quick Comfort Strategies
While medications do the heavy lifting, a few habits can reduce pain between doses. Eating something small when pain flares can temporarily buffer stomach acid. Staying upright for at least two to three hours after eating helps prevent acid from pooling around the ulcer. Stress doesn’t cause ulcers, but it can amplify the perception of pain and increase acid secretion, so anything that lowers your stress level (sleep, movement, breathing exercises) indirectly helps.
Avoid taking NSAIDs for the ulcer pain itself. It sounds obvious, but reaching for ibuprofen out of habit when you’re hurting is easy to do and will make things worse. Acetaminophen (Tylenol) is a safer choice for general pain relief when you have a stomach ulcer, since it doesn’t affect the stomach lining.
Warning Signs That Need Immediate Attention
Most ulcer pain is manageable and resolves with treatment, but certain symptoms indicate a complication like bleeding or perforation. Vomiting blood (which may look red or resemble dark coffee grounds), stools that are black or tarry, and sudden dizziness or fainting are all signs of significant blood loss from the ulcer. Sudden, severe abdominal pain that feels rigid or board-like can signal a perforation, where the ulcer has eaten through the stomach wall. Any of these require emergency care, not a wait-and-see approach.

