Most E. coli strains are susceptible to Keflex (cephalexin). In clinical studies of urinary tract infections, only about 6% of E. coli isolates showed resistance to the drug. Keflex is FDA-approved for treating genitourinary tract infections caused by susceptible E. coli, and it remains a commonly prescribed option for uncomplicated UTIs and other E. coli infections.
That said, susceptibility isn’t guaranteed. Resistance patterns vary by region, and certain strains of E. coli produce enzymes that render Keflex ineffective. Understanding when Keflex works and when it doesn’t can help you make sense of your test results or treatment plan.
How Keflex Works Against E. Coli
Keflex is a first-generation cephalosporin, a class of antibiotics that kills bacteria by disrupting their ability to build cell walls. Without an intact cell wall, E. coli can’t survive or reproduce. First-generation cephalosporins are particularly effective against common gram-negative bacteria like E. coli, which is why Keflex has been a go-to choice for urinary tract infections for decades.
In a study of 129 women with acute lower urinary tract infections, E. coli was the most common pathogen, responsible for 81% of infections. Among those E. coli strains, 94% were susceptible to cephalexin. The overall cure rate for patients with susceptible organisms was 68%, which reflects the limitations of the single-dose regimen used in that particular study rather than a problem with the drug itself. Standard multi-day courses typically perform better.
When Keflex Won’t Work
The main concern with using Keflex against E. coli is a type of resistance driven by enzymes called extended-spectrum beta-lactamases (ESBLs). These enzymes, produced by some E. coli strains, physically break down cephalosporins and penicillins before they can do their job. ESBL-producing E. coli is resistant to Keflex, and no dose adjustment will overcome it. A different class of antibiotic is needed entirely.
According to the CDC, ESBL-producing E. coli is a growing problem. These resistant strains are increasingly common in both hospital and community settings. If you’ve had recurrent infections, recent antibiotic use, or a hospitalization, your risk of carrying an ESBL-producing strain is higher. This is one reason doctors often order a urine culture and sensitivity test before choosing an antibiotic: it tells them exactly which drugs your specific strain of E. coli will respond to.
Even without ESBL production, some E. coli strains carry other resistance mechanisms. Local resistance rates matter. In some communities, E. coli resistance to first-generation cephalosporins runs higher than the 6% seen in older studies, which is why empiric prescribing (choosing an antibiotic before culture results come back) depends heavily on regional data.
What Keflex Is Approved to Treat
The FDA label for Keflex specifically lists genitourinary tract infections caused by susceptible E. coli, including acute prostatitis. In practice, it’s most often prescribed for uncomplicated urinary tract infections (simple bladder infections in otherwise healthy people). It’s also used for skin infections, respiratory tract infections, and bone infections, though E. coli is primarily a concern in the urinary tract.
For complicated urinary tract infections, such as those involving the kidneys, structural abnormalities, or catheters, the Infectious Diseases Society of America considers first-generation cephalosporins like Keflex less well studied than other options. They note these drugs “may be appropriate in select settings” but aren’t first-line recommendations for complicated cases. For a straightforward bladder infection with a confirmed susceptible organism, Keflex is a reasonable and effective choice.
Typical Treatment Course
For adults, the standard Keflex dose is 250 mg every 6 hours or 500 mg every 12 hours, taken for 7 to 14 days depending on the infection’s severity and location. More serious infections may require up to 4 grams per day split into two to four doses. For children over one year old, dosing is weight-based at 25 to 50 mg per kilogram per day.
People with reduced kidney function need adjusted doses, since the kidneys are the primary route for clearing the drug. If kidney function is moderately reduced, the maximum daily dose drops to 1 gram. With more significant impairment, both the dose and frequency decrease further.
Why Culture Results Matter
If you’re looking up whether E. coli is susceptible to Keflex, you may be reviewing lab results or wondering whether your prescribed antibiotic will actually work. The most reliable answer comes from a culture and sensitivity report, which tests your specific bacterial strain against a panel of antibiotics. The report will list Keflex (or cephalexin) as “susceptible,” “intermediate,” or “resistant.”
If your culture shows a susceptible strain, Keflex should be effective when taken as directed. If it shows resistance, your provider will need to switch to a different antibiotic. If you were started on Keflex before culture results came back and the results later show resistance, don’t be surprised if your prescription changes. That’s a normal part of the process, not a mistake.

