Yes, a viral infection can increase blood sugar. When you are sick, your body releases stress hormones, such as cortisol and adrenaline, to fight the illness. According to the CDC, those hormones can raise blood sugar. The effect is most noticeable in people with diabetes or prediabetes, whose bodies can’t easily make extra insulin to balance it out.
This guide explains why viruses like flu, colds and COVID-19 affect glucose, who needs to watch closely, and when high or low readings during illness become an emergency.
Why Infections Raise Blood Sugar
Your body treats an infection as a stressor. To make sure you have energy to fight it, it releases hormones that work against insulin:
- Cortisol tells the liver to release more glucose and makes cells less responsive to insulin.
- Adrenaline (epinephrine) and glucagon also push the liver to release stored glucose.
- Inflammatory signals released by the immune system can make insulin work less well for a while.
In someone with normal glucose control, the pancreas usually responds by releasing more insulin, so blood sugar stays close to normal. In people with insulin resistance, prediabetes or diabetes, that extra insulin may not be available, and blood sugar rises. Changes in eating, sleep and activity while sick add to the swings. This is similar to how other kinds of stress affect glucose; see our guide on cortisol, stress and blood sugar.
Who Is Most Affected
| Group | Typical effect of a viral illness | What to do |
|---|---|---|
| No diabetes, normal glucose | Usually little change with a mild illness; severe illness can raise glucose | Rest, fluids; tell your doctor if you notice symptoms of high blood sugar |
| Prediabetes | Readings may run higher than usual | Stay hydrated; mention unusual readings to your doctor |
| Type 2 diabetes | Often higher readings; some medicines may need adjusting | Follow your sick-day plan; check glucose more often |
| Type 1 diabetes | High readings and risk of ketones and diabetic ketoacidosis (DKA) | Keep taking insulin, check glucose and ketones, call your care team early |
Common Viral Infections and Blood Sugar
Flu
The CDC says flu can raise blood sugar, and it can also make it drop if you aren’t eating or drinking normally. People with diabetes, even when it’s well managed, are at higher risk of serious flu complications such as pneumonia. The CDC recommends a yearly flu shot for people with diabetes and prompt antiviral treatment if they get flu.
Colds and other respiratory viruses
Colds tend to have a smaller effect, but they can still raise readings in people with diabetes. Watch what you take for symptoms. Some cough syrups and lozenges contain sugar, and decongestants can raise blood sugar in some people.
COVID-19
COVID-19 can cause high blood sugar during infection, and people with diabetes have a higher risk of severe illness. Treatments such as steroids, used in some hospitalized patients, can raise glucose further. Read more in our guides to COVID and diabetes and steroid-induced diabetes.
Stomach viruses
Vomiting and diarrhea can push blood sugar either way. Stress hormones may raise it, while not keeping food down can lower it, especially for people on insulin or sulfonylureas. Dehydration can make high blood sugar worse.
Can a Virus Trigger Diabetes?
Viruses don’t cause type 2 diabetes. But an infection can push already-high blood sugar into a range where symptoms appear, so some people are first diagnosed during or after an illness.
Type 1 diabetes is different. The NIDDK says genes and environmental factors may trigger the immune system to destroy insulin-making cells, and viruses are among the suspected triggers. A large study of children at genetic risk, published in Nature Medicine, linked prolonged enterovirus B infection with early immune signs of type 1 diabetes, but not with type 1 diabetes itself. A direct causal link hasn’t been proven.
Sick-Day Steps If You Have Diabetes
The best time to plan for illness is before you get sick. Work with your care team on a written plan that covers:
- Medicines. Keep taking your diabetes medicines unless your doctor tells you otherwise. If you use insulin, you may need a different amount. Don’t stop long-acting insulin on your own.
- Glucose checks. The CDC suggests checking blood sugar every 4 hours while sick and writing down the results.
- Ketones. If you take insulin, especially with type 1 diabetes, test for ketones as your plan directs. The American Diabetes Association recommends checking ketones every 4 to 6 hours during illness. Learn what readings mean in our guide to ketones in urine.
- Fluids and food. Drink plenty of sugar-free fluids. If you can’t eat normally, easy foods or drinks with carbohydrate can help prevent lows.
- Over-the-counter medicines. Ask your pharmacist which cold and flu products are safe for you.
Our full guide to sick-day rules for diabetes walks through each step.
When to Get Emergency Care
The CDC advises going to the emergency room right away if you have diabetes and any of these while sick:
- Trouble breathing
- Ketones in your urine
- Unable to keep liquids down for more than 4 hours, or food for more than 24 hours
- Vomiting or severe diarrhea for more than 6 hours
- Blood sugar below 60 mg/dL
- Losing 5 pounds or more during the illness
- A temperature over 101°F for 24 hours
Signs of DKA, such as nausea, belly pain, fruity-smelling breath, deep or fast breathing and confusion, need urgent care. See our guide to DKA symptoms.
Preventing Illness in the First Place
Staying up to date on recommended vaccines, including flu and COVID-19 vaccines and others your doctor advises, lowers your risk of serious infection. Hand washing, enough sleep and keeping blood sugar in your target range all support your immune system. If you have prediabetes, the steps that lower your diabetes risk also help; see our prediabetes treatment hub.
The Bottom Line
Viral infections can increase blood sugar because illness triggers stress hormones that raise glucose and blunt insulin’s effect. Most people without diabetes see little change from a mild illness, but people with prediabetes or diabetes may see higher readings, and illness can also cause lows if you can’t eat. If you have diabetes, keep a written sick-day plan, check your glucose more often, keep taking your medicines unless told otherwise, and know when to seek emergency care.