Durgical
EN
Open the app

Diabetes in hospital and around surgery

  • Follow-up and treatment

Illness, surgery and fasting make glucose swing both ways. A plan that keeps background insulin and pauses the risky pills prevents most hospital crises.

Updated

What it is

In hospital, glucose rises with stress hormones, infection, glucocorticoids and feeding, and falls with fasting, kidney failure and insulin given without food. Stress hyperglycaemia is high glucose during acute illness in a person without known diabetes; an HbA1c on admission tells it apart from undiagnosed diabetes. For most non-critically ill inpatients the target is 140–180 mg/dL, and insulin is started when glucose stays at or above 180 mg/dL. The preferred scheme is scheduled basal insulin (plus mealtime insulin if the patient eats) with correction doses; correction insulin alone, the «sliding scale», only reacts to highs and is discouraged. Around surgery and iodinated contrast, metformin is held because of the risk of lactic acidosis if the kidneys fail, and SGLT2 inhibitors are stopped some days before surgery because of euglycaemic ketoacidosis during fasting.

What to know

  • Check glucose on admission in everyone and HbA1c in those with hyperglycaemia or known diabetes without a recent result.
  • Target for most inpatients: 140–180 mg/dL; around surgery, about 100–180 mg/dL; tighter targets add hypoglycaemia without benefit.
  • Most oral and injectable non-insulin drugs are paused during acute illness; insulin is the flexible tool in hospital.
  • Type 1 diabetes must never be without basal insulin, even when fasting for surgery; an insulin pump may continue only if the patient and the team can manage it safely.
  • Metformin: held on the day of surgery, and at the time of iodinated contrast in people with reduced eGFR or acute kidney injury; restarted when eating and kidney function is stable after the procedure.
  • SGLT2 inhibitors: stopped about three days before planned surgery (four for ertugliflozin) and restarted when eating and drinking normally; check ketones in any unwell patient on them.
  • Euglycaemic ketoacidosis: acidosis with ketones and glucose that looks only modestly high, triggered by fasting, surgery or acute illness on an SGLT2 inhibitor.
  • GLP-1 receptor agonists slow gastric emptying: the anaesthesia team decides whether to hold them or prescribe a liquid diet before surgery, because of aspiration risk.
  • Sulfonylureas are stopped when the patient is not eating, because they cause prolonged hypoglycaemia.
  • Glucocorticoids raise glucose mainly in the afternoon and evening; insulin need falls again when they are tapered.

Before surgery or contrast: what happens to each drug, and why

DrugUsual principleWhy
MetforminHold on the day of surgery; hold at contrast if eGFR is reducedLactic acidosis if kidney function falls
SGLT2 inhibitorsStop about three to four days before surgeryEuglycaemic ketoacidosis with fasting and stress
SulfonylureasHold while not eatingProlonged hypoglycaemia
GLP-1 receptor agonistsDecided with anaesthesiaSlow gastric emptying: aspiration risk
Basal insulinContinue, usually reduced according to protocolPrevents ketosis and rebound hyperglycaemia
Mealtime insulinHold while fastingNo food to cover

In the clinic

  • A post-operative patient on an SGLT2 inhibitor who is nauseated and breathing fast with glucose of 190 mg/dL needs a blood gas and ketones, not reassurance.
  • Hospital hypoglycaemia follows missed meals with insulin given anyway, falling kidney function, tapering glucocorticoids and interrupted tube feeds: every insulin order needs a hypoglycaemia protocol.
  • High glucose in hospital in someone without known diabetes and with a normal HbA1c is usually stress hyperglycaemia; it still marks a worse prognosis and needs follow-up testing.
  • At discharge, return to the pre-admission plan or a simplified one, and tell the patient exactly which drugs restart and when.

Next step / Initial management

  • Capillary glucose before meals and at bedtime (or every few hours if fasting or on tube feeds); HbA1c if not done in the past three months.
  • Start scheduled basal insulin with correction (and mealtime insulin if eating) when glucose stays at or above 180 mg/dL; avoid sliding scale alone.
  • Before surgery: written plan for each drug (metformin, SGLT2 inhibitors, sulfonylureas, GLP-1 receptor agonists, insulin), surgery early in the list if possible.
  • Check blood ketones and a blood gas in any unwell patient on an SGLT2 inhibitor, whatever the glucose.
  • Refer to the inpatient diabetes or endocrinology team type 1 diabetes, pumps, recurrent hypoglycaemia, persistent glucose above target or any ketoacidosis.

Common traps

  • Sliding-scale insulin alone controls hospital glucose: it gives insulin only after a high and nothing in the background, so glucose swings and type 1 patients can slide into ketoacidosis.
  • A fasting type 1 patient should get no insulin: without basal insulin ketoacidosis starts within hours, so basal insulin continues, usually reduced, with glucose infusion if needed.
  • A glucose under 250 mg/dL rules out ketoacidosis after surgery: SGLT2 inhibitors cause euglycaemic ketoacidosis, so ketones and pH are checked whatever the glucose.
  • Metformin must be stopped for every contrast scan: the concern is lactic acidosis only if the kidneys fail, so it is held in reduced eGFR or acute kidney injury and restarted when kidney function is stable.
  • Tighter glucose in hospital always improves outcomes: aggressive targets increased hypoglycaemia and death in trials, so most inpatients aim for 140–180 mg/dL.

Test yourself

Think of the answer, then tap the question to see it.

A man with type 2 diabetes on an SGLT2 inhibitor has vomiting and fast breathing the day after a colectomy; glucose is 170 mg/dL. What do you suspect and check?

Euglycaemic ketoacidosis: surgery and fasting on an SGLT2 inhibitor. Check blood ketones, a blood gas and the anion gap whatever the glucose.

A woman with type 1 diabetes is fasting for surgery and a nurse asks whether to hold all insulin. What is the answer and why?

No: basal insulin continues (usually reduced per protocol) because without it ketoacidosis begins within hours; mealtime insulin is held while fasting.

Why is sliding-scale insulin alone discouraged in hospital?

It reacts only after glucose is already high, gives no background insulin, and produces swings of highs and lows instead of steady control.

A non-diabetic patient with sepsis has glucose of 230 mg/dL and an HbA1c of 5.4%. What is this?

Stress hyperglycaemia: the normal HbA1c shows no prior diabetes. It is treated in hospital and the patient is retested after recovery.

Add to my cards (4)

Elsewhere in DurgiPedia

Connections

← All of endocrinology

Educational content; it does not replace a medical assessment and is not a clinical instruction. For confusion, persistent vomiting with diabetes, fainting or very low blood pressure in someone who takes or has stopped glucocorticoids, go to an emergency department at once.

Sources: Diabetic Perioperative Management (StatPearls (NCBI Bookshelf), 2024); Hyperglycemia (StatPearls (NCBI Bookshelf), 2026); Euglycemic Diabetic Ketoacidosis (StatPearls (NCBI Bookshelf), 2023); Sodium-Glucose Transport 2 (SGLT2) Inhibitors (StatPearls (NCBI Bookshelf), 2025); Metformin-Associated Lactic Acidosis (MALA) (StatPearls (NCBI Bookshelf), 2023).

Spotted a mistake?We are always improving for the community. Tell us what is wrong and our team will review it.Report a mistake

Representative model, for educational purposes only.