Certain antibiotics can raise blood sugar, and one class in particular, the fluoroquinolones, has been studied extensively for this effect. The link is strongest in people who already have diabetes, but it can show up in anyone. The story is more layered than a simple yes or no, though, because the infection being treated, medications prescribed alongside the antibiotic, and even long-term disruption of gut bacteria all feed into the picture.
Fluoroquinolones Are the Biggest Offenders
The antibiotic family most clearly tied to blood sugar swings is the fluoroquinolones, a group that includes ciprofloxacin, levofloxacin, and moxifloxacin. These drugs are widely prescribed for urinary tract infections, respiratory infections, and certain gastrointestinal infections. A large study of diabetic patients in Taiwan found that all three of these fluoroquinolones raised the odds of hyperglycemia compared to macrolide antibiotics (a common alternative class). Moxifloxacin carried roughly two and a half times the odds of hyperglycemia, while ciprofloxacin and levofloxacin each carried about 75 to 90 percent higher odds.1PubMed. Risk of severe dysglycemia among diabetic patients receiving levofloxacin, ciprofloxacin, or moxifloxacin in Taiwan
One confusing aspect of fluoroquinolones is that they can push blood sugar in both directions. The same Taiwanese study found elevated odds of hypoglycemia, too. A systematic review pooling data from multiple studies reported hyperglycemia in about 1,600 fluoroquinolone-treated patients and hypoglycemia in over 2,100 across different study populations.2PubMed Central. How Safe are Fluoroquinolones for Diabetic Patients? A Systematic Review of Dysglycemic and Neuropathic Effects of Fluoroquinolones Doctors sometimes use the umbrella term “dysglycemia” for this dual-direction problem, meaning the drug destabilizes glucose regulation rather than pushing it neatly in one direction.
Not every fluoroquinolone carries the same level of risk. One older member of the family, gatifloxacin, was so strongly linked to both severe high and low blood sugar events that it was pulled from the U.S. market. A study comparing crude incidence rates across fluoroquinolones found gatifloxacin had the highest rates of both severe hypoglycemia and hyperglycemia, roughly three to four times higher than levofloxacin and far above azithromycin, a non-fluoroquinolone comparator.3Clinical Infectious Diseases. Severe Dysglycemia with the Fluoroquinolones: A Class Effect? Even among the fluoroquinolones still on the market, moxifloxacin tends to rank above ciprofloxacin and levofloxacin for blood sugar disruption.
Why Fluoroquinolones Disrupt Insulin
The mechanism behind fluoroquinolone-related blood sugar problems centers on the pancreas. Insulin-producing beta cells contain potassium channels (called K-ATP channels) that act as a switch: when they close, the cell releases insulin. Certain fluoroquinolones physically block these channels, triggering a burst of insulin release that can cause blood sugar to crash. Laboratory studies showed that gatifloxacin and temafloxacin stimulated insulin secretion in a dose-dependent manner by directly acting on the pore-forming part of the channel, while levofloxacin had only a small effect.4PubMed. Effects of fluoroquinolones on insulin secretion and beta-cell ATP-sensitive K+ channels Further work confirmed that when researchers tested fluoroquinolones on pancreatic cells that completely lacked functional K-ATP channels, the drugs had no insulin-releasing effect at all, proving those channels are the critical target.5PubMed. The insulinotropic effect of fluoroquinolones
This explains the hypoglycemia side of the equation straightforwardly: the drug forces extra insulin out, blood sugar drops. Hyperglycemia is a bit less intuitive. The leading explanation is a rebound effect. After an initial wave of insulin release, beta cells can become temporarily exhausted or less responsive. If you are already on the edge of insulin resistance, as many people with diabetes are, the net result over hours can be an upward swing in blood sugar once the initial insulin surge fades. The risk likely varies depending on the dose, how long you take the drug, and how much reserve your pancreas has. Different fluoroquinolones block the channel with different potency; lomefloxacin, for instance, blocked the channel in a dose-dependent way while norfloxacin had only minor effects even at high concentrations.6PubMed. Effects of lomefloxacin and norfloxacin on pancreatic beta-cell ATP-sensitive K(+) channels
Other Antibiotics That Affect Blood Sugar
Fluoroquinolones get the most attention, but they are not the only antibiotics linked to glucose problems. Trimethoprim-sulfamethoxazole (commonly known as Bactrim or Septra) has been tied to hypoglycemia, and the mechanism is surprisingly specific. Sulfamethoxazole, the sulfa component of the drug, shares a structural resemblance to sulfonylureas, the class of diabetes medications that stimulate insulin release. A clinical analysis found that over 79 percent of patients who developed low blood sugar on TMP-SMX had elevated insulin and C-peptide levels, consistent with the drug directly boosting insulin secretion the way a diabetes pill would.7PubMed Central. Clinical features, risk factors, diagnosis, and treatment of trimethoprim-sulfamethoxazole-induced hypoglycemia The risk appears highest in people with kidney impairment, because slower drug clearance means higher circulating levels of the sulfamethoxazole.
Pentamidine, an antiparasitic agent sometimes grouped with antibiotics, is another well-known offender. It is toxic to beta cells and can cause an initial dump of insulin (leading to hypoglycemia) followed by insulin deficiency and persistent hyperglycemia. This is most relevant for patients being treated for certain severe infections like Pneumocystis pneumonia. Outside of these specific drugs, most common antibiotics like amoxicillin, azithromycin, and doxycycline are not considered significant blood sugar disruptors on their own.
The Infection Itself Can Spike Blood Sugar
One of the most commonly overlooked factors is that infection, not the antibiotic, is often the main reason blood sugar rises during a course of treatment. When your body fights an infection, it releases stress hormones like cortisol and adrenaline along with inflammatory signaling molecules. These signals tell your liver to dump glucose into the bloodstream and simultaneously make your cells more resistant to insulin, a combination that can push blood sugar into worrying territory even in people without a diabetes diagnosis. In critically ill patients with sepsis, this “stress hyperglycemia” and insulin resistance are exceedingly common, driven largely by inflammatory mediators and counter-regulatory hormones.8PubMed. Stress-hyperglycemia, insulin and immunomodulation in sepsis
This creates a real attribution problem. You start an antibiotic the same day you are sickest, and your blood sugar goes up. Was it the drug, or was it the fever, inflammation, and reduced food intake? For mild outpatient infections, the stress response is modest. For pneumonia, cellulitis, or a bad kidney infection, it can be substantial. Doctors generally expect some degree of blood sugar elevation during acute illness and separate that from a drug-induced effect by watching what happens as the infection resolves. If blood sugar remains elevated or worsens after the infection is clearly improving, the antibiotic itself becomes a more likely culprit.
Corticosteroids Prescribed Alongside Antibiotics
Another common scenario is receiving steroids at the same time as an antibiotic. For conditions like community-acquired pneumonia, doctors sometimes add a short course of a corticosteroid like prednisone to reduce inflammation. Corticosteroids are potent drivers of hyperglycemia in their own right: they increase glucose production in the liver, blunt insulin’s action in muscles and fat, and can push blood sugar well above normal within hours. A study examining adjunct prednisone in diabetic patients with pneumonia found that corticosteroids were associated with glycemic dysregulation, though it did not translate into worse clinical outcomes in that trial.9Diabetologia. Benefit of adjunct corticosteroids for community-acquired pneumonia in diabetic patients
If you notice a sharp blood sugar spike during treatment for an infection and you are also taking prednisone, dexamethasone, or methylprednisolone, the steroid is very likely the bigger contributor. It is worth asking your doctor whether the steroid component is strictly necessary, especially if you already have diabetes or prediabetes, rather than assuming the antibiotic alone is responsible.
Long-Term Antibiotic Use and Future Diabetes Risk
Beyond the acute blood sugar swings during a course of treatment, a more provocative question is whether repeated antibiotic use over years increases your odds of developing type 2 diabetes down the road. Several large population-level studies suggest it might. A Danish case-control study of over 170,000 people found that redeeming five or more antibiotic prescriptions was associated with about 53 percent higher odds of a type 2 diabetes diagnosis compared to people with zero or one prescription. The association showed a clear dose-response pattern and appeared as far back as 15 years before the diabetes diagnosis.10PubMed Central. Use of Antibiotics and Risk of Type 2 Diabetes: A Population-Based Case-Control Study
A Korean cohort study echoed the finding, reporting that people who used antibiotics for 90 or more days had about 16 percent higher diabetes risk than non-users, with a similar bump for those who cycled through five or more different antibiotic classes.11Scientific Reports. Association between antibiotics use and diabetes incidence in a nationally representative retrospective cohort among Koreans A prospective study following American women from the Nurses’ Health Study cohorts found that even medium-duration antibiotic use (roughly 15 days to 2 months) carried about 20 to 23 percent higher risk of type 2 diabetes compared to non-users.12PubMed Central. Long-term use of antibiotics and risk of type 2 diabetes in women: a prospective cohort study
These are observational studies, so they cannot prove that antibiotics directly cause diabetes. The most obvious confounding factor is that people who take a lot of antibiotics tend to have more infections, and frequent infections can themselves be a sign of early metabolic problems or obesity, both of which raise diabetes risk independently. The Danish study found elevated antibiotic use years before the diabetes diagnosis, which the authors interpreted as early metabolic dysfunction causing more infections rather than the antibiotics themselves being the full story. Still, there is a biologically plausible pathway that keeps the question alive.
The Gut Microbiome Connection
The plausible pathway connecting chronic antibiotic exposure to metabolic problems runs through the gut microbiome. Antibiotics reshape the community of bacteria in your intestines, sometimes profoundly. In animal models, antibiotic treatment dramatically reduced the two dominant bacterial groups in the gut and, interestingly, that disruption actually improved insulin sensitivity in obese mice, partly through increased production of GLP-1, a hormone that promotes insulin release and helps regulate blood sugar.13FASEB Journal. Alteration of gut microbiota by vancomycin and bacitracin improves insulin resistance via glucagon-like peptide 1 in diet-induced obesity That result sounds contradictory: antibiotics improving blood sugar? But it highlights just how context-dependent the effect is. In those particular obese mice, clearing out certain gut bacteria happened to tip the hormonal balance in a favorable direction.
In other experimental contexts, the outcome looks less favorable. Research using a swine model designed to mimic human infant physiology showed that early-life antibiotic exposure affected glucose metabolism weeks after the antibiotics were stopped, linked to changes in pancreatic development and disrupted short-chain fatty acid signaling from gut bacteria.14Scientific Reports. Early life antibiotic exposure affects pancreatic islet development and metabolic regulation The picture that emerges is that antibiotic-driven microbiome disruption can push glucose metabolism in either direction depending on your starting point, the specific bacteria affected, and timing in life. For adults with otherwise healthy metabolisms taking a short course of antibiotics, the microbiome disruption is probably temporary and metabolically insignificant. For people already at risk for diabetes, or for infants whose metabolic systems are still developing, the stakes may be higher.
Who Needs to Be Most Careful
The people at greatest risk of antibiotic-related blood sugar problems are those who already have diabetes, particularly type 2 diabetes managed with oral medications. If you take a sulfonylurea (like glipizide or glyburide), adding a fluoroquinolone or TMP-SMX can amplify insulin secretion beyond what your body needs, leading to dangerous hypoglycemia. Conversely, the rebound effects of fluoroquinolones and the stress of infection can push blood sugar too high. A study examining adverse events in outpatient settings found antibiotics were the second most common drug class implicated in medication-related incidents, accounting for about 11 percent of events, with many involving prescribing errors and failures to review clinical contraindications.15American Journal of Health-System Pharmacy. Medication adverse events in the ambulatory setting: A mixed-methods analysis
Older adults are another vulnerable group. Kidney function naturally declines with age, which slows the clearance of many antibiotics and their metabolites, raising effective drug levels. People with impaired kidney function taking TMP-SMX are at particularly elevated risk of hypoglycemia, and older adults on fluoroquinolones face higher absolute rates of dysglycemia. People on insulin or insulin secretagogues should discuss glucose monitoring expectations with their prescriber whenever starting a fluoroquinolone or TMP-SMX.
Drug Interactions That Amplify the Problem
Some of the risk from antibiotics and blood sugar is not from the antibiotic itself but from how it interacts with diabetes medications you are already taking. Many oral diabetes drugs are processed by the same liver enzymes and membrane transporters that handle antibiotics. A review of pharmacokinetic interactions involving oral antidiabetics noted that drug-metabolizing enzymes and membrane transporters are central to predicting and preventing interactions between these drug classes.16Trends in Pharmacological Sciences. Pharmacokinetic drug interactions involving oral antidiabetic agents: the role of drug metabolising enzymes and membrane transporters In practice, this means certain antibiotics can slow the breakdown of your diabetes medication, effectively raising its dose without anyone changing a pill.
Ciprofloxacin, for example, inhibits the liver enzyme CYP1A2, which can raise levels of some medications processed through that pathway. Macrolide antibiotics like clarithromycin and erythromycin inhibit CYP3A4, potentially increasing blood levels of certain sulfonylureas and meglitinides. The clinical consequence is the same as if you accidentally doubled your diabetes medication: blood sugar drops too low. If you take oral diabetes medications and your doctor prescribes an antibiotic, particularly a fluoroquinolone or a macrolide, ask whether dose adjustment or more frequent glucose monitoring is warranted during the course of treatment.
Practical Steps When You Are Prescribed an Antibiotic
If you have diabetes or prediabetes and you are starting a course of antibiotics, a few concrete measures can reduce your risk of a blood sugar emergency:
- Check more often: Increase your blood glucose monitoring frequency during the antibiotic course, especially in the first two to three days and again when you finish the course. The initial days carry the highest risk of hypoglycemia from fluoroquinolones, and the rebound hyperglycemia risk persists throughout.
- Know the drug class: Ask your pharmacist or prescriber whether your antibiotic is a fluoroquinolone or TMP-SMX. If it is, and you take a sulfonylurea or insulin, discuss whether your diabetes medication dose should be temporarily adjusted.
- Watch for steroid prescriptions: If your treatment plan includes a corticosteroid alongside the antibiotic, understand that the steroid is likely to raise your blood sugar significantly. Short courses of prednisone for pneumonia or a severe sinus infection are common. Plan for higher readings and talk to your prescriber about a temporary insulin or medication adjustment if needed.
- Stay hydrated and eat consistently: Illness alone disrupts blood sugar, and skipping meals because you feel sick can amplify medication-induced hypoglycemia. Even small, frequent meals help stabilize glucose levels when your system is under stress from infection and drug effects.
- Report symptoms early: Shakiness, confusion, extreme thirst, or frequent urination during an antibiotic course warrant a glucose check and a call to your doctor. Do not assume these are just side effects of being sick.
For people without diabetes, a standard short course of most antibiotics is unlikely to cause a noticeable blood sugar problem. The exception is if you happen to be prescribed a fluoroquinolone and you are older, have impaired kidney function, or are unknowingly prediabetic. In those situations, the same precautions apply.
When High Readings During Antibiotics Should Prompt Further Testing
One scenario worth watching for is when blood sugar remains elevated after the infection clears and the antibiotic is finished. If you had no diabetes diagnosis before, persistently high readings in the weeks after treatment should prompt a conversation about formal diabetes screening. The stress of infection can unmask underlying insulin resistance that was previously flying under the radar. Similarly, if you have well-controlled type 2 diabetes and your numbers fail to return to baseline after recovery, that may signal a progression in your disease rather than a lingering drug effect. Fluoroquinolone-induced dysglycemia typically resolves within days of stopping the drug, so readings that stay high beyond a week or two point toward something else going on.
For people prescribed repeated courses of antibiotics over months or years, the population-level data linking cumulative antibiotic exposure to higher diabetes incidence is worth keeping in mind. This does not mean you should refuse necessary antibiotics, but it does reinforce the value of avoiding unnecessary prescriptions. The old advice to skip antibiotics for viral infections like colds is relevant here for reasons beyond antibiotic resistance: each course reshapes your gut microbiome in ways that may have subtle metabolic consequences, particularly in people already on the borderline of metabolic health.