Lyng Pharmacy
Medicines A–Z · Cephalosporin antibiotic

Cefalexin

A cephalosporin antibiotic · Written by the Lyng Pharmacy team, based on NHS and BNF guidance · Updated August 2026
Also sold asKeflex
Type of medicineCephalosporin antibiotic
Available asCapsules, tablets, oral suspension
How you get itPrescription only

Cefalexin is a cephalosporin, a close relative of penicillin. It is commonly used for urinary, skin and respiratory infections, including in pregnancy, and is sometimes an option for people with a mild penicillin allergy.

What it is used for

Urinary tract infections including in pregnancy, skin and soft tissue infections, chest infections, and some ear and bone infections. It is also used at low dose to prevent recurrent UTIs.

How to take it

Usually two to four times daily, with or without food — though food reduces stomach upset. Space doses evenly and finish the course.

Suspension should be shaken well, measured with the syringe or spoon provided, and usually kept in the fridge — check the label.

Penicillin allergy and side effects

Cephalosporins are structurally related to penicillins, so there is a small chance of cross-reactivity. In practice, most people with a penicillin allergy label can take cefalexin safely, but anyone who has had a severe reaction — anaphylaxis, swelling of the throat, or a severe blistering rash — to a penicillin should avoid cephalosporins unless a specialist advises otherwise.

Tell your prescriber exactly what happened when you reacted; the detail changes the decision.

Common side effects: nausea, diarrhoea, stomach ache and thrush. Get urgent help for swelling of the face or throat, difficulty breathing, or a widespread blistering rash. Report severe or bloody diarrhoea during or after the course.

It can be used in pregnancy and breastfeeding where indicated.

Always read the label. This page is general information, not advice for your situation. Doses, warnings and interactions differ between products and between people. Check the leaflet inside your medicine, and ask our pharmacist if anything is unclear — that conversation is free and takes two minutes.

Questions about Cefalexin?

1 Lyng Lane, West Bromwich B70 7RW · Mon–Fri 8:30am–6pm, Sat 9am–1pm · 0121 500 5756

Ask our pharmacist →

Frequently asked questions

Can I take cefalexin if I am allergic to penicillin?
Most people with a penicillin allergy label can, but anyone who has had anaphylaxis, throat swelling or a severe blistering rash to penicillin should avoid cephalosporins unless a specialist advises otherwise.
Should I take cefalexin with food?
Either is fine, but food reduces stomach upset.
Is cefalexin safe in pregnancy?
Yes, it can be used in pregnancy and breastfeeding where indicated, and is often chosen for UTIs in pregnancy.
Do I need to finish the course?
Yes, unless a healthcare professional tells you otherwise.

Related pages

Amoxicillin →Nitrofurantoin →Urinary tract infection →All medicines A–Z →

More from Lyng Pharmacy

Order a repeat prescription →Pharmacy First — NHS treatment without a GP →Free medicine review →Contact us & opening hours →
0121 500 5756