What is cefalexin for? Uses, penicillin allergy, side effects and safe use
Last updated November 28, 2026
In short
Cefalexin, also spelled cephalexin, is a prescription antibiotic. Doctors use it for some bacterial infections of the skin, throat, urinary tract, ears and bones. It does not work on colds, flu or other viruses. Tell your doctor if you have ever reacted to penicillin or any antibiotic. Take it exactly as prescribed and finish the course. Get help fast for swelling of the face or throat, trouble breathing, or severe or bloody diarrhea.
Ask free, 24/7, in your own language. No account needed.
When to get help now
Call 911 or go to the nearest emergency room straight away if:
Tick any that is happening now
Thinking about suicide or self-harm? 1553 (Mental health crisis, 24/7, including holidays)
Based on PhilHealth, NHS, WHO and other trusted sources listed below. See the sources
Read this guide inFilipinoBisayaIlokanoHiligaynon
On this page
What cefalexin is
Cefalexin (also spelled cephalexin) is an antibiotic, a medicine that kills bacteria. It belongs to a group of antibiotics called cephalosporins. Other cephalosporins you may hear about in the Philippines are cefuroxime and cefixime.
In the Philippines cefalexin is a prescription-only medicine. It comes as capsules, tablets and a syrup (oral suspension) for children. Many brands and generics contain the same medicine. The generic name, cefalexin or cephalexin, is printed on the box.
What is cefalexin for? Infections it treats
Cefalexin treats some infections caused by bacteria. These include:
- Skin infections, such as an infected wound, impetigo, cellulitis (a spreading infection of the deeper skin) and some boils (pigsa). See our boils (pigsa) guide and our wound care guide.
- Throat infections caused by bacteria, such as strep throat. Most sore throats are caused by viruses and do not need antibiotics. See our tonsillitis guide.
- Urinary tract infections (UTI): infections of the bladder or kidneys. See our UTI guide.
- Middle ear infections (otitis media). See our ear pain guide.
- Some bone infections, usually started and watched by a specialist.
- Some chest infections, such as some kinds of pneumonia.
What cefalexin does not do:
- It does not work against viruses. It does not cure a cold, flu, COVID-19 or most coughs and sore throats.
- It does not work on every bacteria. Some germs, such as MRSA (a staph germ that resists many antibiotics), are not killed by it. This is why a doctor may ask for a swab or urine culture (a lab test that shows the germ and which antibiotics work).
How cefalexin works
Bacteria are covered by a tough outer wall that keeps them alive. Cefalexin stops bacteria from building this wall properly. The bacteria then break apart and die.
Most people start to feel better within a few days, but this depends on the infection. Feeling better does not mean all the bacteria are gone.
Cefalexin works only on bacteria, but it also kills some of the good bacteria in your gut. This is why diarrhea is its most common side effect.
Penicillin allergy and cefalexin
Cefalexin is related to penicillin antibiotics, such as amoxicillin and co-amoxiclav. Because of this, some people who are allergic to penicillin are also allergic to cefalexin. This is called a cross-reaction. The US medicine label says it can happen in up to 1 in 10 people with a history of penicillin allergy.
Before you take cefalexin:
- Tell your doctor if you have ever had a reaction to penicillin, amoxicillin, co-amoxiclav, cefalexin or any other antibiotic. Say exactly what happened: a mild rash, hives (pantal), swelling, trouble breathing, or skin that blistered or peeled.
- Never take cefalexin if you have had an allergic reaction to cefalexin or another cephalosporin before.
- If you ever had a severe reaction to penicillin, such as swelling of the face or throat, trouble breathing, fainting or a blistering or peeling rash, do not take cefalexin unless a doctor who knows about that reaction has told you it is safe. Doctors usually choose a different kind of antibiotic.
- Tell the pharmacist too, and every new doctor or dentist.
Write it down. Keep a note in your wallet or phone of the medicine you reacted to and what happened.
How to take cefalexin safely
How much and how often: follow your doctor's prescription exactly. The amount depends on the infection, your age, your weight (for children) and how well your kidneys work. Do not change it on your own.
Tips:
- Take it with or without food. If it upsets your stomach, take it after a meal or snack.
- For the syrup, shake the bottle well and use the measuring cup, spoon or syringe that comes with it. A kitchen spoon does not measure correctly.
- Missed it? Take it when you remember, unless the next one is nearly due. Never take a double amount to make up for one you missed.
- Finish the course. Keep taking it for as long as your doctor said, even when you feel better. Stopping early can let the infection come back and help bacteria become resistant.
- Do not share it, and do not keep leftovers for next time.
Not getting better? Tell your doctor if you are not improving after two or three days, or if you feel worse at any time.
Storage: keep capsules in their pack, at room temperature, away from heat and damp, and out of reach of children. Once the syrup is mixed, follow the storage and throw-away instructions on the label; many must be kept in the refrigerator.
Lab tests: tell the lab and your doctor that you take cefalexin. It can change the results of some urine sugar tests and some blood tests.
Side effects of cefalexin
Most people have no side effects or only mild ones. The most common are:
- diarrhea (pagtatae or LBM): drink plenty of fluids, such as water or oral rehydration salts (ORS). Do not take medicines to stop diarrhea, such as loperamide, without asking a doctor or pharmacist. See our diarrhea guide.
- feeling sick (nausea) or vomiting
- stomach pain or indigestion
- headache, dizziness or tiredness
- itching or a yeast infection around the vagina or anus, or white patches in the mouth (thrush)
If a side effect bothers you or does not go away, talk to your doctor or pharmacist.
Severe diarrhea (C. difficile): antibiotics can upset the balance of germs in the gut. This lets a germ called C. difficile (C. diff) grow and inflame the bowel. Signs are many watery stools a day, blood or mucus in the stool, stomach cramps and fever. It can start while you take the antibiotic or up to two months after you stop. See a doctor the same day, and tell them you took an antibiotic.
Rare but serious. See a doctor the same day if you have:
- yellow skin or eyes, dark pee or pale stools (signs of a liver problem)
- unusual bruising or bleeding
- a new rash or hives
Get emergency help right away for signs of a severe allergic reaction (anaphylaxis): sudden swelling of the lips, tongue, face or throat, trouble breathing or swallowing, wheezing, blue or grey lips, or fainting. Also go now for a rash that blisters or peels, or sores in the mouth or eyes. Call 911 or go to the nearest emergency room. Do not drive yourself.
Antibiotic resistance: why it matters
Antimicrobial resistance (AMR) happens when germs change and medicines stop working on them. Then simple infections become hard to treat. The World Health Organization (WHO) says resistant bacterial infections were linked to more than four million deaths worldwide in 2021. The main cause is using antibiotics when they are not needed, or the wrong way.
In the Philippines, the Pharmacy Law (Republic Act 10918) says antibiotics can only be dispensed with a doctor's prescription. Since 2012, the Department of Health (DOH) and FDA Philippines have warned drugstores not to sell antibiotics without one.
You can help keep cefalexin working:
- Do not buy antibiotics without a prescription, even if a friend, relative or sari-sari store says it worked for them.
- Do not ask for antibiotics for a cold, flu or most coughs. They are caused by viruses.
- Finish the course exactly as prescribed, and never share antibiotics or use leftover ones.
- Prevent infections: wash your hands and keep up to date with vaccines.
Other medicines, alcohol and contraception
Tell your doctor and pharmacist about every medicine you take, including vitamins and herbal remedies. Ask first if you take:
- metformin for diabetes: cefalexin can raise the level of metformin in the blood
- probenecid for gout: it is not recommended with cefalexin
- water pills (diuretics) such as furosemide, or other antibiotics
- blood thinners such as warfarin: cephalosporins can make bleeding more likely in some people
- zinc supplements: zinc can lower the amount of cefalexin your body takes in. Ask the pharmacist how far apart to take them
Herbal medicines and supplements: it is not known if they are safe with cefalexin.
Alcohol: the NHS says you can drink alcohol while taking cefalexin.
Birth control: the NHS says cefalexin does not stop any type of contraception from working, including the pill. But if you have severe diarrhea for more than a day, the pill may not protect you; check the pill packet. MedlinePlus (US) is more careful: it says cefalexin may make hormonal birth control (pills, patches, rings, injections) work less well, and advises another method, such as condoms, while you take it. Because these sources differ, ask your doctor or pharmacist what is best for you.
Pregnancy, breastfeeding, children and other health problems
Pregnancy: the NHS says cefalexin can be used at any stage of pregnancy, and there is no evidence that it harms the baby. Tell your doctor or midwife that you are pregnant.
Breastfeeding: only tiny amounts pass into breast milk, and the NHS says it is considered safe. A few babies have had diarrhea. Contact your doctor or health centre if your baby is not feeding well, has diarrhea or vomiting, a rash, or white patches in the mouth.
Children: cefalexin is often used for children from age one. The doctor works out the amount from the child's weight. Never use leftover syrup or an adult's capsules.
Tell your doctor first if you have:
- kidney disease: you may need a smaller amount, and a too-high level can rarely cause seizures (fits)
- had severe or bloody diarrhea after an antibiotic before
- had a severe skin reaction (blistering, peeling, mouth sores) after any medicine
- liver disease or a bowel disease such as colitis
Getting cefalexin in the Philippines
- You need a prescription. A doctor at your barangay health station, rural health unit (RHU), YAKAP clinic or hospital decides whether you need an antibiotic and which one. Buy it from a licensed drugstore, not unknown online sellers.
- PhilHealth YAKAP: as of November 2026, cefalexin is not on PhilHealth's 2026 GAMOT list, so you usually pay for it yourself. Other antibiotics are on the list, including the cephalosporins cefuroxime and cefixime, and amoxicillin and co-amoxiclav. If one of these suits your infection, your YAKAP doctor may prescribe it, and an accredited GAMOT pharmacy gives the whole course free. PhilHealth's July 2025 FAQ says GAMOT medicines are covered up to ₱20,000 a year per member. See our YAKAP guide.
- Ask about generics. A generic cefalexin is the same medicine as the branded one and often costs less.
Have a question about a medicine you were given? Ask our medicines assistant, ask a nurse or find a clinic near you.
When to see a doctor
Within 24 hours
See a doctor or go to a health centre today if:
- Severe diarrhea, or mucus in the stool, during cefalexin or in the two months after
- Yellow skin or eyes, dark pee or pale stools
- A new rash or hives after starting cefalexin, while breathing is normal
- You feel worse, or have a new fever, while taking cefalexin
- A child on cefalexin who is very drowsy, not drinking or peeing much less than usual
Book a visit
Make an appointment at your health centre or YAKAP clinic if:
- You are not getting better after two or three days of cefalexin
- The infection comes back after you finish the course
- Side effects such as nausea or thrush bother you
- You are pregnant, breastfeeding or have kidney disease and were prescribed cefalexin
- You want to know if a free GAMOT antibiotic through your YAKAP doctor suits you
Questions about your own situation?
Paolo, our Medication helper, answers in your language, free, any time. Paolo is an AI agent, not a person: in an emergency, call 911.
Common questions
What is cefalexin for?
Cefalexin is an antibiotic for some bacterial infections, such as skin infections, strep throat, urinary tract infections, middle ear infections and some bone and chest infections. It does not work on colds, flu or other viruses.
Is cefalexin the same as cephalexin?
Yes. Cefalexin and cephalexin are two spellings of the same medicine. Cefalexin is the international name; cephalexin is the US spelling. Both may appear on boxes in the Philippines.
Can I take cefalexin if I am allergic to penicillin?
Only if your doctor knows about the allergy and decides it is safe. Some people allergic to penicillin also react to cefalexin. If you ever had a severe reaction to penicillin, such as swelling, trouble breathing or a peeling rash, do not take cefalexin unless a doctor says it is safe.
Is cefalexin the same as amoxicillin?
No. Both are antibiotics, but amoxicillin is a penicillin and cefalexin is a cephalosporin. They work in a similar way but are not swapped freely. Take only the antibiotic your doctor prescribed for you.
Can I stop cefalexin when I feel better?
No, unless your doctor tells you to. Keep taking it for as long as prescribed. Stopping early can let the infection come back and help bacteria become resistant, so the medicine may not work next time.
Can I buy cefalexin without a prescription?
No. In the Philippines antibiotics, including cefalexin, should only be dispensed with a doctor's prescription. Taking the wrong antibiotic, or one you do not need, can cause side effects and antibiotic resistance.
Sources
- NHS (UK) About cefalexin (opens in a new tab) (checked November 28, 2026)
- NHS (UK) Who can and cannot take cefalexin (opens in a new tab) (checked November 28, 2026)
- NHS (UK) Side effects of cefalexin (opens in a new tab) (checked November 28, 2026)
- NHS (UK) Pregnancy, breastfeeding and fertility while taking cefalexin (opens in a new tab) (checked November 28, 2026)
- NHS (UK) Taking cefalexin with other medicines and herbal supplements (opens in a new tab) (checked November 28, 2026)
- NHS (UK) Common questions about cefalexin (how it works, resistance, alcohol, contraception) (opens in a new tab) (checked November 28, 2026)
- MedlinePlus, US National Library of Medicine Cephalexin (MedlinePlus drug information) (opens in a new tab) (checked November 28, 2026)
- US Food and Drug Administration Keflex (cephalexin) prescribing information, revised March 2026 (indications, penicillin cross-reactivity, C. difficile, interactions) (opens in a new tab) (checked November 28, 2026)
- healthdirect Australia Cefalexin (cephalexin) (opens in a new tab) (checked November 28, 2026)
- World Health Organization Antimicrobial resistance (fact sheet, July 2026) (opens in a new tab) (checked November 28, 2026)
- World Health Organization Philippines Inter-agency Committee on Antimicrobial Resistance kicks off World Antimicrobial Awareness Week (November 2020): DOH and FDA advisory against selling antibiotics without a prescription (opens in a new tab) (checked November 28, 2026)
- Department of Health (Philippines), published by WHO Philippine National Action Plan to Combat Antimicrobial Resistance 2019-2023 (RA 10918: prescription required to dispense antibiotics) (opens in a new tab) (checked November 28, 2026)
- Philippine Health Insurance Corporation (PhilHealth) PhilHealth Circular No. 2026-0007: Clinical and pharmaceutical standards for YAKAP (Annex A GAMOT list) (opens in a new tab) (checked November 28, 2026)
- Philippine Health Insurance Corporation (PhilHealth) Frequently asked questions on PhilHealth YAKAP (as of July 31, 2025) (opens in a new tab) (checked November 28, 2026)
Related guides
Boils (pigsa): home care and when to see a doctor
A boil (pigsa) is a painful, pus-filled lump caused by bacteria infecting a hair follicle. Most boils burst, drain and heal within about 2 weeks with warm compresses. Never squeeze or prick a boil. See a doctor if it is on your face, you have a fever, the redness spreads, you have diabetes, or boils keep coming back, so a doctor can check for diabetes and other causes.
UTI symptoms: burning when you pee and when to see a doctor
A urinary tract infection (UTI) happens when bacteria get into the bladder or the tubes that carry urine. Common UTI symptoms are burning or pain when you pee, needing to pee often, and cloudy or bloody urine. Fever, chills and pain in the back or side can mean the infection has reached the kidneys, which needs a doctor quickly. A urine test confirms a UTI, and antibiotics need a doctor's prescription.
Wound care (sugat): cleaning cuts and scrapes at home
Most small cuts and scrapes (sugat, gasgas) heal at home in a few days. Stop the bleeding with firm pressure, rinse the wound with clean running water, wash the skin around it with soap, and cover it. Don't put coffee, toothpaste, ash, kerosene or leaves on it. See a doctor for deep or dirty wounds, animal bites, pus or spreading redness, a fever, or a slow-healing wound in a person with diabetes.
Tonsillitis: symptoms, medicine and when to see a doctor
Tonsillitis is an infection that makes the tonsils at the back of the throat red, swollen and sore. It is most common in children, but adults get it too. It is usually caused by a virus and gets better on its own in about a week with rest, fluids and pain relief. Strep throat, caused by bacteria, may need antibiotics, but only a doctor can decide that. Trouble breathing or swallowing, drooling or a muffled voice are danger signs of quinsy or another throat emergency: go to the nearest ER now.
Ear pain (sakit ng tenga): causes, safe care and danger signs
Ear pain is common, especially in children, and often comes from an ear infection after a cold. Most ear infections get better on their own within about 3 days. A warm cloth and paracetamol or ibuprofen ease the pain. Don't put oil, garlic, breast milk or cotton buds in a sore ear. Swelling behind the ear, a drooping face or a stiff neck needs the emergency room.
Diarrhea (LBM): ORS, food and when to see a doctor
Diarrhea, or LBM, means loose or watery poo three or more times a day. It is usually caused by a gut infection from unsafe water or food and gets better within a week. The most important remedy is oral rehydration solution (ORS), which health centers and YAKAP clinics can give for free. Keep eating and keep breastfeeding. Go to a hospital for signs of severe dehydration, and see a doctor for blood in the poo, a baby with diarrhea, or diarrhea that does not get better.
PhilHealth YAKAP (formerly Konsulta): how to register and what is free
PhilHealth YAKAP is the free primary care benefit that replaced Konsulta in 2025. Every Filipino can register with one YAKAP clinic for free consultations, a yearly health check, lab tests, cancer screening and up to ₱20,000 a year in medicines. You choose a clinic through the eGovPH app, the PhilHealth Member Portal, a PhilHealth office or the clinic itself, then complete your first visit there. Public YAKAP clinics charge nothing for covered services.
More on Infections and fever
Chickenpox (bulutong-tubig): symptoms, home care and when to worry
Chickenpox, or bulutong-tubig, is a very contagious virus that causes an itchy rash of spots that turn into blisters and then scabs. Most children get better at home in 1 to 2 weeks with fluids, paracetamol and cool baths. Never give aspirin, and avoid ibuprofen. Stay home until every spot has scabbed. Adults, pregnant women, newborns and people with a weak immune system can get very sick and should see a doctor the same day. Two doses of the vaccine prevent most cases.
Amoxicillin: what it treats, allergy signs and safe use
Amoxicillin is a penicillin-type antibiotic. It kills some bacteria, so it helps only for bacterial infections that a doctor has checked. It does not work for colds, flu or other viral infections. In the Philippines it needs a doctor's prescription. Take it exactly as prescribed, finish the course, and never share or save leftovers. Stop and get emergency help if your face or throat swells or you have trouble breathing.
Anti rabies vaccine: schedule, cost and free animal bite centers
The anti rabies vaccine protects you after a bite, scratch or lick from an animal that may have rabies. Rabies is almost always fatal once symptoms start, but the vaccine works very well when you get it early and finish every visit. Wash the wound with soap and water for 15 minutes, then go to an animal bite treatment center the same day. Government centers give the vaccine free when they have stock, and PhilHealth's animal bite package helps pay for serious bites.