Medicine guide
Cefalexin (Keflex): uses, side effects and cautions
Cefalexin, known by the brand name Keflex, is a cephalosporin antibiotic used for pneumonia, chest infections, skin infections and urinary tract infections. It can be taken with or without food, but should be kept apart from zinc supplements. The NHS says it is safe at any stage of pregnancy.
Last checked: 2026-10-03
Key facts
At a glance.
-
Class
A cephalosporin antibiotic. The NHS says it works by killing the bacteria that cause the infection.
-
Uses
Pneumonia, chest infections, skin infections and urinary tract infections.
-
Usual pattern
The NHS gives 500 mg two or three times a day for most infections, with higher amounts for severe infection and lower for children.
-
Zinc
Do not take it at the same time as zinc; leave at least 3 hours before and after a zinc supplement.
-
Pregnancy
The NHS says it is safe at any stage and there is no evidence of harm to the baby.
-
Forms
Capsules, tablets and liquid. Brand name Keflex. Prescription only.
What cefalexin is
Cefalexin belongs to the cephalosporins, a group related to the penicillins. The NHS lists pneumonia, chest infections, skin infections and urinary tract infections among its uses and notes that cefalexin is only available as capsules, tablets or a liquid; other cephalosporins can be given in other ways.
The NHS describes it as working by killing the bacteria behind the infection. It lists the brand name Keflex, and it is available only on prescription.
How it is taken
For most infections the NHS gives 500 mg two or three times a day, with more for severe infections and less for children. Swallow tablets and capsules whole with water, without chewing or breaking them. Liquid is measured with the supplied syringe or spoon.
Food does not matter. Space doses evenly, leaving at least 4 hours between them. Course length depends on the infection, with some needing at least 10 days; keep taking it until you finish, even if you feel better.
-
Missed dose: take it when you remember unless the next is imminent. Never double up.
-
One extra dose is unlikely to cause harm. Speak to a pharmacist or doctor if you took two or more extra doses, or you are worried.
-
If there is no improvement after 2 to 3 days, or things worsen, tell your doctor.
Who should tell the prescriber first
Most adults and children can take cefalexin. The NHS asks you to mention an allergic reaction to it or other medicines, kidney problems, severe skin reactions to earlier antibiotics (rash, peeling, blistering or mouth sores) and severe or bloody diarrhoea after previous antibiotics.
The NHS page does not list penicillin allergy specifically, but it asks about allergy to other medicines, so make sure the prescriber knows about any reaction to a penicillin.
Side effects
Up to 1 in 10 people get nausea, diarrhoea or stomach pain. Simple meals, taking the dose with food, plenty of fluids and, for cramps, resting and a warm compress help. Watch for dehydration, shown by passing less urine or dark urine.
-
Call NHS 111 or a doctor for severe diarrhoea with blood or mucus, pale stools with dark urine or yellow skin or eyes, or unexplained bruising.
-
Call 999 for facial or throat swelling, severe breathing difficulty, blue, grey or pale skin, confusion or collapse, or a swollen, raised, itchy, blistered or peeling rash.
Zinc and other interactions
The distinctive instruction is about zinc: do not take cefalexin at the same time as zinc supplements or anything containing zinc, and leave a gap of at least 3 hours before and after.
The NHS also names probenecid, metformin, diuretics such as furosemide and other antibiotics as medicines to review. Herbal remedies lack testing alongside it.
Pregnancy, breastfeeding, alcohol and driving
The NHS says cefalexin is safe at any stage of pregnancy, with no evidence of harm to the baby, and that treating infection in pregnancy matters. Only tiny amounts reach breast milk; diarrhoea has occurred in some babies, so watch for feeding changes, digestive upset, thrush or rash.
Alcohol is safe with it, there are no food restrictions and it does not affect driving or cycling. It does not weaken contraception apart from the effect of severe diarrhoea beyond 24 hours. The NHS explains antibiotic resistance as bacteria adapting and becoming less responsive, which is a reason not to skip doses.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
Is cefalexin related to penicillin?
It is a cephalosporin, a related but separate antibiotic group. Tell your prescriber about any past reaction to antibiotics, including penicillin.
-
Can I take zinc supplements with it?
Not at the same time. The NHS says to leave at least 3 hours before and after cefalexin.
-
Is it safe in pregnancy?
The NHS says it is safe at any stage of pregnancy, with no evidence it harms the baby.
-
Can I drink alcohol?
Yes, the NHS says alcohol is safe alongside cefalexin.
-
What is Keflex?
Keflex is the brand name listed by the NHS for cefalexin.
-
What if I stop early?
Remaining bacteria may multiply and the infection can return. The NHS also notes resistance can develop.
-
Do I need food with it?
No. You can take cefalexin with or without food.
-
Which symptoms mean an emergency?
Swelling of the face or throat, severe breathing difficulty, skin colour change or collapse, or a blistering rash. Call 999.
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.
-
NHS medicines: cefalexin (about, who can take it, how to take it, side effects, pregnancy, interactions and common questions pages), https://www.nhs.uk/medicines/cefalexin/ , retrieved October 2026
-
Yellow Card scheme (MHRA) - the UK system anyone can use to report suspected side effects, https://yellowcard.mhra.gov.uk , retrieved October 2026