Your liver sits on the right side of your body, tucked up under your rib cage in what doctors call the right upper quadrant of the abdomen. It rests just below the diaphragm and stretches slightly past the midline toward your left, but the bulk of it lives firmly on the right. Understanding that location matters because pain in that area can come from the liver itself, from neighboring organs like the gallbladder, or even from structures you would never suspect.
Where the Liver Sits and What Surrounds It
The liver is the largest solid organ in your abdomen. It occupies most of the right upper quadrant, sitting directly beneath the diaphragm, the dome-shaped muscle that separates your chest cavity from your abdominal cavity.1PubMed Central. Anatomy, Abdomen and Pelvis: Liver If you placed your right hand flat against your lower ribs on the right side, your palm would roughly cover the area where the liver lives. It is wedge-shaped, thicker toward the right and tapering as it crosses toward the left.
The liver does not float freely in there. Its upper rear surface presses directly against the diaphragm, with a bare patch where the two are essentially fused together. Below and behind, the liver sits close to the right kidney. And nestled against its underside is the gallbladder, a small pouch that stores bile the liver produces.1PubMed Central. Anatomy, Abdomen and Pelvis: Liver This close neighborhood of organs is important because when you feel a dull ache or sharp stab under your right ribs, the liver is only one of several possible culprits.
Because the liver extends slightly past the center of your body, some people feel tenderness just below the breastbone and assume it is a stomach problem. The left lobe of the liver reaches into that zone, and swelling or inflammation there can mimic heartburn or gastritis. The takeaway is that the liver is primarily a right-sided organ, but not exclusively so.
Why the Liver Itself Rarely Hurts in the Way You Would Expect
Here is something that surprises a lot of people: the interior tissue of the liver has almost no pain-sensing nerve fibers. You could theoretically poke the inside of a liver and the organ would not register it as pain. The pain signals come from Glisson’s capsule, a thin fibrous membrane that wraps around the entire liver like a tight sleeve. When the liver swells, whether from infection, fatty buildup, or congestion, the capsule stretches, and that stretching is what you feel as discomfort or pain.
Research on this capsule shows that disease changes its structure. In people with cirrhosis, the capsule thickens dramatically compared to healthy tissue, roughly tripling in thickness regardless of what caused the cirrhosis.2ScienceDirect / JHEP Reports. Glisson’s capsule matrix structure and function is altered in patients with cirrhosis irrespective of aetiology Interestingly, the thickened capsule is actually weaker and less resistant to pressure than a normal one, which may explain why advanced liver disease can produce a persistent, hard-to-pin-down aching sensation rather than sharp pain. The capsule is being stretched by a swollen, stiff liver, and the capsule itself is less able to hold up under that pressure.
Milder conditions like simple fatty liver or moderate scarring do not seem to change the capsule’s thickness much.2ScienceDirect / JHEP Reports. Glisson’s capsule matrix structure and function is altered in patients with cirrhosis irrespective of aetiology That is partly why early liver disease is often called a “silent” condition. The liver can be quietly accumulating fat or developing early fibrosis without stretching the capsule enough to send you any warning signal. By the time the organ is swollen enough to make you feel something, the disease may already be fairly advanced.
What Liver Pain Actually Feels Like
Because it originates from a stretched capsule rather than from a pinpoint injury, liver pain tends to be diffuse and dull. Most people describe it as a persistent ache or a sense of heaviness under the right ribs. It is not the kind of sharp, stabbing pain you get from, say, a muscle cramp or a broken bone. Pressing on the area can make it worse, and some people find that lying on their right side increases the discomfort because the weight of the body compresses the already-swollen organ.
The quality of the pain can shift depending on what is happening. Acute hepatitis or a liver abscess may produce a more noticeable, constant ache because the organ swells quickly and the capsule stretches over a short period. Chronic conditions like fatty liver disease or slow-progressing cirrhosis tend to produce a vague fullness or mild discomfort that people sometimes write off as indigestion for months or years.
One pattern worth knowing: if the pain is sudden, severe, and localized to a very specific spot under the right ribs, the gallbladder is a more likely suspect than the liver. Gallbladder attacks tend to produce intense, focused pain that can come on after a fatty meal and may last several hours. The liver, by contrast, does not typically produce that kind of acute, meal-triggered pain.
When Liver Problems Cause Pain Somewhere Else Entirely
One of the more puzzling things about liver-related pain is that it does not always show up where you would expect. Because the liver sits against the diaphragm, and the diaphragm is served by the phrenic nerve, irritation of the diaphragm’s underside can produce pain that your brain interprets as coming from your right shoulder. This phenomenon, called referred pain, happens because the phrenic nerve connects to the same spinal cord levels (around C3 through C5) that serve the skin and joints of the shoulder area.3Cureus. Liver Metastasis: A Rare and Sinister Cause of Shoulder Pain
Your brain, receiving pain signals from C3 through C5, essentially makes an educated guess about where the pain is coming from, and it guesses “shoulder” because that is a far more common source of input from those nerve levels. You end up rubbing your shoulder while the actual problem is under your ribs. This pattern has been documented in cases of liver tumors pressing on the diaphragm, liver abscesses irritating the diaphragm’s surface, and even severe hepatitis with enough swelling to push upward.3Cureus. Liver Metastasis: A Rare and Sinister Cause of Shoulder Pain
The practical point here is that persistent right shoulder pain with no obvious orthopedic explanation, especially if it comes with fatigue, appetite changes, or a feeling of fullness on the right side, is worth mentioning to a doctor. Most shoulder pain is, of course, just shoulder pain. But referred pain from the liver area is an underrecognized phenomenon that occasionally delays diagnosis of serious conditions.
Not Everything Under the Right Ribs Is the Liver
People often search for liver pain because they are feeling something uncomfortable on their right side and the liver is the organ they know about. But the right upper quadrant is a crowded neighborhood. Before assuming the liver is the issue, doctors work through a list of other possibilities that share the same real estate.
The most common causes of right upper quadrant pain include gallstones, peptic ulcers, pancreatitis (the head of the pancreas sits near that area), acid reflux, and tumors, all of which should be ruled out before considering less common functional disorders of the gallbladder or bile ducts.4PubMed Central. Right Upper Quadrant Pain with Normal Hepatobiliary Ultrasound: Can Hepatobiliary Scintigraphy Define the Cause? Each of these has its own character:
- Gallstones: Often produce sharp, intense pain that peaks within an hour of eating, especially after fatty meals. The pain can radiate to the back or the right shoulder blade.
- Peptic ulcers: Tend to cause a burning or gnawing pain that may improve or worsen with food depending on the ulcer’s location.
- Acid reflux: Can produce a burning sensation in the upper abdomen that climbs toward the chest, sometimes mistaken for liver discomfort when it radiates to the right.
- Musculoskeletal strain: Pulling an intercostal muscle between the lower ribs on the right side can feel alarmingly like an internal organ problem, but the pain usually sharpens with movement or deep breathing.
The overlap between these conditions is real, and self-diagnosis based on pain location alone is unreliable. Even experienced clinicians sometimes need imaging to sort out what is happening in this part of the body.
How Doctors Determine the Source
When you show up with right upper quadrant pain, the first imaging study is almost always an ultrasound. It is fast, does not involve radiation, and is particularly good at identifying gallstones and signs of gallbladder inflammation.5Wiley Online Library. Right Upper Quadrant Pain: Ultrasound First! Ultrasound can also reveal whether the liver is enlarged, whether there is fluid around it, and whether obvious masses or cysts are present. For many patients, this single test is enough to guide the next steps.
If the ultrasound looks normal but the pain persists, things get more interesting. A normal-looking liver and gallbladder on ultrasound does not rule out functional problems with bile drainage, and it does not catch every cause of the pain. Additional tests might include blood work to check liver enzymes, a specialized scan called hepatobiliary scintigraphy that tracks how bile moves through your system, or cross-sectional imaging like CT or MRI for deeper evaluation.4PubMed Central. Right Upper Quadrant Pain with Normal Hepatobiliary Ultrasound: Can Hepatobiliary Scintigraphy Define the Cause?
One frustrating reality is that a meaningful number of people with recurrent right upper quadrant pain end up with no clear structural diagnosis after all the standard tests. In those cases, the problem may be a functional disorder of the gallbladder or the sphincter that controls bile flow into the intestine. These conditions produce real pain but do not show up as stones or masses on imaging. They require specialized testing and, sometimes, a process-of-elimination approach to treatment.
Warning Signs That Demand Immediate Attention
Most right-sided abdominal discomfort turns out to be benign or at least non-urgent. But certain combinations of symptoms require prompt evaluation. The classic triad that raises alarm is abdominal pain, fever, and jaundice (a yellowing of the skin and whites of the eyes). This combination points toward acute bacterial cholangitis, an infection of the bile ducts that can escalate quickly and requires antibiotics and stabilization.6SpringerLink / Journal of General Internal Medicine. A 43-Year-Old Woman with Abdominal Pain and Fever
Other combinations that should get you to a doctor quickly include:
- Pain with high fever and chills: Suggests an infectious process, whether in the gallbladder, bile ducts, or the liver itself (a liver abscess).
- Pain with significant unintended weight loss: Raises concern for malignancy, particularly pancreatic or hepatobiliary cancers.
- Pain with dark urine and pale stools: Suggests a blockage in bile flow, which may be caused by a stone, stricture, or tumor.
- Sudden severe pain with a rigid abdomen: Could indicate a perforation or rupture, which is a surgical emergency.
Fever combined with abdominal pain and signs of systemic inflammation, such as a rapid heart rate and low blood pressure, is treated as a medical emergency because the infection risk is high and the window for effective treatment narrows quickly.6SpringerLink / Journal of General Internal Medicine. A 43-Year-Old Woman with Abdominal Pain and Fever
When the Liver Is on the Wrong Side
In a small number of people, roughly 1 in 10,000 to 1 in 20,000, the liver is on the left. This happens in a condition called situs inversus totalis, where all the major organs are mirror-flipped from their normal positions. The heart points right instead of left, the spleen moves to the right side, and the liver relocates to the left upper quadrant.7PubMed Central. Situs Inversus Totalis: A Clinical Review
Most people with situs inversus live entirely normal lives and may not even know about their reversed anatomy until an imaging study reveals it incidentally. The organs are mirror-imaged but otherwise structurally normal, so they function correctly. The condition does become clinically important, however, when something goes wrong. A person with situs inversus who develops gallstones may experience pain on the left side rather than the right, which can confuse the initial assessment. Appendicitis, which normally causes right lower quadrant pain, shows up on the left. Surgeons operating on someone with situs inversus need to be aware of the reversal because the usual anatomical landmarks are flipped.
For the vast majority of people, though, the liver is right where anatomy textbooks say it should be: under the right ribs, draped over the gallbladder and kidney, pressed up against the diaphragm. If you are feeling pain in that area, the organ geography at least narrows the list of suspects, even if sorting out which neighbor is causing the trouble still takes some detective work.
Liver Pain Without Obvious Liver Disease
A scenario that catches many people off guard is experiencing right upper quadrant discomfort despite having blood work and imaging that come back essentially normal. Liver enzymes are fine, the ultrasound shows no stones or masses, and yet the ache persists. This is more common than you might think, and it can have several explanations that do not involve the liver at all.
The lower right ribs attach to the spine via joints and muscles that can become strained or inflamed from poor posture, heavy lifting, or even prolonged coughing. This musculoskeletal pain sits right on top of where the liver lives, and without imaging it can be impossible to distinguish from organ pain by feel alone. Another overlooked cause is referred pain from the thoracic spine. A pinched nerve or disc issue in the mid-back can radiate pain around the rib cage to the front, settling right in the liver zone. And functional gastrointestinal disorders, including irritable bowel syndrome, can produce upper abdominal pain that migrates around and sometimes camps out under the right ribs for weeks at a time.
The broader lesson is that right upper quadrant pain is a location, not a diagnosis. Knowing that the liver sits on the right side is a useful starting point, but the sensation you feel there could be the liver, the gallbladder, a rib joint, a nerve, the colon’s hepatic flexure (the sharp bend the colon makes near the liver), or even the diaphragm itself. A thoughtful clinical evaluation, starting with an ultrasound and basic blood work, is the only reliable way to tell them apart.5Wiley Online Library. Right Upper Quadrant Pain: Ultrasound First!