Pain under the ribs when bending over usually stems from one of several causes, ranging from strained intercostal muscles and irritated costal cartilage to pressure on internal organs like the gallbladder or a pocket of trapped intestinal gas. The bending motion itself is what makes this pain distinctive: it compresses the abdominal cavity, shifts the ribs and their attachments, and changes the mechanical load on both the spine and the organs that sit just beneath the rib cage. Sorting out which cause is responsible depends on where exactly the pain lands, how long it lasts, and what else is happening in your body at the time.
Strained or Inflamed Muscles Between the Ribs
The most common and least alarming reason for under-rib pain during bending is a problem with the muscles, cartilage, or connective tissue in the chest wall itself. Your ribs are connected to each other by thin sheets of muscle called intercostal muscles, and each rib attaches to the breastbone through a strip of cartilage. Either of these structures can get irritated through overuse, awkward sleeping positions, a coughing spell, or a minor injury you may not even remember. When you bend forward, the ribs on the affected side compress together, squeezing the irritated tissue and producing a sharp or aching pain that feels like it is coming from deep inside.
Costochondritis, which is inflammation at the junction where a rib meets its cartilage, is a particularly frequent culprit. It tends to affect the upper and middle ribs, but when it involves the lower ribs the pain can easily be mistaken for something abdominal. The giveaway is usually that pressing directly on the sore spot reproduces the pain, and twisting or taking a deep breath makes it worse. This kind of musculoskeletal pain generally resolves on its own over a few weeks with rest and anti-inflammatory medication, though it can be stubborn enough to worry people into thinking something more serious is going on.
Slipping Rib Syndrome
Your lowest two or three ribs (ribs eight through twelve on each side) are not directly attached to the breastbone. Instead, they are held in place by cartilage and ligaments that connect them to the rib above. In some people, that cartilage becomes loose or overly mobile, allowing the rib tip to slip forward or backward and catch on the rib above it. This is slipping rib syndrome, and bending over is one of the most reliable ways to trigger it because the movement compresses and shifts those lower ribs against each other.
The pain from a slipping rib happens because the displaced cartilage irritates the intercostal nerves running along the underside of each rib. In some cases, the rib can also pinch surrounding soft tissue, adding inflammation on top of nerve irritation. People with slipping rib syndrome often describe a clicking or popping sensation along the lower rib margin, sometimes audible, that accompanies the pain. It can be on one side or both, and it tends to be worse with any trunk movement that loads those ribs, including bending, twisting, and coughing.
One reason slipping rib syndrome deserves its own discussion is that it is widely underdiagnosed. Standard imaging like X-rays and CT scans often look completely normal because the problem is one of movement, not structure. Dynamic ultrasound, where the examiner watches the ribs in real time while performing a physical maneuver called the hooking test, has proven more useful. In a case series using high-frequency ultrasound, researchers were able to visualize slipping of the eighth rib over the seventh during the hooking maneuver in patients whose previous lab work and conventional imaging had come back clean.1PubMed. Diagnostic Value of Dynamic High-frequency Ultrasound for the Slipping Rib and Twelfth Rib Syndrome: A Case Series with Review If you have recurring pain along the lower rib margin that clicks or shifts with bending, and your doctor has already ruled out the usual suspects, asking about slipping rib syndrome specifically is worth doing.
What Happens Inside Your Torso When You Bend
To understand why bending triggers so many different types of under-rib pain, it helps to know what the motion actually does to your trunk. When you fold forward, two things happen simultaneously: the muscles along your spine and abdomen activate to control the movement, and the pressure inside your abdominal cavity rises. That intra-abdominal pressure acts like a hydraulic cushion that stabilizes the spine, but it also pushes outward against everything in the abdomen, including organs, the underside of the diaphragm, and the inner surface of the lower ribs.
Computational modeling of forward bending has confirmed this interplay. One study found that intra-abdominal pressure during a 60-degree forward bend reduced the load on spinal discs and global muscle forces, essentially acting as a protective brace for the spine.2PubMed Central. Numerical Investigation of Intra-abdominal Pressure Effects on Spinal Loads and Load-Sharing in Forward Flexion A separate biomechanical study showed that increases in intra-abdominal pressure altered spinal curvature during forward flexion, reducing range of motion and changing the angles of both the thoracic and lumbar spine.3PubMed. Evaluating the influence of trunk intra-muscular and intra-abdominal pressure on spinal geometric compensation What this means practically is that the act of bending does not just move your ribs; it pressurizes the entire compartment beneath them. Any organ, nerve, or tissue that is already irritated, inflamed, or in the wrong position gets compressed further, which is why bending can turn a dormant problem into a sharp pain.
Gallbladder and Biliary Pain
Pain under the right ribs when bending forward sometimes has nothing to do with the ribs at all. The gallbladder sits tucked against the underside of the liver, just beneath the right rib cage, and when it is inflamed or contains stones, bending can push the liver downward against it and trigger a flare of pain. Biliary pain is classically felt in the upper right abdomen or the pit of the stomach and can radiate to the back and right shoulder. It tends to be severe, constant, and last for hours rather than seconds, often accompanied by nausea.4PubMed Central. ABC of the upper gastrointestinal tract. Upper abdominal pain: Gall bladder
The distinguishing feature of gallbladder pain is that it is not usually triggered by movement alone. Bending might make it worse, but it typically has its own rhythm, often appearing after meals, especially fatty ones, and lasting well beyond the time you spend bent over. If you are getting right-sided under-rib pain only when bending and it resolves as soon as you straighten up, your gallbladder is less likely the cause. If the pain lingers, worsens after eating, or comes with vomiting, gallstones or gallbladder inflammation should be on the list of possibilities to discuss with a doctor.
Trapped Gas and Splenic Flexure Discomfort
Pain under the left ribs when bending is a different story. The left side of the rib cage sits directly over the splenic flexure, which is the sharp bend in the colon where it turns downward near the spleen. Gas or stool that gets temporarily trapped at this bend can cause a dull, pressure-like pain or a sensation of fullness under the left ribs. When you fold forward, the abdominal pressure described earlier compresses that pocket of gas or distended colon against the underside of the diaphragm and the rib cage, intensifying the discomfort.
This pattern, sometimes called splenic flexure syndrome, is not a disease so much as a mechanical nuisance. It is more common in people who are prone to bloating, constipation, or irritable bowel symptoms. The pain can feel alarmingly sharp and may even mimic cardiac pain, which sends people to emergency rooms. But it usually resolves once the gas passes or the stool moves along. If you notice that the left-sided rib pain reliably appears when you are bloated and goes away after a bowel movement or passing gas, this is a strong candidate.
Kidney-Related Pain
The kidneys sit against the back wall of the abdomen, just below and behind the lowest ribs. Kidney stones, infections, or other kidney problems can produce pain that wraps around from the back to the front of the lower rib area, and bending can aggravate it by shifting the kidney’s position slightly or compressing the surrounding tissues. This pain is typically described as a deep, flank-based ache rather than a surface-level rib pain, and it may come in waves if a stone is moving through the urinary tract.
One challenge with kidney pain is that stones do not always cause obvious symptoms like blood in the urine or excruciating colic. In a case involving a young man with recurrent non-obstructing kidney stones, chronic left flank pain persisted even when imaging showed no actively blocking stones, requiring specialized nerve treatment before finding relief.5Interventional Pain Medicine. Percutaneous pulsed radiofrequency treatment of the splanchnic nerves for chronic flank pain secondary to non-obstructive nephrolithiasis The takeaway is that kidney-related pain under the ribs can be subtler than the classic kidney stone attack, and bending forward may be one of the few movements that consistently brings it to the surface.
Rib Stress Fractures
A less common but easily overlooked cause of under-rib pain is a stress fracture in the rib itself. Unlike a traumatic fracture from an impact, stress fractures develop gradually from repetitive strain. They are most often seen in athletes whose sports involve heavy trunk rotation or overhead movements, and in people with chronic coughs. The pain from a rib stress fracture is usually localized to a specific spot, worsens with any movement that loads that rib, and does not go away with rest the way a muscle strain might.
Rib stress fractures can be surprisingly hard to catch. A case involving an elite teenage tennis player illustrates the problem: the athlete presented with shoulder pain that did not improve with therapy, and only after further imaging was a nondisplaced fracture of the posterior first rib discovered.6JBJS Case Connector. First Rib Stress Fracture in an Adolescent Elite Tennis Player: A Case Report The pain had been attributed to the shoulder for weeks before anyone looked at the rib. While first-rib fractures are rarer, fractures in the lower ribs from activities like rowing, golf, or heavy lifting can produce pain that feels exactly like a muscular or internal issue and only becomes clear on a bone scan or MRI.
The Side Stitch and Peritoneal Irritation
If you have ever felt a sharp stab under your ribs while running and then noticed a similar pain when bending afterward, you have encountered what researchers call exercise-related transient abdominal pain, or what most people just call a side stitch. This pain almost always hits below the ribs on one side, more often the right, and it tends to be worst during activities that involve repetitive torso movement.
The exact cause has been debated for decades. Theories have included cramping of the diaphragm, stress on the ligaments that suspend abdominal organs, reduced blood flow to the gut, and compression of a blood vessel near the spine. Of these, the explanation that best fits the clinical features, according to a review of the evidence, is irritation of the parietal peritoneum, the thin membrane lining the inside of the abdominal wall.7PubMed Central. Exercise-related transient abdominal pain (ETAP) When that membrane gets rubbed or stretched by changes in abdominal pressure or by the organs moving beneath it, it produces a localized, sharp pain that can linger even after you stop exercising. Bending over in the minutes or hours after a run can re-provoke the pain because it compresses the same area that was irritated during the activity.
Side stitches are not dangerous and tend to become less frequent the fitter you get, but they are worth understanding because many people experience this pain during non-exercise bending and do not connect it to a workout they did earlier in the day. The peritoneum does not heal instantly; if it was irritated during a morning jog, bending to pick something up that afternoon can bring the pain right back.
Right Side Versus Left Side
Because the organs under each side of the rib cage are different, the location of your pain offers a useful first clue. Pain on the right side is more likely to involve the liver, gallbladder, or the hepatic flexure of the colon. Pain on the left is more likely related to the spleen, the splenic flexure of the colon, the stomach, or the tail of the pancreas. Pain in the center or on both sides is more suggestive of a musculoskeletal cause, a diaphragmatic issue, or something involving the stomach or esophagus.
That said, referred pain makes location unreliable on its own. Gallbladder pain can show up in the back or shoulder. Kidney pain can wrap around to the front. A slipping rib on the left can feel like a cardiac event. Location narrows the list of suspects but does not close the case by itself. The character of the pain matters just as much: sharp and momentary points toward musculoskeletal or nerve causes, dull and persistent points toward organ involvement, and crampy or wave-like points toward the gut or urinary tract.
When to Be Concerned
Most under-rib pain that appears only when bending and resolves quickly when you straighten up is benign. Musculoskeletal strains, trapped gas, and costochondritis are by far the most common explanations, and they tend to improve on their own. But certain patterns warrant medical evaluation sooner rather than later:
- Fever with rib pain: suggests possible infection, whether in the gallbladder, kidney, or the pleural space around the lungs.
- Unintended weight loss: pain under the ribs accompanied by weight loss that you cannot explain deserves imaging to rule out organ pathology.
- Pain that wakes you at night: musculoskeletal pain rarely disrupts sleep, so nighttime pain raises the suspicion of something visceral.
- Yellowing of skin or eyes: suggests a biliary obstruction and requires urgent evaluation.
- Pain after trauma: even minor falls or impacts can fracture a rib, and lower rib fractures carry the added risk of injuring the spleen or liver underneath.
If the pain has been present for more than a couple of weeks and is not improving, or if it is getting worse, imaging is reasonable regardless of the suspected cause. An ultrasound can evaluate the gallbladder and kidneys. A chest X-ray can catch some rib fractures and rule out lung problems. And if slipping rib syndrome is suspected, asking for a dynamic ultrasound specifically, rather than a static one, makes a real difference in whether the problem shows up on the screen at all.
Why Standard Workups Often Come Back Normal
A frustrating feature of under-rib pain with bending is that initial testing frequently finds nothing. Blood work comes back normal. X-rays look fine. An abdominal ultrasound may show no stones and no masses. This does not mean the pain is imaginary; it usually means the cause is something that standard testing is not designed to catch. Costochondritis does not show up on imaging. Slipping rib syndrome requires a dynamic test that most emergency rooms and primary care offices do not routinely perform. Splenic flexure gas has usually moved by the time you get to the imaging suite. Intercostal nerve irritation is a clinical diagnosis based on symptoms, not a finding on a scan.
Researchers studying slipping rib syndrome have specifically highlighted this gap: patients in their case series had undergone prior imaging and lab testing that was entirely unrevealing before dynamic ultrasound finally caught the rib displacement in real time.1PubMed. Diagnostic Value of Dynamic High-frequency Ultrasound for the Slipping Rib and Twelfth Rib Syndrome: A Case Series with Review The broader lesson applies to several causes on this list: under-rib pain that only appears with movement often requires movement-based examination to diagnose. If your workup has come back clean but the pain persists, it is worth revisiting the question with a clinician who is willing to watch what happens when you bend, twist, and breathe rather than relying solely on images taken while you are lying still.