How does the pancreas work?

Behind your stomach sits a soft, 15 cm organ that does two jobs at once: it pours out a litre or more of digestive juice a day, and a million tiny islands inside it keep your blood sugar steady with insulin.

Behind your stomach sits a soft, 15 cm organ that does two jobs at once: it pours out a litre or more of digestive juice a day, and a million tiny islands inside it keep your blood sugar steady with insulin. Take it apart in 3D, watch a beta cell taste sugar, and see what goes wrong in diabetes.

PancreasClearOpened 12 Aug 202615 min to playFree · no sign-up

In 60 seconds

  1. Two organs in one

    The pancreas lies behind the stomach, about 15 cm long and 80 g, with its head in the C of the duodenum and its tail at the spleen. About 98% of it makes digestive juice; about a million islets of Langerhans, just 1 to 2% of it, make hormones such as insulin.

  2. A juice factory with a safety lock

    Acinar cells make amylase, lipase and protein-cutting enzymes, about 1 to 1.5 litres of juice a day. Trypsin is made switched off and only switched on in the gut by enteropeptidase, so the pancreas does not digest itself. Duct cells add bicarbonate to neutralise stomach acid, on cue from the hormones secretin and CCK.

  3. A cell that tastes sugar

    Beta cells burn glucose to make ATP. ATP shuts potassium channels, the cell's voltage rises, calcium rushes in, and insulin granules release. More sugar means more insulin. Alpha cells do the opposite job with glucagon.

  4. A thermostat for blood sugar

    Insulin lets muscle and fat take in glucose and tells the liver to store it; glucagon tells the liver to release it. Together they keep blood glucose around 70 to 100 mg/dL before breakfast and usually below about 140 after meals, though the whole bloodstream holds only about a teaspoon of sugar.

  5. When the thermostat breaks

    In type 1 diabetes the immune system destroys the beta cells. In type 2, the most common kind, cells resist insulin and beta cells slowly fall behind. HbA1c shows average glucose over about three months. About 589 million adults worldwide, and an estimated 101 million people in India, live with diabetes. Only doctors diagnose it.

  6. Keeping it healthy

    Pancreatitis happens when enzymes switch on inside the gland, most often after gallstones or heavy alcohol use, and needs urgent care. Pancreatic cancer is hard to find early. Studies in the USA and India found that lifestyle programmes lowered the chance of type 2 in people with raised glucose. For your own health, talk to a doctor.

The history

2,500 years from 'honey urine' in ancient India to sensors that talk to insulin pumps.

Read the full history
  1. 500 BCEMadhumeha: 'honey urine'
  2. 1674Urine 'wonderfully sweet'
  3. 1889No pancreas, then diabetes
  4. 1922Leonard Thompson gets insulin
  5. 1955Insulin's sequence is read
  6. 2023India counts its diabetes

The full explanation

PancreasClear, chapter by chapter

Chapter 1

The pancreas, unpacked

A soft, 15 cm organ tucked behind your stomach, doing two very different jobs.

Your pancreas is a soft, pale, bumpy organ about 15 cm long and about 80 g, roughly the weight of a small banana. It lies deep in the upper belly, behind the stomach, across the back wall. We are looking from the front, so the patient's right is on your left.

It has four parts. The fat head sits snugly in the C-shaped curve of the duodenum, the first part of the small intestine (see IntestineClear). A little hook, the uncinate process, curls behind a big vein. Then come the neck, the body, which crosses in front of the aorta and spine, and the tail, which reaches up to the spleen.

Down its middle runs the main pancreatic duct, like the spine of a leaf. In the head it meets the common bile duct from the liver and gallbladder, and they empty together through a tiny opening in the duodenum, the ampulla of Vater.

The pancreas is really two organs in one. About 98% of it is an exocrine factory that makes digestive juice and sends it down the ducts. Scattered through it, like islands, are about a million tiny islets of Langerhans, only 1 to 2% of its weight. They are endocrine: they release hormones such as insulin straight into the blood.

Try “Meet the pancreas” in the interactive model →

Chapter 2

The digestive-juice factory

Enzymes made safe, bicarbonate to kill the acid, and hormones that say "food is here".

Almost all of the pancreas is made of tiny clusters of cells called acini (from the Latin for "grapes"). Each acinar cell is a busy factory. It builds digestive enzymes, packs them into little parcels called zymogen granules at its tip, and releases them into a tiny channel in the middle. Channels join into bigger ducts, like streams into a river, and end at the duodenum. You make about 1 to 1.5 litres of pancreatic juice a day.

The juice holds three main kinds of enzyme: amylase cuts starch, lipase cuts fats, and proteases such as trypsin cut proteins. Here is the clever part: the pancreas is made of protein too. So the proteases are made switched off, as trypsinogen and friends. Only in the duodenum does an enzyme on the gut lining, enteropeptidase, snip trypsinogen into active trypsin, which then switches on the others. The pancreas never digests itself, as long as the lock holds. You can watch these enzymes cut up a real meal in IntestineClear.

The cells lining the ducts add water and bicarbonate, the same stuff as baking soda. Food arrives from the stomach (see StomachClear) as an acidic soup at about pH 2, and bicarbonate neutralises it.

How does the pancreas know food has arrived? Hormones. Acid in the duodenum makes it release secretin into the blood, which says "send bicarbonate". Fat and protein make it release cholecystokinin (CCK), which says "send enzymes", and also squeezes the gallbladder. Secretin, found in 1902, was the first hormone ever discovered.

Try “The juice factory” in the interactive model →

Chapter 3

The islets: tiny hormone islands

How a beta cell tastes the sugar in your blood and answers with insulin.

An islet of Langerhans is a ball of about a thousand to a few thousand cells, smaller than a grain of salt, wrapped in tiny blood vessels. There are about a million of them, scattered through the pancreas like islands in a sea of juice-making cells. The German student Paul Langerhans first saw them in 1869, without knowing what they did.

An islet holds three main kinds of cell. Beta cells (about 55 to 60% in people) make insulin, which lowers blood sugar. Alpha cells (about 30 to 40%) make glucagon, which raises it. Delta cells (under 10%) make somatostatin, which calms both down. In humans the cell types are mixed together, and every cell is close to a blood vessel so its hormone can leave quickly.

A beta cell does not need a brain to decide. It measures sugar by burning it. Glucose flows in, the cell's power stations turn it into the energy molecule ATP, and ATP closes potassium (K⁺) channels. That changes the voltage across the cell's skin, which opens calcium (Ca²⁺) channels. Calcium rushing in is the signal for thousands of tiny insulin granules to fuse with the surface and pour insulin into the blood. More sugar, more ATP, more insulin.

Try “Inside an islet” in the interactive model →

Chapter 4

The blood-sugar thermostat

Insulin and glucagon keep your blood sugar steady through meals, walks and sleep.

Every cell in your body burns glucose, a simple sugar, for energy, and your brain uses about 100 g of it a day. Yet all your blood holds at any moment is about 4 to 5 grams, roughly a teaspoon. Keep too little and the brain struggles; keep too much for years and blood vessels get damaged. So the islets run a thermostat.

After a meal, glucose pours in from the gut (see IntestineClear). Beta cells sense the rise and release insulin. Insulin is like a key: it lets muscle and fat cells open doors for glucose, and tells the liver to store it as glycogen (see LiverClear). Sugar falls.

Hours later, or overnight, sugar starts to dip. Insulin drops and alpha cells release glucagon, which tells the liver to release its stored glucose. Sugar rises again. The brain does not need insulin to take in glucose, which is why keeping it supplied matters so much.

In most people this keeps blood glucose around 70 to 100 mg/dL before breakfast and usually below about 140 mg/dL two hours after eating. A walk helps too: working muscles pull in glucose even without extra insulin.

Try “Sugar thermostat” in the interactive model →

Chapter 5

Diabetes, explained

What happens when the thermostat breaks: type 1, type 2 and the HbA1c test.

This chapter shares general facts, not medical advice. Only a doctor can diagnose diabetes. If you are worried, talk to a doctor.

Diabetes means blood glucose stays too high because the body makes too little insulin, or cannot use it well, or both. It is very common and nobody's fault. Around 589 million adults live with it worldwide, and a large national study, ICMR-INDIAB, estimated about 101 million people in India in 2021, with another 136 million who have prediabetes.

In type 1 diabetes, the body's own immune system destroys the beta cells, so almost no insulin is made. It is most often found in children and young adults but can start at any age, and it is not caused by eating sugar or by anything a person did. People with type 1 need insulin every day, prescribed by their doctors.

Type 2 diabetes is the most common kind, about 9 in 10 cases. The body's cells respond less to insulin (insulin resistance), and over time the beta cells cannot keep up. Genes, family history, age, body weight and activity all play a part, and in South Asia it often appears at younger ages.

High glucose can make people very thirsty, pass a lot of urine and feel tired. Above about 180 mg/dL the kidneys let sugar spill into urine: the "honey urine", madhumeha, that ancient Indian doctors described. Over years, high glucose can damage blood vessels in the eyes, kidneys, nerves and heart (see EyeClear and HeartClear), which is why diagnosis and care matter.

Doctors often use the HbA1c blood test. Glucose sticks to haemoglobin in red blood cells, which live about three months, so HbA1c shows the average of the last 2 to 3 months. By ADA thresholds, 6.5% or more is in the diabetes range, and 5.7 to 6.4% is prediabetes.

Try “Diabetes” in the interactive model →

Chapter 6

Keeping it healthy, and what goes wrong

Pancreatitis, pancreatic cancer, and what research says lowers the risk of type 2.

This chapter shares general facts, not medical advice. If you are worried about your own health, talk to a doctor.

Pancreatitis means an inflamed pancreas. It happens when digestive enzymes switch on inside the pancreas instead of in the gut, so the gland starts to digest itself. The two most common causes are gallstones, which can block the shared opening at the ampulla, and heavy alcohol use. The typical sign is sudden, severe pain in the upper belly that may spread to the back. That needs urgent medical care. Most mild cases get better in about a week in hospital.

Pancreatic cancer usually starts in the cells lining the ducts. Because the pancreas lies so deep, behind the stomach, it often causes no signs early and is hard to find. Possible signs include yellow skin or eyes (jaundice, when a growth in the head squeezes the bile duct), belly or back pain, and losing weight without trying. Risk rises with age and smoking. Anyone with such signs should see a doctor.

Type 2 diabetes risk can often be lowered. In two famous studies, one in the USA and one in India, adults with raised glucose who were supported to be more active and eat more healthily were much less likely to develop type 2 over three years. The WHO suggests adults get at least 150 minutes of moderate activity, like brisk walking, a week. Type 1 diabetes cannot be prevented this way.

Try “Healthy pancreas” in the interactive model →

Test yourself

Frequently asked

Where does the head of the pancreas sit?

In the C-shaped curve of the duodenum. The duodenum wraps around the head of the pancreas like a C. The tail points the other way, towards the spleen.

About how much of the pancreas is made of islets?

About 1 to 2%. Around a million islets make up only 1 to 2% of the pancreas. The rest is the exocrine factory that makes digestive juice.

What does "endocrine" mean?

Releasing hormones straight into the blood. Endocrine glands, like the islets, release hormones into the blood. Exocrine glands send their product down ducts.

Why is trypsin made as inactive trypsinogen?

So it cannot digest the pancreas itself. The pancreas is made of protein. Keeping protein-cutting enzymes switched off until they reach the gut protects it.

What switches on trypsinogen?

Enteropeptidase on the lining of the duodenum. Enteropeptidase, fixed on the duodenum’s lining, snips trypsinogen into trypsin. Trypsin then switches on the other enzymes.

Acid chyme arrives in the duodenum. Which hormone tells the pancreas to send bicarbonate?

Secretin. Acid makes the duodenum release secretin into the blood. The duct cells answer with bicarbonate-rich juice.

Which islet cells make insulin?

Beta cells. Beta cells make insulin. Alpha cells make glucagon, and delta cells make somatostatin.

In a beta cell, what closes the K⁺ channels when sugar is high?

ATP made from burning glucose. Burning glucose raises ATP. ATP shuts the K⁺ channels, the voltage rises, calcium flows in and insulin is released.

What finally triggers the insulin granules to release?

Calcium flowing into the cell. Calcium entering through voltage-gated channels makes the granules fuse with the cell surface.

What does insulin do?

Lets muscle and fat take in glucose, and tells the liver to store it. Insulin is the "store it" signal: cells take in glucose and the liver builds glycogen, so blood sugar falls.

You have not eaten for hours. What keeps your blood sugar up?

Glucagon telling the liver to release stored glucose. As sugar dips, alpha cells release glucagon and the liver releases glucose from its glycogen store.

About how much glucose is in all your blood at once?

About a teaspoon (4 to 5 g). Only about 4 to 5 g. That is why the thermostat has to keep adjusting all day.

What happens in type 1 diabetes?

The immune system destroys the beta cells, so little or no insulin is made. Type 1 is autoimmune: the body attacks its own beta cells. It is not caused by diet.

What is insulin resistance?

Cells responding less to insulin, so glucose stays higher. In insulin resistance, muscle, fat and liver respond less, so the beta cells must make more. In type 2, they eventually cannot keep up.

Why does HbA1c show the last 2 to 3 months?

Because red blood cells, which carry it, live about 3 months. Glucose sticks to haemoglobin in red blood cells, which live around 120 days, so the test averages over months.

What happens inside the pancreas in pancreatitis?

Digestive enzymes switch on too early and inflame the gland. Enzymes that should wait until the gut switch on inside the pancreas, and it starts to digest itself.

What are the two most common causes of acute pancreatitis?

Gallstones and heavy alcohol use. A gallstone blocking the ampulla, or heavy alcohol use, cause most cases. Severe belly pain needs a doctor urgently.

Why is pancreatic cancer often found late?

The pancreas lies deep behind the stomach and early stages often cause no signs. Its deep position hides small growths, so signs like jaundice may appear only when the bile duct gets squeezed.

Words worth knowing

Exocrine and endocrine
Exocrine glands send their product down ducts, like digestive juice; endocrine glands release hormones into the blood, like insulin.
Acinus
A grape-like cluster of enzyme-making cells around a tiny central channel.
Zymogen
An enzyme made switched off, such as trypsinogen, so it cannot do damage until it reaches the gut.
Secretin and CCK
Hormones from the duodenum that tell the pancreas to send bicarbonate and enzymes when food arrives.
Islet of Langerhans
A tiny cluster of hormone-making cells; about a million are scattered through the pancreas.
Insulin
The hormone from beta cells that lets cells take in glucose and tells the liver to store it.
Glucagon
The hormone from alpha cells that tells the liver to release glucose when blood sugar falls.
Insulin resistance
When cells respond less to insulin, so more is needed to do the same job; central to type 2 diabetes.
HbA1c
A blood test showing how much haemoglobin has glucose attached, a guide to average glucose over about three months.

Fork it. Teach with it.

This box is plain HTML, CSS and JavaScript, with no build step and no accounts. Run it yourself and it sends nothing anywhere. The code is MIT. The words, images and videos are CC BY 4.0, so you can reuse them anywhere if you credit “Glassbox, glassbox.how/e/pancreasclear”.

git clone https://github.com/bdeeps/pancreasclear.git

Built with three.js (MIT), Geist, Instrument Serif (SIL OFL 1.1).

←→ previous / next box · / search

Would you like to see the full page, with the interactive model?