[Durgical](https://durgical.com/en/) › [DurgiPedia](https://durgical.com/en/durgipedia/) › [Endocrinology](https://durgical.com/en/endocrinology/) › [Diabetes](https://durgical.com/en/endocrinology/areas/diabetes/) › Diabetes in hospital and around surgery

# Diabetes in hospital and around surgery

- Follow-up and treatment

Illness, surgery and fasting make [glucose](https://durgical.com/en/biochemistry/molecules/glucose/) swing both ways. A plan that keeps background insulin and pauses the risky pills prevents most hospital crises.

Updated Nov 16, 2026

## Key points

- Inpatient target 140–180 mg/dL; start insulin when ≥180 mg/dL persists.
- Basal + correction (± meal) beats sliding scale alone.
- Type 1: never stop [basal insulin](https://durgical.com/en/endocrinology/insulin-basal-mealtime-and-correction-in-principle/).
- SGLT2 inhibitor: stop about three days before surgery; watch for euglycaemic DKA.
- [Metformin](https://durgical.com/en/pharmacology/metformin/): hold on surgery day and at contrast with reduced [eGFR](https://durgical.com/en/biochemistry/topics/creatinine-and-estimated-glomerular-filtration-rate/).
- [HbA1c](https://durgical.com/en/biochemistry/topics/glycated-haemoglobin/) on admission separates stress hyperglycaemia from undiagnosed diabetes.

On this page

- The basics Key points
- What it is
- How to think about it
- What to know
- Before surgery or contrast: what happens to each drug, and why
- Common traps
- Elsewhere in DurgiPedia

- Clinical In the clinic

- Treatment Next step / Initial management

- Study Test yourself

- Connections Connections

## What it is

In hospital, glucose rises with stress hormones, infection, [glucocorticoids](https://durgical.com/en/physiology/actions-of-cortisol/) 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](https://durgical.com/en/conditions/lactic-acidosis/) if the [kidneys](https://durgical.com/en/anatomy/kidney/) fail, and [SGLT2 inhibitors](https://durgical.com/en/pharmacology/classes/sglt2-inhibitors/) are stopped some days before surgery because of euglycaemic ketoacidosis during fasting.

## How to think about it

The hospital patient is a car whose engine (stress hormones) races while the fuel (food) is cut off. Background insulin keeps the engine from overheating whether or not fuel arrives; mealtime insulin is only given when fuel actually goes in. Pills that depend on normal eating, drinking or kidneys are parked until the trip is over.

## 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](https://durgical.com/en/conditions/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](https://durgical.com/en/general-pathology/type-1-diabetes/) must never be without basal insulin, even when fasting for surgery; an [insulin pump](https://durgical.com/en/endocrinology/living-with-type-1-diabetes-education-sick-days-and-technology/) 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](https://durgical.com/en/conditions/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](https://durgical.com/en/pharmacology/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](https://durgical.com/en/pharmacology/classes/glp-1-receptor-agonists/) slow [gastric emptying](https://durgical.com/en/physiology/gastric-motility-and-emptying/): the anaesthesia team decides whether to hold them or prescribe a liquid diet before surgery, because of aspiration risk.
- [Sulfonylureas](https://durgical.com/en/pharmacology/classes/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

| Drug | Usual principle | Why |
| --- | --- | --- |
| Metformin | Hold on the day of surgery; hold at contrast if eGFR is reduced | Lactic acidosis if kidney function falls |
| SGLT2 inhibitors | Stop about three to four days before surgery | Euglycaemic ketoacidosis with fasting and stress |
| Sulfonylureas | Hold while not eating | Prolonged hypoglycaemia |
| GLP-1 receptor agonists | Decided with anaesthesia | Slow gastric emptying: aspiration risk |
| Basal insulin | Continue, usually reduced according to protocol | Prevents ketosis and rebound hyperglycaemia |
| Mealtime insulin | Hold while fasting | No 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](https://durgical.com/en/nursing/capillary-blood-glucose-testing/) 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)](https://durgical.app/estudiar/?add=/en/endocrinology/diabetes-in-hospital-and-around-surgery/)

## Elsewhere in DurgiPedia

- [Diabetes and other endocrine disease](https://durgical.com/en/anaesthesia/diabetes-and-other-endocrine-disease/)
- [Which medicines to continue or stop before surgery](https://durgical.com/en/anaesthesia/which-medicines-to-continue-or-stop-before-surgery/)
- [Caring for the hospitalised patient with diabetes: glucose checks, meals, fasting for procedures and illness](https://durgical.com/en/nursing/caring-for-the-hospitalised-patient-with-diabetes-glucose-checks-meals-fasting-f/)
- [Ketoacidosis and hyperosmolar state: fluids, potassium, insulin in order](https://durgical.com/en/emergency-medicine/ketoacidosis-and-hyperosmolar-state-fluids-potassium-insulin-in-order/)

## Connections

## Related 5

- [Insulin: basal, mealtime and correction, in principle](https://durgical.com/en/endocrinology/insulin-basal-mealtime-and-correction-in-principle/)
- [Diabetic ketoacidosis and the hyperosmolar hyperglycaemic state](https://durgical.com/en/endocrinology/diabetic-ketoacidosis-and-the-hyperosmolar-hyperglycaemic-state/)
- [Hypoglycaemia: the Whipple triad, insulin and C-peptide](https://durgical.com/en/endocrinology/hypoglycaemia-the-whipple-triad-insulin-and-c-peptide/)
- [Type 2 diabetes treatment: choosing drugs by the patient, not only by glucose](https://durgical.com/en/endocrinology/type-2-diabetes-treatment-choosing-drugs-by-the-patient-not-only-by-glucose/)
- [Stopping glucocorticoids safely and steroid cover for surgery](https://durgical.com/en/endocrinology/stopping-glucocorticoids-safely-and-steroid-cover-for-surgery/)

## Related conditions 5

- [Type 1 diabetes mellitus](https://durgical.com/en/conditions/type-1-diabetes-mellitus/)
- [Type 2 diabetes mellitus](https://durgical.com/en/conditions/type-2-diabetes-mellitus/)
- [Diabetic ketoacidosis](https://durgical.com/en/conditions/diabetic-ketoacidosis/)
- [Hyperosmolar hyperglycaemic state](https://durgical.com/en/conditions/hyperosmolar-hyperglycaemic-state/)
- [Hypoglycaemia (including insulin-induced)](https://durgical.com/en/conditions/hypoglycaemia/)

## In Pharmacology 9

- [Insulins](https://durgical.com/en/pharmacology/classes/insulins/)
- [Insulin glargine](https://durgical.com/en/pharmacology/insulin-glargine/)
- [Insulin lispro](https://durgical.com/en/pharmacology/insulin-lispro/)
- [Regular human insulin](https://durgical.com/en/pharmacology/regular-human-insulin/)
- [Metformin](https://durgical.com/en/pharmacology/metformin/)
- [SGLT2 inhibitors (gliflozins)](https://durgical.com/en/pharmacology/classes/sglt2-inhibitors/)
- [GLP-1 receptor agonists](https://durgical.com/en/pharmacology/classes/glp-1-receptor-agonists/)
- [Sulfonylureas](https://durgical.com/en/pharmacology/classes/sulfonylureas/)
- [Corticosteroids (glucocorticoids)](https://durgical.com/en/pharmacology/classes/corticosteroids/)

[← All of endocrinology](https://durgical.com/en/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](https://www.ncbi.nlm.nih.gov/books/NBK540965/) (StatPearls (NCBI Bookshelf), 2024); [Hyperglycemia](https://www.ncbi.nlm.nih.gov/books/NBK430900/) (StatPearls (NCBI Bookshelf), 2026); [Euglycemic Diabetic Ketoacidosis](https://www.ncbi.nlm.nih.gov/books/NBK554570/) (StatPearls (NCBI Bookshelf), 2023); [Sodium-Glucose Transport 2 (SGLT2) Inhibitors](https://www.ncbi.nlm.nih.gov/books/NBK576405/) (StatPearls (NCBI Bookshelf), 2025); [Metformin-Associated Lactic Acidosis (MALA)](https://www.ncbi.nlm.nih.gov/books/NBK580485/) (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.

---
Source: https://durgical.com/en/endocrinology/diabetes-in-hospital-and-around-surgery/
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cite as: DurgiPedia (durgical.com), https://durgical.com/en/endocrinology/diabetes-in-hospital-and-around-surgery/
