ReCaptus Join the waitlist

Varices and hepatic encephalopathy

Two emergencies from one scarred liver. Pressure backs up and opens varices that can burst; failing liver cells and blood bypassing the liver let ammonia reach the brain.

Condition lesson · GI-9.36 min read17 min videoChecked against UK guidance, 28 Nov 2026

A ballpoint notebook page with two chains, scar to pressure to varices to bleed, and failure plus bypass to ammonia to the brain, from the lesson video
The video of this lesson is coming to YouTube

Case: one patient, two emergencies

Night one. Mr Varga is 58 and has cirrhosis from alcohol. He’s vomited a large amount of bright red blood, twice. His pulse is 118, his blood pressure 92/60, and his belly is swollen with fluid.

Two days later. The bleeding has stopped, but he’s muddled about where he is and sleeping in the day. When he holds his arms out with his wrists cocked back, his hands keep flapping forwards.

Why does a scarred liver make veins in the oesophagus burst? And why, two days after a bleed, has his brain slowed down?

A hand-drawn patient with two sticky notes: night one and two days later
Mr Varga, night one and two days later.

Anatomy: the portal circulation

Blood from the gut and spleen collects into the portal vein, which carries it to the liver first. The liver filters it, and only then does it leave through the hepatic veins into the inferior vena cava.

In cirrhosis the liver is stiff, so pressure backs up into the portal vein: portal hypertension. The spleen sits upstream and swells, and a big spleen traps platelets, which is why a low platelet count is a useful clue to cirrhosis.

Blood under pressure finds detours where the portal system meets the normal veins:

Where What forms
Lower oesophagus Oesophageal varices: the dangerous ones
Around the navel Dilated veins on the abdominal wall
Rectum Rectal varices

Gut bacteria make ammonia. Normally the liver turns it into harmless urea. In cirrhosis there are fewer liver cells to clear it, and the detours carry blood past the liver, so ammonia reaches the brain.

An X-ray style view of the abdomen with the portal vein, an enlarged spleen and varices lit in violet
The detours: oesophagus, navel and rectum.

Pathophysiology: pressure and ammonia

Why varices bleed

Doctors measure the hepatic venous pressure gradient, the pressure difference across the liver. Normally it’s a few mmHg. Above 10 mmHg the portal hypertension is clinically significant: varices form and the risk climbs.

Oesophageal varices sit just under a thin lining, right where food passes. As pressure rises they stretch; the bigger the varix and the thinner its wall, the higher the tension. Red marks on the surface at endoscopy warn of a high risk of bleeding. When one bursts it bleeds heavily from a high-pressure vein, and poor clotting and low platelets make it hard to stop.

Why the brain slows

In the brain, astrocytes clear ammonia by turning it into glutamine. Glutamine pulls water into the cells, so they swell, and the brain stops working smoothly. Inflammation contributes too.

Triggers

An episode of encephalopathy usually has a trigger:

  • infection
  • bleeding into the gut (blood is a big protein load for gut bacteria)
  • constipation
  • sedative drugs
  • dehydration, kidney problems and a low potassium
  • a TIPSS procedure.

In short: pressure gives you varices. Liver failure plus bypass gives you encephalopathy. Two days after a big bleed, Mr Varga’s bleed was the trigger.

Signs: the bleed and the brain

A variceal bleed usually means large volumes of fresh red blood vomited, often with melaena, and signs of shock. The clue that it’s variceal rather than an ulcer is chronic liver disease: spider naevi, red palms, ascites, jaundice and a big spleen.

New ascites, encephalopathy or a variceal bleed means the cirrhosis has decompensated, so look for what pushed the patient over.

Hepatic encephalopathy grades:

Grade What you see
1 Short attention span, low mood or irritability, sleep pattern reversed
2 Lethargic, disorientated to time, odd behaviour
3 Very sleepy but rousable, confused, disorientated to place
4 Coma

Asterixis (liver flap): with arms outstretched and wrists cocked back, the hands drop forward and jerk back. It’s a brief loss of muscle tone, not a tremor, and usually appears from grade 2.

Covert hepatic encephalopathy is a subtle thinking problem with no confusion and no flap. It slows reactions, affects driving and often comes before an overt episode.

Tests: what to send and when to scope

The bleed:

  • Glasgow-Blatchford score at first assessment.
  • FBC, clotting, U&E, LFTs, group and crossmatch. The urea is often high, from digested blood.
  • Endoscopy immediately after resuscitation if unstable with a severe bleed; otherwise within 24 hours. It confirms varices and treats them.

The brain is a clinical diagnosis. Look for the trigger and the mimics:

  • infection: blood and urine cultures, chest X-ray, and an ascitic tap if there’s ascites, because infection of the fluid can be silent
  • kidneys, sodium and potassium
  • glucose: a low sugar can look identical
  • ongoing bleeding.

Ammonia: a high level doesn’t diagnose encephalopathy or tell you how severe it is. A normal level should make you doubt the diagnosis. If there’s been a fall, a head injury or new focal signs, image the head.

Options: treatment, step by step

The acute variceal bleed

  1. Resuscitate. Large-bore access, fluids and blood, but don’t over-transfuse: in a stable patient aim for a haemoglobin of about 70–80 g/L. Platelets if actively bleeding and below 50; plasma if actively bleeding with clotting times more than 1.5 times normal.
  2. Terlipressin and antibiotics as soon as a variceal bleed is suspected, before endoscopy. Terlipressin constricts the arteries feeding the gut, lowering portal pressure; continue until bleeding is controlled, for up to 5 days. Antibiotics follow local policy.
  3. Endoscopy: band ligation for oesophageal varices; cyanoacrylate injection for gastric varices.
  4. Still bleeding? A balloon tube (Sengstaken–Blakemore) can bridge, placed by an experienced team, until TIPSS: a stent through the liver from the portal vein to a hepatic vein.

Preventing a bleed

First bleed (medium or large varices) After a bleed
Main option Carvedilol or propranolol Non-selective beta-blocker plus banding
Alternative Banding, if a beta-blocker can’t be taken Banding alone if a beta-blocker can’t be used
Banding schedule – Every 2–4 weeks until eradicated, then surveillance
If it fails – Consider TIPSS

Beta-blockers are now also considered for anyone with cirrhosis and clinically significant portal hypertension, to prevent decompensation. If someone isn’t taking one, offer an endoscopy at diagnosis to look for varices, and repeat it every 3 years if none are found. Start at a low dose, monitor pulse and blood pressure, and avoid carvedilol in severe liver impairment such as large-volume or refractory ascites.

Hepatic encephalopathy

  1. Treat the trigger: infection, bleeding, fluids and potassium, sedatives.
  2. Lactulose, adjusted to 2–3 soft stools a day. Gut bacteria ferment it, acidifying the colon and trapping ammonia there.
  3. Add rifaximin after recurrent episodes. It reduces ammonia-producing gut bacteria and cuts recurrence. It’s added to lactulose, not used instead of it.

Exam answer vs current guidance

In older notes Give PPI cover after banding, and band every 2 weeks.

Current UK guidance PPIs only if there’s another reason for one; band every 2–4 weeks until the varices are gone.

Nasties: what can go wrong

The airway. A patient vomiting blood who is drowsy from encephalopathy can’t protect their airway. Grade 3–4 encephalopathy or a massive bleed means critical care, and possibly intubation before endoscopy.

Terlipressin can cause heart, limb and bowel ischaemia, so take care in heart or vascular disease. It can also lower the sodium.

TIPSS sends blood, and ammonia, past the liver, so encephalopathy is a well-known complication afterwards.

Too much lactulose causes dehydration and a low potassium, both of which worsen encephalopathy.

Exam traps: back to Mr Varga

On night one: resuscitate without over-transfusing, terlipressin and antibiotics before the scope, then band ligation. Two days later he has grade 2 encephalopathy triggered by the bleed: look for infection (including an ascitic tap), and give lactulose to 2–3 soft stools a day. Before discharge: a non-selective beta-blocker plus a banding programme.

  1. A PPI isn’t the first drug for a suspected variceal bleed: terlipressin and antibiotics are.
  2. Banding beats sclerotherapy for oesophageal varices; gastric varices get glue.
  3. The beta-blocker must be non-selective: carvedilol or propranolol, not bisoprolol or atenolol.
  4. Don’t diagnose or grade encephalopathy on ammonia. A normal level should make you doubt it.
  5. Rifaximin is added to lactulose, not given instead of it.
  6. Confusion in cirrhosis has a trigger until proven otherwise, and always check the glucose.

So: one liver, two problems. Scar raises the pressure and varices bleed; failure and bypass let ammonia through, and the brain slows.

High-yield summary

  • A scarred liver resists portal blood, so portal pressure rises. Above a gradient of 10 mmHg it's clinically significant and varices form where portal and systemic veins meet, most dangerously in the lower oesophagus.
  • Suspected variceal bleed: resuscitate without over-transfusing (haemoglobin about 70–80 if stable), then terlipressin and antibiotics at presentation, before endoscopy.
  • Endoscopy: band ligation for oesophageal varices, cyanoacrylate glue for gastric varices. If bleeding isn't controlled, TIPSS, with a balloon tube only as a bridge.
  • To prevent a first bleed from medium or large varices: carvedilol or propranolol (non-selective beta-blockers), or banding if they can't be used.
  • After a bleed: beta-blocker plus banding every 2–4 weeks until the varices are gone.
  • Hepatic encephalopathy is graded 1 to 4; the liver flap (asterixis) usually appears from grade 2. It's a clinical diagnosis, and an episode usually has a trigger.
  • Ammonia doesn't diagnose or grade it, but a normal ammonia should make you doubt the diagnosis.
  • Treatment: fix the trigger, lactulose to 2–3 soft stools a day, and add rifaximin to prevent recurrence.

Try five of its cards

Press Space to see the answer, then Space again if you knew it, 2 if it was hard or 1 to see it again: the same keys as Anki. In the app, spaced repetition decides when each card comes back.

Sources this lesson was checked against
  • NICE CG141 Acute upper gastrointestinal bleeding in over 16s (2012, updated 2016)
  • NICE NG50 Cirrhosis in over 16s (2016, updated 2023)
  • BSG UK guidelines on the management of variceal haemorrhage in cirrhotic patients (Gut, 2015)
  • BSG-led multisociety care bundle for acute upper GI bleeding (Frontline Gastroenterology, 2020)
  • NICE TA337 Rifaximin for preventing episodes of overt hepatic encephalopathy (2015)
  • BNF monographs for terlipressin, lactulose and rifaximin
  • EASL Clinical Practice Guidelines on hepatic encephalopathy (2022), international, where UK guidance has no HE guideline

Facts are checked against the primary source before anything is drawn. How we check facts.

Educational content for medical students preparing for exams. Not medical advice. Always follow current local and national guidance. The patients in this lesson are invented.

Get the next lesson when it’s out.

One email when a new lesson goes up. The app, with every card from every lesson, opens to the waitlist first.