Pain under your left ribs is common, and in most cases it is not an emergency. The area contains your stomach, the tail of your pancreas, part of your colon, your spleen, your left kidney, and the lower lobe of your left lung. Pain here can come from any of those organs, or from the muscles and ribs themselves. The exact location, the type of pain, and what makes it better or worse are the clues that point to the cause.
What Organs Sit Under Your Left Ribs?
Knowing what is in that space helps you understand why pain happens there. The left upper quadrant of your abdomen holds several important structures.
Your stomach sits mostly on the left side, high under the ribs. The spleen is a fist-sized organ tucked under the lower left ribs, and it filters blood and helps fight infection. The pancreas runs across the upper abdomen, with its tail reaching into the left side. The left kidney sits deep in the back, partially under the rib cage. The splenic flexure — the bend where your colon turns — also sits high on the left. And the lower part of your left lung extends down behind the ribs.
Pain in this area can also come from the rib cage itself, the muscles between the ribs, or the diaphragm. Because so many structures overlap in this space, the pain location alone rarely gives you the full answer.
What Are the Most Common Causes of Left Rib Pain?
Digestive issues are the most frequent reason people feel pain under the left ribs. Gas and constipation can cause sharp, cramping pain that moves around. The splenic flexure is a common spot for gas to get trapped, which can produce pressure that feels like a knot under the ribs.
Gastritis — inflammation of the stomach lining — and peptic ulcers can cause burning or gnawing pain in the upper left abdomen. This pain often comes on when the stomach is empty and may improve briefly after eating. Some research suggests that H. pylori bacteria cause many of these ulcers, though not all stomach pain comes from this infection.
Pancreatitis — inflammation of the pancreas — typically causes pain that starts in the middle of the upper abdomen and radiates to the left side or the back. This pain is usually constant and can be severe. Acute pancreatitis is a medical emergency and requires hospital care.
Kidney stones on the left side can cause pain that starts in the flank — the side of your back — and radiates around toward the front. The pain from a kidney stone often comes in waves and can be intense.
When Is Left Rib Pain Related to the Spleen?
The spleen sits directly under the left lower ribs, so problems with this organ can cause pain in exactly that spot. An enlarged spleen — a condition called splenomegaly — can stretch its outer capsule and cause a dull ache. Enlargement can happen from infections like mononucleosis, from liver disease, or from blood disorders.
A splenic injury is more serious. This usually follows trauma, such as a car accident, a fall, or a direct blow to the left side during sports. A ruptured spleen causes sudden, severe pain and can lead to internal bleeding. If you have left rib pain after any kind of injury to your abdomen or chest, get medical help immediately.
Splenic rupture can also happen rarely without trauma in people whose spleen is already enlarged from illness. The pain is typically sudden and severe, and it may be accompanied by dizziness or lightheadedness from blood loss.
Can Rib Pain Come From the Chest or Lungs?
Yes. The lower lobe of the left lung extends down behind the ribs, and conditions affecting it can cause pain that feels like it is under your ribs. Pleurisy — inflammation of the lining around the lungs — causes sharp pain that worsens with deep breaths or coughing. Pneumonia in the left lower lobe can produce similar pain along with fever and a cough.
A pulmonary embolism — a blood clot in the lung — can cause sudden chest pain, shortness of breath, and sometimes pain that radiates to the left shoulder. This is a medical emergency. If the pain came on suddenly and you are struggling to breathe, do not wait to see if it passes.
On the heart side, angina or a heart attack can sometimes cause pain that is felt in the upper abdomen or under the ribs rather than in the center of the chest. This is more common in women and in people with diabetes. If the pain is accompanied by sweating, nausea, or pain spreading to the jaw or left arm, call emergency services.
What About Muscles, Ribs, and Nerves?
Not all pain under the left ribs comes from internal organs. The muscles of the abdominal wall and the intercostal muscles between the ribs can be strained from exercise, lifting, or coughing hard. This pain is usually sharp and worsens when you twist, bend, or press on the area.
Costochondritis is inflammation of the cartilage where the ribs attach to the breastbone. It causes sharp, localized pain that can be reproduced by pressing on the spot. The pain often worsens with deep breathing or movement.
A cracked or bruised rib from trauma can cause pain that is worse with deep breaths, coughing, or laughing. The pain may persist for weeks even after the injury heals.
Nerve pain can also occur in this area. A condition called intercostal neuralgia involves irritation of the nerves that run between the ribs. Shingles — caused by the reactivation of the chickenpox virus — can cause burning pain along a rib before a rash appears. If you develop a painful rash on your left torso, see a doctor promptly; antiviral treatment works best when started early.
What Are the Warning Signs That Require Emergency Care?
Most left rib pain resolves on its own or with simple treatment. But some symptoms mean you need urgent medical attention. Do not wait to see if these improve:
- Sudden, severe pain that came on quickly
- Pain after a recent injury or fall
- Pain accompanied by shortness of breath or difficulty breathing
- Fever with chills
- Vomiting, especially if you cannot keep fluids down
- Blood in your vomit or stool
- Dizziness, lightheadedness, or fainting
- Pain that radiates to your left shoulder, jaw, or arm
- Yellowing of your skin or the whites of your eyes
These symptoms can indicate a ruptured spleen, pancreatitis, a heart attack, or internal bleeding. When any of these are present, call emergency services or go to an emergency department.
How Is Left Rib Pain Diagnosed and Treated?
A doctor will start by asking about the quality of the pain — whether it is sharp, dull, burning, or cramping — and what makes it better or worse. They will press on your abdomen to check for tenderness and may order blood tests to check your pancreas, liver, and kidney function.
Imaging studies help identify the source. An ultrasound can examine the spleen, kidneys, and gallbladder. A CT scan gives a more detailed view of the abdominal organs and can detect pancreatitis, kidney stones, or an enlarged spleen. An upper endoscopy — a camera passed through the mouth into the stomach — can diagnose ulcers or gastritis.
Treatment depends entirely on the cause. Gas and constipation usually improve with hydration, fiber, and over-the-counter remedies. Gastritis and ulcers are treated with acid-reducing medications, and if H. pylori is present, a course of antibiotics. Pancreatitis requires hospital care with intravenous fluids and pain management. An enlarged spleen requires treating the underlying cause.
For musculoskeletal causes, rest, anti-inflammatory medications like ibuprofen, and gentle stretching often help. Costochondritis typically resolves over several weeks. Rib fractures heal on their own but can take six weeks or longer.
Can You Prevent Left Rib Pain?
Prevention depends on the cause. You cannot prevent all causes of left rib pain, but you can reduce your risk for some of them.
Eating smaller meals, chewing food thoroughly, and avoiding foods that cause gas can reduce bloating and trapped gas. Staying hydrated and getting enough fiber helps prevent constipation. Limiting alcohol and avoiding nonsteroidal anti-inflammatory drugs in excess can reduce your risk of gastritis and pancreatitis.
Wearing a seatbelt protects your spleen and other abdominal organs in a car accident. Using proper form during exercise and lifting protects your rib muscles and cartilage. If you have had chickenpox, ask your doctor about the shingles vaccine, which significantly reduces your risk of developing shingles and its associated nerve pain.
Frequently Asked Questions
Can gas cause pain under the left ribs?
Yes, trapped gas in the splenic flexure of the colon can cause sharp or pressure-like pain under the left ribs. This pain often shifts position and improves after passing gas or having a bowel movement.
How long does left rib pain last before seeing a doctor?
See a doctor if the pain lasts more than a few days, worsens over time, or interferes with your daily activities. Seek emergency care immediately if the pain is sudden, severe, or accompanied by fever, vomiting, or shortness of breath.
Is left rib pain a sign of a heart problem?
Sometimes, but it is not the most common cause. A heart attack can produce pain felt in the upper abdomen or under the ribs, especially in women. If the pain comes with sweating, nausea, or pain spreading to the jaw or left arm, call emergency services.
Can stress cause pain under the left ribs?
Stress itself does not directly cause organ pain, but it can worsen conditions like gastritis, acid reflux, and irritable bowel syndrome, which can produce pain in this area. Stress can also cause muscle tension in the chest wall that feels like rib pain.

