Skip to content
Antibiotics — CephalosporinsATC J01DB01

Cefalexin

Prescription onlyWHO essential medicine

Also called Cephalexin

First-generation oral cephalosporin.

Starts working
Varies
Half-life
About 1 hour
In use since
1967
Pregnancy
Generally considered safe

Overview

Cefalexin is an oral cephalosporin for skin, urinary and bone infections. It is often used in pregnancy and for people with mild (non-severe) penicillin allergy.

How it works

Destroys bacterial cell walls, like penicillin.

Cefalexin belongs to the Cephalosporins (part of the Beta-lactams family). How Cephalosporins work: like penicillins, they block cell-wall building enzymes; their structure resists some bacterial enzymes that destroy penicillin.

Uses

  • Skin and soft tissue infections
  • Urinary tract infections
  • Bone infections
  • Strep throat (penicillin alternative)

Available as: capsule, tablet, oral suspension.

Typical dose

Adults
250–500 mg every 6 hours, or 500 mg–1 g every 8–12 hours.

Typical doses for orientation only. Your prescription, the pack leaflet and local guidance take priority.

Side effects

Common

Often mild and may settle with time

  • Diarrhoea
  • Nausea
  • Indigestion

Serious — get medical help

Uncommon, but need prompt attention

  • Anaphylaxis
  • C. difficile diarrhoea

Warnings

  • Avoid if you've had a severe reaction (anaphylaxis) to penicillin
  • Reduce dose in kidney disease

Who should avoid it

  • Allergy to cephalosporins or severe allergy to penicillins

Interactions

  • Metformin — slightly higher levels
  • Probenecid — higher cefalexin levels
Check Cefalexin against your own medicines

Using it safely

Alcohol
Usually no problem in moderation. No direct interaction.
Food and drink
With or without food.
If you miss a dose
Take it when you remember unless close to the next dose. Do not double up.
Stopping it
Complete the course unless told otherwise.
Driving
No effect.
Tests and checks
Kidney function in severe illness
If too much is taken
Nausea, vomiting, diarrhoea. Seek advice for large amounts.
Storage
Room temperature; refrigerate prepared suspension.
Legal status
United States: Prescription onlyUnited Kingdom: Prescription-only medicine (POM)India: Schedule HAustralia: Prescription only (Schedule 4)

Pregnancy and breastfeeding

Pregnancy

Generally considered safe

Commonly used for urinary infections in pregnancy.

Breastfeeding

Generally considered safe

Considered safe.

Special groups

Kidney disease
Reduce the dose in significant impairment.
Liver disease
Generally safe.
Older adults
Reduce the dose if kidney function is low.

Brand names

United States
Keflex
United Kingdom
Keflex
India
Sporidex, Phexin
Australia
Keflex, Ialex

Examples only; many generic versions exist. The same brand name can mean different products in different countries.

Common questions

Can I take it if I'm allergic to penicillin?

Cross-reaction is only about 1–2%, so it's often used for mild penicillin allergy — but not if you had anaphylaxis.

Do I need a prescription for Cefalexin?

Yes — Cefalexin is prescription-only in most countries.

Can I take Cefalexin during pregnancy?

Generally considered safe. Commonly used for urinary infections in pregnancy. Always check with a doctor or midwife.

Sources and official information

Entry last reviewed October 2026. Compiled from WHO, NHS, FDA/DailyMed, BNF and national formulary information. How we write entries.