When the ulcer is in the stomach it might also be called a gastric ulcer.

Ulcers in the first part of the small intestine (duodenum) may be called a duodenal ulcer.

A class of lipids made by the body calledprostaglandinshave an effect on pain receptors.

An illustration with information about NSAIDs and peptic ulcer risk

Illustration by Ellen Lindner for Verywell Health

NSAIDs work to reduce pain by blocking the enzymes that are involved in the production of certain prostaglandins.

The suppression of the body’s natural defenses against gastric acids can lead to inflammation in the stomach lining.

The pain can range in severity, with some experiencing mild discomfort and others having severe pain.

It could go on for anywhere from a few minutes to a few hours.

Blood coming from one or more peptic ulcers could also be visible in vomit.

Call your healthcare provider right away if you notice blood in your stool or vomit.

This can be a sign of excessive bleeding or other serious problems.

Because it is the most common cause of peptic ulcers, infection withH.

pyloriis normally ruled out through the use of a breath test, blood test, or stool test.

Tests may be done to look for ulcers in the inside of the upper digestive tract.

However, some people are more susceptible to developing peptic ulcer disease than others.

Treatment

NSAID-induced ulcers usually heal once the NSAID is stopped.

Treatment may be recommended to speed up the healing process.

In other cases, surgery may be needed.

Medications

Treating ulcers with any over-the-counter medication should always be based on the advice of medical providers.

A class of medications calledCOX-inhibitorsmight be used to control pain for some people.

Fashner J, Gitu AC.Diagnosis and Treatment of Peptic Ulcer Disease and H. pylori Infection.Am Fam Physician.

2015 Feb 15;91(4):236-42.

National Institute of Diabetes and Digestive and Kidney Diseases.Peptic ulcers (stomach ulcers).

2009;104(3):728-738.

2023;15(8):e44341.

Published 2023 Aug 29. doi:10.7759/cureus.44341

Healthlink BC.Bismuth Subsalicylate - Oral.

2015;13(1):55. doi:10.1186/s12916-015-0285-8

Lee CW, Sarosi GA.Emergency ulcer surgery.Surgical Clinics of North America.

2011;91(5):1001-1013. doi:10.1016/j.suc.2011.06.008

Cleveland Clinic.Can stress give you an ulcer?

Drina M.Peptic ulcer disease and non-steroidal anti-inflammatory drugs.Aust Prescr.

National Institutes of Health.