Skip to main content

Medicine safety

NSAIDs, stomach ulcers and gastrointestinal bleeding

Non-steroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen, naproxen and diclofenac can irritate and injure the stomach lining. Most people have nothing worse than indigestion, but some develop an ulcer that bleeds, sometimes without warning pain. Knowing the risk factors and the signs of bleeding allows the problem to be caught or prevented.

Last checked: 2026-10-03

Key facts

At a glance.

  • Why it happens

    NSAIDs reduce the protective layer that guards the stomach and upper bowel lining against acid, so ulcers can form and bleed.

  • Warning signs

    Vomiting blood or material like coffee grounds, black sticky tar-like stools, severe tummy pain, pale skin or breathlessness.

  • Who is at higher risk

    Past ulcers, older age, high doses, long courses, and taking aspirin, steroids, anticoagulants or some antidepressants at the same time.

  • Ways to lower the risk

    Lowest effective dose for the shortest time, no second NSAID on top, and a stomach-protecting medicine when an oral NSAID is needed long term.

  • Urgent help

    Bleeding signs need 999 or A&E, not a routine appointment.

How anti-inflammatory painkillers injure the stomach

The stomach is constantly bathed in acid, and it survives because its lining makes a protective mucus layer. Prostaglandins help maintain that layer and the blood supply beneath it. NSAIDs relieve pain by blocking prostaglandin production, and the same action thins the stomach lining protection. Over days or weeks this can lead to inflammation, erosions and a true ulcer.

This is a medicine-induced problem, and the NHS names regular NSAID use, alongside Helicobacter pylori infection, as one of the two main causes of stomach ulcers. The risk of serious side effects is higher at a high dose or with long-term use, according to the NHS page for ibuprofen. Ulcers caused this way can bleed slowly, so a person becomes anaemic and tired, or they can bleed suddenly and heavily.

Symptoms, from mild to emergency

Indigestion and stomach aches are among the common side effects listed for ibuprofen, and they are easy to dismiss. A stomach ulcer typically causes burning upper abdominal pain that may be worse at night, along with bloating and nausea. Some NSAID-related ulcers cause very little pain before they bleed, which is why the warning signs of bleeding deserve attention in their own right.

What to do depending on what you notice
What you noticeWhat it may meanSuggested action (NHS advice)
Indigestion or tummy ache that settles when the tablets stopIrritation of the stomach liningSpeak to a pharmacist or GP about the painkiller and alternatives
Burning upper tummy pain that keeps returning, loss of appetite, weight loss, feeling full quicklyPossible ulcer or another stomach problemAsk for an urgent GP appointment or call NHS 111
Vomiting bright red blood or material like ground coffeeActive bleeding in the upper gutCall 999 or go to A&E
Black, sticky, tar-like stools, pale skin, breathlessnessBleeding that has been digested on the way throughCall 999 or go to A&E

Who is most at risk

The NHS tells anyone with a current or past stomach ulcer to check before taking ibuprofen. It also lists bleeding or clotting problems, asthma, heart, liver or kidney conditions, and previous allergic reactions to NSAIDs among the reasons to ask first. Combining medicines matters too: the NHS names anticoagulants such as warfarin, steroid medicines, antidepressants and blood pressure medicines as groups that can interact with ibuprofen.

Two NSAIDs together carry additional risk. The NHS advises not to take ibuprofen at the same time as naproxen or aspirin, because it increases the chance of serious side effects such as ulcers. Many people forget that over-the-counter cold remedies, gels with oral tablets and prescribed anti-inflammatories can all add up.

Older age and smoking are also associated with stomach ulcers. Heavy alcohol use adds to irritation; the NHS suggests avoiding a lot of alcohol while taking ibuprofen.

Differences between NSAIDs and the role of protection

The MHRA has long said that gastrointestinal toxicity and cardiovascular toxicity are the two most important safety concerns for NSAIDs and COX-2 inhibitors. In its comparison, low-dose ibuprofen has the lowest gastrointestinal risk of the traditional NSAIDs, while piroxicam, ketoprofen and ketorolac were singled out for higher risk. COX-2 inhibitors (coxibs) generally cause less gastrointestinal harm than most NSAIDs, though the evidence for reducing the most clinically important risks with etoricoxib was described as weak.

The same MHRA review notes that proton pump inhibitors reduce the gastrointestinal risks of NSAIDs and may bring the risk down to a level similar to a coxib alone. NICE osteoarthritis guidance applies this: topical NSAIDs are offered first for knee osteoarthritis, and where an oral NSAID is chosen, a gastroprotective treatment such as a proton pump inhibitor should be offered while it is taken.

In practice this means the safest approach is the lowest effective dose for the shortest time, a topical product where it suits the joint, and a stomach-protecting tablet if oral treatment must continue.

Diagnosis and treatment of an NSAID ulcer

If an ulcer is suspected the GP may arrange a breath, stool or blood test for H. pylori and sometimes a gastroscopy, a camera test of the food pipe and stomach. Finding H. pylori matters because infection and NSAIDs can both contribute, and treating the bacteria is part of healing.

Treatment usually involves stopping or changing the NSAID and a course of acid-reducing medicine. The NHS says treatment normally lasts from one week to two months depending on the cause, and that follow-up tests may be offered to confirm the ulcer has healed. Smoking cessation helps healing and lowers recurrence.

Someone who is bleeding is assessed in hospital under NICE guidance for acute upper gastrointestinal bleeding, which covers resuscitation, risk scoring and endoscopy. A person who has bled from an NSAID ulcer will usually be advised to avoid the offending painkiller in future.

Planning safer pain relief

Before long-term NSAID use, ask your prescriber to review your ulcer history, your other medicines and whether a stomach protector is needed. Ask whether paracetamol, topical products or non-drug approaches could do part of the work, though for some conditions NICE has moved away from routine paracetamol so the decision is individual.

Keep a single list of every painkiller you take, including over-the-counter tablets, aspirin taken for the heart and cold or flu products. Report suspected reactions through the MHRA Yellow Card scheme, and tell every clinician about any past ulcer or bleed.

Frequently asked

Questions people ask.

Quick, plain-English answers to the questions we hear most.

  • Can ibuprofen cause a stomach ulcer after only a few days?

    It can, particularly at high doses or in someone who already has risk factors, although most short courses do not. The NHS says the risk of serious side effects is higher with a high dose or long use.

  • What do black stools mean when I take anti-inflammatories?

    Black, sticky, tar-like stools can mean blood from the stomach or upper gut that has been digested. The NHS says to call 999 or go to A&E if poo is black, sticky and very smelly or contains blood.

  • Is it safe to take ibuprofen with food?

    Taking it with food may ease indigestion for some people, but it does not remove the risk of an ulcer. The NHS notes you can eat and drink normally but should avoid a lot of alcohol.

  • Why am I offered a proton pump inhibitor with an anti-inflammatory?

    Proton pump inhibitors reduce stomach acid and lower the gastrointestinal risk from NSAIDs. NICE advises offering gastroprotection to people with osteoarthritis while they take an oral NSAID.

  • Are gels and sprays safer for the stomach?

    The NHS says you are less likely to get side effects from ibuprofen gel or spray than from tablets. NICE also offers topical NSAIDs first for knee osteoarthritis.

  • Can I take ibuprofen and aspirin together?

    The NHS advises against taking ibuprofen at the same time as aspirin or naproxen, because it can increase the risk of serious side effects such as stomach ulcers.

  • Does an NSAID ulcer need testing for H. pylori?

    Usually yes, because H. pylori is the other main cause of stomach ulcers and treating it affects healing. The GP may offer a breath, stool or blood test.

  • Will I be able to take NSAIDs again after a bleed?

    Often not. The decision belongs to your doctor, and in many cases the same painkiller is avoided. Always mention a past bleed to every prescriber.

  • Are some anti-inflammatories riskier for the stomach than others?

    Yes. The MHRA singles out piroxicam, ketoprofen and ketorolac for higher gastrointestinal risk and describes low-dose ibuprofen as the lowest-risk traditional NSAID.

Where this comes from

Sources and checking.

This guide is for information, not medical advice.

Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.

Published 2026-10-03, next review 2027-10-03.