Medically Reviewed

Cefalexin (Cephalexin)

Is It Right for You?

A complete guide to Cefalexin (Cephalexin) — what it treats, how it works, dosages, side effects, and when a clinician may prescribe it following an online consultation.

Licensed UK clinicians
Same-day prescriptions, where clinically appropriate
Delivered to your door within 24 hours
What our patients say
4.7 out of 5
Easy and efficient! … I am on the mend and so glad this service exists.
Pete Garvey
Excellent. Started to feel unwell and needed to see Dr before going on holiday. Couldn't get' GP appointment in time. I was 'seen' within 30mins of signing up. Just picked up a prescription. Very impressed with the Dr Victoria White.
Iann de Courcy
Fantastic service received from the gp service. Easy to book consultation… Would definitely use again :- )
Jay
Fantastic service. Easy to sign up and instructions were very clear. My doctor, Dr Shakil David Alam was amazing; listened to my issues, gave me in depth advice and really helped me out. Would definitely reuse - the speed of the service was impressive. Thank you Dr Shakil.
Babac Pashazadeh
I'm not someone who posts reviews regularly, but I have to say the process was super smooth. Booked a same day appointment with a clearly experienced and friendly doctor…
Yardie Grandmaster
Excellent service - quick, professional, and really convenient. The doctors are thorough and the whole process is smooth from start to finish. Highly recommend.
Mohammad Hassan
Overview

What Is Cefalexin?

Cefalexin (also spelled cephalexin) is a first-generation cephalosporin antibiotic used to treat a range of bacterial infections affecting the skin, urinary tract, respiratory system, and other tissues. It is one of the most commonly prescribed oral antibiotics in the UK and is valued for its broad spectrum of antibacterial activity, good oral bioavailability, and well-established safety profile.

Structurally related to penicillin, cefalexin belongs to the beta-lactam family of antibiotics. It acts by interfering with bacterial cell wall synthesis, making it effective against many gram-positive organisms and some gram-negative bacteria. It is a bactericidal antibiotic — meaning it actively kills bacteria rather than simply inhibiting their growth.

Cefalexin is frequently used as an alternative to penicillin in patients who report a penicillin allergy, though clinical evaluation of the nature of the allergy is important, as a small degree of cross-reactivity between penicillins and cephalosporins exists. It is available in capsule and oral suspension forms and is suitable for adults and children.

Cefalexin is a prescription-only medication in the UK. A licensed clinician must assess your symptoms and medical history before it can be prescribed — which can now be done quickly and conveniently through a telehealth consultation.

What It Treats

What Conditions Is Cefalexin Used For?

Cefalexin is prescribed for a variety of bacterial infections:

Urinary Tract Infections (UTIs)

including uncomplicated cystitis, often as a second-line option.

Skin and Soft Tissue Infections

cellulitis, impetigo, infected wounds, and folliculitis caused by susceptible organisms.

Streptococcal Throat Infections

tonsillitis and pharyngitis caused by Streptococcus pyogenes, particularly where penicillin is unsuitable.

Respiratory Tract Infections

including bronchitis and pneumonia caused by susceptible organisms.

Bone and Joint Infections

as part of treatment regimens for osteomyelitis and septic arthritis.

Prophylaxis of Rheumatic Fever

in patients with a history of rheumatic fever who are unable to take penicillin.

Cefalexin Does Not Treat Viral Infections

Cefalexin is an antibiotic and has no effect on viruses. It will not treat the common cold, influenza, COVID-19, or other viral illnesses. Using antibiotics for viral infections contributes to antibiotic resistance and should be avoided.

Mechanism of Action

How Does Cefalexin Work?

Cefalexin is a beta-lactam antibiotic that exerts its bactericidal effect by inhibiting bacterial cell wall synthesis. It binds to penicillin-binding proteins (PBPs) — enzymes found on the bacterial cell membrane that are responsible for cross-linking the peptidoglycan strands which give the bacterial cell wall its strength and rigidity.

By inhibiting PBPs, cefalexin prevents the formation of a structurally sound cell wall. As bacteria continue to grow and divide without being able to complete cell wall synthesis, they become osmotically fragile and eventually lyse (burst), leading to bacterial death.

Cefalexin is most effective against gram-positive organisms — including Staphylococcus aureus and Streptococcus species — which have thick peptidoglycan cell walls. It also has activity against some gram-negative bacteria such as Escherichia coli, Proteus mirabilis, and Klebsiella pneumoniae, making it useful for urinary tract infections.

Dosages & Administration

Dosages & Administration

The correct dose depends on the type and severity of infection, age, weight, and kidney function. Always follow your clinician's instructions. The table below is for general reference only.

Condition
Adult Dose
Frequency
Duration
Urinary tract infection
250–500 mg
Every 6–12 hours
3–7 days
Skin and soft tissue infection
250–500 mg
Every 6 hours
7–14 days
Streptococcal throat infection
500 mg
Twice daily
10 days
Respiratory tract infection
250–500 mg
Every 6 hours
7–10 days

Administration Tips

Cefalexin can be taken with or without food. Taking it with food may help reduce nausea or gastrointestinal discomfort in sensitive individuals.

Complete the full course even if symptoms improve after a few days. Stopping early risks allowing bacteria to survive, potentially causing a relapse or contributing to antibiotic resistance.

Oral suspension should be refrigerated after reconstitution and discarded after 14 days.

Take at evenly spaced intervals throughout the day to maintain consistent antibiotic blood levels — for example, a four-times-daily regimen should be spread approximately every 6 hours.

Inform your clinician of any penicillin allergy and the nature of the reaction before taking cefalexin, so they can assess whether it is safe for you.

Safety Profile

Side Effects of Cefalexin

Cefalexin is generally well tolerated. Most side effects are mild and gastrointestinal in nature.

Common Side Effects
  • Nausea
  • Diarrhoea
  • Abdominal pain
  • Indigestion
  • Skin rash
  • Headache
  • Dizziness
  • Oral or vaginal thrush (candidiasis)
Serious - Seek Immediate Care
  • Severe allergic reaction (anaphylaxis) — hives, facial swelling, difficulty breathing, collapse; rare but requires emergency treatment
  • C. difficile-associated diarrhoea — persistent, watery, or bloody diarrhoea, cramping, and fever during or after treatment
  • Haemolytic anaemia — rare; caused by immune-mediated destruction of red blood cells
  • Severe skin reactions — Stevens-Johnson Syndrome or Toxic Epidermal Necrolysis; very rare but serious
  • Renal toxicity — uncommon at standard doses; risk increased in patients with pre-existing kidney disease or those taking other nephrotoxic drugs
Penicillin Allergy and Cross-Reactivity

Cefalexin and penicillins share a beta-lactam ring structure. Cross-reactivity is estimated at approximately 1–2%. Patients with a history of immediate or severe allergic reactions to penicillin (such as anaphylaxis, angioedema, or severe urticaria) should generally avoid cephalosporins. Patients with a minor or delayed penicillin reaction may be able to use cefalexin with caution after clinical assessment. Always inform your clinician of the exact nature of your penicillin allergy.

Drug Interactions

Drug Interactions

Always disclose all prescription drugs, over-the-counter medicines, vitamins, and supplements to your clinician or pharmacist before starting cefalexin.

Moderate
Metformin

Cefalexin has been shown to increase metformin absorption and plasma concentrations. Blood glucose monitoring may be advisable in diabetic patients during co-administration.

Moderate
Probenecid

Reduces renal excretion of cefalexin, increasing its blood levels and half-life. This interaction may be used deliberately in some clinical settings but should be noted.

Moderate
Other Nephrotoxic Drugs (e.g. Aminoglycosides, NSAIDs)

Concurrent use may increase the risk of renal toxicity, particularly in patients with pre-existing kidney impairment.

Minor
Oral Contraceptives

As with other antibiotics, there is a theoretical concern about reduced contraceptive efficacy. Use additional contraceptive precautions during treatment.

Safety Warnings

Important Warnings

Severe Allergic Reactions

Although rare, severe hypersensitivity reactions including anaphylaxis can occur with cefalexin. Patients with a history of severe penicillin allergy are at higher risk. Seek emergency care immediately if you develop throat swelling, difficulty breathing, or collapse after taking cefalexin.

danger
C. difficile-Associated Diarrhoea

Like all antibiotics, cefalexin disrupts the gut microbiome and can predispose to Clostridioides difficile overgrowth. If you develop persistent, watery, or bloody diarrhoea during or after treatment, contact a clinician promptly. Do not use anti-diarrhoeal medications without medical advice in this context.

warning
Renal Impairment

Cefalexin is primarily excreted by the kidneys. In patients with significant renal impairment, dose adjustments may be necessary to prevent drug accumulation and toxicity. Inform your clinician if you have known kidney disease.

warning
Pregnancy & Breastfeeding

Cefalexin is generally considered safe during pregnancy and is one of the preferred antibiotics for treating infections such as UTIs in pregnant women. It is excreted in breast milk in small quantities; short-term use is generally considered compatible with breastfeeding. Always inform your clinician if you are pregnant or breastfeeding.

warning
Getting Treatment

Speak to a Clinician About Treatment

Getting advice no longer means sitting in a waiting room. Through The GP Service, you can consult with a licensed clinician in minutes — from home, on your lunch break, or wherever works for you. If treatment is clinically appropriate, your clinician can issue a prescription during the consultation. A consultation does not guarantee a prescription.

Woman sitting on a couch using a mobile app with a calendar and timer interface on the screen.
1
Book Your Appointment
Book to see a consultant online the same day, at a time that suits you.
Open 365 days a year, 8am - 5pm
Same-day appointments available
Smiling male doctor wearing a white coat and stethoscope holding a tablet in a hospital corridor.
2
See a Consultant
Speak to one of our licensed medical professionals from anywhere - using a phone, computer, or tablet.
Request prescriptions
Request Fit Notes
Request Referral Letters
Pharmacist wearing a white coat smiling and explaining medication to a female customer in a pharmacy.
3
Get Treatment
Within minutes of your consultation, receive prescriptions, fit notes, or referral letters where clinically appropriate.
Collect prescriptions within an hour of issue
Pick up from ANY pharmacy
Shared with your medical records & NHS GP

The treatment you need, when you need it.

See a licensed clinician online in minutes. If amoxicillin is clinically right for you, your prescription will be sent to your pharmacy the same day.
Book My Consultation
No waiting room
Delivered to your door within 24 hours
Open 365 days a year
Licensed UK clinicians
Secure & confidential
Frequently Asked Questions

Cefalexin FAQs

Can cefalexin be used if I am allergic to penicillin?

It depends on the nature of your penicillin allergy. Cefalexin shares structural similarities with penicillin and a small degree of cross-reactivity (approximately 1–2%) exists. If your penicillin reaction was mild (e.g. a rash occurring days after the drug), cefalexin may be used cautiously after clinical assessment. If you have had a severe immediate reaction such as anaphylaxis to penicillin, cefalexin should generally be avoided and an entirely unrelated antibiotic class selected. Always discuss your allergy history in detail with your clinician.

How quickly does cefalexin work?

Cefalexin is rapidly absorbed after an oral dose, with peak blood levels reached within 1 hour. Most patients notice an improvement in symptoms within 24 to 48 hours. However, completing the full prescribed course is important even if you feel better, to ensure the infection is fully cleared.

Can I take cefalexin for a urinary tract infection?

Yes. Cefalexin is commonly used to treat uncomplicated urinary tract infections, particularly as a second-line option or when other agents are unsuitable. It is generally effective against common urinary pathogens such as E. coli, Klebsiella, and Proteus species.

Is cefalexin safe during pregnancy?

Cefalexin is one of the antibiotics most commonly prescribed in pregnancy and is considered safe for use throughout all trimesters, including for the treatment of UTIs, which are common in pregnancy. Always inform your clinician that you are pregnant so they can make the most appropriate prescribing decision.

Can children take cefalexin?

Yes. Cefalexin is frequently used in children and is available in oral suspension form, making it suitable for younger patients. Paediatric doses are calculated based on body weight and should be prescribed by a clinician.

What is the difference between cefalexin and amoxicillin?

Both are oral antibiotics effective against similar organisms, but they belong to different classes — cefalexin is a cephalosporin and amoxicillin is a penicillin. Amoxicillin is often preferred as first-line treatment for throat infections and respiratory infections, while cefalexin is a commonly used alternative in patients with penicillin allergy and is frequently used for skin and urinary infections.

Medical Disclaimer: The information on this page is provided for educational purposes only and is not intended as a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of a qualified healthcare professional with any questions you may have regarding a medical condition or medication. Never disregard professional medical advice or delay seeking it because of something you have read on this page. If you think you may have a medical emergency, call 999 or your local emergency services immediately.