What Do Antibiotics Do to Bacteria in Your Body?

Antibiotics are medicines that fight bacterial infections by either killing bacteria directly or stopping them from multiplying. They work by targeting structures and processes that bacterial cells depend on to survive, structures that human cells don’t have. This specificity is what makes antibiotics effective against bacteria while leaving most of your own cells unharmed.

How Antibiotics Attack Bacteria

Bacteria are living organisms surrounded by a rigid wall that holds their shape and keeps them intact. Many of the most widely used antibiotics, including penicillin and its relatives, work by disrupting the construction of this wall. They mimic a building block the bacterium needs, tricking the enzymes responsible for assembling the wall into binding with the drug instead. Once those enzymes are blocked, the wall weakens and the bacterium essentially bursts open.

Other antibiotics go after the machinery bacteria use to build proteins. Bacterial cells assemble proteins using structures called ribosomes, and these ribosomes are structurally different from the ones in human cells. Some drugs, like tetracyclines, physically block raw materials from reaching the ribosome’s assembly line, so the bacterium can’t produce the proteins it needs to function. Others cause the ribosome to misread its own instructions, forcing the bacterium to churn out defective, useless proteins. A third group interferes with how bacteria copy their DNA, preventing them from reproducing at all.

Killing vs. Slowing Down

Not all antibiotics work the same way once they reach their target. Some are bactericidal, meaning they actively kill bacteria. Others are bacteriostatic, meaning they stop bacteria from growing and reproducing, giving your immune system time to clear the infection on its own.

The distinction isn’t always clean-cut. A drug considered bacteriostatic against one species of bacteria can be bactericidal against another. For example, the drug linezolid stops the growth of staph bacteria without killing them but is directly lethal to strep bacteria. The behavior can even shift depending on the drug’s concentration and the conditions inside your body. In practice, both types are effective for treating infections, and doctors choose based on the type and severity of your infection rather than on this classification alone.

Why Antibiotics Don’t Work on Viruses

Viruses and bacteria are fundamentally different organisms, and this difference is why antibiotics can’t treat a cold, the flu, or COVID-19. Bacteria are independent cells with their own walls, ribosomes, and DNA replication machinery. Viruses have none of that. A virus is essentially a small package of genetic material that hijacks your own cells to make copies of itself. It uses your ribosomes, your enzymes, your energy.

Since antibiotics target bacterial structures like cell walls and bacterial ribosomes, there’s simply nothing for them to attack in a virus. Taking antibiotics for a viral infection won’t help you feel better and can cause unnecessary side effects.

Broad Spectrum vs. Narrow Spectrum

Some antibiotics are effective against a wide range of bacterial species. These broad-spectrum drugs are typically used when doctors don’t yet know exactly which bacterium is causing an infection. They cast a wide net, which is useful in urgent situations but comes with tradeoffs: they also wipe out more of the harmless bacteria living in your gut and elsewhere.

Narrow-spectrum antibiotics target a smaller group of bacteria. When a doctor can identify the specific organism causing your infection (through a lab culture or based on the infection’s characteristics), a narrow-spectrum drug is generally preferred. It does the job while causing less collateral damage to your normal bacterial communities.

What Happens in Your Body During Treatment

Antibiotics begin working within hours of your first dose. You may not feel better immediately, but the drug is already disrupting bacterial growth or killing bacteria at the infection site. For most infections, noticeable improvement in symptoms occurs within three to five days. If you don’t feel meaningfully better by the third day, that’s a reliable signal the antibiotic may not be the right match for your infection, and it’s worth contacting your doctor.

While the drug targets the bacteria making you sick, it also affects bacteria throughout your body that aren’t causing problems. Your gut is home to trillions of bacteria that help with digestion, immune function, and other processes. Antibiotics reduce this diversity, sometimes significantly. Anywhere from 5% to 35% of people on antibiotics develop diarrhea as a direct result of this disruption. Yeast infections are another common side effect, since the bacteria that normally keep yeast populations in check get suppressed along with everything else.

Recovery of your gut bacteria after a course of antibiotics is not as quick or complete as many people assume. Research in animal models has shown that while bacterial diversity slowly climbs back after treatment ends, it can stabilize at a level significantly lower than before. One study found that certain important gut bacterial groups permanently decreased in diversity by 36% to 70% depending on the antibiotic used. Eating a varied, fiber-rich diet after treatment can support recovery, but the timeline depends on which antibiotic you took and how long you were on it.

Finishing the Course: What the Evidence Says

For decades, the standard advice was to always finish your entire prescribed course of antibiotics, even if you feel better. The reasoning was that stopping early would leave surviving bacteria behind to develop resistance. The reality turns out to be more complicated.

Current evidence suggests that prolonged antibiotic exposure is actually what drives resistance, not shorter courses. The longer bacteria are exposed to an antibiotic, the greater the selective pressure favoring resistant strains. Multiple studies have found that for certain infections, shorter courses work just as well as longer ones. A growing number of researchers and medical organizations now argue that the blanket “finish the course” message is outdated and potentially counterproductive.

This doesn’t mean you should stop your antibiotics the moment you feel better on your own. The right duration depends on the type of infection, and some infections genuinely require longer treatment. The practical takeaway is that the decision should be made in conversation with your prescriber rather than defaulting to a rigid rule. If you’re feeling better and wondering whether you can stop, that’s a reasonable question to ask.

The Growing Problem of Resistance

When bacteria develop the ability to survive an antibiotic that once killed them, that antibiotic becomes useless against those strains. This is antibiotic resistance, and it’s one of the most serious threats to global health. In 2021, an estimated 4.71 million deaths worldwide were associated with drug-resistant bacterial infections, including 1.14 million deaths directly caused by resistance. That makes resistant infections deadlier than HIV/AIDS or malaria in terms of annual toll.

Resistance develops through several mechanisms. Some bacteria produce enzymes that break down the antibiotic before it can work. Others modify the target the drug is designed to attack, so the antibiotic no longer recognizes it. Some pump the drug back out of the cell before it reaches effective concentrations. These adaptations spread not only when resistant bacteria reproduce but also when they share genetic material with other bacteria, sometimes even across different species.

Every unnecessary course of antibiotics accelerates this process. Using antibiotics for viral infections, taking broad-spectrum drugs when a narrow-spectrum option would work, and using antibiotics in livestock farming all contribute to the growing pool of resistant bacteria. For you personally, this means the antibiotics available today may not work as well in the future, making even routine infections harder to treat.