Skip to main content

Cefalexin - Common brands: Ceporex

Cefalexin (sometimes called cephalexin) is an antibiotic medicine used to treat or prevent bacterial infections. It's only available with a prescription.

What cefalexin is for

Cefalexin is a type of antibiotic. It works by killing certain bacteria that cause infections including:

  • chest and throat infections, such as tonsillitis or bronchitis
  • some types of ear infection
  • skin, bone and joint infections
  • urinary tract infections (UTIs), including cystitis
  • tooth and gum infections

It may also be used to treat pneumonia or diverticulitis, or to help prevent UTIs if you keep getting them.

How to take cefalexin

Cefalexin comes as tablets, capsules and as a liquid that you swallow (oral suspension).

How much you need to take and for how long depends on why you're taking it. Most people need to take it 2 to 4 times a day for a few days or weeks to treat an infection.

To help prevent infections, you usually take it once a day for a longer time.

Your doctor or pharmacist will explain your dose to you.

When taking cefalexin:

  • swallow tablets or capsules whole, with a glass of water
  • use the syringe or spoon that comes with the liquid medicine to help you measure the right dose
  • try to space your doses evenly throughout the day
  • you can take it with or without food

Always check the packet or leaflet that comes with your medicine. Ask a pharmacist or doctor for advice if you're not sure how to take it or have any problems taking it.

Important

It's important to keep taking your medicine for as long as your prescription says, even if you start to feel better. If you stop early, your infection could come back.

If you miss a dose of cefalexin

If you forget to take a dose, take it as soon as you remember, unless it's nearly time for your next dose.

If it's nearly time for your next dose, skip the missed dose and take your next dose at the usual time.

Do not take 2 doses at the same time. Do not take an extra dose to make up for a missed dose.

If you take too much cefalexin

Taking an extra dose of cefalexin is unlikely to cause problems, but it's important to get medical advice if you take too much because it can sometimes be dangerous.

Urgent advice: Speak to a pharmacist as soon as possible if:

  • you've taken more than your prescribed dose of cefalexin

If you're unable to speak to a pharmacist, or you took too much on purpose, call NHS 111 for advice.

Find a pharmacy
Information:

If you're told to go to A&E, do not drive. Ask someone to drive you or call 999 and ask for an ambulance.

Bring the cefalexin packet or leaflet inside it, any remaining medicine, and any other medicines you take.

Advice about giving medicines to children

Side effects of cefalexin

Like all medicines, cefalexin can cause side effects, although not everyone gets them.

Side effects of cefalexin include:

  • feeling sick (nausea) and being sick (vomiting)
  • diarrhoea
  • stomach pain or cramps
  • indigestion
  • a headache
  • feeling dizzy
  • a rash or itchy skin
  • vaginal discharge, an itchy or sore vagina, or thrush

Cefalexin will not usually affect your ability to drive, ride a bike or use machinery, but if you feel dizzy after taking it, wait until this stops.

Non-urgent advice: Speak to a pharmacist or doctor if:

  • you have any side effects that bother you or do not go away

They may be able to give you advice about how you can reduce the side effects. Keep taking your medicine unless you're advised to stop.

Find a pharmacy

Serious side effects

Cefalexin can sometimes cause serious side effects, although most of them are rare.

Possible serious side effects of cefalexin include:

  • acute generalised exanthematous pustulosis (AGEP) – causing a red, scaly rash with bumps under the skin and blisters (redness may be harder to see on black or brown skin), and a high temperature, usually when you first start taking cefalexin
  • severe diarrhoea containing blood or mucus
  • changes in your blood cells – causing symptoms such as tiredness, bruising easily or getting ill a lot
  • an allergic reaction (anaphylaxis) – causing symptoms such as a swollen mouth, throat or tongue, difficulty breathing or severe dizziness
  • a severe skin reaction (Stevens-Johnson syndrome) – causing symptoms such as peeling or blistered skin

Immediate action required: Call 999 if:

  • you're taking cefalexin and think you might have symptoms of anaphylaxis or Stevens-Johnson syndrome

If you think you are having any other side effect, call NHS 111.

Information:

More about side effects

These are not all the side effects of cefalexin.

For a full list, see the leaflet that comes with your medicine or search for your medicine on the electronic medicines compendium website.

You can report any side effects you get on the Yellow Card Scheme website

Who can and cannot take cefalexin

Most adults and children can take cefalexin, but it's not suitable for some people.

For example, it may not be suitable if:

  • you've ever had an allergic reaction from cefalexin or a similar antibiotic
  • you've had severe diarrhoea, diarrhoea that's lasted a long time, a skin rash or mouth sores when you've taken antibiotics before
  • you have kidney problems

Before taking cefalexin, tell your doctor if you have any medical conditions.

Breastfeeding and cefalexin

You can usually take cefalexin while breastfeeding, but check with a doctor or pharmacist first.

It's rare for breastfed babies to get any side effects from medicine you are taking, but speak to a healthcare professional or call NHS 111 if you have any concerns about your baby.

Pregnancy and cefalexin

You can usually take cefalexin if you're pregnant or planning to get pregnant, but it's best to check with a pharmacist or doctor first.

Find out more about taking cephalosporin antibiotics during pregnancy on the Bumps (Best Use of Medicines in Pregnancy) website

Taking cefalexin with other medicines, food and drink

There are some medicines, remedies and supplements that may not mix well with cefalexin.

This includes:

Before taking cefalexin, tell your doctor or pharmacist if you're taking any medicines, herbal remedies, vitamins or supplements.

Food, drink and alcohol with cefalexin

You can eat and drink as normal while taking cefalexin.

Information:

Find out more about your medicine

To find out more about your medicine, you can:

Page last reviewed: 24 November 2026
Next review due: 24 November 2029