Painkillers and IBD

Which painkillers are usually safe with Crohn's disease or ulcerative colitis, which to avoid, and what to do about common aches and pains.

Last updated 19 November 2026 · 7 min read

On this page
  1. The short version
  2. Paracetamol
  3. Why anti-inflammatory painkillers are avoided
  4. Codeine and other opioid painkillers
  5. Common types of pain
  6. When pain needs checking
  7. Other medicines worth knowing about

Everyone needs a painkiller now and then, for a headache, a sore tooth, a bad back or period pain. If you have Crohn's disease (CD) or ulcerative colitis (UC), the choice matters more than usual, because some of the most popular painkillers can bring on a flare-up, and others can hide warning signs or cause problems of their own. This page explains the options and how to use them sensibly.

The short version

  • Paracetamol is the first choice for most everyday pain.
  • Anti-inflammatory painkillers (non-steroidal anti-inflammatory drugs, or NSAIDs), such as ibuprofen, naproxen, diclofenac and aspirin taken for pain, are best avoided.
  • Codeine and other opioids should only be used for a short time, on a doctor's advice, and never to control the diarrhoea of a flare-up.
  • Pain that keeps coming back is a reason to talk to your IBD team, not just to take more tablets.

Paracetamol

Paracetamol does not irritate the gut or cause flare-ups, so it is the safest painkiller for people with IBD. The usual adult dose is one or two 500 mg tablets up to four times in 24 hours, with at least four hours between doses. Don't take more than 8 tablets (4 g) in 24 hours. If you weigh less than 50 kg, are frail, drink heavily or have liver problems, the safe maximum is lower, so ask a pharmacist.

Paracetamol is in many cold and flu remedies, so check the label to make sure you are not taking it twice.

If you are treating Crohn's disease with diet, soluble paracetamol is usually a better choice than ordinary tablets, which contain starch. See The LOFFLEX Diet.

Why anti-inflammatory painkillers are avoided

NSAIDs work by blocking substances called prostaglandins. Prostaglandins cause pain and swelling, but they also help to protect the lining of the stomach and bowel. When they are blocked, the lining becomes more fragile and more easily damaged. In people with IBD this can trigger a flare-up, sometimes within days of starting the tablets, and the damage can take weeks to settle after they are stopped. See What is the cause of IBD?

The NSAIDs you are most likely to come across in the UK include:

  • Aspirin (at painkilling doses)
  • Celecoxib
  • Diclofenac (Voltarol)
  • Etoricoxib
  • Ibuprofen (Nurofen, Brufen and many own brands)
  • Indometacin
  • Mefenamic acid (Ponstan)
  • Meloxicam
  • Naproxen (including Feminax Ultra for period pain)

Many products bought without a prescription contain an NSAID, including some cold and flu remedies, period pain tablets, migraine treatments and "extra strength" or "max strength" painkillers. If you are not sure, read the ingredients or ask a pharmacist, and tell them you have IBD.

Low-dose aspirin

Low-dose aspirin (75 mg a day) prescribed to protect your heart or circulation is different. Don't stop it without talking to the doctor who prescribed it, as the benefit for your heart may outweigh the risk to your gut. Let your IBD team know you take it.

Gels and creams

NSAID gels and creams rubbed onto a painful joint or muscle release much less of the medicine into the body than tablets. Many people with IBD use them for short spells without problems, but check with your IBD team or pharmacist before using them regularly.

If an NSAID is the best treatment

Occasionally an NSAID is the most effective treatment for a particular problem, for example some kinds of inflammatory back pain. When your IBD is quiet, your specialist may agree a short course, sometimes of a type called a COX-2 inhibitor, such as celecoxib, which may be less likely to upset the gut. This should be a decision made with your IBD team, not something to try on your own.

Codeine and other opioid painkillers

Codeine, dihydrocodeine, tramadol and morphine belong to a group called opioids. Codeine is also found in combination tablets such as co-codamol (with paracetamol), and dihydrocodeine in co-dydramol. They are useful for short spells of more severe pain, but in IBD they need extra care:

  • They slow the bowel. This is why codeine is sometimes used for diarrhoea. In a severe flare-up of colitis, slowing the bowel can hide how bad things are and increase the risk of toxic megacolon, a dangerous swelling of the colon. If you are having a flare-up, contact your IBD team rather than treating the pain or diarrhoea with codeine.
  • They cause constipation, which can make pain and bloating worse, and in left-sided UC can stop a flare-up settling. See Constipation in Crohn's Disease.
  • They can cause dependence. Taken regularly for more than a few days, the body gets used to them. Codeine and dihydrocodeine products bought from a pharmacy are meant for no more than three days' use.
  • Long-term use can make abdominal pain worse. In a small number of people, regular opioids make the gut more sensitive to pain, so higher doses lead to more pain rather than less.
  • They cause drowsiness, so take care with driving and alcohol.

Codeine should not be taken while breastfeeding, as some women turn it into morphine very quickly and too much can pass to the baby. Ask your doctor or pharmacist for an alternative.

Common types of pain

Headache and minor aches

Paracetamol is the best choice. Drinking enough fluid also helps, particularly if you have diarrhoea.

Toothache

Many dental painkillers are NSAIDs. Use paracetamol, and if that is not enough, ask your dentist or pharmacist about a short course of co-codamol or co-dydramol. See your dentist early rather than relying on painkillers for long. Tell your dentist that you have IBD and which medicines you take.

Period pain

Mefenamic acid, naproxen and ibuprofen are often recommended for period pain, but they carry the same risks as other NSAIDs. Paracetamol, a hot water bottle, gentle exercise and, for some women, hormonal contraception can help instead. If periods are very painful, talk to your GP. See Periods and Inflammatory Bowel Disease.

Joint pain

Painful joints are common in IBD and are often linked to bowel inflammation, so getting the IBD under control usually helps most. Paracetamol, heat or ice packs, rest during a flare and exercises from a physiotherapist are the first steps. Tell your IBD team about swollen joints, as some treatments help both the joints and the bowel. See Complications of Crohn's Disease.

Back pain

Most back pain is mechanical and gets better with time, movement and paracetamol. Back pain that is worse in the morning or after rest, eases with exercise, and lasts more than three months may be caused by inflammation of the joints at the base of the spine (sacroiliitis) or ankylosing spondylitis, which are more common in IBD. Mention it to your GP or IBD team, as it needs a specialist assessment rather than more painkillers.

Pain after surgery

After an operation you will be given a pain relief plan by the hospital. Short courses of stronger painkillers are normal at this stage. Ask the ward pharmacist which painkillers to continue at home and for how long.

Abdominal pain

Don't simply reach for painkillers for tummy pain. In IBD it can be a sign of active inflammation, a narrowing of the bowel (stricture) or an abscess, all of which need treatment of their own. Antispasmodic medicines, such as mebeverine or hyoscine butylbromide (Buscopan), can ease cramping when your IBD is quiet, but check with your team first.

When pain needs checking

Get urgent medical help (call 999 or go to A&E) if you have:

  • Severe abdominal pain with vomiting, a swollen tummy and no wind or motions passing
  • Severe abdominal pain with a fever, a fast heartbeat or feeling faint

Contact your IBD team or GP the same day, or call NHS 111, if:

  • Your abdominal pain is new, getting worse, or different from usual
  • You have a painful red eye with blurred vision
  • You have a hot, swollen joint with a fever

Talk to your IBD team at your next contact, or sooner, if:

  • You need painkillers on most days
  • You have been taking codeine or another opioid for more than a few days
  • You think a painkiller has set off a flare-up

Regular pain usually means something needs treating. Your team may want to check whether your IBD is active, and some hospitals have pain clinics or psychological support that can help with long-lasting pain.

Other medicines worth knowing about

Painkillers are not the only everyday medicines that can affect IBD. Antibiotics can upset the bowel and occasionally trigger a flare-up, and cold remedies may contain an NSAID. See Everyday Illness and Inflammatory Bowel Disease and our Frequently Asked Questions.

It helps to keep a short list of painkillers you can take, agreed with your IBD team, in your flare-up plan, so you don't have to work it out when you are in pain.