IBS vs Non-IBS Pain Under The Left Rib Cage: How To Differentiate (Dr. Farahat).

Hi, I am Dr. Farahat, an IBS sufferer and gastroenterologist. Oftentimes, many of my IBS patients get confused about IBS pain.

With all of the IBS unpredictability, Being uncertain about what actually caused your abdominal pain can be quite stressful; especially if your abdominal pain has atypical patterns and locations.

Here, I will provide an in-depth answer to all your questions about IBS pain at the upper left abdomen (under the left rib cage):

  • Is pain under the left rib cage a “typical” location of IBS pain? and how common?
  • How does IBS pain under the left rib feels like?
  • When left hypochondrial pain is NOT IBS Pain?
  • Other causes of left rib pain and how to suspect the cause?
  • When to worry, and seek medical attention?

Is Pain under the left rib cage typical for IBS? and How common?

IBS pain can be generalized or localized at any part of your abdomen, it is not common for IBS to localize in the upper left abdomen under the rib cage. According to the journal of Hepatology and gastroenterology, upper left abdominal pain occurs only in 6% of IBS patients.

The most common IBS pain locations are around the umbilicus and the upper part of the abdomen in the middle. Here is a breakdown of the frequency of abdominal pain according to the site (ref):

  1. Around the umbilicus (belly button) {39%}: it is the most common site of IBS pain.
  2. The upper central part of the abdomen {33%}: the second most common site of IBS pain or discomfort.
  3. The lower central part of the abdomen: {13%}
  4. The lower left part of the abdomen: {7%}
  5. Upper left abdominal pain (under the rib cage): {6%}
  6. Right-sided IBS pain (upper and lower) are the least common IBS pain locations.


  • IBS can affect more than one location in your abdomen. Some have IBS pain or discomfort all over their abdomen.
  • The above percentages are based on a small study in the “journal of gastroenterology and hepatology”.
    Although it is not a large-scale clinical study, it can give you an idea about the common IBS pain locations.

How does IBS pain under the left rib feels like?

Assuming that you are an IBS sufferer, You’re now wondering about the pain under the left rib cage: Is it an IBS pain or something else?

To answer this question, I will try to simply explain the character of IBS pain and how it is different from other causes of pain under the left rib.

The characters of IBS Pain under the upper left abdomen (under ribs):

  • 1. Comes in attacks: the fundamental character of irritable bowel syndrome abdominal pain is the “fluctuating nature”
    Usually, IBS pain comes in waves of flare-ups and remissions. If the pain felt under the left ribs comes and goes over a long period of time, it is suggested to be an IBS pain.
  • 2. Associated with defecation: If the upper left abdominal pain decrease or increases after you poop, this is a feature of IBS pain.
  • 3. Associated with changes in stool frequency: If the onset of pain is associated with a change in the frequency of bowel movements (associated with diarrhea or constipation), then it is IBS pain.
  • 4. Associated with changes in stool form: The onset of  IBS pain is associated with a change in the stool form (associated with loose or hard stools).
  • 5. The IBS pain Character: usually, the IBS pain is “Colicy” in nature. Pain arising from the colon is usually in the form of “Spasms” or “contractions” and relaxation. 
    Also, some IBS patients suffer from just “abdominal discomfort” and not true pain.
    IBS pain is commonly associated with bloating, diarrhea, or constipation.
  • 6. Associated with food: when the left pain under the rib starts after eating (especially high fodmap or gas-producing foods), it is more suggestive for it is IBS pain.
  • 7. Doesn’t awaken you from sleep: functional abdominal pain (including IBS pain) usually doesn’t affect your sleep. If the upper left pain cannot awaken you from sleep, then it is probably an IBS pain.
  • 8. Relieved by IBS medications: another important feature that suggests the upper left abdominal pain is due to IBS is its relation to IBS medications.
    Usually, the IBSpain goes away after you take antispasmodics or peppermint oil.

When the left pain under the rib is NOT an IBS pain?

After explaining what is IBS pain, now it is time to explain what is NOT IBS pain.

The features and signs listed below, if present, suggest another cause of left hypochondrial pain than IBS.

Some of these causes are of benign and mild nature, others may require you to consult your doctor.

1- Extreme or very severe pain:

Unlike IBS, pain due to inflammation or trauma to any organ in the left hypochondrial area is usually different from the usual IBS pain.

It can occur in the form of severe stabbing pain that increases with movement or respiration.

Pain from pancreatitis is very extreme and can cause nausea and vomiting.

2- Pain that is not going away:

IBS pain comes and goes (flare-ups and remissions). Persistent pain for days or weeks, progressively increasing and not related to defecation and food is not an IBS pain. Example:

People with moderate to huge enlargement of their spleen (splenomegaly) may suffer continuous heaviness or pain under the left rib cage, the pain is usually persistent and doesn’t go away.

3- Pain that is related to Movement:

IBS  left abdominal pain doesn’t change in degree (severity) when you move to change the position of your body.

A pain that greatly increases on walking, standing up, bending the body, coughing, or sleeping on one side of the body is not typical for IBS.

Left rib fracture or trauma can cause left abdominal pain under the rib cage that greatly increases with movement.

4- Pain that awakens you at night:

It is unusual for IBS pain to awaken you after you fall asleep. Pain under the left rib cage is of new-onset and great at night is probably not IBS pain.

5- Associated fever:

Fever is not a symptom of IBS. presence of fever indicates that the left pain under your ribs is not of IBS origin. This is especially important if the onset of left pain is related to the onset of the fever.

6- Associated vomiting:

Left upper abdominal pain and vomiting may reflect actual inflammation of infection inside your gut

For example, severe gastritis or GERD may lead to left abdominal pain under the rib cage and vomiting.

7- Pain that is associated with “Red Flag Signs” of IBS:

  • Blood in stool.
  • The onset of IBS pain after the age of 50.
  • Progressive weight loss (a significant weight loss is a loss of more than 5% of your body weight over 6 to 12 months without obvious cause (ref)).
  • Unexplained fever or anemia.
  • Family history of colon cancer (especially if your age is above 40).

But, Please: Reading an article about your IBS (such as this article) can leave you convinced that there is something worse is happening inside.

So, please bear in mind that the incidence of such serious conditions is rare. It is better to think of the common causes at first (which will be responsible for such pain more than 99% of the time).

Common causes of left pain under the rib OTHER THAN IBS.

1- Stomach & lower esophagus.

Pain from the stomach is:

  • Upper abdominal pain at the center (Typical location)
  • It can be left abdominal pain under the rib cage.
  • The Pain can radiate into the back.

The character of pain is usually sharp, stabbing, or burning pain. it is usually associated with nausea, GERD, or bloating.

Common gastric conditions that can cause stomach pain under left ribs:

  • Gastritis: acute and chronic.
  • Gastric ulcer.
  • GERD.
  • Functional dyspepsia

Always consider Functional dyspepsia if you continuously experience post-prandial fullness and left pain under the ribs with your IBS.

Functional dyspepsia is of special importance as many IBS patients have associated functional dyspepsia. Actually, this meta-analysis estimates that about 37% of IBS patients suffer from functional dyspepsia.

Functional dyspepsia (also known as indigestion) is a group of symptoms including stomach pain, bloating, nausea, and maybe a loss of appetite.

Unfortunately, no specific test or imaging can diagnose such functional diseases. To be diagnosed with such conditions, only your doctor can do this after the exclusion of any organic diseases. The diagnosis of functional gut diseases is based only on certain clinical criteria. This criterion is created by The “Rome Foundation” for gastrointestinal diseases.

Due to its common association with IBS, consider functional dyspepsia (indigestion) as a cause of left pain under the ribs.


2- Other colonic conditions

IBS is not the only condition that may affect your colon. Other diseases or conditions that affect your colon (especially the left or splenic flexure of the colon) & can cause pain under the ribs.


  • IBD (inflammatory Bowel Disease) as Crohn’s and Ulcerative Colitis.
  • Trapped wind in the left colonic flexure.
  • Any localized inflammation (colitis), or mass (colon cancer).

Usually, the differentiation of pain is not easy. but with IBD, the condition is more severe and may be associated with Blood in stool, fever, or weight loss.

MORE: Descending Colon Pain: 7 Causes, Gastroenterologist explains.

3- Spleen

The spleen can be a cause of left abdominal pain under the rib cage.

The splenic conditions that can cause pain:

  • Splenomegaly (enlarged spleen): the splenic pain location is left hypochondrial (under left ribs). when the spleen enlarges for any reason, it leads to vague, continuous pain or heaviness (dragging pain). this commonly occurs in people with blood diseases or liver failure (liver cirrhosis).
  • Splenic abscess: the pain from a splenic abscess is usually severe, progressive, and associated with fever.
  • Splenic masses, cysts, or focal lesions: as with lymphomas. this can be asymptomatic or dull left abdominal pain or discomfort.

4- Your abdominal wall & Chest (lower ribs, intercostal muscle, left pleura, and left lung).

This is another very common cause of pain under the left rib cage with IBS. the conditions can be simply of muscular or skeletal origin.

Any bone trauma, bone diseases (especially osteoporosis in females) can lead to vague left abdominal pain just under the rib cage.

Another contributing cause is a persistent or chronic cough. If you have a persistent cough for many days or even years, then subcostal pain can be attributed to cough.

The distinctive features of pain from the musculoskeletal origin are:

  • Related to movement: if the pain increases greatly when you move or change your body position, it may suggest a musculoskeletal origin.
  • History of rib or left side trauma, false movements, or lifting heavyweight.
  • History of osteoporosis, or any bone disease.

5- The pancreas.

Pancreatic pain is very extreme especially with the acute form of pancreatitis. The pain usually occurs in the middle of the body, just under the ribs. But it is sometimes felt on either the left or right side (ref).

Symptoms and signs suggesting pancreatitis:

  • Upper abdominal pain, usually central but it can radiate to the left side under the ribs.
  • The pain radiates to the back, partially relieved by leaning forward.
  • severe nausea, and maybe vomiting.
  • the pain feels worse after eating.
  • severe tenderness when touching the abdomen.

6- The kidneys.

The kidney came last in this list because it seldom causes pain under the left rib. Your Kidneys are located in the back of your abdomen.

Typical kidney pain location is in your sides or middle to upper back. Common conditions that cause kidney pain are

  • kidney stones.
  • Kidney gravels (tiny stones).
  • Kidney inflammation (urinary tract infection or glomerulonephritis).

7- Unexplained, Fibromyalgia, and more!

Oftentimes, doctors cannot identify a specific cause of abnormal pain locations with IBS.

IBS can cause pain in “atypical” locations or presentations such as (ref):

  • Back pain.
  • Leg pain.
  • Pelvic pain.
  • Painful urination (intestinal cystitis).
  • Unexplained generalized muscle pains
  • Fibromyalgia.
  • Generalized fatigue and headaches.
  • Chest pains and shortness of breath.

(Source study)

One of the common examples of non-typical IBS symptoms is its association with fibromyalgia.

Fibromyalgia is widespread pain in the muscles, ligaments, and tendons in your body. And the pain under your left rib cage may be one of its symptoms.

Some studies estimate that Fibromyalgia Syndrome (FM) is present in up to 60% of patients with Irritable bowel syndrome (ref).

if you experience pain in “atypical” IBS locations, consider discussing the issue of fibromyalgia with your doctor.




What you need to know:

Mid-back pain at the right side can raise from back muscles, bones, ligaments, or form internal organs.

The most common causes of mid-back right-sided pain are:

  • Muscle strain and ligament sprains.
  • Bone (rib) fractures or osteoporosis.
  • Gallbladder pain.

1. Muscle and ligament pain.

Your back muscles and ligaments are one of the frequent sources of mid-back pain. The pain can localize to one side (right or left).

The pain results from the affection of the muscles in the right mid-back by either:

  • Muscle or tendon strain: pulling, twisting, or pulling of a muscle or its fibrous ligament.
  • Ligament sprain: stretching or tearing of a ligament (a fibrous tissue that connects two or more bones).


  • Repeated heavy lifting.
  • A sudden awkward movement: leads to an over-stretch (strain) of your back muscles.
  • Over-weight.
  • Poor physical health.
  • Lack of physical exercise.
  • Prolonged sitting or sleeping on low-quality chairs or mattresses.
  • The pain usually improves with rest.

Symptoms (how to know it is a muscle or ligament pain): 

  • Character: aching, shooting, or stabbing sensation in the mid-back.
  • Related to movement: bending, standing up, or any move triggers the right mid-back pain. movement
  • Worse in certain positions: the pain is more when you hold specific postures (such as standing upright or lying on the right side).
  • In most cases, the pain heals after 1 or 2 weeks.
  • Tender: touching or pressing the affected muscle or ligament exaggerates the pain.

Muscle and ligament-related mid-back pain are the easiest to detect. Its characteristic relation to movement and posture makes it easy to diagnose.

The affected muscles and ligaments include:

  • The muscles and ligaments between the ribs (intercostal muscles).
  • Big muscles of the back as Trapezius, Latismus Dorsi muscle, and others.


Your doctor has to confirm the diagnosis. He will perform a physical exam and may require investigations such as x-ray or abdominal ultrasonography.

If you get the diagnosis of back muscle strain, you can benefit from the following treatments.

  • Avoid sitting or standing for prolonged periods.
  • Avoid vigorous physical activity and workouts.
  • Use quality chairs and mattresses.
  • Ice packs on the affected area.
  • Your doctor may prescribe an analgesic such as Ibuprofen (Advil) to help ease the pain.
  • Muscle relaxants may also help.

2. Bone (rib) pain.


  • Broken or fractured ribs (often due to recent trauma.
  • Diseases of the bones such as osteoporosis.
  • Swollen rib cartilage.
  • Rarely, tumors affecting the ribs (tumors spreading to the bone).

Symptoms (how to know it is a bone pain):

  • History of recent trauma to the mid-back (right side).
  • Trauma history is not necessary if the bone pain is due to osteoporosis or other bone diseases.
  • The pain starts immediately after the trauma.
  • Like the muscle strain, it increases with movements (even with respiration).
  • The pain is often more extreme than muscle strain with severe tenderness on touching the ribs.
  • The diagnosis is made easily by visualizing the fracture by x-ray.
  • Your doctor may require additional investigations to diagnose other rib conditions such as osteoporosis.

3. Gall bladder pain.

Gallbladder pain commonly radiates to the mid-back at the right side. 

The primary site of gallbladder pain is often the right upper quadrant of the abdomen.


  • Gallbladder stones, gallbladder gravels, or mud.
  • Inflammation of the gallbladder (cholecystitis): most cases are due to the obstruction of its neck by a stone.
  • Functional gallbladder pain.
  • Post-cholecystectomy pain.
  • Rarely, gallbladder cancer.
  • Risk factors of gallstones: obesity, being a female, rapid weight loss, fatty foods, family history of gall stones, and others. Learn more.


  • The mid-back right-sided pain is often triggered by eating (large and fatty meals).
  • The pain starts primarily in your abdomen (upper right and upper-middle abdominal pain.
  • However, with chronic cases, intermittent right side or mid-back right can occur without noticeable abdominal pain.
  • The back pain also affects the mid-back between shoulder blades in some patients.
  • The pain is associated with nausea after eating.
  • The pain comes in attacks, lasts for few minutes up to an hour (with an average of 10-30 minutes).
  • The pain is NOT related to movement or posture. 

Your doctor often requires abdominal ultrasonography when your symptoms are consistent with gallbladder disease.

Gallstones require surgery in most cases. 

4. The right kidney and ureter pain.

The right kidney and right ureter condition manifest with right loin pain. The right loin pain commonly spreads to the right mid-back. 


  • Right kidney stones.
  • Right ureter stones.
  • Infections of the kidney and urinary tract.
  • Kidney inflammation.
  • Kidney cysts.
  • Rarely, kidney tumors.

Symptoms (How to know it is a kidney pain):

  • Right loin pain: the loin is the area between your ribs and hip. It is the typical site of right kidney and ureter pain.
  • The pain can spread to the mid-back at the right side. Also, ureteric pain spreads to the right groin.
  • Sudden onset: Food or movement DOESN’T trigger renal colics.
  • Intense colic that lasts for minutes to few hours.
  • Sudden offset: the pain is relieved completely after the attack. It tends to recure again.
  • Movement doesn’t decrease, neither increase the intensity of pain.
  • Associated with intense nausea. Vomiting also occurs with severe pain.
  • Change in urine color (turbid or bloody urine).

Learn more about renal colics

5. Pleurisy.

The pleura is a double-layered thin tissue that separates your lungs from the chest wall.

Sometimes, it gets inflamed causing pain with respiration.

Inflammation of the right-back portion of the pleural can cause mid-back right pain.


  • viral infections (commonly respiratory synthetical viruses and influenza viruses.
  • Other types of infections such as bacterial pneumonia and fungal infection.
  • Rib fracture or trauma.
  • Certain medications. 
  • Autoimmune disorders such as rheumatoid arthritis and lupus.
  • Less frequently, pulmonary embolism, lung cancer, pleural cancer (mesothelioma), and TB.


  • The characteristic feature of pleurisy is its relation to respiratory movement. The pain worsens every time you breath-in or out. 
  • The pain also increases with coughing and sneezing.
  • Shortness of breath.
  • Sometimes, fever and cough may be present.

Learn more about pleurisy.

6. Others (less frequent).

The causes listed below are either rare or rarely spreads to the mid-back at the right.

  • Liver: liver inflammation (hepatitis), liver abscesses, or liver cancer.
  • Cancers: liver cancer, kidney cancer, bone cancers, lung cancers, pleural cancer (mesothelioma), colorectal cancer, abdominal lymphoma, and others.
  • Painful skin lesions: painful skin lesion in the mid-back at the right side can cause pain. Also, a lipoma can cause pain when it is large enough.
  • Colon pain: localized gas or colon diseases in the right colon can cause pain that spreads to the right mid-back. For example, trapped gas, irritable bowel syndrome, IBD, and colorectal cancer.

When to see a doctor:

See a doctor when the right mid-back pain is associated with:

  • Prolonged undiagnosed pain.
  • The pain has started after trauma or injury.
  • Extreme or intolerable pain.
  • Fever.
  • Vomiting.
  • Weight loss.
  • Significant shortness of breath.
  • Bloody urine or stool.