Why Does the Left Side Under My Ribs Hurt?

Pain under the left side of your rib cage can come from several different organs and structures packed into that area, including the stomach, spleen, pancreas, left kidney, a bend in your colon, and even the cartilage of the ribs themselves. The cause ranges from something as harmless as trapped gas to conditions that need prompt medical attention. Where exactly the pain sits, what makes it better or worse, and what other symptoms come with it are the biggest clues to narrowing it down.

What’s Under Your Left Ribs

The left upper quadrant of your abdomen contains more organs than most people realize. Your stomach sits here, along with your spleen, the tail of your pancreas, your left kidney (tucked toward the back), and a sharp bend in your colon called the splenic flexure. The lower left ribs also protect the base of your left lung. Pain in this area could originate from any of these structures, or from the rib cage itself.

Trapped Gas at the Splenic Flexure

One of the most common and least dangerous causes is trapped gas. Your colon makes a sharp turn just under your left ribs, and gas traveling through the digestive tract can get stuck at this bend. When too much gas builds up there, it stretches the colon wall and produces a sharp pain in the upper left abdomen that can feel alarming. This is sometimes called splenic flexure syndrome.

The pain typically comes on suddenly, may feel like a stabbing sensation, and often improves after passing gas or having a bowel movement. Some people are more prone to it because they have a naturally tighter curve in their colon. Carbonated drinks, high-fiber meals, and swallowing air while eating can all make it worse. If this kind of pain comes and goes without other symptoms, trapped gas is a likely explanation.

Stomach Ulcers and Gastritis

Your stomach sits directly under the left ribs, and inflammation of the stomach lining or an ulcer can produce a dull, burning, or gnawing pain in this area. Peptic ulcers cause pain anywhere between the belly button and breastbone, and that pain often comes and goes over time. For some people it flares on an empty stomach or at night, then eases briefly after eating. For others, eating makes it worse.

The two most common causes of stomach ulcers are infection with a bacterium called H. pylori and regular use of anti-inflammatory painkillers like ibuprofen or aspirin. These medications reduce pain elsewhere in the body but make the stomach lining more vulnerable to damage. Alongside the pain, you might notice bloating, belching, nausea, or feeling uncomfortably full after small meals.

Pancreatitis

The tail of the pancreas extends into the left upper abdomen, and inflammation of the pancreas (pancreatitis) produces upper belly pain that often radiates straight through to the back or shoulders. The pain typically gets worse after eating. In an acute episode, the pain comes on suddenly and can be severe, often with nausea, vomiting, and fever. Chronic pancreatitis causes a more constant, grinding pain in the same location.

If you have sharp upper-middle or left-sided abdominal pain that radiates to your back and you also have a fever or are vomiting, that combination warrants urgent evaluation.

An Enlarged Spleen

Your spleen is a fist-sized organ tucked just under the left ribs. When it swells, a condition called splenomegaly, it can press against surrounding structures and cause pain or a feeling of fullness in the left upper abdomen. That pain sometimes spreads to the left shoulder, which is a distinctive clue.

Many things can cause the spleen to enlarge: viral infections like mononucleosis, liver disease, certain blood disorders, autoimmune conditions like lupus, and some cancers. An enlarged spleen often produces no symptoms at all until it reaches a significant size, so pain or fullness in that specific spot is worth getting checked. Pain that worsens when you take a deep breath is an additional red flag.

Kidney Stones

Your left kidney sits toward the back, just below the ribs. A kidney stone that gets stuck in the ureter (the tube connecting the kidney to the bladder) can cause serious, sharp pain in the side and back below the ribs. The pain often spreads downward to the lower abdomen and groin as the stone moves.

Kidney stone pain is hard to ignore. It tends to come in intense waves, and you may also notice blood-tinged urine, nausea, or a persistent urge to urinate. Because the kidney is positioned toward the back, this pain usually feels deeper and more flank-like than the pain from digestive causes, which tends to center in the front of the abdomen.

Costochondritis and Rib-Related Pain

Not all pain under the left ribs comes from internal organs. Costochondritis is inflammation of the cartilage that connects a rib to the breastbone, and it happens more often on the left side. The pain is sharp, aching, or pressure-like, and it gets noticeably worse when you take a deep breath, cough, sneeze, or twist your torso. It often affects more than one rib at a time and can radiate into the arms and shoulders.

The key feature that distinguishes costochondritis from organ pain is its direct link to movement and breathing. If pressing on the rib area reproduces the pain, that points toward a musculoskeletal cause rather than something deeper. Costochondritis can feel similar to a heart attack, though, so if you’re unsure, it’s worth ruling out cardiac causes first.

Pleurisy

The base of your left lung sits behind the lower left ribs, and pleurisy, an inflammation of the thin lining around the lungs, can produce sharp chest pain on that side. The hallmark of pleurisy is pain that worsens with every breath in and out, then lessens or stops entirely when you hold your breath. Coughing and sneezing make it worse too.

Pleurisy is usually caused by a viral infection, but it can also follow pneumonia or other lung conditions. The pain may spread to the shoulder or back. Sometimes fluid accumulates between the lung lining layers, and if enough builds up, the pain actually improves because the inflamed surfaces are no longer rubbing together.

When Left-Sided Pain Could Be Cardiac

A heart attack doesn’t always announce itself with crushing chest pain. Some people experience what feels like heartburn, indigestion, or vague upper belly discomfort instead. Pain or discomfort can also show up in the shoulder, arm, back, neck, jaw, or upper abdomen with no obvious chest pain at all. Nausea, vomiting, shortness of breath, and a cold sweat alongside left-sided rib or abdominal pain are warning signs that something cardiac could be happening.

How to Tell What’s Causing Your Pain

A few patterns can help you sort through the possibilities:

  • Pain that comes after meals and involves bloating or nausea points toward the stomach, an ulcer, or pancreatitis.
  • Pain tied to breathing or movement suggests costochondritis or pleurisy rather than an organ problem.
  • Sharp flank pain radiating to the groin is the classic pattern for a kidney stone.
  • Fullness under the ribs with left shoulder pain may indicate an enlarged spleen.
  • Pain that improves after passing gas is likely trapped gas at the splenic flexure.

Severe or sudden pain, especially when paired with fever, vomiting, shortness of breath, dizziness, or pain radiating to the back, jaw, or shoulder, signals something that needs immediate medical attention. Left-sided rib pain that is mild, brief, and clearly tied to eating or position is less likely to be dangerous, but persistent or worsening pain in this area deserves evaluation since so many different organs share the space.