Doctors Note Logo

Published on: 9/28/2026

Keflex (Cephalexin): What This Antibiotic Treats and How to Take It

Keflex (cephalexin) is a first-generation cephalosporin antibiotic prescribed for bacterial infections of the skin, throat, ears, bones, urinary tract, and respiratory tract, and it is typically taken by mouth every 6 to 12 hours for 7 to 14 days, with or without food, until the full course is finished even if symptoms improve early. Dosing, timing, kidney function adjustments, alcohol and drug interactions, and side effects such as diarrhea, rash, or allergic reactions vary by person and infection type, so there are several important factors to consider below. Because Keflex only works against bacteria and not viruses, taking it for the wrong illness can delay real relief and contribute to antibiotic resistance. A free, instant, online symptom check can help you clarify whether your symptoms point to a bacterial infection worth a prescription conversation, which questions to raise with a clinician, and how urgently you should be seen. It takes only a few minutes, requires no account, and gives you a clearer starting point before your next appointment.

Last reviewed for medical accuracy: 09/28/2026

answer background

Explanation

Keflex (Cephalexin): What This Antibiotic Treats and How to Take It

Cephalexin, commonly known by the brand name Keflex, is a widely prescribed keflex antibiotic used to treat various bacterial infections. If you’ve been advised to take Keflex, understanding its uses, dosing guidelines, possible side effects, and precautions can help you use it safely and effectively.

What Is Keflex Antibiotic?

  • Class: First-generation cephalosporin antibiotic
  • Formulations: Capsules, tablets, powder for oral suspension
  • Approved uses: Treats infections caused by susceptible bacteria

Cephalexin works by interfering with bacterial cell wall synthesis, causing bacteria to burst and die. It does not work against viral infections (e.g., colds, flu).

Common Infections Treated by Keflex

Keflex antibiotic is effective against a range of mild to moderate bacterial infections, including:

  • Skin and soft tissue infections
    • Cellulitis
    • Impetigo
    • Infected wounds
  • Respiratory tract infections
    • Pharyngitis (strep throat)
    • Tonsillitis
    • Otitis media (middle ear infection)
  • Bone infections (osteomyelitis)
  • Urinary tract infections (uncomplicated cystitis)
  • Dental infections (abscesses)

Your healthcare provider will determine if Keflex is right for your specific infection based on symptoms, physical exam, and possibly lab tests.

How Keflex Works

  1. Absorption: Taken by mouth, cephalexin is well absorbed from the digestive tract.
  2. Distribution: It travels through the bloodstream to infected tissues.
  3. Action: Binds to enzymes (penicillin-binding proteins) on bacterial cell walls.
  4. Result: Weakens the cell wall, causing bacteria to rupture and die.

Keflex antibiotic has a bactericidal effect, meaning it kills bacteria rather than merely stopping their growth.

How to Take Keflex

Follow your doctor’s instructions exactly. Typical guidelines include:

  • Adults: 250–500 mg every 6 hours, or 500 mg–1 g every 12 hours, depending on infection severity.
  • Children: 25–50 mg/kg/day divided every 6–12 hours (up to 4 g/day).
  • With or without food: Taking with food may reduce stomach upset.
  • Complete the course: Even if you feel better after a few doses, finish the full prescription to prevent antibiotic resistance and relapse.

Tips for Better Results

  • Use a dosing schedule you can stick to (set phone alarms).
  • Measure liquid doses with a marked syringe or dosing cup.
  • Do not skip doses; maintain consistent blood levels for optimal effect.
  • Store in the refrigerator if prescribed liquid form; shake well before use.

Potential Side Effects

Most people tolerate Keflex well, but you may experience:

Common (1–10% of users)

  • Diarrhea
  • Nausea or vomiting
  • Dizziness
  • Headache

Less common (0.1–1%)

  • Vaginal yeast infection (itching, discharge)
  • Rash, itching, hives
  • Abdominal pain

Serious (rare)

  • Severe diarrhea (Clostridioides difficile infection)
  • Allergic reactions (swelling of face, lips, tongue; difficulty breathing)
  • Blood disorders (changes in white blood cell count)

If you notice any severe side effects or signs of an allergic reaction, stop Keflex and seek immediate medical attention.

Precautions and Warnings

Before starting Keflex antibiotic, inform your doctor if you have:

  • Allergies: Especially to cephalosporins (Keflex), penicillins, or beta-lactam antibiotics.
  • Kidney disease: Dosage adjustment may be needed.
  • History of gastrointestinal disease: Particularly colitis or Crohn’s disease.
  • Mononucleosis: Increased risk of rash with cephalosporins.

Use Keflex cautiously during pregnancy and breastfeeding. Discuss risks and benefits with your healthcare provider.

Drug Interactions

Keflex may interact with other medications, altering effectiveness or increasing side effects. Important interactions include:

  • Probenecid: Can increase cephalexin levels.
  • Oral contraceptives: Antibiotics may reduce contraceptive efficacy (use backup method).
  • Metformin: Close monitoring of blood sugar and kidney function recommended.
  • Live vaccines: Antibiotics may reduce vaccine effectiveness.

Always provide your healthcare provider a complete list of prescription, over-the-counter, and herbal products you take.

Missed Dose and Overdose

Missed Dose

  • Take as soon as you remember.
  • If it’s within a few hours of your next dose, skip the missed one—do not double up.

Overdose

  • Symptoms: Nausea, vomiting, diarrhea, seizures (rare).
  • What to do: Seek medical attention immediately or call Poison Control.

Storage and Disposal

  • Store capsules/tablets: At room temperature, away from moisture and heat.
  • Store liquid suspension: Refrigerate after reconstitution; discard after 14 days.
  • Keep out of reach of children and pets.
  • Dispose of expired or unused medicine per local guidelines or pharmacy take-back programs.

When to Seek Further Help

  • Symptoms worsen or do not improve after 2–3 days of treatment.
  • You develop high fever, rash, or difficulty breathing.
  • Signs of severe diarrhea (bloody stools, dehydration).
  • Any new, concerning symptom arises.

For peace of mind before starting treatment, consider a free, online symptom check, using the doctor approved Ubie Symptom Checker.

Note: Always speak to a doctor about any life-threatening or serious health issues.


By understanding what Keflex antibiotic treats, how it works, and how to take it safely, you can help ensure a smooth recovery from bacterial infections. Always communicate openly with your healthcare provider, report any unusual side effects, and complete your full course of therapy.

(References)

  • * Potaschmacher LO, Dash CH, Jefferson KA, Kennedy MR. A survey of the sensitivity of fresh clinical isolates to cefuroxime and other antibiotics. J Clin Pathol. 1979 Sep;32(9):944-50. doi: 10.1136/jcp.32.9.944. PMID: 512055; PMCID: PMC1145856.

  • * Kalcheva V, Mincheva Z, Andreeva P. Synthesis and in vitro activity of new cephalosporin derivatives containing a benzoxazolone ring. Arzneimittelforschung. 1990 Sep;40(9):1030-4. PMID: 2080938.

  • * Galante D, Esposito S, Barba D, Scioli C. [Sensitivity of 5 beta-lactam antibiotics to beta-lactamase isolated from E. coli and its respective transconjugates]. Boll Soc Ital Biol Sper. 1983 Nov 30;59(11):1678-82. PMID: 6320847.

  • * Ware MA, Bennett GJ. Case report: Long-standing complex regional pain syndrome relieved by a cephalosporin antibiotic. Pain. 2014 Jul;155(7):1412-1415. doi: 10.1016/j.pain.2014.03.014. Epub 2014 Mar 22. PMID: 24667741.

  • * Smith SC, Heal CF, Buttner PG. Prevention of surgical site infection in lower limb skin lesion excisions with single dose oral antibiotic prophylaxis: a prospective randomised placebo-controlled double-blind trial. BMJ Open. 2014 Jul 30;4(7):e005270. doi: 10.1136/bmjopen-2014-005270. Epub 2014 Jul 30. PMID: 25079934; PMCID: PMC4120377.

  • * Nambudiri VE, Dwyer RC, Camargo CA Jr, Kupper TS, Pallin DJ. Outcome assessment in cellulitis clinical trials: is telephone follow up sufficient? Clin Microbiol Infect. 2015 Jul;21(7):676.e5-7. doi: 10.1016/j.cmi.2015.03.008. Epub 2015 Apr 13. PMID: 25882364.

  • * Thiessen K, Kraleti S. Cephalexin-induced haemolytic anaemia: A case report. J Clin Pharm Ther. 2017 Oct;42(5):615-617. doi: 10.1111/jcpt.12542. Epub 2017 May 5. PMID: 28474415.

  • * Kumar R, Singh AK, Sharma K, Talwar V. A rare case of cephalexin-induced acute interstitial nephritis with hypokalemic periodic paralysis. Indian J Pharmacol. 2020 May-Jun;52(3):210-212. doi: 10.4103/ijp.IJP_532_19. Epub 2020 Aug 4. PMID: 32874004; PMCID: PMC7446675.

  • * Gu S, Rajendiran G, Forest K, Tran TC, Denny JC, Larson EA, Wilke RA. Drug-Induced Liver Injury with Commonly Used Antibiotics in the All of Us Research Program. Clin Pharmacol Ther. 2023 Aug;114(2):404-412. doi: 10.1002/cpt.2930. Epub 2023 May 24. PMID: 37150941; PMCID: PMC10484299.

  • * Zhu T, Du Q, Wang H, Chang S, Wang Z, Guo W, Ngo HH, Song Z, Zhang X. New insights into the impact of cefalexin on anaerobic digestion: microbial stress response and quorum sensing. Bioresour Technol. 2026 Jan;440:133495. doi: 10.1016/j.biortech.2025.133495. Epub 2025 Oct 13. PMID: 41093030.

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.