Doctors Note Logo

Published on: 10/1/2026

Keflex: what it treats and how to take the full course

Keflex (cephalexin) is a first-generation cephalosporin antibiotic prescribed for bacterial infections of the skin, throat, ears, bones, urinary tract, and respiratory tract, but it does not work against viruses like colds or flu. It is usually taken every 6 to 12 hours, with or without food, and the full prescribed course must be finished even after symptoms improve, because stopping early can allow the infection to return and encourage antibiotic resistance. Dosing, duration, interactions, and warning signs such as rash, severe diarrhea, or allergic reaction vary by person and infection, so there are several important details to consider below before starting or stopping treatment.

If you are unsure whether your symptoms point to a bacterial infection that Keflex would treat, or whether new symptoms during treatment need attention, a free, instant, online symptom check can help you organize what you are experiencing in just a few minutes. It offers personalized insight into possible causes and clear guidance on whether to monitor at home, call your prescriber, or seek urgent care next.

Last reviewed for medical accuracy: 10/01/2026

answer background

Explanation

Keflex Medication: What It Treats and How to Take the Full Course

Keflex (generic name: cephalexin) is a commonly prescribed antibiotic in the cephalosporin family. As “keflex medication,” it’s used to fight certain bacterial infections by stopping bacteria from forming cell walls, causing them to rupture and die. Below is a clear, evidence-based guide to what Keflex treats, how it works, and why completing the full course is essential.


What Keflex Treats

Keflex is effective against a range of mild to moderate infections caused by susceptible bacteria. Common uses include:

• Skin and soft tissue infections

  • Cellulitis
  • Impetigo
  • Abscesses

• Respiratory tract infections

  • Pharyngitis (strep throat)
  • Tonsillitis
  • Otitis media (middle ear infection)
  • Sinusitis

• Urinary tract infections (UTIs)

  • Cystitis
  • Uncomplicated pyelonephritis

• Bone infections (osteomyelitis)
• Dental infections and preventive use before certain dental procedures

Always confirm the specific indication with your healthcare provider or lab culture results.


How Keflex Works

  1. Mechanism of Action

    • Keflex interferes with bacterial cell wall synthesis by binding to penicillin-binding proteins (PBPs).
    • Without a proper cell wall, bacteria burst under their own osmotic pressure.
  2. Spectrum of Activity

    • Primarily targets Gram-positive bacteria (e.g., Staphylococcus, Streptococcus).
    • Some activity against Gram-negative organisms (e.g., E. coli, Klebsiella).
  3. Why Antibiotics Must Be Taken Correctly

    • Incomplete courses can lead to resistant bacteria.
    • Stopping too soon may allow surviving bacteria to multiply.

Dosage and Administration

Typical Adult Dosage

  • Mild to moderate infections: 250–500 mg every 6 hours or 500 mg every 12 hours.
  • Severe infections: Up to 1 g every 6 hours, based on doctor’s assessment.

Pediatric Dosage

  • Calculated by weight: 25–50 mg/kg/day divided every 6–12 hours.
  • Maximum daily dose generally 4 g.

Key Points for Taking Keflex Medication

  • Can be taken with or without food.
  • Swallow capsules or tablets whole; do not crush or chew.
  • If using liquid form, shake well before measuring with a proper oral syringe.

Completing the Full Course

  • Always finish all prescribed doses, even if you feel better after a few days.
  • Stopping early increases risk of antibiotic resistance and infection recurrence.
  • If symptoms have resolved but you have leftover pills, continue until the very last dose.

Tips for Adherence

  • Set alarms or phone reminders for each dose.
  • Link pill-taking to daily routines (e.g., meals, brushing teeth).
  • Use a pill organizer or smartphone app to track doses.
  • Keep medication in its original container with the label intact.
  • If you miss a dose and it’s within a few hours, take it as soon as possible.
  • If it’s almost time for your next dose, skip the missed one—do not double up.

Potential Side Effects

Like all medications, keflex medication can cause side effects. Most are mild and resolve on their own, but be aware of what to watch for.

Common Side Effects

  • Gastrointestinal upset: nausea, vomiting, diarrhea
  • Abdominal discomfort or cramps
  • Headache
  • Dizziness

Less Common But Concerning

  • Severe diarrhea or bloody stools (could signal C. difficile infection)
  • Allergic reactions: rash, itching, hives
  • Swelling of face, lips, tongue, or throat (angioedema)
  • Difficulty breathing or wheezing

If you experience any severe or persistent side effects, stop taking the medication and contact your healthcare provider immediately.


Precautions and Drug Interactions

Before You Start

  • Tell your doctor if you have a penicillin allergy—there’s a risk of cross-reaction.
  • Inform about any kidney disease; dose adjustments may be needed.
  • Discuss all current medications, including over-the-counter drugs and supplements.

Common Interactions

  • Probenecid can increase cephalexin blood levels.
  • Metformin: diarrhea from Keflex may affect blood sugar control.
  • Blood thinners (e.g., warfarin): antibiotics can alter gut flora and vitamin K levels, potentially affecting clotting.

When to Seek Medical Help

• No improvement in infection symptoms after 48–72 hours of therapy
• New or worsening fever, redness, swelling, or pain
• Signs of an allergic reaction (see above)
• Severe diarrhea, especially with blood or mucus
• Any symptom that feels life-threatening or unusually severe

For non-urgent questions, you might consider a free, online symptom check, using the doctor approved Ubie Symptom Checker.


Why Finishing the Full Course Matters

  • Prevents survival of partially resistant bacteria
  • Reduces chance of infection relapse or spread
  • Protects community health by slowing antibiotic resistance
  • Ensures the prescribed bacterial eradication threshold is met

Even if you feel 100% better midway, the invisible work of eliminating stubborn bacteria continues.


Final Thoughts

Keflex medication is a powerful tool against many common bacterial infections. By understanding:

  • What it treats
  • How to take it correctly
  • Why completing the full course is vital
  • How to manage side effects and interactions

you empower yourself to recover safely and effectively. Always store Keflex at room temperature, away from moisture and heat, and keep it out of reach of children.

Remember: This information is provided for educational purposes and does not replace professional medical advice. If you have a serious or potentially life-threatening condition, or if you have any concerns while taking Keflex, speak to a doctor right away.

(References)

  • * Caloza DL, Fields LA, Bernfeld GE. "Discontinuous" antibiotic therapy for urinary tract infections. Scand J Infect Dis. 1978;10(1):75-8. doi: 10.3109/inf.1978.10.issue-1.17. PMID: 345423.

  • * Harden K. Indications for Keflex. Br Med J. 1979 Aug 25;2(6188):500. doi: 10.1136/bmj.2.6188.500-b. PMID: 487032; PMCID: PMC1595912.

  • * Brumfitt W. Advances in antimicrobial therapy: extended release cefaclor AF. Postgrad Med J. 1992;68 Suppl 3:S1-2. PMID: 1287611.

  • * Mandel EM, Rockette HE, Paradise JL, Bluestone CD, Nozza RJ. Comparative efficacy of erythromycin-sulfisoxazole, cefaclor, amoxicillin or placebo for otitis media with effusion in children. Pediatr Infect Dis J. 1991 Dec;10(12):899-906. doi: 10.1097/00006454-199112000-00004. PMID: 1766705.

  • * Strömberg A, Schwan A, Cars O. Five versus ten days treatment of group A streptococcal pharyngotonsillitis: a randomized controlled clinical trial with phenoxymethylpenicillin and cefadroxil. Scand J Infect Dis. 1988;20(1):37-46. doi: 10.3109/00365548809117215. PMID: 3129780.

  • * Beisel L. Efficacy and safety of cefadroxil in bacterial pharyngitis. J Int Med Res. 1980;8(Suppl 1):87-93. PMID: 7439511.

  • * Phillips H, Van Hook CJ, Butler T, Todd WM. A comparison of cefpodoxime proxetil and cefaclor in the treatment of acute exacerbation of COPD in adults. Chest. 1993 Nov;104(5):1387-92. doi: 10.1378/chest.104.5.1387. PMID: 8222793.

  • * Mandel EM, Kardatzke D, Bluestone CD, Rockette HE. A comparative evaluation of cefaclor and amoxicillin in the treatment of acute otitis media. Pediatr Infect Dis J. 1993 Sep;12(9):726-32. doi: 10.1097/00006454-199309000-00005. PMID: 8414799.

  • * Cole P. Pharmacologic and clinical comparison of cefaclor in immediate-release capsule and extended-release tablet forms. Clin Ther. 1997 Jul-Aug;19(4):617-25; discussion 603. doi: 10.1016/s0149-2918(97)80087-2. PMID: 9377607.

  • * Brumfitt W, Hamilton-Miller JM. Cefaclor into the millennium. J Chemother. 1999 Jun;11(3):163-78. doi: 10.1179/joc.1999.11.3.163. PMID: 10435677.

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.