An ulcer is an open sore in the lining of your stomach, small intestine, or esophagus. Most ulcers develop because of either an infection with Helicobacter pylori (H. pylori) bacteria or regular use of nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen or aspirin. The good news: modern treatments are effective for most people, though what works best depends on what caused your ulcer and your individual health profile.
Before treatment starts, your doctor needs to confirm you have an ulcer and identify the underlying cause. Diagnosis typically involves:
Knowing the cause is critical because treatment differs significantly depending on whether bacteria or medication triggered the ulcer.
The foundation of ulcer treatment is reducing stomach acid so the ulcer can heal. Two main classes do this:
Proton pump inhibitors (PPIs) block acid production more powerfully and are often the first choice. Common examples include omeprazole and lansoprazole. H2 blockers (like famotidine) reduce acid but less aggressively than PPIs.
Your doctor chooses based on ulcer severity, your kidney and liver function, other medications you take, and whether you're also being treated for H. pylori. These medications typically allow healing within weeks, though treatment duration varies.
If H. pylori is present, acid reduction alone isn't enough—you need to eliminate the bacteria. Triple or quadruple therapy combines a PPI with two to three antibiotics taken for 10–14 days. The specific antibiotic combination depends on your medical history, allergies, and local resistance patterns.
Eradication success rates are generally high but depend on factors like medication adherence, antibiotic resistance in your region, and whether you continue taking NSAIDs during treatment.
Healing also requires addressing what caused the ulcer:
Most uncomplicated ulcers heal within 4–8 weeks with appropriate treatment. However, healing timelines vary based on:
Most people respond well to standard treatment, but some ulcers develop serious complications like bleeding, perforation (a hole in the stomach wall), or obstruction. These require more intensive intervention—sometimes hospitalization or surgery. Your doctor will monitor for warning signs like severe pain, vomiting blood, or black stools.
The treatment landscape looks similar for everyone, but the right approach for you depends on:
After your ulcer heals, prevention matters. If H. pylori was the cause, eradication prevents recurrence in most cases. If NSAIDs caused it, your doctor may recommend either stopping them, using a lower dose, taking them with acid-reducing medication, or switching to an alternative pain reliever.
Work with your doctor to confirm healing (sometimes with follow-up endoscopy, sometimes just symptom resolution) and establish a plan to prevent recurrence. Your individual circumstances—your cause, your medical history, and your ability to follow through—determine what prevention strategy makes sense for you.
