Peptic Ulcer Guide: Causes, Symptoms, and Treatment
This guide explains what peptic ulcers are, common symptoms, underlying causes, diagnostic processes, treatment options, and practical self-care tips to help you manage the condition and support healing.
Peptic ulcers are open sores that develop on the inner lining of your stomach or upper small intestine. Most are caused by H. pylori bacterial infection or long-term use of NSAID pain relievers like ibuprofen. With proper treatment, most peptic ulcers heal completely within 4 to 8 weeks.
Overview
Peptic ulcers are open sores that develop on the inner lining of your stomach (called gastric ulcers) or the upper part of your small intestine (called duodenal ulcers). They form when stomach acid damages the protective mucus layer that lines these areas, and they are a very common, treatable digestive condition.
Signs & Symptoms
Many people with peptic ulcers have no symptoms at all, especially in the early stages. When symptoms do occur, they can vary depending on where the ulcer is located and how severe it is.
- Burning or gnawing stomach pain, often worse when your stomach is empty or at night
- Bloating and feeling overly full after eating small amounts of food
- Heartburn or indigestion
- Nausea or vomiting
- Unexplained weight loss
- Dark, tarry, or bloody stools (a sign of bleeding in the digestive tract)
- Vomiting blood or material that looks like coffee grounds
If you experience sudden, severe stomach pain, vomiting blood or coffee-ground-like material, or pass black/tarry stools, seek emergency medical care immediately. These can be signs of a bleeding or perforated ulcer, which are life-threatening complications.
Causes & Risk Factors
Most peptic ulcers are caused by two main factors: infection with the Helicobacter pylori (H. pylori) bacteria, or long-term use of nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen, naproxen, and aspirin. Other factors can increase your risk of developing an ulcer or make existing ulcers worse.
| Cause/Risk Factor | How It Contributes |
|---|---|
| H. pylori bacterial infection | The bacteria weaken the protective mucus lining of the stomach and small intestine, allowing stomach acid to damage the underlying tissue |
| Long-term NSAID use | NSAIDs reduce the production of protective mucus in the digestive tract, making the lining more vulnerable to stomach acid |
| Smoking | Increases stomach acid production and reduces the effectiveness of ulcer treatments |
| Excessive alcohol use | Irritates and erodes the stomach lining, and increases stomach acid production |
| Severe ongoing stress | Can increase stomach acid production and worsen existing ulcer symptoms |
Diagnosis
To diagnose a peptic ulcer, your doctor will start by asking about your medical history, symptoms, and any medications you take regularly. They may also recommend one or more of the following tests: an endoscopy (a thin, flexible tube with a camera inserted through your throat to view your digestive tract), a breath, blood, or stool test to check for H. pylori infection, or an upper GI series (barium swallow) where you drink a contrast liquid and get X-rays of your digestive tract.
Treatment & Management
Treatment for peptic ulcers depends on the underlying cause. If your ulcer is caused by H. pylori, your doctor will prescribe a combination of antibiotics to eliminate the infection, plus medications to reduce stomach acid and protect the digestive tract lining. If your ulcer is caused by NSAID use, you will be advised to stop taking the NSAID, and may be given acid-reducing medications and protective drugs to support healing. Antacids can help relieve mild pain, but they do not heal the ulcer itself.
- Antibiotic therapy to eliminate H. pylori infection (if present)
- Proton pump inhibitors (PPIs) or H2 blockers to reduce stomach acid production
- Cytoprotective medications to protect the stomach and small intestine lining
- Stopping use of NSAID pain relievers, or switching to safer alternatives (like acetaminophen) if needed
- Rarely, surgery for severe ulcers that do not respond to medication or cause life-threatening complications
Living With It
With proper treatment and lifestyle adjustments, most people with peptic ulcers heal completely and can prevent recurrence. Key steps include avoiding trigger foods that irritate your digestive tract, not smoking, limiting alcohol intake, managing stress, eating smaller meals, and avoiding eating 2–3 hours before bedtime to reduce nighttime acid production.
Medical Review Team
WellAlly Medical Editorial Team
This content is not a replacement for professional medical advice.
Recovery & management timeline
1–7
Initial Symptom Onset
Track your symptoms, note when pain occurs (e.g. on an empty stomach, after eating), avoid NSAIDs and known irritating foods, and schedule a doctor’s appointment if symptoms last more than a few days.
7–14
Diagnosis & Treatment Start
Complete any recommended diagnostic tests (endoscopy, H. pylori breath test), start prescribed medications exactly as directed, and avoid alcohol and smoking to support healing.
14–42
Active Healing
Continue taking all medications as prescribed, even if symptoms improve, follow dietary changes to reduce acid irritation, and attend follow-up appointments to confirm the ulcer is healing.
43+
Long-Term Prevention
Avoid long-term NSAID use if possible, use protective medications if you need to take NSAIDs regularly, maintain healthy lifestyle habits, and report any returning symptoms to your doctor promptly.
Self-care steps
1Adjust your diet to reduce irritation
Avoid foods and drinks that trigger your symptoms, such as spicy foods, citrus fruits, tomatoes, caffeine, and carbonated drinks. Eat smaller, more frequent meals instead of large meals to reduce excess stomach acid production.
2Quit smoking and limit alcohol
Smoking increases stomach acid production and slows ulcer healing, while alcohol irritates the stomach lining. Quitting smoking and cutting out alcohol will significantly improve your chances of full healing and prevent recurrence.
3Manage stress effectively
Chronic stress can increase stomach acid and worsen ulcer symptoms. Try stress-reducing techniques like deep breathing, meditation, gentle daily exercise, or talking to a mental health professional if stress feels unmanageable.
4Use pain relievers safely
If you need over-the-counter pain relief, opt for acetaminophen (Tylenol) instead of NSAIDs like ibuprofen or aspirin. If you must take NSAIDs, take them with food and a protective medication as directed by your doctor to reduce risk to your digestive tract.
5Track your symptoms and triggers
Keep a simple log of when your pain occurs, what you ate, and any medications you took. This information will help you and your doctor identify triggers and adjust your treatment plan as needed.
When to seek medical help
Seek emergency medical care immediately if you experience any of the following: sudden, severe abdominal pain; vomiting blood or material that looks like coffee grounds; black, tarry, or bloody stools; unexplained weight loss; or persistent vomiting that prevents you from keeping fluids down. These symptoms may indicate a bleeding ulcer, perforation (a hole in the stomach or small intestine), or other life-threatening complication that requires urgent treatment.
Frequently asked questions
Are peptic ulcers contagious?
Can stress alone cause a peptic ulcer?
How long does it take for a peptic ulcer to heal?
Can I take antacids for my ulcer pain?
Sources
- 1
- 2
- 3NHS - Peptic UlcerSource
- 4
Click any link to access the full source. PubMed Central (PMC) links provide free full-text access.
This information is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment.
This content is for general informational and educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the guidance of a qualified healthcare provider with any questions you have about a medical condition, and never disregard professional medical advice or delay seeking it because of something you read here.
If you think you may have a medical emergency, call your local emergency number or go to the nearest emergency department immediately.
Medically reviewed by WellAlly Medical Editorial Team · Last reviewed October 9, 2026. · Read our editorial policy