Cefalexin

NHS information about the medicine cefalexin, including what it's used for, who can take it, how to take it and side effects.

What cefalexin is for

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

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:

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.

Side effects of cefalexin

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

Side effects of cefalexin include:

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.

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:

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.

Find out more about your medicine

To find out more about your medicine, you can: