Ubie guide · Digestive health

Peptic Ulcers.

Everything you need to know.

Burning pain high in the belly can be easy to brush off as indigestion, but a peptic ulcer is a real sore in the stomach or the first part of the small intestine. The main question is not just whether the pain is annoying. It is whether a medicine, H. pylori infection, or bleeding is involved. That difference changes what tests you need and how quickly you need care.

Person beside a simplified stool illustration for Peptic Ulcers; conceptual, not diagnostic.

01 · Overview

The short version

Pain can come and go

Ulcer pain often feels like burning or a dull ache in the upper abdomen. It may show up between meals or at night, and it can ease for a short time after food or antacids.

Two causes matter most

The most common causes are H. pylori infection and regular NSAID use, such as ibuprofen, naproxen, or aspirin. Stress and spicy foods can make symptoms feel worse, but they do not cause ulcers by themselves.

Bleeding may be the first clue

A new black, tarry stool or vomiting blood needs urgent evaluation. Some bleeding is not obvious right away, so weakness, dizziness, or pale skin with ulcer symptoms also matters.

Treatment depends on the cause

If H. pylori is found, treatment usually includes antibiotics plus acid-reducing medicine. If NSAIDs are involved, the plan often includes changing the pain medicine and protecting the stomach.

02 · Care guidance

When to get help

Emergency help

  • Call 911 or go to the emergency department now for vomiting blood, new black tarry stool, sudden severe belly pain, chest pain, trouble breathing, or signs of shock such as confusion, fainting, or passing out.

Get advice promptly

  • Contact a clinician promptly if you have burning upper belly pain that lasts more than a few days, pain that keeps coming back, unexplained nausea or weight loss, or symptoms that are worse after regular ibuprofen, naproxen, aspirin, or similar medicines.
  • Get medical advice soon if you have a past ulcer, need NSAIDs often for arthritis or another chronic condition, or have ongoing symptoms that could fit an H. pylori-related ulcer.

If symptoms are mild and there are no warning signs, make a non-urgent appointment to review your medicines, possible H. pylori testing, and whether you need treatment or follow-up after therapy.

03 · Peptic Ulcers

What a peptic ulcer actually is

A peptic ulcer is a sore in the stomach or duodenum, not just everyday stomach upset.

A peptic ulcer is an open sore in the lining of the stomach or the duodenum, which is the first part of the small intestine. That lining is supposed to protect tissue from stomach acid. When it gets damaged, the sore can cause pain, bleeding, or both.

People often use the word ulcer loosely, but this diagnosis matters because it can usually be linked to a specific cause. H. pylori infection and NSAID medicines are the main ones. Knowing the cause helps decide whether you need antibiotics, acid-reducing medicine, a change in pain medicine, or a closer look inside the stomach.

  • The duodenum is part of the small intestine right after the stomach.
  • An ulcer can worsen if the cause is not treated.
  • Symptoms alone cannot confirm the diagnosis.

[S1] [S3]

04 · Peptic Ulcers

How ulcer pain tends to show up

Ulcer symptoms often follow a pattern, but the pattern is not specific enough to diagnose on its own.

The most common symptom is a burning stomach pain that starts between meals or during the night. It may last minutes to hours and may come and go over several days or weeks. Some people notice that food or antacids briefly ease the pain.

Other symptoms can include bloating, nausea, and weight loss. Some people have few symptoms until the ulcer bleeds, which is one reason persistent upper belly pain should not be ignored.

Ulcer pain can overlap with reflux, gastritis, gallbladder problems, and even heart-related pain. That is why the timing, location, and triggers matter, but they do not replace medical testing when symptoms keep returning.

  • Pain between meals or at night can fit an ulcer pattern.
  • Brief relief from food or antacids is a clue, not proof.
  • Nausea or bloating can happen, but they are not unique to ulcers.

[S1] [S2]

05 · Peptic Ulcers

The two main causes doctors look for first

H. pylori and NSAIDs account for most peptic ulcers, so those are the first things to review.

H. pylori is a stomach bacterium that can break down the inner protective coating and lead to inflammation, gastritis, and ulcers. Many people do not notice any symptoms from the infection until an ulcer develops.

NSAIDs such as ibuprofen, naproxen, and aspirin can also damage the stomach lining, especially when used often or for a long time. This can happen even with over-the-counter medicine. Alcohol and smoking can make healing harder, and spicy foods or stress can make symptoms feel worse without being the root cause.

If you take aspirin for a prescribed reason, do not change it on your own. The safer question is whether you need a different pain plan, stomach protection, or testing for an ulcer.

  • Ask about H. pylori if symptoms keep coming back.
  • Check all over-the-counter labels for NSAIDs.
  • Smoking and alcohol can slow healing.

[S1] [S2]

06 · Peptic Ulcers

How ulcers are checked and why results matter

Testing can look for H. pylori and, when needed, look directly at the stomach and duodenum.

When symptoms suggest a peptic ulcer, a clinician may order blood, breath, or stool testing for H. pylori. These tests matter because symptoms alone cannot tell whether the problem is an ulcer, another stomach condition, or something else.

In some cases, an upper endoscopy is used to look inside the stomach and duodenum. That may be more likely when symptoms are persistent, when warning signs are present, or when there is concern about bleeding. A clinician may also take a biopsy during endoscopy.

Testing again after H. pylori treatment is important. The infection can remain even if symptoms improve, and the ulcer can return if the cause is not cleared.

  • Breath and stool tests are common for H. pylori.
  • Endoscopy can check for an ulcer and bleeding.
  • Follow-up testing can confirm that H. pylori is gone.

[S1] [S2]

07 · Peptic Ulcers

What treatment usually involves

Treatment is aimed at the cause, not just short-term pain relief.

If H. pylori is the cause, treatment usually combines antibiotics with a medicine that lowers stomach acid. If the infection is not cleared, the ulcer can come back, so follow-up testing is important.

If NSAIDs are part of the problem, the plan may involve stopping the trigger if possible, switching to a safer option, or adding stomach protection under medical guidance. The key point is that antacids alone do not heal the ulcer.

People sometimes feel better before the ulcer has fully healed. That is why finishing the plan and getting follow-up matters, even if the pain settles down.

  • Antacids may ease symptoms but do not cure the ulcer.
  • H. pylori treatment usually includes antibiotics plus acid reduction.
  • Follow-up testing may be needed after therapy.

[S1] [S2]

08 · Peptic Ulcers

Medicine choices that can help or hurt healing

The first safety step is checking every pain or cold product for NSAIDs.

Ibuprofen, naproxen, and aspirin can all irritate the stomach lining and raise the risk of an ulcer or bleeding. Many people take more than one product without realizing the same ingredient is repeated. That is why labels matter.

Do not stop a prescribed medicine on your own, especially aspirin that was recommended for heart disease or another important condition. Instead, ask whether your symptoms could be linked to the medicine and whether there is a safer option.

A pharmacist or clinician can also help spot combination products that contain NSAIDs and can review supplements if you use them. This is useful because the goal is not just pain relief; it is avoiding another round of bleeding or irritation.

  • Read labels for ibuprofen, naproxen, aspirin, and combination products.
  • Bring a full medicine list to the appointment.
  • Ask before changing prescribed heart or pain medicines.

[S1] [S2]

09 · FAQ

Questions people ask

What does black stool mean with ulcer symptoms?

New black, tarry stool can mean bleeding in the upper digestive tract, including from an ulcer. Do not watch it at home if it is new. Seek urgent medical care right away, especially if you also feel weak, dizzy, short of breath, or have belly pain.

Can stress cause a peptic ulcer?

Stress can make stomach symptoms feel worse, but it is not a main cause of peptic ulcers. The biggest causes are H. pylori infection and NSAID medicines. If stress is making symptoms more noticeable, that is worth mentioning, but it should not replace ulcer testing when symptoms persist.

Do spicy foods or acidic drinks cause ulcers?

They do not usually cause the ulcer itself. Some people find that spicy foods, coffee, or acidic drinks make an existing ulcer hurt more. Avoiding a food that clearly worsens your symptoms may help comfort, but it does not treat the underlying cause.

What is H. pylori and why does it matter?

H. pylori is a stomach bacterium and the main cause of peptic ulcers. It can also cause gastritis and is linked with stomach cancer. Because many people have no symptoms from it, testing matters when an ulcer is suspected, and treatment usually includes antibiotics plus acid-reducing medicine.

When should I call a doctor about possible ulcer symptoms?

Call soon if burning upper abdominal pain keeps coming back, lasts for days, wakes you at night, or comes with nausea, weight loss, black stools, or frequent NSAID use. Get emergency care for vomiting blood, fainting, severe weakness, sudden severe pain, chest pain, or trouble breathing.

10 · References

References and supporting evidence

These sources support the points identified below. Source checking is not clinical approval.

  1. S1: Peptic UlcerMedlinePlus / U.S. National Library of Medicine

    Explains the basic definition and location of a peptic ulcer, along with the article's distinction between stomach and duodenal ulcers.

  2. S2: Helicobacter pylori InfectionsMedlinePlus / U.S. National Library of Medicine

    Explains that H. pylori is a major cause of peptic ulcers and can also be associated with gastritis, supporting the cause section and the need to test when ulcer symptoms are present.

  3. S3: Small Intestine DisordersMedlinePlus / U.S. National Library of Medicine

    Explains that the small intestine includes the duodenum as part of the digestive tract, which supports identifying the duodenum as the first part of the small intestine.

General information, not a diagnosis. This guide is not a substitute for care from a qualified healthcare professional. For an emergency, call 911 in the US or your local emergency number. Illustrations are conceptual and are not diagnostic images.

Still wondering what’s going on?

Use Ubie’s symptom checker to explore possible causes and the kind of care to consider. It cannot diagnose a condition or replace urgent care.

Start symptom check →