Peptic ulcer treatment usually combines acid-reducing medicine with care for the cause, such as H. pylori infection or regular NSAID use. Proton pump inhibitors such as omeprazole and pantoprazole help the stomach or duodenal lining repair, and many ulcers heal within about four weeks, although larger ulcers may need eight weeks.
A prescription that eases pain does not necessarily mean the ulcer has healed. H. pylori may require a 14-day antibiotic regimen, while ibuprofen, naproxen, or aspirin may need careful review rather than an abrupt change. Follow-up testing, medication timing, and the ulcer's location all affect what happens next.
Healing also depends on recognizing when routine treatment is no longer enough. Repeat endoscopy may be needed for a gastric ulcer, while vomiting blood, black stools, faintness, sudden severe abdominal pain, or persistent vomiting can signal bleeding, perforation, or blockage requiring immediate care.
Peptic Ulcer Treatment Key Takeaways
- PPIs reduce stomach acid and help most ulcers heal within about four weeks.
- H. pylori ulcers usually require antibiotics plus acid suppression.
- The ACG favors 14 days of optimized bismuth quadruple therapy in many adults.
- NSAIDs can cause ulcers or delay healing and need clinician-guided review.
- Breath or stool testing confirms whether H. pylori treatment cleared the infection.
- Gastric ulcers may require repeat endoscopy to confirm healing and assess tissue.
- Vomiting blood, black stools, faintness, or sudden severe pain requires emergency care.
How Do PPIs Help Ulcers Heal?

Proton pump inhibitors (PPIs), including omeprazole and pantoprazole, reduce stomach acid by blocking the final step in acid production. With less acid irritating the ulcer, the stomach or duodenal lining has a better chance to repair itself. That is why PPIs sit at the center of most ulcer treatment plans.
A PPI can ease burning, pain, or indigestion before the sore has fully healed. In general, PPIs heal 80 to 100 percent of ulcers within four weeks, while stomach ulcers larger than 2 centimeters may need eight weeks of treatment, according to the 2024 JAMA review (source). Timing also depends on the ulcer’s size, location, cause, and your overall health.
Feeling better is not proof that the ulcer has healed. Stopping treatment early can leave the tissue vulnerable, particularly when the underlying cause remains. More background on peptic ulcers from causes to complications can help put treatment choices in context.
Acid reduction supports healing, but it does not remove every cause. Cause-specific care may include:
- Helicobacter pylori: An ulcer linked to this bacterium, often called H. pylori, may require antibiotics to clear the infection and lower the chance of recurrence.
- Nonsteroidal anti-inflammatory drugs: Ulcers associated with ibuprofen, naproxen, or another nonsteroidal anti-inflammatory drug may require a medication review and a different pain-relief plan.
Ulcer medicines are generally effective when the cause is addressed and acid exposure is reduced. Treatment length and dose depend on test results, medication use, ulcer features, and whether symptoms return. Take the PPI as prescribed, and discuss persistent or recurring symptoms before changing the dose or stopping treatment.
Long-term or high-dose PPI use can raise questions about fracture risk, especially when other risk factors are present. Ask how long treatment should continue and whether ongoing use remains necessary. Food choices and daily routines may improve comfort while the lining heals, but they do not replace treatment for the ulcer’s cause.
What Happens If H. pylori Is Found?

A positive Helicobacter pylori (H. pylori) result usually calls for several medicines, not acid suppression alone. Breath and stool tests detect an active infection. Blood tests can remain positive after the bacteria are gone, so they cannot reliably show whether treatment worked.
Clearing H. pylori helps an ulcer heal and lowers the chance of another ulcer developing. Acid-reducing medicine supports healing, but it cannot eradicate the bacteria on its own. Most plans pair a proton pump inhibitor (PPI), which lowers stomach acid, with antibiotics. The page on H. pylori ulcers and eradication therapy covers testing, regimens, and follow-up in detail.
For many adults who have not been treated before, especially where antibiotic resistance is a concern, the American College of Gastroenterology favors 14 days of optimized bismuth quadruple therapy. This regimen includes:
- A PPI.
- Bismuth subsalicylate or bismuth subcitrate.
- Tetracycline.
- Metronidazole.
The right regimen depends on medication allergies, previous antibiotic exposure, local resistance patterns, and other health conditions. In selected situations, a clinician may prescribe a PPI with amoxicillin, clarithromycin, or metronidazole. Clarithromycin-containing regimens are generally avoided unless testing shows that the bacteria are susceptible. Older three-drug regimens should not be treated as interchangeable with current preferred options. The American College of Gastroenterology guideline supports these distinctions (source).
The pill count and dosing schedule can feel difficult, particularly with bismuth quadruple therapy. Take every prescribed medicine for the full course, even if stomach pain or nausea improves. Missed doses or early stopping can leave bacteria behind and increase the chance of resistance. Side effects or pill burden are reasons to contact the prescribing clinician rather than stopping treatment independently.
Feeling better does not prove the infection is gone. Follow-up usually involves a breath test, stool test, or sometimes a biopsy-based test at least four weeks after antibiotics end. Ask whether the PPI should be paused for about two weeks beforehand, since acid suppression can contribute to a false-negative result. Food choices and daily routines may ease symptoms, but follow-up testing is still needed to confirm that the infection has cleared.
How Should You Handle NSAIDs and Aspirin?

If you have an ulcer and take a nonsteroidal anti-inflammatory drug (NSAID), your clinician may recommend stopping it, lowering the dose, or switching to another pain-relief option when medically appropriate. Ibuprofen, naproxen, and aspirin are NSAIDs, and they can cause peptic ulcers or slow healing, especially with frequent, long-term, or high-dose use.
Stopping an occasional painkiller is different from changing treatment prescribed for an ongoing condition. Occasional, self-directed ibuprofen use may be avoidable, while daily aspirin for cardiovascular disease may protect against serious complications. Do not stop prescribed aspirin or another medicine on your own. Ask the prescriber whether acetaminophen or another option is appropriate and how a change could affect heart disease, arthritis, or chronic pain.
Bring the following information to the appointment:
- Symptoms and test results: Describe what you have been feeling and bring endoscopy results if testing confirmed the ulcer.
- Medicines and supplements: Include prescription drugs, over-the-counter products, and supplements. Record the dose and frequency of ibuprofen, naproxen, aspirin, and other medicines that may irritate the stomach.
- Additional risk factors: Mention anticoagulants, also called blood thinners, corticosteroids, and any previous ulcers. Older age and prolonged or high-dose NSAID use can also raise concern.
If an NSAID must continue, protecting the stomach may reduce the chance of further stomach injury. A clinician may prescribe a daily proton pump inhibitor (PPI), which lowers stomach acid and can support healing. The choice of PPI and the treatment length depend on your ulcer’s cause, other medicines, and health conditions. Misoprostol, a prostaglandin medicine, is another option for some people, although side effects, interactions, and the ongoing need for the NSAID require follow-up.
The decision should balance pain control or disease prevention against ulcer risk. Ask the prescriber whether the NSAID is still necessary and what protective treatment and follow-up are appropriate before making any medication change.
When Are Other Ulcer Medicines Used?
Other ulcer medicines may be considered when a proton pump inhibitor (PPI) is unsuitable or when an ulcer needs added protection. These treatments are not interchangeable. The choice depends on the ulcer’s cause, location, severity, healing needs, your medical history, and other medicines you take.
The main options differ in purpose:
- H2 blockers: Also called H2-receptor blockers or H2 antagonists, reduce the amount of acid released into the digestive tract. Famotidine is one example. They’re generally less potent than PPIs, but a clinician may consider one when a PPI isn’t appropriate.
- Sucralfate: It coats the ulcer and forms a protective barrier against stomach acid. It may protect the ulcer surface in selected cases, but it doesn’t treat Helicobacter pylori infection or remove the need to address ulcer-causing nonsteroidal anti-inflammatory drugs, such as ibuprofen or naproxen.
- Antacids: These neutralize acid already present in the stomach and may ease symptoms quickly for a short time. They aren’t the main treatment for healing an ulcer. Larger or repeated doses can cause side effects such as diarrhea, so frequent symptoms call for medical guidance rather than repeated self-dosing.
- Potassium-competitive acid blockers: Medicines such as vonoprazan are another clinician-selected option. In some settings, they reduce acid more quickly and keep it reduced longer than traditional PPIs.
If discomfort continues or returns, H. pylori and regular NSAID use are the first causes to recheck. Ask your clinician how the chosen medicine supports healing and whether your other medicines affect its use.
How Do You Check That an Ulcer Has Healed?
How healing is checked depends on where the ulcer is, why it developed, and what the first examination showed. Ongoing nonsteroidal anti-inflammatory drug (NSAID) use, such as ibuprofen or naproxen, can affect healing and change what clinicians need to confirm.
A gastric ulcer may need repeat upper endoscopy. During this examination, the clinician can see whether the sore has closed and assess the surrounding tissue. Tissue samples may help investigate concerning features from the first examination or earlier biopsy results. This endoscopy checks the ulcer and its tissue, not only whether discomfort has continued.
An uncomplicated duodenal ulcer usually does not need another endoscopy solely to document healing when treatment is progressing as expected. Persistent symptoms, unusual initial findings, or another concern can change that plan. Repeat endoscopy is used selectively rather than as a routine check for every duodenal ulcer.
After treatment for Helicobacter pylori, eradication is generally checked with a breath test or stool test at least four weeks after antibiotics end (source). A biopsy-based test using tissue collected during endoscopy is another option. Proton pump inhibitors (PPIs), including omeprazole, are generally held for about two weeks before testing because they can make the infection harder to detect (source). Ask your clinician before stopping or changing a PPI so the test can be timed safely around your treatment.
At follow-up, ask which check fits your ulcer and what result will show that treatment worked. The answer should account for the ulcer’s location, its cause, and any findings from the first examination.
How Are Bleeding, Perforation, and Blockage Treated?

Bleeding, perforation, and gastric outlet obstruction are serious ulcer complications that need medical assessment rather than home treatment. Each affects the stomach or duodenum differently, so recognizing the pattern can help you get the right level of care.
The three complications include:
- Bleeding: An ulcer damages a blood vessel, which can lead to blood loss in the stomach or intestines.
- Perforation: An ulcer creates a hole through the stomach or duodenal wall. Digestive contents can leak into the abdomen.
- Gastric outlet obstruction: Swelling or scar tissue blocks food from leaving the stomach. This problem is also called pyloric stenosis (source).
Get immediate emergency medical attention for any of these signs:
- Blood in vomit: Vomit may contain bright red blood or material that looks like coffee grounds.
- Blood in stool: Stools may appear black and tarry or contain visible blood.
- Possible major blood loss: Fainting, dizziness, difficulty breathing, or a rapid pulse can occur even when bleeding is not obvious.
- Possible perforation: Sudden, severe, or persistent sharp abdominal pain, particularly pain that worsens with movement or occurs with a rigid abdomen, needs emergency care (source).
Treatment for a bleeding ulcer usually starts in the hospital with an assessment of blood loss and steps to stabilize you. An upper endoscopy uses a thin camera passed through the mouth to locate the bleeding and stop it, often with clips or heat treatment. If bleeding continues or returns, another urgent procedure may be necessary. Surgery is less common, but doctors may consider it when endoscopic treatment does not control the bleeding (source).
Perforation requires hospital treatment because leaked digestive contents can cause infection and other abdominal complications. Urgent surgery may be needed to close the hole, particularly when the leak is causing severe inflammation or illness.
Gastric outlet obstruction may cause repeated vomiting, feeling full after only a small meal, or difficulty keeping food and fluids down. Persistent vomiting or an inability to keep fluids down warrants urgent assessment. An endoscopic procedure may relieve the blockage, although surgery is sometimes necessary. Unexplained weight loss also calls for prompt medical evaluation, even without sudden pain. Food changes may ease daily discomfort, but they cannot remove a perforation, stop serious bleeding, or clear a blocked stomach.
How Can You Eat Comfortably and Prevent Ulcers?

You don’t need a strict diet for ulcers. Food does not cause typical peptic ulcers, and changing what you eat cannot heal one by itself. Meals should focus on foods you tolerate while prescribed treatment addresses the cause, such as a Helicobacter pylori infection or acid-related irritation. Treatment may include antibiotics or acid-reducing medicine. The National Institute of Diabetes and Digestive and Kidney Diseases does not recommend a special diet for treating ulcers (source).
Meals can still affect comfort. Keep a simple note of what you eat or drink and how you feel afterward, then limit personal triggers rather than removing entire food groups. Common possibilities include:
- Spicy foods: These may worsen burning or discomfort for some people, but they do not cause a typical ulcer.
- Caffeine: Coffee and other caffeinated drinks can bother some people even when meals do not.
- Acidic foods and drinks: Citrus, tomatoes, or other acidic items may increase discomfort for some people, while others notice no change.
Avoiding a personal trigger may make eating easier, but it does not treat the ulcer. Someone else’s trigger list is not a medical rule for your meals.
Alcohol and smoking affect healing in different ways. Because alcohol may irritate the stomach lining, reducing or avoiding it while an ulcer heals can ease discomfort. Smoking matters more, because it can delay healing and increase the chance of recurrence. Quitting support can be part of ulcer care, but neither reducing alcohol nor stopping smoking replaces antibiotics or acid-reducing medicine when those treatments are needed.
Everyday stress and spicy meals do not directly cause typical peptic ulcer disease. Severe emotional or physical stress can worsen symptoms, however, and stress may make pain harder to manage. Regular meals, rest, breathing exercises, or another practical stress-management habit may improve comfort without treating the ulcer itself.
Preventing a recurrence depends on treating the underlying cause, not on staying perfectly calm or following a flawless diet. If symptoms continue after treatment or return later, ask your clinician whether Helicobacter pylori, medicine-related irritation, or another cause needs to be assessed.
Peptic Ulcer Treatment FAQs
These are the treatment questions people ask most, from healing time to whether antibiotics are always needed.
How Long Does a Stomach Ulcer Take to Heal?
Most stomach ulcers heal within about four weeks of proton pump inhibitor (PPI) treatment. PPIs lower stomach acid, giving the lining time to repair. Larger ulcers may need closer to eight weeks, and treatment can take longer when the cause continues or the ulcer resists treatment. After a full acid-suppressing course, an unhealed ulcer is called refractory and needs medical follow-up.
How Long Do You Need to Take a PPI for an Ulcer?
Most people take a proton pump inhibitor (PPI) for about four weeks to help an ulcer heal. Treatment may last longer for a large stomach ulcer or if you need to continue an NSAID or aspirin, since a daily PPI can help protect the stomach.
Treatment after a bleeding ulcer follows a separate plan based on the ulcer’s severity. Do not stop or extend PPI treatment without the prescriber’s guidance.
What Happens If an Ulcer Does Not Heal?
An ulcer that does not heal needs clinician review rather than more medication on your own. Stomach and upper small-intestine ulcers can persist when Helicobacter pylori (H. pylori) remains, an earlier test was falsely negative, treatment was not taken as prescribed, or NSAID exposure continues through ibuprofen, naproxen, or aspirin. Share your symptoms, current medicines, plans for stopping NSAIDs, and whether an endoscopy confirmed the ulcer. If common causes do not explain the delay, further testing may identify less common causes and guide treatment changes.
Can an Ulcer Heal Without Antibiotics?
Yes, an ulcer may heal without antibiotics when H. pylori is not the cause. Breath or stool tests can detect active infection, while blood tests may only show past exposure. Confirmed infection calls for antibiotics with acid suppression, usually for 14 days. For an NSAID-related ulcer, acid-reducing medicine and stopping or changing the NSAID matter more than antibiotics. A clinician may adjust ibuprofen, naproxen, or aspirin, or suggest acetaminophen. Never stop prescribed aspirin on your own.
