Medication
Is Cephalexin Safe in Pregnancy? Keflex, UTI, 500 mg
Published 2026-07-09 | By SafeMama Editorial Team | Editorial policy
Short answer
Often, yes when a clinician prescribes it for a bacterial infection such as a UTI. Cephalexin is the same antibiotic as cefalexin and Keflex, but do not start it from search results or leftover capsules. The right plan depends on the infection, urine culture or swab result, allergy history, kidney history, dose strength such as 500 mg, and whether symptoms are improving.
Often used when prescribed
What is the safest way to think about this?
MotherToBaby describes cephalexin pregnancy data as limited: one 262-person study did not find more miscarriages, while another study reported an increased chance, and the available birth defect studies did not show an increased chance. NHS says cefalexin can be taken in pregnancy, BUMPS says most cephalosporin studies have not shown harm to the baby, and ACOG lists cephalexin among regimens used for some pregnancy UTIs. LactMed describes cephalexin as acceptable during breastfeeding, with infant diarrhea, thrush or rash as symptoms to watch for. The decision still depends on the infection, culture result, allergy history and follow-up plan.
Checking a different medicine? The Pregnancy Medication Safety Hub collects all 154 SafeMama medicine guides, including the active-ingredient and dose questions worth raising with a pharmacist.
What is generally okay?
- Take the exact prescribed dose, strength and course. Do not change a 500 mg or other label strength based on search results.
- Tell your clinician about penicillin or cephalosporin allergy, kidney disease, severe diarrhea with past antibiotics, and the exact reaction you had.
- Ask if a urine culture, test-of-cure or follow-up test is needed for UTI symptoms.
- Ask how quickly symptoms should start improving and what to do if culture results change the antibiotic plan.
What should you avoid or double-check?
- Avoid leftover antibiotics or sharing someone else's Keflex, cefalexin or cephalexin.
- Avoid using cephalexin for viral colds, flu, vaginal symptoms, or urinary symptoms that have not been diagnosed.
- Avoid stopping early just because symptoms improve or switching antibiotics without your clinician.
- Avoid delaying care for fever, flank pain, vomiting, contractions, blood in urine, or worsening symptoms.
How SafeMama helps
SafeMama can flag cephalexin, cefalexin, cefalexina, Keflex, Keftab, 250 mg or 500 mg capsules, UTI antibiotic labels, allergy warnings, diarrhea cautions, breastfeeding questions and related antibiotic terms so users know what to confirm with a clinician or pharmacist.
Open the SafeMama app, scan the barcode or search the ingredient, then use the result as a starting point for a conversation with your healthcare provider.
Sources
Frequently asked questions
Is cephalexin safe in pregnancy?
Cephalexin is often used in pregnancy when prescribed for a bacterial infection. NHS says cefalexin can be taken in pregnancy, and BUMPS says most studies of pregnant women taking cephalosporins have not shown harm to the baby. Your clinician still needs to match the antibiotic to the infection, culture result and allergy history.
What do MotherToBaby and NHS say about cephalexin in pregnancy?
MotherToBaby says pregnancy information is limited, but one 262-person study did not find more miscarriages and available birth defect studies did not show an increased chance. NHS says cefalexin can be taken at any stage of pregnancy. Your own infection and allergy history still matter.
Can I take cephalexin while pregnant?
Take cephalexin while pregnant only if it was prescribed for your infection. Ask what to do if symptoms do not improve, side effects are severe, or culture results come back with a different antibiotic recommendation.
Can you take cephalexin when pregnant?
Often, yes, when your clinician chooses it for a bacterial infection. Do not use old antibiotics or start it for symptoms that have not been checked.
Is Keflex safe during pregnancy?
Keflex is a brand name for cephalexin. Use it only if it was prescribed for your infection, and ask what follow-up is needed if symptoms do not improve or a culture result points to a different antibiotic.
Is cefalexin the same as cephalexin?
Yes. Cefalexin and cephalexin refer to the same antibiotic. Spelling varies by country and product label.
Is cefalexina the same medicine?
Cefalexina is the Spanish and Portuguese spelling used on some labels. Bring the exact package to a clinician or pharmacist so they can confirm the active ingredient and strength.
Is cephalexin 500 mg safe in pregnancy?
Do not treat 500 mg as a universal dose. The right strength and schedule depend on the infection, kidney function, culture results and your prescriber's plan.
Is cephalexin used for UTIs in pregnancy?
It can be used for some UTIs when a clinician chooses it. ACOG lists cephalexin among antibiotic regimens used for asymptomatic bacteriuria and acute cystitis in pregnancy, but urine culture results, allergies and symptom severity can change the plan.
Is cephalexin safe in the first trimester?
NHS says cefalexin can be taken at any stage of pregnancy, and BUMPS says most cephalosporin studies have not shown harm to the baby. Still ask your clinician because infection type, dose and follow-up matter.
Can untreated UTIs be risky in pregnancy?
Yes. UTI symptoms should be assessed because untreated infection can lead to complications.
Can I take cephalexin if I have a penicillin allergy?
Tell your clinician about the exact reaction before taking it. They can decide whether cephalexin or another antibiotic is appropriate.
Is cephalexin safe while breastfeeding?
LactMed describes cephalexin as acceptable in nursing mothers. Small amounts can enter milk, so ask about infant diarrhea, thrush, rash, prematurity, newborn age or medical fragility.
What side effects should I ask about?
Ask about rash, allergy symptoms, severe diarrhea, vomiting, yeast symptoms, or symptoms that are not improving. A pharmacist can also check interactions with your other medicines.
When should I call urgently for UTI symptoms?
Call promptly for fever, chills, back or flank pain, vomiting, contractions, blood in urine, or symptoms that are worsening despite antibiotics.
Check products faster with SafeMama
SafeMama scans food, skincare, medicine and supplement labels and explains pregnancy-safety flags using published guidance from authorities like ACOG, NHS, FDA, CDC and WHO.
Download SafeMama