← Back to blog
6 min read

Stomach ulcer: symptoms, causes and treatment in Spain

Dr. Pedro Yelamo Vera
Medical review

Medically reviewed by Dr. Pedro Yelamo Vera, MD

Licensed in Spain · Colegiado No. 484814280 · Medical College of BizkaiaLast reviewed: 18 November 2026

5★ · 227 patient reviews

A kind, middle-aged male physician in a white coat smiles reassuringly in a modern consultation room.
Need a doctor today?

See Dr. Yelamo by video, in English or Spanish

€50 · 15 minutes · same-day appointments. Prescriptions only if clinically indicated.

See available times

A stomach ulcer is an open sore in the lining of the stomach. The main symptom is a burning or gnawing pain in the upper tummy. Most stomach ulcers are caused by Helicobacter pylori infection or by anti-inflammatory painkillers, and most heal within one to two months with treatment. Vomiting blood, black stools or sudden severe pain are emergencies.

This guide, by Dr. Pedro Yelamo Vera, a GP licensed in Spain, explains the symptoms, the tests and the treatment, and how care works in Spain.

In short
  • A stomach ulcer is a sore in the stomach lining; a duodenal ulcer is the same problem just beyond the stomach.
  • The usual symptom is burning pain in the upper tummy, often with indigestion or feeling sick.
  • The two main causes are H. pylori infection and regular use of anti-inflammatory painkillers such as ibuprofen or aspirin.
  • Treatment is an acid-reducing medicine, plus antibiotics if H. pylori is found.
  • Vomiting blood, black tar-like stools or sudden severe tummy pain: call 112.

What is a stomach ulcer?

A stomach ulcer, also called a gastric ulcer, is a sore where stomach acid has damaged the lining. The same kind of sore in the first part of the small bowel is a duodenal ulcer. Doctors call both of them peptic ulcers. They cause the same symptoms and are treated the same way.

An ulcer is not the same as gastritis, which is inflammation of the lining without a deep sore.

What are the symptoms of a stomach ulcer?

  • Burning or gnawing pain in the upper tummy, between the navel and the breastbone.
  • Pain that may be worse at night or on an empty stomach, and that eases for a while with an antacid.
  • Indigestion, heartburn, bloating or burping.
  • Feeling sick, loss of appetite or weight loss.

Some ulcers cause no pain and are found only when they bleed. This is more common in older people and in people who take anti-inflammatory painkillers.

What causes a stomach ulcer?

  • Helicobacter pylori (H. pylori): a common stomach bacterium. Many people carry it with no symptoms, but it can weaken the lining.
  • Anti-inflammatory painkillers: ibuprofen, naproxen, diclofenac or aspirin, mainly when taken often or for a long time.

Spicy food and stress are not thought to cause ulcers, although they can make the pain worse. Smoking raises the risk and slows healing.

How is a stomach ulcer diagnosed in Spain?

A doctor starts with your symptoms and the list of medicines you take. The usual tests are:

  • A test for H. pylori: a breath test (test del aliento) or a stool test. Some stomach medicines have to be stopped before the test, so ask first.
  • Gastroscopy (gastroscopia): a thin camera passed through the mouth to look at the stomach lining. It is done in person by a digestive specialist and is the test that confirms an ulcer.
  • A blood test: to look for anaemia if slow bleeding is suspected.

How is a stomach ulcer treated?

Treatment depends on the cause:

  • An acid-reducing medicine (a proton pump inhibitor, such as omeprazole) for several weeks lets the ulcer heal.
  • If H. pylori is found, you take a course of antibiotics together with the acid-reducing medicine. A repeat test some weeks later checks that the infection has gone.
  • If a painkiller is the cause, your doctor reviews it and may change it or add a medicine to protect the stomach.

Antibiotics are prescription-only in Spain. Take the full course as prescribed, even if the pain goes early.

What can I do at home while it heals?

  • Avoid anti-inflammatory painkillers unless your doctor says otherwise. Paracetamol is often a suitable alternative: ask your doctor or pharmacist.
  • Stop smoking and cut down on alcohol.
  • Eat regular meals and leave out the foods that set off your pain. No special diet is needed.
  • Antacids from the pharmacy can ease the pain for a short time, but they do not heal an ulcer.

When is a stomach ulcer an emergency?

Call 112 or go to a hospital emergency department (urgencias) if you:

  • vomit blood, or vomit something that looks like coffee grounds;
  • pass black, sticky, tar-like stools;
  • have sudden, sharp tummy pain that keeps getting worse;
  • feel faint, dizzy or short of breath with any of these.

These can be signs of bleeding or of a hole in the stomach wall.

How can an online GP help?

By video, Dr. Pedro Yelamo Vera can go through your symptoms and medicines, tell you which test you need and where it is done in Spain, and explain a gastroscopy or H. pylori report in English or Spanish. See the pages on Helicobacter pylori and heartburn and indigestion, or book a video visit with an online doctor in Spain. A gastroscopy and any emergency care are done in person.

This service is for urgent, non-emergency care. In an emergency, call 112. Any treatment or prescription is issued solely at the doctor's discretion, where clinically appropriate, following a genuine evaluation; neither issuance nor acceptance is guaranteed.

This article is general information and does not replace an individual medical assessment. Written by Dr. Pedro Yelamo Vera, GP licensed in Spain (Colegiado No. 484814280).

Frequently asked questions

How do I know if I have a stomach ulcer or just indigestion?

The symptoms overlap. Pain that keeps coming back for weeks, wakes you at night or needs antacids most days should be checked. Only tests can confirm an ulcer.

Can a stomach ulcer heal on its own?

Some do, but untreated ulcers often come back and can bleed. Treatment heals most ulcers within one to two months and deals with the cause.

Does stress cause stomach ulcers?

Stress and spicy food are not thought to cause ulcers, but they can make the pain worse. The main causes are H. pylori and anti-inflammatory painkillers.

Can I take ibuprofen with a stomach ulcer?

Not unless your doctor tells you to. Ibuprofen and similar painkillers can cause ulcers and make them bleed. Ask a doctor or pharmacist about a safer option.

Is H. pylori contagious?

It passes from person to person, most often in childhood and within families. Many carriers never get an ulcer, and treatment clears the infection in most people.

Can I buy stomach ulcer medicine without a prescription in Spain?

Antacids and small packs of some acid-reducing medicines are sold at a farmacia for short-term heartburn. Antibiotics for H. pylori need a prescription, and pain that keeps returning needs a diagnosis first.

Can an online doctor help with a stomach ulcer?

Yes, for symptoms that are not an emergency. A GP can assess you by video, advise on tests and explain your results. Gastroscopy is done in person.

You may also like

Sources

This content is written and reviewed by a licensed physician with reference to the following sources.

  1. NHS: stomach ulcer
  2. MedlinePlus: peptic ulcer
  3. MedlinePlus: peptic ulcer health topic
Dr. Pedro Yelamo Vera

Dr. Pedro Yelamo Vera

MD · General Practitioner · Telemedicine Expert · Licence No. 484814280

Every consultation takes place by secure video call at a time you choose, with no waiting rooms and no rushed appointments. From routine health concerns and medical certificates to second opinions on tests received abroad, my goal is to make quality healthcare simple, transparent, and genuinely accessible. You always know exactly what is included before you book, and you leave each consultation with a clear plan and the confidence that you have been properly heard.

About the doctor →
Urgent medical care by video consultation with Dr. Pedro Yelamo VeraEvery day · 07:30–20:30

One named doctor, from first call to follow-up

A secure 15-minute video consultation with Dr. Pedro Yelamo Vera for €50.

See available times

Related Guides

Your privacy, your choice

Essential cookies keep this site working. With your permission we also use analytics and advertising cookies. Change your choice any time in “Cookie settings”. Cookie & Privacy Policy