Healthdirect Free Australian health advice you can count on.

Medical problem? Call 1800 022 222. If you need urgent medical help, call triple zero immediately

healthdirect Australia is a free service where you can talk to a nurse or doctor who can help you know what to do.

beginning of content

Stomach ulcers

4-minute read

Key facts

  • A stomach ulcer is an open sore in the lining of your stomach.
  • Stomach ulcers are usually caused by an infection from the bacteria helicobacter pylori or from taking non-steroidal anti-inflammatory medicines.
  • Stomach ulcers are usually treated with medicines to reduce the amount of acid in your stomach — your doctor will prescribe these with or without antibiotics.
  • The complications of stomach ulcers can be life-threatening and include bleeding in your stomach.

What is a stomach ulcer?

Stomach ulcers are open, inflamed sores in the lining of your stomach. They are also known as gastric ulcers. Ulcers can also occur in the upper part of the small intestine — these are known as duodenal ulcers. Together, stomach ulcers and duodenal ulcers are known as peptic ulcers.

What causes stomach ulcers?

The most common causes of stomach ulcers are:

What are the symptoms of a stomach ulcer?

The most common symptom is pain in the upper abdomen (tummy area) just below the breastbone (sternum). It usually comes and goes. It may be worse before meals and get better after eating or taking antacids. Sometimes, it will get worse after eating. The pain may wake you from sleep.

Other less common symptoms include:

  • bloating
  • feeling sick
  • feeling very full after eating
  • retching

When should I see my doctor?

Seek medical attention immediately if you experience:

  • a sudden, severe pain in the belly
  • bloody or black bowel motions (poo)
  • vomit that looks like coffee grounds with red blood in it
  • light-headedness
  • nausea or changes to your appetite
  • unexplained weight loss

How are stomach ulcers diagnosed?

Stomach ulcers are usually diagnosed by endoscopy — a flexible tube with a tiny camera that is passed into the mouth and down to the stomach. This procedure allows your doctor to see your stomach and check if there are any ulcers. It is usually done under general anaesthetic.

If you have an ulcer, you may be tested for helicobacter pylori (H. pylori) infection. This can be done with a breath test, a blood test, a stool test or a via a biopsy sample collected from the stomach lining during an endoscopy.

How are stomach ulcers treated?

If you have a stomach ulcer, your doctor may prescribe a combination of:

  • antibiotic medicines to remove the H. pyloribacteria if it is present
  • medicines that reduce the amount of acid the stomach produces, known as proton pump inhibitors (PPIs)

You will only need surgery if you have severe bleeding or a perforation (hole) in your stomach or small intestine.

To help manage symptoms, you can also:

Can stomach ulcers be prevented?

If you have a helicobacter pylori infection, your doctor will prescribe antibiotics to treat the infection and prevent you from getting another ulcer. If H. pylori is found before you develop an ulcer, treatment can stop you from getting an ulcer in the first place.

You can prevent stomach ulcers caused by NSAID medicines by taking the lowest effective dose of NSAIDs and taking them for the shortest possible amount of time. Your doctor may recommend also taking a medicine that lowers stomach acid while you take NSAIDs.

Complications of stomach ulcers

There are 2 main complications of stomach ulcers — these can both be emergencies:

  • Bleeding from the ulcer — This might be a slow trickle or a significant, life-threatening bleed.
  • Perforation — The ulcer may go all the way through the wall of the stomach causing a hole,so food and acid leak into the abdominal cavity.

Resources and support

Visit the Gastroenterological Society of Australia for:

Learn more here about the development and quality assurance of healthdirect content.

Last reviewed: October 2023


Back To Top

Need more information?

These trusted information partners have more on this topic.

Top results

Peptic ulcers: diagnosis and tests - myDr.com.au

Tests that help diagnose a peptic ulcer include gastroscopy and Helicobacter pylori tests. The best test depends on your age and symptoms. 

Read more on MyDoctor website

Helicobacter pylori | Pathology Tests Explained

These tests are looking for evidence of an infection by a bacterium, known as Helicobacter pylori. This bacterium is now known to be a major cause of peptic

Read more on Pathology Tests Explained website

Peptic ulcers: what causes them? - myDr.com.au

Most peptic ulcers are caused by either infection with a bacterium called Helicobacter pylori or regular use of nonsteroidal anti-inflammatory drugs (NSAIDS), including aspirin.

Read more on MyDoctor website

Peptic ulcers: treatment - myDr.com.au

Treatment for peptic ulcers depends on the cause, and may include medicines to reduce stomach acid, antibiotics, and lifestyle changes. Treatment can heal peptic ulcers and stop them from coming back

Read more on MyDoctor website

Peptic ulcer | Health and wellbeing | Queensland Government

The term 'peptic ulcer' refers to those that occur in either the stomach or the first part of the small intestine that leads out of the stomach, called the duodenum.

Read more on Queensland Health website

Peptic ulcers - myDr.com.au

An ulcer is an area of damage to the lining of the stomach or upper part of the intestine.

Read more on MyDoctor website

Gastrin | Pathology Tests Explained

This test measures the amount of gastrin in the blood. Gastrin is a hormone that regulates the production of acid in the stomach. It is produced by special c

Read more on Pathology Tests Explained website

Helicobacter pylori test: simple test for stomach germ - myDr.com.au

Helicobacter pylori infection of the stomach can be diagnosed using several different tests, including a breath test.

Read more on MyDoctor website

Stomach ulcer - Better Health Channel

Most stomach ulcers are caused by infection or medication, not stress or poor diet.

Read more on Better Health Channel website

Gastritis - Better Health Channel

Gastritis may be caused by many factors including infection, alcohol, particular medications and some allergic and immune conditions.

Read more on Better Health Channel website

Healthdirect 24hr 7 days a week hotline

24 hour health advice you can count on

1800 022 222

Government Accredited with over 140 information partners

We are a government-funded service, providing quality, approved health information and advice

Australian Government, health department logo ACT Government logo New South Wales government, health department logo Northen Territory Government logo Queensland Government logo Government of South Australia, health department logo Tasmanian government logo Victorian government logo Government of Western Australia, health department logo

Healthdirect Australia acknowledges the Traditional Owners of Country throughout Australia and their continuing connection to land, sea and community. We pay our respects to the Traditional Owners and to Elders both past and present.