Written on June 28, 2023 by Theresa Vuskovich, DMD. To give you technically accurate, evidence-based information, content published on the Everlywell blog is reviewed by credentialed professionals with expertise in medical and bioscience fields.
Table of contents
Cephalexin is an antibiotic used for treating a variety of bacterial infections throughout the body.[1-3] Cephalexin is similar to penicillin, another common antibiotic, due to its mechanism of action and ability to treat different types of bacterial infections.[1-3] This article explains cephalexin and answers, “What is cephalexin used for?”
Cephalexin is a member of the cephalosporin antibiotic family.[1,2] Other cephalosporin antibiotics include cefazolin, cefuroxime, and ceftriaxone. All cephalosporin antibiotics have a molecular structure with a beta-lactam ring, capable of preventing bacterial cell wall formation. Cephalexin and penicillin (amoxicillin) are similar since both have beta-lactam rings and prevent bacterial cell wall formation.
Cephalexin is a 1st generation cephalosporin, and the U.S. Food and Drug Administration (FDA) approved cephalexin for the treatment of bacterial infections in 1971 under the brand name Keflex®.[2,4] Cephalexin is most effective against gram-positive bacteria such as Staphylococcus aureus. However, cephalexin is also used to treat common gram-negative bacteria such as E.Coli.
Brand name medications containing cephalexin include Biocef®, Daxbia®, Keflex®, Keftab®, and Daxbia®. Cephalexin is available to patients as a pill, tablet, and oral suspension. In the U.S., cephalexin is the most commonly prescribed oral 1st generation cephalosporin. It is important to note that cephalexin is not used for the treatment of viral infections such as flu.[1-3] A healthcare provider may prescribe cephalexin for a variety of bacterial infections, some of which are discussed below.
Urinary tract infections (UTIs) are among the most common bacterial infections, with 60% of women experiencing at least one during their life. UTIs are bacterial infections occurring anywhere within the urinary system. Up to 50% of women who have a UTI will have recurrent episodes. Painful or difficult urination (dysuria) is the most common symptom associated with UTIs. Other symptoms include frequent urination and blood in the urine.
The most common cause of UTIs is E.Coli, a bacteria that cephalexin is capable of treating. However, cephalexin is not used as the first treatment option for a UTI. Nitrofurantoin, trimethoprim-sulfamethoxazole (TMP-SMX), and fosfomycin are first-line medications for treating UTIs.
Cephalexin is used for UTI prophylaxis, the prevention of recurrent UTIs. Women who experience frequent UTIs after sexual activity may benefit from UTI prophylaxis. If you think you may have a UTI or want to talk to a healthcare provider about UTI prophylaxis, online treatment is available.
Cephalexin is used for treating a variety of skin infections, including acne, impetigo, and cellulitis.[7-9] While acne is often treated topically, moderate to severe inflammatory acne may become resistant to topical therapy, requiring systemic medications. Systemic medications for acne include oral tetracycline, doxycycline, minocycline, erythromycin, and cephalexin.
Impetigo (Streptococcal impetigo) is a common bacterial skin infection, most commonly occurring in children aged 2-5. However, impetigo can occur at any age. Impetigo appears as blister-like papules on the skin that break down to form crusty, honey-colored lesions. If the lesions occur in confined areas, topical ointments are recommended. When the lesions are more diffuse, systemic oral antibiotics such as cephalexin are prescribed.
Impetigo usually occurs in the summer or in tropical environments. Individuals with poor personal hygiene, frequent skin abrasions, and scabies have an increased risk of impetigo. Since transmission occurs through direct contact with lesions, it is commonly spread in close contact environments, such as daycare centers or nursing homes.
Cellulitis affects deeper layers of the skin and is most commonly caused by the bacteria Streptococcus pyogenes. Individuals with ulcers, wounds, or fungal skin infections can develop cellulitis. Cellulitis presents as warm, pink lesions that are inflamed and painful. Obesity, venous insufficiency, and IV drug abuse can increase your risk of cellulitis.
Cellulitis can also cause a systemic infection accompanied by a fever, malaise, and chills. For individuals without systemic symptoms of cellulitis, oral antibiotics, including cephalexin, are prescribed. If you have localized cellulitis, your healthcare provider may prescribe an oral antibiotic for five days. If an individual develops a systemic infection, IV antibiotics are often recommended.
Bone infections (osteomyelitis) occur when bacteria penetrate the bone, causing inflammation and potentially osteonecrosis (death of the bone).[10,11] Dental infections, deep wounds, broken bones, or a recent surgical procedure can increase your risk of osteomyelitis. Additionally, you have an increased risk of bone infections if you have type 2 diabetes (T2D), metal implants, a weak immune system, an artificial joint, or a blood infection.
The symptoms of osteomyelitis vary depending on the location and severity of the infection. When localized, the tissue may appear red, swollen, and painful to the touch. You may also experience fever, lethargy, pain when moving, loss of appetite, sweating, chills, nausea, and pus drainage in the affected area. While many bone infections can resolve on their own, others require oral or IV antibiotics.[10,11] Your healthcare provider may prescribe oral cephalexin for mild bone infections. If you are having surgery, your healthcare provider may also prescribe an oral antibiotic to take prior to surgery (prophylaxis) to reduce the risk of a bacterial infection.
Cephalexin is used for treating lower respiratory tract infections (LRTIs), including community-acquired pneumonia (CAP).[12-14] While CAP can occur due to a viral infection, the bacteria Streptococcus pneumoniae (pneumococcus) can also cause CAP. CAP can cause a cough, chills, fever, and difficulty breathing (dyspnea).
Since it is difficult to determine the cause of CAP, a course of empiric antibiotics is often prescribed while waiting for test results. Cephalosporins are prescribed as a combination therapy (multiple medications) for patients with comorbidities such as heart disease or diabetes.
Streptococcus pneumoniae (S. pneumonia) can cause infections in other areas of the body. In addition to CAP, S. pneumonia can cause bacteremia (blood infection), sinusitis (sinus infection), otitis media (middle ear infection), and meningitis (infection of the lining of the brain and spinal cord). Young children, older adults, and adults with comorbidities are at higher risk of contracting bacterial infections. Prevention starts by washing your hands frequently, avoiding contact with infected individuals, and staying home if you suspect you are infected.
This article offers an overview of the conditions cephalexin treats, but it is not comprehensive. Your healthcare provider may prescribe cephalexin for other bacterial infections. When you are prescribed cephalexin, it is important to know the following[1-4]:
Virtual care visits are available via Everlywell, enabling you to speak with a healthcare provider wherever you are. Virtual care visits are synchronous telehealth appointments with a licensed nurse practitioner who can assess your symptoms and help you determine what tests and medications you need. So if you are wondering about UTI antibiotics online, visit the Everlywell telehealth page for more information on how virtual visits work.