Reproductive system infections (e.g., prostatitis)
How Cephalexin works
Cephalexin is a type of cephalosporin antibiotic. It works by stopping bacteria from making a protective covering around themselves. This kills the bacteria and helps treat the infection.
The following side effects may get better over time as your body gets used to the medication. Let your healthcare provider know immediately if you continue to experience these symptoms or if they worsen over time.
Not recommended for the cold or flu (these are viral illnesses, not bacterial infections)
Pharmacist tips for Cephalexin
Take cephalexin exactly the way your prescriber tells you. Keep taking it until you finish the full course of treatment, even if you feel better. Stopping too early can make your infection come back and be harder to treat.
You can take cephalexin with or without food. If it makes your stomach upset, you can try taking it with food next time to see if that helps. Avoid spicy or acidic foods, though, because these can make stomach upset more likely.
Swallow the cephalexin tablet or capsule whole. Don't crush or chew it because this could damage the medication. If you have trouble swallowing pills whole, ask your prescriber to switch you to the cephalexin liquid suspension.
Cephalexin can cause mild diarrhea that usually goes away after you stop taking it. But watch for more severe or unusual diarrhea. Get medical help right away if you have watery or bloody diarrhea, diarrhea many times a day, fever, or stomach cramps during or after treatment. These can be signs of serious infectious diarrhea that needs to be treated quickly.
Get medical help as soon as possible if you have a rash, itchy or peeling skin, trouble breathing, or swelling in your face or mouth. These could be signs of a severe allergic reaction to cephalexin.
It's best to avoid drinking alcohol while taking cephalexin. Alcohol can make side effects like nausea and vomiting worse. Drinking alcohol while sick might make it harder for you to get better too. Talk to your prescriber or care team about your drinking habits and how to take this antibiotic safely.
Let your prescriber or the urgent care team know that you're pregnant. Cephalexin is generally considered safe to take while pregnant. But it's always a good idea to discuss the risks and benefits of taking the antibiotic with your care team first.
Tell your prescriber or the urgent care team if you're breastfeeding. Cephalexin is usually a safe antibiotic to take while breastfeeding. Small amounts can pass into breast milk, but it doesn't seem to cause serious harm to babies. Talk to your care team if you have concerns about breastfeeding while taking cephalexin.
The pharmacist will prepare the cephalexin liquid when you pick it up from the pharmacy. They'll also give you medication dose cups or oral syringes to use to measure out the dose.
Shake the cephalexin liquid bottle well before measuring out the dose. This makes sure the medication is mixed evenly before you take it.
Use a dosing cup or oral syringe to measure out the cephalexin liquid. Don't use kitchen spoons because they aren't accurate and using them might cause you to take the wrong dose.
Store the cephalexin liquid suspension in the refrigerator for up to 14 days. After 14 days, throw away the bottle, even if there's still some medication left.
Cephalexin can cause some serious health issues. This risk may be even higher for certain groups. If this worries you, talk to your doctor or pharmacist about other options.
Allergic reactions
Risk factors: Allergy to penicillin or other cephalosporin antibiotics
Some people can have allergic reactions to cephalexin. Mild reactions can include a rash or hives. More serious, life-threatening reactions can include blisters, peeling skin, swelling of the face, and anaphylaxis.
Tell your healthcare team if you're allergic to any antibiotics, especially penicillins or other cephalosporins. They can make sure cephalexin is safe for you.
Get medical help right away if you have a rash, hives, red or peeling skin, swelling of the lips or tongue, or trouble breathing after taking cephalexin. These can be signs of an allergic reaction.
Diarrhea from Clostridioides difficile infection
Antibiotics including cephalexin can change the normal bacteria in your gut. This can let harmful bacteria called Clostridioides difficile (C. diff) grow too much and cause a serious infection. This infection can lead to severe diarrhea, even up to 2 months after you stop the antibiotic.
It's important to know the difference between mild diarrhea from cephalexin and serious diarrhea from C. diff. Signs of a C. diff infection include fever, nausea, foul-smelling diarrhea, and frequent bowel movements. Get medical help right away if you have any signs of this infectious diarrhea. This can be a medical emergency and should get treated as soon as possible.
Seizures
Risk factors: Kidney problems | Taking high doses of cephalexin
Cephalexin might raise your risk of seizures, especially when the dose is too high. You also might be at risk if you have kidney problems and the cephalexin dose isn't lowered enough for you. When the kidneys don't work well, the medication can build up in the body and raise the risk of side effects, including seizures.
Tell your prescriber or the urgent care team if you've had seizures or if you have kidney problems. They can make sure that cephalexin is safe for you. If you have a seizure while taking this medication, get medical help right away.
Cephalexin might raise your risk of bleeding. The risk might be higher if you have kidney problems, liver problems, or poor nutrition. It's also higher if you take an anticoagulant (blood thinner).
Talk to your prescriber or the urgent care team about your bleeding risk before taking cephalexin. If you take a blood thinner, the prescriber might ask you to follow up with the specialist who manages that medication for you. Watch for signs of bleeding, like easy bleeding or bruising or blood in your urine or stool. If this happens, tell your prescriber.
Possible development of drug-resistant bacteria
Take cephalexin exactly as your prescriber told you. Don't take it for a shorter or longer time, and don't take it for other illnesses. Otherwise, it can raise your risk of developing infections caused by drug-resistant bacteria. These infections can be very serious and harder to treat.
Cephalexin dosage
The average cost for 28 capsules of 500mg of Cephalexin is $10.68 with a free GoodRx coupon. This is 64.34% off the average retail price of $29.95.
Ages 15 years and older: The typical dose is 250 mg by mouth every 6 hours. Another option is 500 mg by mouth every 12 hours. For more severe infections, you might need a higher dose (up to a total of 4 grams per day, split into 2 to 4 doses). Treatment often lasts for 7 to 14 days.
Ages 1 to under 15 years: The dose is based on your child's body weight. The typical total daily dose is 25 mg/kg to 50 mg/kg of body weight by mouth. This total dose is split up into smaller doses throughout the day, as directed by the prescriber. For more severe infections, such as an ear infection, your child might need a higher dose of up to 100 mg/kg per day. Treatment often lasts for 7 to 14 days.
Contraindications are specific health conditions or situations in which a person should not take a medication due to safety concerns. If you have any of the following conditions or if any of the following apply to you, let your healthcare provider know because Cephalexin will not be safe for you to take.
This medicine is Orange Capsule Imprinted With "93 3147 93 3147", "Teva 3147".Orange Capsule 93 3147 93 3147 - Cephalexin 500mg CapsuleThis medicine is Orange Capsule Imprinted With "93 3147 93 3147", "Teva 3147".Orange Capsule 93 3147 93 3147 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "J2 J2".Green Capsule J2 J2 - Cephalexin 500mg CapsuleThis medicine is Red Capsule Imprinted With "Logo 4074 Logo 4074".Red Capsule LOGO 4074 LOGO 4074 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "219 219".Green Capsule 219 219 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "219 219".Green Capsule 219 219 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "A 43 500 Mg".Green Capsule A 43 500 mg - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "500 Lupin 500 Lupin".Green Capsule 500 LUPIN 500 LUPIN - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "294 294".Green Capsule 294 294 - Cephalexin 500mg CapsuleThis medicine is White Capsule Imprinted With "802".White Capsule 802 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "141 Klx".Green Capsule 141 KLX - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "J2 J2".Green Capsule J2 J2 - Cephalexin 500mg CapsuleThis medicine is White Capsule Imprinted With "802".White Capsule 802 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "A 43 500 Mg".Green Capsule A 43 500 mg - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "141 Klx".Green Capsule 141 KLX - Cephalexin 500mg CapsuleThis medicine is Orange Capsule Imprinted With "Teva 3147".Orange Capsule TEVA 3147 - Cephalexin 500mg CapsuleThis medicine is White Capsule Imprinted With "802".White Capsule 802 - Cephalexin 500mg CapsuleThis medicine is White Capsule Imprinted With "802".White Capsule 802 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "J2 J2".Green Capsule J2 J2 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "294 294".Green Capsule 294 294 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "219 219".Green Capsule 219 219 - Cephalexin 500mg CapsuleThis medicine is Orange Capsule Imprinted With "93 3147 93 3147".Orange Capsule 93 3147 93 3147 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "J2 J2".Green Capsule J2 J2 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "J2 J2".Green Capsule J2 J2 - Cephalexin 500mg CapsuleThis medicine is Red Capsule Imprinted With "N 114 500".Red Capsule N 114 500 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "219 219".Green Capsule 219 219 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "219 219".Green Capsule 219 219 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "Rx657 Rx657".Green Capsule RX657 RX657 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "294 294".Green Capsule 294 294 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "Rx657 Rx657".Green Capsule RX657 RX657 - Cephalexin 500mg CapsuleThis medicine is Green Capsule Imprinted With "A 43 500 Mg".Green Capsule A 43 500 mg - Cephalexin 500mg Capsule
GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.
Prescription savings
Stop paying too much for your prescriptions. Compare prices, get pharmacy coupons, and save up to 80%.
Plans start at $9.99/mo. (when paid yearly). Terms apply.
Common questions about Cephalexin
Cephalexin treats many types of infections and covers many different organisms (bugs). It can fight against a wider range of bacteria than penicillin and amoxicillin, but this doesn't necessarily mean that Cephalexin is the best choice for all infections. This is because having a wider range of bacteria that the antibiotic can fight against can raise the risk for resistance, leading to harder-to-treat infections. But Cephalexin is a first-choice antibiotic to treat specific infections in certain people, like urinary tract infections (UTI) during pregnancy.
Maybe. In general, the chance of having an allergic reaction to Cephalexin if you're allergic to penicillin is low. Tell your primary care provider or the urgent care team if you have or think you've had an allergic reaction to penicillin in the past. They'll decide whether you can take Cephalexin depending on what your reaction was like. For mild reactions to penicillin like rash or itchiness, you'll probably be able to take Cephalexin and the prescriber might ask that you watch for any allergic reactions. But for severe reactions to penicillin like facial swelling or closing of the throat, it's possible that you'll get prescribed a different antibiotic to be safe.
There's no direct interaction between Cephalexin and alcohol, but they can cause similar side effects like nausea, vomiting, and diarrhea. In general, it's best to avoid drinking alcohol when you have an infection. Drinking alcohol can make it harder for your immune system to fight off the infection.
Cephalexin might interact with a few medications and potentially raise your risk of side effects. When it's taken with a common diabetes medication called metformin, Cephalexin can raise the levels of metformin in the blood. This might affect your risk of having side effects from metformin. Additionally, the gout medication probenecid can affect how well your body gets rid of Cephalexin. This might raise your risk of side effects from Cephalexin. Tell your healthcare team if you're taking either of these medications before you start Cephalexin.
No. Don't take Cephalexin or any other antibiotics you might have at home until you speak to a healthcare professional first. There might be a more appropriate antibiotic you should be taking for your particular infection. Taking Cephalexin when you don't need it can cause side effects. It can also raise the risk for bacteria to become resistant to antibiotics. This means that bacteria can develop a defense against antibiotics so that the antibiotics no longer work to fight against the infection. This can make the infection become severe (sometimes life-threatening) and hard to treat. Schedule a visit with your primary care provider or urgent care if you feel sick so that you can be prescribed proper treatment, if needed.
Although Cephalexin isn't the go-to antibiotic for strep throat, it's a good option for people who have a mild penicillin allergy and can't take penicillin for strep. Tell your primary care provider or the urgent care team about allergies to any antibiotics. They'll decide which antibiotic is right for you for strep.
No. Cephalexin isn't a sulfa drug; it's a cephalosporin antibiotic. You can safely take Cephalexin if you have a sulfa allergy because it belongs to a different class of antibiotics.
Cephalexin is a type of cephalosporin antibiotic. It works by stopping bacteria from making a protective covering around themselves. This kills the bacteria and helps treat the infection.Learn more
Cephalexin is an antibiotic used to treat a number of bacterial infections. It belongs to a class of antibiotics called cephalosporins. It’s often taken for urinary tract infections, ear infections, certain respiratory infections, and more. Learn more
Cephalexin is often taken for urinary tract infections, ear infections, certain respiratory infections, and more. And it can be taken by both adults and children. As with any medication, cephalexin has some side effects to be aware of while you’re taking it.Learn more
The most common cephalexin side effects are diarrhea, nausea, and stomach pain. Headache, fatigue, and vaginal yeast infections can also happen. Serious cephalexin side effects are rare, but possible. They include infectious diarrhea, seizures, and an increased risk of bleeding. Severe allergic reactions can also happen. Learn more
Most cephalexin side effects are mild and should go away once your prescription is finished. This may include symptoms such as diarrhea, nausea, stomach pain, dizziness, fatigue, and headache. But there are some serious side effects to be aware of. Rare but serious risks include Costridioides difficile diarrhea, allergic reactions, liver problems, kidney problems, low blood cell counts, confusion, agitation, an increased risk of bleeding, and seizures. Side effects like these warrant medical attention; you shouldn't wait for them to go away on their own.Learn more
It's best to avoid alcohol while taking cephalexin. Some healthcare professionals may also want you to avoid a medication called probenecid while you're taking this antibiotic. It's also a good idea to separate your cephalexin doses from zinc-containing supplements and live oral typhoid (Vivotif) and cholera (Vaxchora) vaccines.Learn more