Diabetes from the pancreas, hormones and drugs
- Diagnostic approach
Some diabetes is a symptom of another problem: a damaged pancreas, a hormone-making tumour or a medicine. Find the cause and the diabetes may improve.
See it in 3D: Pancreas
What it is
Secondary diabetes arises from a known cause rather than from autoimmunity or the usual insulin resistance. Pancreatogenic (type 3c) diabetes follows loss of pancreatic tissue: chronic pancreatitis, pancreatectomy, pancreatic cancer, cystic fibrosis and haemochromatosis; because glucagon-producing cells are lost too, glucose swings and hypoglycaemia are common, and exocrine insufficiency usually coexists. Endocrine diseases raise glucose by excess counter-regulatory hormones: Cushing syndrome (cortisol), acromegaly (growth hormone), phaeochromocytoma (catecholamines), glucagonoma and hyperthyroidism. Drugs cause it by insulin resistance or reduced insulin secretion: glucocorticoids, second-generation antipsychotics (most with clozapine and olanzapine), calcineurin inhibitors and glucocorticoids after transplantation, thiazides, some HIV drugs, and immune checkpoint inhibitors, which can trigger sudden autoimmune insulin-deficient diabetes, often in ketoacidosis.
What to know
- Clues to type 3c: history of pancreatitis, alcohol, steatorrhoea, weight loss, pancreatic calcification, low faecal elastase, unstable glucose with hypoglycaemia.
- New diabetes after age 50 with weight loss and no family history can be the first sign of pancreatic cancer: image the pancreas.
- Cystic fibrosis–related diabetes: screened yearly with an oral glucose tolerance test from age 10; HbA1c underestimates it; insulin is the treatment.
- Haemochromatosis: raised transferrin saturation and ferritin, diabetes with liver disease, bronze skin, arthropathy, heart failure, hypogonadism.
- Glucocorticoids raise glucose mainly in the afternoon and evening after a morning dose, so fasting glucose can be normal; check before lunch and dinner.
- Second-generation antipsychotics: check weight, glucose and lipids before starting, at about 12 weeks and yearly; clozapine and olanzapine carry the highest risk.
- Immune checkpoint inhibitors (anti-PD-1, anti-PD-L1): abrupt onset, very low C-peptide, often ketoacidosis at presentation, usually permanent and needing insulin.
- Post-transplant diabetes: tacrolimus and glucocorticoids; diagnosed once the patient is stable on maintenance immunosuppression, with oral glucose tolerance testing preferred.
- Cushing syndrome, acromegaly and phaeochromocytoma: diabetes often improves or resolves after the tumour is cured.
- Glucagonoma: diabetes with weight loss and a migratory necrolytic rash.
Step-by-step approach
- Suspect a secondary cause: atypical age or weight, unstable glucose, new drugs, features of another endocrine or pancreatic disease.
- Review every medicine: glucocorticoids, antipsychotics, calcineurin inhibitors, thiazides, HIV drugs, checkpoint inhibitors.
- Look for pancreatic disease: pancreatitis history, steatorrhoea, faecal elastase, pancreatic imaging (urgent if new diabetes with weight loss after 50).
- Screen iron overload with transferrin saturation and ferritin when liver disease or skin, joint or heart features coexist.
- Look for hormonal excess when the clinical picture suggests it: Cushing, acromegaly, phaeochromocytoma tests.
- On a checkpoint inhibitor with high glucose: check ketones, pH and C-peptide at once.
- Treat the cause where possible and choose glucose treatment by mechanism: insulin when insulin is lacking.
Secondary diabetes: clue, mechanism and first test
| Cause | Clue | Mechanism | First test | Usual treatment |
|---|---|---|---|---|
| Chronic pancreatitis or pancreatectomy (type 3c) | Steatorrhoea, alcohol, calcification | Loss of islets including glucagon cells | Faecal elastase, pancreatic CT | Insulin, pancreatic enzymes |
| Pancreatic cancer | New diabetes after 50 with weight loss | Tumour-related beta-cell failure | Pancreatic CT | Treat tumour; insulin often |
| Cystic fibrosis | Child or young adult with CF | Islet loss and insulin deficiency | Yearly glucose tolerance test | Insulin |
| Haemochromatosis | Liver disease, bronze skin, arthropathy | Iron damage to islets | Transferrin saturation, ferritin | Venesection; glucose treatment |
| Glucocorticoids | Afternoon and evening highs | Insulin resistance, liver glucose output | Pre-lunch and pre-dinner glucose | Insulin timed to the steroid |
| Immune checkpoint inhibitors | Sudden onset, ketoacidosis | Autoimmune beta-cell destruction | Ketones, pH, C-peptide | Insulin, usually lifelong |
Keys to the differential
- Pancreatogenic diabetes on insulin causes more severe hypoglycaemia than type 2 because glucagon, the main defence, is also lost.
- Steroid hyperglycaemia is often missed by fasting tests: a patient with normal morning glucose can reach very high values by evening.
- In a patient on antipsychotics, weight gain and diabetes are treated without abandoning the psychiatric treatment; switching drugs is agreed with psychiatry.
- Checkpoint inhibitor diabetes can appear months after starting treatment and does not respond to oral drugs.
Next step / Initial management
- Medication review and targeted tests by clue: faecal elastase and pancreatic imaging, transferrin saturation and ferritin, hormonal screening tests.
- New diabetes after 50 with weight loss: pancreatic CT without delay.
- Glucocorticoids: check glucose before lunch and dinner; use insulin matched to the steroid when needed and reduce it as the steroid is tapered.
- Checkpoint inhibitor with hyperglycaemia: ketones, blood gas and C-peptide the same day; start insulin.
- Refer to endocrinology every suspected secondary diabetes with a hormonal cause, pancreatogenic diabetes on insulin, and checkpoint inhibitor diabetes urgently.
Common traps
- Every adult with new diabetes has type 2: pancreatic disease, tumours and drugs cause diabetes that needs a different treatment and sometimes a cancer search.
- A normal fasting glucose excludes steroid diabetes: a morning glucocorticoid raises glucose mainly in the afternoon and evening, so fasting values can stay normal.
- Pancreatogenic diabetes behaves like type 2: glucagon is also lost, so hypoglycaemia is more frequent and severe on insulin.
- Checkpoint inhibitor diabetes can be managed with oral drugs: the beta cells are destroyed, so insulin is needed and ketoacidosis is common at onset.
- HbA1c is the right screen in cystic fibrosis: it underestimates glucose there, so a yearly oral glucose tolerance test is used.
Test yourself
Think of the answer, then tap the question to see it.
A 67-year-old with no family history develops diabetes with weight loss and new back pain. What must you exclude, and how?
Pancreatic cancer: new diabetes after 50 with weight loss can be its first sign. Arrange pancreatic CT promptly.
A patient on prednisone taken in the morning has normal fasting glucose but feels thirsty in the evenings. Which glucose tests do you order?
Glucose before lunch and before dinner: morning glucocorticoids raise glucose mainly in the afternoon and evening, which fasting tests miss.
A man on an anti-PD-1 drug for melanoma has vomiting, glucose of 480 mg/dL and a low pH. What is the likely cause and treatment?
Checkpoint inhibitor–induced autoimmune diabetes presenting in ketoacidosis: treat the DKA and start insulin, which is usually lifelong.
Why is hypoglycaemia more dangerous in diabetes after total pancreatectomy?
The alpha cells that make glucagon are removed too, so the body loses its main defence against a falling glucose.
Elsewhere in DurgiPedia
- Chronic pancreatitis: fibrosis, ductal stones and lost acini
- Diabetes mellitus: diagnosis and classification
- Physiology of diabetes and ketoacidosis
Connections
See it in 3D1
The structures of Durgical's 3D anatomy where it is found.
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: Cystic Fibrosis–Related Diabetes (StatPearls (NCBI Bookshelf), 2023); Hemochromatosis (StatPearls (NCBI Bookshelf), 2026); Endocrine-Related Adverse Events From Immune Checkpoint Inhibitors (StatPearls (NCBI Bookshelf), 2026); Atypical Antipsychotic Agents (StatPearls (NCBI Bookshelf), 2024); Hyperglycemia (StatPearls (NCBI Bookshelf), 2026).
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.
