Skip to main content

Medicine guide

Codeine phosphate: an opioid painkiller explained

Codeine on its own is a prescription-only opioid, used for pain after operations or injuries when paracetamol and ibuprofen have not been enough, and also for dry cough and diarrhoea. It is a different product from the lower-strength codeine mixed with paracetamol. This guide covers how it is taken, constipation and drowsiness, dependence, and who should avoid it.

Last checked: 2026-10-03

Key facts

At a glance.

  • Drug type

    An opioid painkiller, described by the NHS as a strong painkiller.

  • Supply

    Prescription-only when supplied as codeine alone. Combination products with paracetamol or ibuprofen are covered separately.

  • Uses named by the NHS

    Pain after an operation or injury, often after paracetamol and ibuprofen have not worked, plus dry or painful cough and diarrhoea.

  • Forms

    Tablets or an oral liquid.

  • Stopping

    Do not stop suddenly after long use; the NHS says doctors reduce the dose gradually over weeks or months.

  • Age

    Most adults and children aged 12 and over can take it, with several exceptions.

What codeine is used for

The NHS describes codeine as a strong opioid painkiller prescribed for pain, for example after an operation or an injury, and often when simpler painkillers such as paracetamol and ibuprofen have not worked. It can also be used for a dry or painful cough and for diarrhoea. Those are separate decisions for a prescriber.

There are lower-strength products where codeine is mixed with paracetamol (co-codamol) or with ibuprofen, and these have their own pages. The details here relate to codeine alone.

How it is taken

It comes as tablets or a liquid you swallow. The amount and duration depend on why it has been prescribed, so the NHS says to follow the leaflet and ask a pharmacist or doctor if unsure. Tablets are swallowed whole with half a glass of water, with or without food, and liquids are measured with the syringe or cup supplied.

If a dose is missed, take it when you remember unless the next dose is close, in which case skip it. Do not double up. The NHS warns that an extra dose of codeine can be dangerous, and that if you take more than your prescribed dose you should seek medical help.

Side effects

Common effects are constipation, feeling or being sick, feeling sleepy or tired, and sweating. If you are sleepy or tired do not drive, ride a bike or use machinery until it passes.

Possible serious effects are an allergic reaction with swelling of the throat or tongue, a raised itchy rash or difficulty breathing; slow, weak or shallow breathing; an unusual heartbeat; and low blood pressure with confusion, blurred vision, weakness, light-headedness or dizziness. Seek urgent help for breathing problems or signs of anaphylaxis.

Dependence and stopping

People who take codeine for a long time become used to it, and the NHS says it is possible to become addicted. Doctors aim to ensure you take only what you need to control pain. Stopping suddenly can cause withdrawal symptoms such as feeling agitated or anxious, so doses are reduced gradually over several weeks or months.

If you are worried about addiction, the NHS advice is to talk to your doctor. Do not change the dose yourself.

Who may not be able to take it

The NHS says most adults and children aged 12 and over can take codeine, but it may be unsuitable if you have had an allergic reaction to codeine or another opioid, have a liver or kidney condition, lung problems such as asthma, a past addiction to alcohol, prescription medicines or recreational drugs, an underactive thyroid or adrenal problems such as Addison disease, an enlarged prostate, low blood pressure or a head injury. It is also unsuitable for people under 19 recovering from tonsil or adenoid removal for obstructive sleep apnoea.

Pregnancy: tell your doctor; codeine is sometimes used if needed after a discussion of risks and benefits. Breastfeeding: not usually used, because it could cause side effects in the baby.

Interactions, alcohol and drugs

The NHS lists other opioid painkillers such as co-codamol, medicines for depression or other mental health conditions, some antihistamines, anti-sickness medicines and other anti-diarrhoea medicines among those that may not mix well. Taking codeine with cannabis, cocaine or heroin raises the risk of serious side effects.

You can eat and drink normally, but it is best not to drink alcohol because it can increase the risk of side effects.

Frequently asked

Questions people ask.

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

  • Is codeine a strong painkiller?

    The NHS describes codeine as a strong painkiller called an opioid, used after operations or injuries and often when paracetamol and ibuprofen have not worked.

  • Why is it prescription-only?

    The NHS lists codeine on its own as available only with a prescription. As an opioid it needs a prescriber to weigh benefit, risks and duration.

  • Can I stop codeine suddenly?

    No. After long use the NHS says stopping suddenly can cause withdrawal such as agitation and anxiety, and doctors reduce the dose gradually.

  • What are the most common side effects?

    Constipation, nausea or vomiting, sleepiness or tiredness and sweating are listed by the NHS.

  • Can I drive on codeine?

    Not if you feel sleepy or tired. The NHS says to wait until those effects have gone before driving, cycling or using machinery.

  • Can I drink alcohol with it?

    It is best not to, as alcohol can increase the risk of side effects.

  • Is it safe in pregnancy or breastfeeding?

    It is sometimes used in pregnancy after discussing risks and benefits with your doctor. It is not usually used while breastfeeding because of the risk of side effects in the baby.

  • Is codeine addictive?

    It is possible to become addicted. Your doctor will aim to make sure you only take the amount you need and will review treatment.

  • What other medicines affect it?

    The NHS names other opioids such as co-codamol, medicines for depression or mental health conditions, some antihistamines, anti-sickness medicines and other anti-diarrhoea medicines.

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.