Cefalexin is a first-generation cephalosporin. It works like penicillin, breaking down the bacterial cell wall, and is used for urinary tract infections, skin and soft tissue infections, chest infections and some others. Because cephalosporins share part of their chemical structure with penicillins, it is often withheld from anyone with a penicillin allergy recorded. The evidence for that caution turns out to be considerably weaker than the practice suggests.
Follow the instructions on your label. This guide contains no doses.
Most penicillin allergy labels are wrong
Around one in ten people have a penicillin allergy recorded, and on formal testing more than nine out of ten of them are not allergic.
The label usually comes from a childhood rash during an illness - which was often the virus rather than the drug - or from an intolerance such as nausea or diarrhoea, which is not an allergy at all.
That label is not harmless. People carrying it receive broader-spectrum, less effective and more expensive antibiotics, and have measurably higher rates of treatment failure, C. difficile and resistant infection.
If you have a penicillin allergy recorded, it is worth finding out what actually happened. A rash without swelling, breathing difficulty or collapse, more than a decade ago, is a candidate for review - and allergy services can test formally and remove the label.
See allergy or side effect, which covers why the wording on your record matters.
The cross-reactivity question
The often-quoted figure of ten per cent cross-reactivity between penicillins and cephalosporins came from older studies using products contaminated with penicillin during manufacture.
Modern estimates are far lower - around one to two per cent overall, and lower still for later-generation cephalosporins. What matters is not the class but the side chain: cephalosporins whose side chain resembles a particular penicillin are the ones that cross-react.
Cefalexin shares a side chain similarity with amoxicillin and ampicillin, so it is one of the cephalosporins where more caution applies if the allergy is to those specifically.
If you have had anaphylaxis to a penicillin, cephalosporins are avoided without specialist assessment. For a remote mild rash, the position is much more open - see anaphylaxis.
What it is used for
- Urinary tract infections, including in pregnancy, where it is a common choice - see nitrofurantoin for the usual first-line alternative
- Skin and soft tissue infections including cellulitis - see cellulitis
- Respiratory tract infections
- Bone and joint infections, and some others
It does not cover the anaerobic organisms that dominate dental and abdominal infections, which is why metronidazole is often added - see metronidazole.
Taking it
Several times a day, since its effect is short-lived - which is its main practical drawback and a common reason doses get missed.
It can be taken with or without food; food may reduce stomach upset slightly.
Complete the course as directed - see finishing a course, including why the advice has become more nuanced than it once was.
Side effects
Nausea, diarrhoea and abdominal discomfort are the common ones. Thrush can follow any antibiotic - see fluconazole.
Seek advice urgently for severe or bloody diarrhoea during or after a course. Cephalosporins carry a notable C. difficile risk, and this is one reason they are not used as first choice for straightforward infections.
Rash occurs. Stop and seek urgent help for a widespread rash with fever or blistering, or for swelling of the face or throat.
Doses are reduced in kidney impairment - see medicines that affect your kidneys.
Interactions
Cefalexin has relatively few, which is one of its advantages.
Probenecid raises its levels. Anticoagulant control can be affected, as with most antibiotics - see warfarin.
Most antibiotics do not reduce contraceptive effectiveness, contrary to long-standing belief - see antibiotics and the pill.
In pregnancy
Cephalosporins have a long record of use in pregnancy and are among the antibiotics used for urinary infections, which need treating in pregnancy even without symptoms because of the risk to the pregnancy.
Tell whoever prescribes if you are or might be pregnant, since some alternatives are avoided at particular stages.
The other cephalosporins
Cefalexin is first-generation, covering mainly skin and urinary organisms. Later generations - cefuroxime, cefotaxime, ceftriaxone - cover a broader range and are mostly reserved for hospital use.
Their side chains differ from penicillin's more than cefalexin's does, which is why cross-reactivity concern is lower with them. If you have a penicillin allergy and need a cephalosporin, which one is chosen is a deliberate decision rather than an arbitrary one - see the penicillins.
Resistance
Cephalosporins drive resistance more than narrow-spectrum agents, which is why guidance reserves them. If you are offered one for a straightforward infection, it is fair to ask why - often there is a good reason, such as a resistant organism on a urine culture.
Related reading: Azithromycin: Short Courses and Long Action, with more on how the main families of medicine work in Medicines.