Symptom guide
Pain under the right ribs: causes, red flags and when to get it checked
Pain in the right upper abdomen beneath the ribs is most often due to gallstones, but the liver, the rib cartilage, the right lung base and the right kidney can all be responsible. The relationship to fatty meals, breathing and movement helps tell them apart. Fever, jaundice or constant severe pain should be seen the same day.
Last checked: 2026-10-03
Key facts
At a glance.
-
Gallbladder
Pain after fatty meals, often spreading to the right shoulder blade, with nausea.
-
Chest wall
Tender when pressed, worse on movement or deep breathing, suggests a muscle or rib cartilage cause.
-
Liver
A dull ache or fullness, sometimes with tiredness, may reflect liver inflammation or fatty liver.
-
Urgent
Fever, jaundice, vomiting or constant severe pain suggests cholecystitis or a blocked bile duct.
-
Who to see
GP; ultrasound; surgery or hepatology depending on the cause.
What this symptom usually means
The right upper abdomen lies under the lower ribs and contains the liver, gallbladder, part of the stomach, duodenum, right kidney and the lung base above the diaphragm. Pain here is classified by what makes it better or worse, and by symptoms such as nausea, fever, jaundice and urine or stool changes.
Possible causes, from most to least common
-
Gallstones with biliary colic: sudden steady pain after meals, lasting 30 minutes to hours, with nausea; may radiate to the right shoulder blade.
-
Musculoskeletal pain: strained muscles or irritated rib cartilage, tender on pressing, worse on twisting or deep breaths.
-
Indigestion, gastritis and peptic ulcer.
-
Cholecystitis: persistent gallbladder pain with fever and tenderness, needing urgent treatment.
-
Fatty liver and hepatitis, with a dull ache and sometimes tiredness.
-
Kidney stones and urinary infection on the right.
-
Pneumonia or pleurisy at the lung base, with cough, fever and pain on breathing.
-
Bile duct stones, pancreatitis, liver abscess and liver tumours, which are less common but serious.
Features that point to something more serious
Fever or shaking chills, yellowing of the skin or eyes, dark urine and pale stools, persistent severe pain, vomiting, pain with breathlessness, weight loss, a lump or swelling, and pain after an injury suggest a more serious problem.
Red flags: when to seek help
-
Call 999 or go to A&E: severe constant pain with collapse, a rigid abdomen, vomiting blood or breathlessness.
-
Same-day GP or NHS 111: pain with fever, jaundice or persistent vomiting.
-
GP within days: repeated attacks after fatty meals, or pain with dark urine and pale stools.
-
Routine GP: reproducible chest wall tenderness that is improving.
What a doctor will ask and examine
The doctor asks about onset, duration, relation to meals, radiation, nausea, fever, urine and stool colour, alcohol, medicines, weight, injury and cough. They examine for jaundice, press on the right upper abdomen to check for a tender gallbladder, liver enlargement, rib tenderness and listen to the lungs.
Tests that are commonly used and why
-
Abdominal ultrasound: the key test for gallstones and gallbladder inflammation.
-
Liver function tests, amylase, full blood count and CRP.
-
Urine dipstick: for kidney or urinary causes.
-
Chest X-ray: if lung causes are suspected.
-
MRCP or CT: for bile duct stones, masses or complications.
Self-care and the usual route
Avoid large, fatty meals while awaiting assessment, stay hydrated and use simple painkillers if appropriate. For chest wall pain, gentle movement and warmth help. Keep a record of attacks, meals and timing. Do not ignore attacks that last more than a few hours.
The NHS route is a GP with ultrasound, then a surgical referral for symptomatic gallstones. Private surgeons offer direct access to ultrasound and keyhole gallbladder removal.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
What is under the right ribs?
The liver, gallbladder, part of the stomach and bowel, right kidney and the base of the right lung.
-
How do I recognise gallbladder pain?
Steady pain in the upper right or middle abdomen after eating, lasting up to hours, often with nausea, and sometimes spreading to the right shoulder blade.
-
Can it be a muscle strain?
Yes. Pain that is tender to touch and worse with movement or deep breaths is often musculoskeletal.
-
Is a fever important?
Yes. Fever with right upper abdominal pain suggests infection such as cholecystitis and needs same-day assessment.
-
Can fatty liver cause pain?
It can cause a dull ache or fullness, though many people have no symptoms.
-
Do I need an ultrasound?
Usually yes. It is quick, safe and the main test for gallstones.
-
Can gallstones go away?
Stones usually remain, but many people have no symptoms. If attacks are recurrent, surgery to remove the gallbladder is often advised.
-
What if the pain goes away?
Biliary colic often settles, but recurrent attacks should be investigated to prevent complications.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-03, next review 2027-10-03.
-
NHS: Gallstones (nhs.uk/conditions/gallstones/)
-
NHS: Cholecystitis (nhs.uk/conditions/acute-cholecystitis/)
-
NICE guideline CG188: Gallstone disease - diagnosis and management