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
Key Points:
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.[4] All cephalosporin antibiotics have a molecular structure with a beta-lactam ring, capable of preventing bacterial cell wall formation.[1] 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.[1] However, cephalexin is also used to treat common gram-negative bacteria such as E.Coli.[1]
Brand name medications containing cephalexin include Biocef®, Daxbia®, Keflex®, Keftab®, and Daxbia®.[2] Cephalexin is available to patients as a pill, tablet, and oral suspension.[1] In the U.S., cephalexin is the most commonly prescribed oral 1st generation cephalosporin.[5] 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.[6] Painful or difficult urination (dysuria) is the most common symptom associated with UTIs. Other symptoms include frequent urination and blood in the urine.[6]
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.[6]
Cephalexin is used for UTI prophylaxis, the prevention of recurrent UTIs. Women who experience frequent UTIs after sexual activity may benefit from UTI prophylaxis.[6] 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.[7] Systemic medications for acne include oral tetracycline, doxycycline, minocycline, erythromycin, and cephalexin.[7]
Impetigo (Streptococcal impetigo) is a common bacterial skin infection, most commonly occurring in children aged 2-5.[8] However, impetigo can occur at any age.[8] Impetigo appears as blister-like papules on the skin that break down to form crusty, honey-colored lesions.[8] If the lesions occur in confined areas, topical ointments are recommended.[8] When the lesions are more diffuse, systemic oral antibiotics such as cephalexin are prescribed.[8]
Impetigo usually occurs in the summer or in tropical environments.[8] Individuals with poor personal hygiene, frequent skin abrasions, and scabies have an increased risk of impetigo.[8] Since transmission occurs through direct contact with lesions, it is commonly spread in close contact environments, such as daycare centers or nursing homes.[8]
Cellulitis affects deeper layers of the skin and is most commonly caused by the bacteria Streptococcus pyogenes.[9] Individuals with ulcers, wounds, or fungal skin infections can develop cellulitis.[9] Cellulitis presents as warm, pink lesions that are inflamed and painful.[9] Obesity, venous insufficiency, and IV drug abuse can increase your risk of cellulitis.[9]
Cellulitis can also cause a systemic infection accompanied by a fever, malaise, and chills.[9] For individuals without systemic symptoms of cellulitis, oral antibiotics, including cephalexin, are prescribed.[9] If you have localized cellulitis, your healthcare provider may prescribe an oral antibiotic for five days.[9] If an individual develops a systemic infection, IV antibiotics are often recommended.[9]
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.[11] 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.[11]
The symptoms of osteomyelitis vary depending on the location and severity of the infection.[11] When localized, the tissue may appear red, swollen, and painful to the touch.[11] You may also experience fever, lethargy, pain when moving, loss of appetite, sweating, chills, nausea, and pus drainage in the affected area.[11] 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.[11] 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).[13]
Since it is difficult to determine the cause of CAP, a course of empiric antibiotics is often prescribed while waiting for test results.[13] Cephalosporins are prescribed as a combination therapy (multiple medications) for patients with comorbidities such as heart disease or diabetes.[12]
Streptococcus pneumoniae (S. pneumonia) can cause infections in other areas of the body.[14] 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).[14] Young children, older adults, and adults with comorbidities are at higher risk of contracting bacterial infections.[15] 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.
How to Get Antibiotics for a UTI without Seeing a Doctor or Healthcare Provider in Person
References