A peptic ulcer is a sore that forms in the lining of your stomach, small intestine, or esophagus. These sores develop when the protective layer of mucus that normally shields your digestive tract breaks down, allowing stomach acid to damage the tissue underneath. According to the National Institutes of Health, peptic ulcers affect approximately 1 in 10 Americans at some point in their lives, though the prevalence has decreased in recent decades due to better understanding of causes and treatment options.
Learn Your Traffic Ticket Payment Options →
The two main causes of peptic ulcers are infection with a bacteria called Helicobacter pylori (H. pylori) and regular use of nonsteroidal anti-inflammatory drugs (NSAIDs). H. pylori is responsible for roughly 60% of ulcer cases in the United States, while NSAIDs account for about 25% of cases. NSAIDs are common over-the-counter medications like ibuprofen and naproxen that people use for pain relief and inflammation. Other contributing factors include stress, certain foods, alcohol consumption, and smoking, though research shows these are less likely to be primary causes than previously believed.
Symptoms of peptic ulcers vary depending on the location and severity of the sore. Many people experience a burning stomach pain that typically occurs between meals or during the night. Other common symptoms include bloating, heartburn, nausea, loss of appetite, and dark or bloody stools. Some individuals have no symptoms at all and discover their ulcer only after complications develop. If you experience severe abdominal pain, vomiting blood, or black tarry stools, seek medical attention immediately, as these may indicate serious complications.
Understanding what causes your specific ulcer is important because treatment approaches differ based on the underlying reason. For example, if H. pylori is the culprit, you'll need antibiotics to eliminate the infection. If NSAIDs are responsible, your doctor may recommend stopping the medication or switching to a safer alternative. A healthcare provider can perform tests to determine the cause, which usually involves either a breath test, stool test, or endoscopy—a procedure where a thin tube with a camera examines your digestive tract.
Practical takeaway: Keep a record of your symptoms, including when they occur, what foods or activities seem to trigger them, and what makes them better or worse. This information helps your doctor narrow down the cause of your ulcer and choose the most effective treatment approach for your situation.
Several categories of medications are used to treat peptic ulcers, and the specific medications recommended depend on the underlying cause. Proton pump inhibitors (PPIs) are among the most commonly prescribed ulcer treatments. These medications work by reducing the amount of acid your stomach produces, giving the ulcer time to heal. Common PPIs include omeprazole, lansoprazole, and pantoprazole. Studies published in medical journals show that PPIs are effective in healing ulcers in 80-90% of patients within 4 to 8 weeks of treatment. They're available both as prescription and over-the-counter formulations.
Free Guide to Finding House Cleaning Services for Seniors →
H2 receptor blockers represent another class of acid-reducing medications. These drugs, including famotidine and ranitidine, work differently than PPIs but achieve a similar result by decreasing stomach acid production. While PPIs are generally considered more potent, H2 blockers can still be effective for treating ulcers, particularly milder cases. Many people use H2 blockers for maintenance therapy after the ulcer has healed to prevent recurrence.
If your ulcer is caused by H. pylori infection, antibiotics are essential. Typical treatment involves a combination of medications taken together for 10 to 14 days. A common approach, called triple therapy, combines two different antibiotics with either a PPI or H2 blocker. The Centers for Disease Control and Prevention notes that this combination therapy successfully eliminates H. pylori in about 85-95% of patients. If standard treatment fails, doctors may recommend quadruple therapy, which adds a bismuth compound to the regimen.
For NSAID-related ulcers, the primary recommendation is to stop taking the NSAID if possible. However, if you need to continue taking these medications for conditions like arthritis, your doctor may prescribe a PPI alongside the NSAID to reduce ulcer risk. Alternatively, your healthcare provider might recommend switching to acetaminophen or other pain management strategies that don't carry the same ulcer risk.
Antacids, while not a primary treatment for ulcers, may provide temporary relief from symptoms. These over-the-counter medications neutralize stomach acid but don't reduce acid production, so they work differently than PPIs or H2 blockers. Some people use antacids in combination with prescription medications for additional symptom relief throughout the day.
Practical takeaway: When starting ulcer medication, take it exactly as prescribed, even if your symptoms improve quickly. Most medications require several weeks of consistent use to fully heal the ulcer and prevent it from returning. Set phone reminders if you struggle to remember medications, especially with antibiotic combinations that have specific timing requirements.
While medications form the foundation of ulcer treatment, dietary changes and lifestyle modifications play an important supporting role in healing and prevention. For many years, doctors recommended bland diets for ulcer patients, but current research suggests that most foods don't directly cause ulcers in people taking appropriate medication. However, certain foods and beverages can trigger or worsen symptoms in some individuals, making it helpful to identify your personal triggers.
Get Your Free Router IP Address Guide →
Common foods that may irritate your stomach include spicy dishes, citrus fruits and juices, tomato-based products, chocolate, coffee, and alcohol. Fatty or fried foods can also cause discomfort in some people. Rather than eliminating entire food groups, experts recommend tracking which foods seem to worsen your symptoms and moderating your intake of those items. Some people find that eating smaller, more frequent meals works better than three large meals, as this approach reduces the amount of acid your stomach must produce at one time.
Smoking significantly increases ulcer risk and slows healing. If you smoke, quitting provides major benefits for ulcer recovery. Research shows that smokers take longer to heal from ulcers and have higher recurrence rates compared to non-smokers. Similarly, alcohol consumption can irritate the stomach lining and increase acid production, so limiting or eliminating alcohol during treatment is advisable.
Stress management, while not a direct cause of ulcers in most cases, may influence symptom severity. Some people find that stress-related habits like irregular eating or increased alcohol consumption indirectly affect their ulcer. Incorporating relaxation techniques such as deep breathing, meditation, or regular exercise may help some individuals manage both stress and ulcer symptoms. The American Gastroenterological Association suggests that maintaining regular sleep patterns and managing stress through healthy coping mechanisms supports overall digestive health.
If you take NSAIDs, taking them with food or milk can reduce stomach irritation. Taking NSAIDs with plenty of water and not lying down for at least 30 minutes after taking them also helps minimize irritation to the esophagus and stomach lining. If you must continue NSAID use, taking the lowest effective dose for the shortest necessary time reduces ulcer risk.
Practical takeaway: Keep a food and symptom diary for one to two weeks during ulcer treatment. Write down what you eat and drink, along with any symptoms that occur afterward. This personal record reveals your unique trigger foods, which may differ from general recommendations. You can then make informed choices about which foods to avoid or limit based on your actual experience rather than general guidelines.
While some over-the-counter products can provide symptom relief, it's important to understand what they do and don't accomplish. Antacids like calcium carbonate, magnesium hydroxide, and aluminum hydroxide neutralize stomach acid already present in your stomach, providing quick but temporary relief. These products work within minutes but their effects typically last only 1 to 3 hours. For occasional heartburn or mild discomfort, antacids may be sufficient, but they cannot heal an existing ulcer.
Get Your Free Guide to Creating a Backyard Retreat →
Over-the-counter H2 blockers such as famotidine and ranitidine are stronger than antacids because they reduce acid production rather than just neutralizing existing acid. These medications take longer
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.