Doctors Note Logo

Published on: 9/14/2026

How long does Keflex take to work on an infection?

Keflex (cephalexin) usually starts fighting bacteria within hours of the first dose, but most people do not notice clear improvement in symptoms like pain, redness, or fever until about 24 to 48 hours in, with more complete relief by day 3. Slower response can happen with skin and soft tissue infections, bone or deeper infections, or when the bacteria are resistant, and worsening symptoms after 2 to 3 days is a reason to call a clinician. Finishing the full prescribed course, typically 7 to 14 days, matters even after you feel better, since stopping early invites relapse and resistance. Several factors affect the timeline, including infection type and site, dose and frequency, your kidney function, and whether you take it with food, so see below to understand more before deciding what to do next.

If you are unsure whether your symptoms are improving on schedule or quietly getting worse, a free, instant, online symptom check can help you compare what you are feeling against likely causes and red flags in just a few minutes, so you know whether to keep monitoring at home or get seen today.

Last reviewed for medical accuracy: 09/14/2026

answer background

Explanation

How Long Does Keflex Take to Work on an Infection?

Keflex (generic name: cephalexin) is a commonly prescribed antibiotic in the cephalosporin family. It’s effective against a wide range of bacterial infections, including skin infections, respiratory tract infections, ear infections, and urinary tract infections. Understanding how quickly keflex begins to work can help you set expectations for symptom relief and know when to seek further medical attention.


How Keflex Works

  • Mechanism of action
    Keflex interferes with bacterial cell wall synthesis. By binding to specific penicillin-binding proteins (PBPs), it weakens the bacterial cell wall, causing the bacteria to burst and die.

  • Spectrum of activity
    Effective against many gram-positive and some gram-negative bacteria, such as:

    • Staphylococcus aureus (non-MRSA strains)
    • Streptococcus pyogenes
    • Escherichia coli
    • Proteus mirabilis
    • Klebsiella pneumoniae

Typical Onset of Action

  • Initial improvement
    Most people notice a reduction in fever, pain, or swelling within 24 to 48 hours of starting keflex.
  • Peak effectiveness
    Full antibacterial activity is reached after the first few doses, but visible symptom relief may take up to 72 hours.
  • Why it varies
    • Severity of infection
    • Type of bacteria involved
    • Location of infection (skin vs. urinary tract vs. respiratory tract)
    • Patient factors (age, kidney function, immune status)

Factors That Influence How Quickly Keflex Works

  1. Type and severity of infection

    • Mild skin infections often improve faster than deep-seated or bone infections.
    • Uncomplicated UTIs may show relief sooner than complicated ones.
  2. Dosage and frequency

    • Typical adult dose: 250–500 mg every 6 hours or 500 mg every 12 hours, depending on the infection.
    • Higher doses or more frequent dosing can clear bacteria more quickly but may increase side effects.
  3. Patient’s overall health

    • Good kidney function helps clear the drug properly.
    • Compromised immunity (e.g., diabetes, chemotherapy) can slow response.
  4. Adherence to the full course

    • Stopping early can allow bacteria to regrow and become resistant.
    • Always finish the prescribed duration, even if you feel better.

Expected Timeline for Common Infections

Infection Type Typical Course Length Expected Improvement
Skin and soft tissue 7–10 days 24–48 hours
Urinary tract infections 7 days 24–72 hours
Respiratory tract infections 7–14 days 48–72 hours
Bone and joint infections 4–6 weeks May take longer than 72 hours

Remember, these are general guidelines. Your doctor will tailor the dose and duration to your specific situation.


Signs Your Keflex Is Working

Look for these improvements in the first 1–3 days:

  • Reduced fever and chills
  • Decreased redness, swelling, or drainage at the infection site
  • Less pain or tenderness
  • Improved energy and appetite
  • Better urinary symptoms (less burning, frequency)

When to Talk to Your Doctor

If you experience any of the following, call your healthcare provider promptly:

  • No visible improvement after 72 hours of treatment
  • Worsening symptoms (increased redness, swelling, pain)
  • High fever (above 101.5 °F or sustained fever)
  • Signs of allergic reaction (hives, swelling of face/lips, difficulty breathing)
  • Severe diarrhoea, especially with blood or mucus
  • Yellowing of skin or eyes (jaundice)
  • Any symptom that feels life-threatening or serious

For non-urgent guidance on common symptoms, you might consider doing a free, online symptom check, using the doctor approved Ubie Symptom Checker.


Common Side Effects

Most side effects are mild and resolve on their own. Watch for:

  • Gastrointestinal upset: nausea, vomiting, diarrhoea
  • Yeast infections: oral (thrush) or vaginal
  • Rash or itching

If side effects become severe, persistent, or you experience signs of an allergic reaction, seek medical advice immediately.


Tips to Maximize Keflex’s Effectiveness

  • Take with or without food. Food can help reduce stomach upset, but it isn’t required for absorption.
  • Space doses evenly. Aim for 6- or 12-hour intervals.
  • Stay hydrated. Drinking plenty of water supports kidney clearance.
  • Don’t skip doses. Skipping lowers blood levels and slows recovery.
  • Store properly. Keep capsules or tablets in a cool, dry place.

Why Completing the Full Course Matters

Even if you feel well after a few days, bacteria can linger. Stopping keflex early can:

  • Let remaining bacteria regrow
  • Lead to antibiotic resistance
  • Cause recurrence of the infection, which may be harder to treat

Key Takeaways

  • Keflex generally begins to work within 24–48 hours, with full relief by 72 hours for most uncomplicated infections.

  • Factors like infection type, dosage, and patient health affect the timeline.

  • Common courses range from 7 days (skin, UTIs) to 14 days (respiratory infections).

  • Watch for improvement in fever, pain, and swelling.

  • If symptoms don’t improve or worsen after 72 hours, contact your doctor.

  • Use keflex exactly as prescribed and complete the full course.

  • Manage mild side effects at home; seek help for severe reactions.

  • Consider a free, online symptom check, using the doctor approved Ubie Symptom Checker before deciding if you need a doctor’s appointment.


Final Reminder

This information is meant to help you understand how long keflex may take to work. It does not replace professional medical advice. Always speak to a doctor about any life-threatening or serious symptoms. If you’re unsure whether keflex is right for you or if your infection isn’t improving, reach out to your healthcare provider.

(References)

  • * Roberge RJ, Fowler RM 4th, Mayer NM. Glossal abscess. Am J Emerg Med. 1989 Jul;7(4):406-8. doi: 10.1016/0735-6757(89)90048-x. PMID: 2735988.

  • * Gill CL. Cephalexin. J Am Dent Assoc. 1980 Feb;100(2):172-4. doi: 10.14219/jada.archive.1980.0055. PMID: 6928143.

  • * Skoog SM, Smyrk TC, Talwalkar JA. Cephalexin-induced cholestatic hepatitis. J Clin Gastroenterol. 2004 Oct;38(9):833. doi: 10.1097/01.mcg.0000139074.40365.04. PMID: 15365421.

  • * Ayazi P, Mahyar A, Taremiha A, Ghorani N, Esmailzadehha N. Effect of oral cephalexin in the treatment of BCG lymphadenitis. Infez Med. 2014 Jun;22(2):112-7. PMID: 24955797.

  • * Mogilevski T, Nickless D, Hume S. β-lactam-associated eosinophilic colitis. BMJ Case Rep. 2015 Jun 23;2015. doi: 10.1136/bcr-2014-206964. Epub 2015 Jun 23. PMID: 26106168; PMCID: PMC4480096.

  • * Ekkelenkamp MB, Vervoorn MT, Bayjanov JR, Fluit AC, Benaissa-Trouw BJ, Ramjankhan FZ. Therapy and Outcome of Staphylococcus aureus Infections of Intracorporeal Ventricular Assist Devices. Artif Organs. 2018 Oct;42(10):983-991. doi: 10.1111/aor.13159. Epub 2018 Apr 19. PMID: 29675919; PMCID: PMC6220828.

  • * Gwee A, Autmizguine J, Curtis N, Duffull SB. Twice- and Thrice-daily Cephalexin Dosing for Staphylococcus aureus Infections in Children. Pediatr Infect Dis J. 2020 Jun;39(6):519-522. doi: 10.1097/INF.0000000000002646. PMID: 32412727.

  • * Yamada T, Minami K, Oda K, Suzuki K, Nishihara M, Uchiyama K, Ukimura A. Probability of target attainment of oral antimicrobials for Escherichia coli and Klebsiella pneumoniae based on Monte Carlo simulations. Diagn Microbiol Infect Dis. 2022 May;103(1):115662. doi: 10.1016/j.diagmicrobio.2022.115662. Epub 2022 Feb 25. PMID: 35321800.

  • * Lloyd A, Grey J, Fronczek C, Durkin H, Marr K. Cefdinir vs cephalexin for the treatment of urinary tract infections: A retrospective evaluation. Am J Health Syst Pharm. 2024 May 24;81(Suppl 2):S55-S60. doi: 10.1093/ajhp/zxae026. PMID: 38349523.

  • * Haynes AS, Wei Z, Anderson P, Scheetz MH, Parker SK, Fish DN. Cefadroxil and cephalexin pharmacokinetics and pharmacodynamics in children with musculoskeletal infections. Antimicrob Agents Chemother. 2024 May 2;68(5):e0018224. doi: 10.1128/aac.00182-24. Epub 2024 Apr 10. PMID: 38597672; PMCID: PMC11064491.

Thinking about asking ChatGPT?Ask me instead

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.