Cephalexin
Cephalexin is used to treat bacterial infections including skin, respiratory, and urinary tract infections. It is available as Keflex and is commonly prescribed in the antibiotics category.
About Cephalexin
Cephalexin is a first-generation cephalosporin antibiotic also known by the brand name Keflex. It is primarily used to is prescribed to treat: • Bacterial infections including skin, respiratory, and urinary tract infections • Various related conditions in the antibiotics category • Associated symptoms and complications It is an important medication that helps manage these conditions effectively. Cephalexin is available in oral capsule (250 mg, 500 mg, 750 mg), oral tablet (250 mg, 500 mg), and oral suspension (125 mg/5 ml, 250 mg/5 ml) form.
Cephalexin at a Glance
- Brand names
- Keflex
- Drug class
- First-Generation Cephalosporin Antibiotic
- Pregnancy category
- FDA Category Category B — Animal studies have not shown evidence of fetal harm, and observational human data have not demonstrated an increased risk of major birth defects. Cephalexin is generally considered safe across all trimesters when clinically indicated, including for urinary tract infections and Group B Streptococcus prophylaxis.
- Available forms
- Oral capsule (250 mg, 500 mg, 750 mg), Oral tablet (250 mg, 500 mg), Oral suspension (125 mg/5 mL, 250 mg/5 mL)
- Therapeutic categories
- Antibiotics, Cephalosporins, Infectious Disease
What Cephalexin Is Used For
is prescribed to treat:
• Bacterial infections including skin, respiratory, and urinary tract infections • Various related conditions in the antibiotics category • Associated symptoms and complications
It is an important medication that helps manage these conditions effectively.
Dosage Quick Reference
These are general dosage guidelines for Cephalexin. Your doctor will determine the appropriate dose for your specific situation.
| Condition | Starting Dose | Maintenance Dose |
|---|---|---|
| Uncomplicated cystitis (urinary tract infection) | 500 mg every 12 hours | 500 mg every 12 hours for 5–7 days |
| Skin and soft tissue infection (mild-to-moderate) | 500 mg every 6 hours | 500 mg every 6 hours for 7–14 days |
| Streptococcal pharyngitis | 500 mg every 12 hours | 500 mg every 12 hours for 10 days |
| Acute otitis media (children) | 25–50 mg/kg/day divided every 6–12 hours | Continue same dose for 7–10 days |
| Endocarditis prophylaxis (dental procedures) | 2 g single dose 30–60 min before procedure | Single dose only |
Side Effects
Common side effects may include:
• Nausea or stomach upset • Headache • Dizziness or lightheadedness • Fatigue or tiredness • Mild rash or itching
Serious side effects (seek immediate medical attention):
• Severe allergic reactions (rash, hives, swelling, difficulty breathing) • Unusual bleeding or bruising • Severe stomach pain • Signs of liver problems (yellowing of skin/eyes, dark urine) • Chest pain or irregular heartbeat • Severe dizziness or fainting • Signs of serious adverse effects
See also: Drug Interactions ↓
Drug Interactions
Cephalexin has a relatively low potential for clinically significant drug interactions, but a few are worth recognizing.
- Probenecid: Inhibits the renal tubular secretion of cephalexin, raising and prolonging its plasma concentration. This combination is occasionally used intentionally to extend antibiotic exposure but should be avoided when high cephalexin levels are not desired.
- Metformin: Cephalexin can increase metformin plasma concentrations through competition for renal cation transporters, potentially raising the risk of lactic acidosis in patients with impaired kidney function. Monitor for metformin-related side effects in patients with reduced renal clearance.
- Warfarin: Although less commonly than with broader-spectrum antibiotics, cephalexin may modestly enhance the anticoagulant effect of warfarin by altering gut flora that synthesize vitamin K. Check INR within a week of starting therapy.
- Oral typhoid vaccine (live): Antibiotics may inactivate the live attenuated bacteria in the oral typhoid vaccine. Separate administration by at least 24 hours after the last antibiotic dose.
- Loop diuretics and aminoglycosides: When cephalexin is combined with these nephrotoxic agents, monitor renal function more closely, particularly in older adults and patients with baseline kidney impairment.
See also: Questions to Ask Your Doctor ↓
Key Considerations
Known drug interactions
Cephalexin has documented interactions with other medications, supplements, and certain foods. Review the Drug Interactions section below and tell your healthcare provider about every medication you take, including over-the-counter products. Jump to section →
Multiple forms available
Cephalexin comes in more than one form (Oral capsule (250 mg, 500 mg, 750 mg), Oral tablet (250 mg, 500 mg), Oral suspension (125 mg/5 mL, 250 mg/5 mL)). The right form for you depends on your condition, ease of use, and your provider's recommendation.
Additional Information
Cephalexin (Keflex) is a first-generation cephalosporin used for skin and soft-tissue infection, streptococcal pharyngitis, uncomplicated urinary tract infection, and bone and joint infection. It is a workhorse outpatient antibiotic — narrow enough to be a responsible choice, effective against the organisms that cause most community skin infections, and inexpensive.
Mechanism of Action
Cephalexin is a beta-lactam. It binds penicillin-binding proteins and blocks the transpeptidase cross-linking that gives the bacterial cell wall its structural integrity, so the organism cannot withstand internal osmotic pressure and lyses. Human cells have no peptidoglycan wall, which is why beta-lactams are so well tolerated.
As a first-generation cephalosporin, its spectrum is weighted toward Gram-positive organisms — particularly methicillin-sensitive Staphylococcus aureus and Streptococcus species — with modest Gram-negative coverage including many E. coli, Klebsiella, and Proteus. Later cephalosporin generations trade Gram-positive potency for broader Gram-negative reach, so cephalexin is actually better than a third-generation agent for a straightforward staphylococcal skin infection.
It does not cover MRSA. This is the single most important limitation in practice, since community-acquired MRSA is common in skin and soft-tissue infection. Where MRSA is suspected — a purulent abscess, prior MRSA, or failure on cephalexin — doxycycline, trimethoprim-sulfamethoxazole, or clindamycin is needed instead or in addition.
Like other beta-lactams, cephalexin is time-dependent: efficacy tracks the proportion of the dosing interval during which drug concentration exceeds the organism's minimum inhibitory concentration. Its short half-life is why it is dosed several times daily, and why spreading doses matters more than the daily total.
Clinical Use
Cephalexin is first-line for non-purulent cellulitis, where streptococci predominate and MRSA is less likely. For a purulent abscess, drainage is the primary treatment and MRSA coverage is usually appropriate — a distinction that determines antibiotic choice more reliably than the appearance of the surrounding skin does.
It is an alternative for streptococcal pharyngitis, useful in patients with a non-severe penicillin allergy, and it treats uncomplicated urinary infection, including in pregnancy where its safety record is strong.
The penicillin allergy question comes up constantly here. Cross-reactivity between penicillins and cephalosporins is far lower than the historically quoted ten percent, and modern estimates put it around one to two percent, concentrated among agents sharing similar side chains. A patient with a history of a mild childhood rash on amoxicillin can generally receive cephalexin safely. A patient with documented anaphylaxis to a penicillin should not, without allergy assessment. Distinguishing these two histories is worth the two minutes it takes, because the alternative is a broader, more toxic antibiotic for no reason. The antibiotic resistance article covers why narrow-spectrum choices matter, and the CDC antibiotic prescribing resource sets out the stewardship rationale.
Monitoring and Follow-Up
Short courses in healthy patients require no laboratory monitoring. Prolonged therapy — for bone or joint infection, for instance — warrants periodic blood count, kidney function, and liver enzyme checks.
Clinical response is the key follow-up. In cellulitis, improvement in erythema, warmth, and pain within 48 to 72 hours is expected. Failure to improve suggests MRSA, an undrained abscess, a resistant organism, or a non-infectious mimic — venous stasis dermatitis is frequently mistaken for bilateral cellulitis, and bilateral lower leg redness is far more often stasis than infection. Escalating the antibiotic in that situation treats the wrong problem.
Cephalexin is renally cleared and requires dose adjustment in significant kidney impairment. It has few drug interactions, which is one of its practical merits. Severe or persistent watery diarrhoea during or after a course raises the possibility of C. difficile. The MedlinePlus cephalexin entry covers prescribing detail.
Course length and dosing frequency are both worth getting right. Cephalexin's short half-life means it is dosed three or four times daily, and adherence falls measurably with each additional daily dose — a patient taking it twice a day because four is impractical is under-treating without realising it. Where frequency is genuinely unworkable, a different agent with less demanding dosing is a better answer than a schedule the patient cannot follow. Course length for uncomplicated cellulitis has also shortened, with five to six days now generally sufficient in patients who are improving, rather than the ten to fourteen days once routinely prescribed.
Special Populations
In pregnancy cephalexin is well established and is a common choice for urinary infection. It is compatible with breastfeeding.
In older adults it is generally well tolerated, with dose adjustment for kidney function the main consideration. In children it is widely used with weight-based dosing. Patients with documented severe IgE-mediated penicillin allergy — anaphylaxis, angioedema, bronchospasm — should avoid cephalosporins without allergy evaluation, while those with a non-severe delayed rash history can usually receive them.
One distinction worth drawing for patients is between an antibiotic that is failing and an infection that is simply slow. Cellulitis often looks worse for the first 24 to 48 hours as inflammation continues even once bacterial growth is controlled, and the redness may extend slightly before it recedes. Marking the border of the erythema with a pen at the start gives an objective reference point and prevents both premature escalation and dangerous complacency.
When to Contact Your Doctor
Seek emergency care for difficulty breathing, swelling of the face, lips, or tongue, or a rapidly spreading hive-like rash. Report any rash so it can be characterised rather than becoming a permanent allergy label by default.
Report severe or persistent watery diarrhoea with abdominal cramping, during or in the weeks after a course. Report failure to improve within two to three days, spreading redness, fever, or increasing pain — cellulitis that is worsening on treatment needs prompt reassessment rather than a longer course. Any blistering or peeling rash needs immediate evaluation.
To discuss a skin infection that is not improving, review an antibiotic allergy label, or address recurrent infection, contact us or schedule a visit.
Frequently Asked Questions
Questions to Ask Your Doctor About Cephalexin
Consider discussing these topics at your next appointment:
- Is cephalexin the most appropriate antibiotic for my specific infection?
- Given my penicillin allergy history, is it safe for me to take a cephalosporin?
- How will we know if the infection is responding, and when should I follow up?
- Should I take a probiotic alongside cephalexin to reduce the risk of diarrhea?
- What symptoms should make me stop the medication and call your office?
Medical Disclaimer: This information is for educational purposes only and should not be considered medical advice. Always consult with your healthcare provider before starting, stopping, or changing any medication. Your doctor can provide personalized recommendations based on your specific health condition and medical history.