Most peptic ulcers heal within a few weeks once you remove the cause and start the right treatment. The two most common causes are a bacterial infection called H. pylori and regular use of pain relievers like ibuprofen or aspirin. Figuring out which one is driving your ulcer determines the treatment path, and getting it wrong means the ulcer is likely to come back.
Find the Cause First
Before any treatment can work, you need to know why the ulcer formed. Roughly two-thirds of peptic ulcers worldwide are caused by H. pylori, a bacterium that burrows into the stomach lining and weakens its protective mucus layer. The rest are mostly caused by nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen, naproxen, or aspirin, which directly irritate the stomach lining and reduce its ability to repair itself. Occasionally, ulcers have rarer causes like Zollinger-Ellison syndrome, but that’s uncommon.
Your doctor will likely test for H. pylori using one of two noninvasive methods. A urea breath test is the most accurate, with about 99% sensitivity and 99.5% specificity. A stool antigen test is another option, though slightly less precise. If you’ve been taking PPIs (acid-reducing medications), you’ll usually need to stop them for a couple of weeks before testing, since they can cause a false negative.
Treating an H. pylori Ulcer
If H. pylori is the culprit, the ulcer won’t stay healed until the bacteria are eradicated. This requires a combination of antibiotics and an acid-suppressing medication, taken together for 14 days. The current preferred approach uses four drugs at once: an acid reducer taken twice daily, plus tetracycline four times daily, metronidazole three or four times daily, and a bismuth compound (the active ingredient in Pepto-Bismol) four times daily. This regimen has a high success rate, though the pill burden is heavy and side effects like nausea and metallic taste are common.
Older three-drug regimens that relied on clarithromycin have fallen out of favor. The American College of Gastroenterology now recommends against using clarithromycin-based therapy unless lab testing has confirmed the bacteria are sensitive to it, because resistance rates have climbed too high in many regions. If the standard four-drug approach fails or isn’t tolerated, alternatives exist, including newer combinations that use different antibiotics or a stronger class of acid suppressor.
After finishing antibiotics, your doctor will typically retest to confirm the bacteria are gone. If they’re not, a second round with different antibiotics is necessary.
Treating an NSAID-Related Ulcer
If your ulcer was caused by ibuprofen, naproxen, or another NSAID, the most important step is stopping the drug. Your doctor will then prescribe a proton pump inhibitor (PPI), which dramatically reduces stomach acid production and gives the lining time to rebuild. PPIs heal NSAID-related ulcers faster than older acid reducers or other protective agents.
The situation gets more complicated if you take low-dose aspirin for heart protection. Stopping aspirin raises cardiovascular risk, so guidelines generally recommend keeping it going or restarting it within three to five days, while adding a PPI to protect the stomach. Your doctor should also test for H. pylori even if NSAIDs seem like the obvious cause, because having both risk factors at once makes ulcers harder to heal and more likely to recur.
How Long Healing Takes
Ulcers don’t disappear overnight, but they shrink faster than most people expect. Research on ulcer healing rates shows that both gastric and duodenal ulcers follow an exponential healing curve, with a “half-life” of roughly 1.7 to 1.9 weeks. That means an ulcer typically shrinks by about half every 12 to 13 days. After three weeks of proper treatment, ulcers are reduced by around 70 to 83% of their original size. After six weeks, most are substantially healed.
Duodenal ulcers (in the first part of the small intestine) generally heal in 4 to 8 weeks on a PPI. Gastric ulcers (in the stomach itself) can take 8 to 12 weeks because the stomach lining is under more constant acid exposure. Your doctor may repeat an endoscopy for gastric ulcers to confirm healing and rule out anything more serious, since stomach ulcers occasionally turn out to be cancerous.
Foods and Habits That Help or Hurt
Diet alone won’t cure an ulcer, but certain foods and substances can slow healing or make symptoms worse. Large amounts of alcohol, caffeine, carbonated drinks, chocolate, and spicy peppers all increase acid secretion. You don’t necessarily need to eliminate these permanently, but cutting back while the ulcer is healing reduces irritation and discomfort. Smoking also delays ulcer healing and increases the risk of recurrence.
There’s no specific “ulcer diet” with strong clinical evidence behind it, but eating smaller, more frequent meals can help by preventing the stomach from producing large surges of acid at once. Avoiding food within two to three hours of bedtime also reduces overnight acid exposure.
Do Natural Remedies Work?
Several natural products show some activity against H. pylori in laboratory and clinical studies, though none are strong enough to replace antibiotics. Honey has demonstrated antibacterial effects against H. pylori, and certain probiotic strains, particularly Lactobacillus and Bifidobacterium, can improve antibiotic eradication rates while reducing treatment side effects like diarrhea and bloating. Taking a probiotic alongside your prescribed antibiotics is a reasonable add-on, not a substitute.
Deglycyrrhizinated licorice (DGL) is a popular supplement for stomach issues, and while it may offer some soothing effect on the stomach lining, the evidence for it accelerating ulcer healing is limited. Cabbage juice, aloe vera, and other folk remedies appear in online recommendations, but none have the kind of rigorous clinical data that would make them a reliable treatment. The risk of relying on natural remedies alone is that the ulcer persists, grows, or leads to a serious complication like bleeding or perforation.
Warning Signs of a Serious Complication
Most ulcers are painful but manageable. A small percentage, however, develop complications that require emergency care. The two most dangerous are internal bleeding and perforation, where the ulcer erodes completely through the stomach or intestinal wall. According to the National Institute of Diabetes and Digestive and Kidney Diseases, you should seek immediate medical attention if you notice:
- 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 go away
- Dizziness, fainting, or a rapid pulse, which can signal significant blood loss
These symptoms can develop even if your ulcer previously seemed mild. A perforated ulcer is a surgical emergency. Internal bleeding from an ulcer can be slow and chronic (causing gradual anemia and fatigue) or sudden and severe. Either way, it needs prompt treatment.
Preventing Ulcers From Coming Back
Recurrence is common if the original cause isn’t fully addressed. For H. pylori ulcers, confirming eradication with a follow-up breath or stool test is essential. Reinfection is possible but relatively uncommon in developed countries, occurring in roughly 1 to 3% of treated patients per year.
If you need to keep taking NSAIDs or aspirin long-term, your doctor will likely recommend staying on a daily PPI to protect the stomach lining. Switching from a traditional NSAID to a COX-2 selective anti-inflammatory can also reduce ulcer risk, though it doesn’t eliminate it entirely. For occasional pain relief, acetaminophen (Tylenol) is a safer alternative since it doesn’t irritate the stomach lining.
Avoiding smoking, limiting alcohol, and using the lowest effective dose of any NSAID for the shortest time possible all reduce the chance of a new ulcer forming.

