28 November 2026Health • Science • Life BG/EN
Treatment in Türkiye

Rheumatology, blood and immunity

Rib pain: causes, pain when breathing and when to see a doctor

Rib pain is common and is usually caused by strained muscles, inflamed cartilage or a bruise. Sometimes, though, pain around the ribs comes from the lungs, the heart or the organs that sit beneath the rib cage. Knowing the warning signs helps you decide when to rest at home and when to get help fast.

Evidence-basedAuthor: ZdraveGuide editorial teamLast reviewed: Next review: 23 November 2027
5 medical sources7 min readHow we create content
Rib pain: causes, pain when breathing and when to see a doctor
Contents
  1. What causes rib pain?
  2. Rib pain when breathing or coughing
  3. Pain under the right or left ribs
  4. Rib pain after a fall or injury
  5. Rib pain in pregnancy and after giving birth
  6. How rib pain is diagnosed
  7. Treating rib pain at home
  8. When rib pain is an emergency – call emergency services
  9. Frequently asked questions

What causes rib pain?

The ribs, the muscles between them, the cartilage at the front and the small joints at the spine make up the chest wall. Pain can start in any of these or be "referred" to the ribs from organs inside the chest and upper abdomen. Most of the time the cause is harmless:

  • muscle strain – from lifting, twisting, sport or a long bout of coughing;
  • bruised or broken ribs – after a fall, a blow or a car accident;
  • costochondritis – inflammation of the cartilage joining the ribs to the breastbone, tender to touch at the front of the chest;
  • spinal problems – a stiff or worn joint in the mid-back causing pain that wraps around the ribs (see upper back pain);
  • shingles – burning pain in a band along one side, followed a few days later by a blistering rash (see shingles);
  • fibromyalgia and stress-related muscle tension.

Less common but more serious causes include pleurisy, pneumonia, pulmonary embolism, heart problems and disease of the organs under the ribs.

Rib pain when breathing or coughing

When pain gets worse as you breathe in deeply, cough, sneeze or laugh, it usually comes from the chest wall or from the pleura, the thin lining around the lungs.

  • Chest wall pain – you can often point to it with one finger, and pressing on it or twisting your body makes it worse. It is very typical after a cold with a persistent cough, because repeated coughing overloads the muscles between the ribs.
  • Pleurisy – a sharp, stabbing pain with every breath, often after a viral infection or with pneumonia, sometimes with fever and breathlessness.
  • Pulmonary embolism – sudden pain on breathing and shortness of breath, sometimes coughing blood and a fast heartbeat. The risk is higher after surgery, long journeys, in pregnancy or with a deep vein thrombosis. This is an emergency.
  • Collapsed lung (pneumothorax) – sudden one-sided pain and breathlessness, sometimes in tall, thin young men or after an injury. Also an emergency.

Rib pain after a cough usually settles within a few days to a couple of weeks once the cough eases. If you have a fever, breathlessness or are coughing up thick phlegm, see a doctor.

Pain under the right or left ribs

Where it hurts gives a clue, but it never proves the cause. Several important organs lie beneath the lower ribs:

LocationPossible causes
Under the right ribs or right breastgallstones or an inflamed gallbladder (often after fatty meals), liver, right kidney, muscle strain
Under the left ribsstomach (gastritis, ulcer), pancreas, spleen, left kidney, trapped wind, muscle strain
Front, next to the breastbonecostochondritis, acid reflux, occasionally the heart
Back of the ribsmuscles and spinal joints, kidneys, shingles

Right-sided pain after eating, with nausea and pain spreading to the right shoulder blade, is typical of gallstones. Pain at the back below the ribs with burning when you pee or a fever may come from the kidneys (see kidney pain). Severe upper abdominal pain spreading like a belt to the back can be pancreatitis. Do not wait with these symptoms – get medical advice.

Rib pain after a fall or injury

A blow to the chest can bruise or break a rib. Both hurt a lot, are worse when you breathe, cough or move, and can take three to six weeks to settle. A simple rib fracture often does not show on an X-ray, and the treatment for a bruised rib and an uncomplicated broken rib is much the same.

The real concern is complications – damage to the lung, spleen or liver. Seek urgent help after an injury if:

  • you are short of breath or breathing is getting harder;
  • you cough up blood;
  • pain in your tummy or shoulder is increasing;
  • the injury came from a high-energy accident such as a car crash or fall from height;
  • you are older, have osteoporosis or take blood thinners.

Do not strap or bandage your chest – it stops you breathing deeply and raises the risk of a chest infection. Instead, take a few slow deep breaths every hour and cough while holding a pillow against the sore area.

Rib pain in pregnancy and after giving birth

In the third trimester the growing womb pushes the organs up and stretches the lower ribs. Many women feel pain under the ribs, often on the right, especially when the baby kicks or lies with its feet up. Changing position often, sitting upright, wearing looser clothing and gentle stretches with the arms raised can help. The pain usually eases when the baby drops into the pelvis or after delivery.

Be alert: severe pain under the right ribs or in the upper tummy in the second half of pregnancy, particularly with headache, blurred vision, sudden swelling of the face or hands or vomiting, can be a sign of pre-eclampsia. Contact your maternity unit straight away or call emergency services. See also back pain in pregnancy.

Rib pain after birth or a caesarean is often due to muscle tension, changes in breathing and posture while feeding. Sudden pain with breathlessness or a racing heart, especially in the first weeks after birth, needs emergency care because of the higher risk of blood clots.

How rib pain is diagnosed

Your GP will ask when and how the pain started, what makes it worse and whether you have a fever, cough, breathlessness or an injury. They will press on the ribs, listen to your chest and check your pulse, blood pressure and oxygen level. Depending on what they find, they may arrange:

  • a chest X-ray to look for pneumonia, fluid, a collapsed lung or an obvious fracture;
  • an ECG and a troponin blood test if the heart could be involved;
  • a D-dimer test and CT scan if a blood clot in the lung is suspected;
  • an abdominal ultrasound for pain under the right or left ribs;
  • a full blood count, CRP and liver and kidney tests.

If the pain is clearly from the chest wall and there are no warning signs, tests are often not needed.

Treating rib pain at home

Treatment depends on the cause. For strains, bruises, costochondritis and simple rib fractures, the following usually help:

  • over-the-counter painkillers taken as the leaflet or your pharmacist advises – good pain control lets you breathe normally;
  • a cold pack wrapped in a towel for 15–20 minutes at a time during the first 48 hours, then gentle heat;
  • breathing exercises – a few slow, deep breaths every hour while awake;
  • keeping active – short walks, but no heavy lifting or contact sport for several weeks;
  • sleeping more upright for the first few nights;
  • treating the cough if it keeps the pain going.

Avoid lying still all day and do not wrap your chest tightly. With shingles, antiviral treatment works best if started early, so see a doctor within the first days of the rash. Reflux (GERD), gallbladder and kidney problems need treatment guided by your doctor.

When rib pain is an emergency – call emergency services

Call emergency services if:

  • chest pain feels tight, heavy or burning and spreads to your left arm, jaw, neck or back (see heart attack and chest pain);
  • you suddenly become short of breath, your lips turn blue or you cough up blood;
  • the pain comes with sweating, nausea, dizziness or fainting;
  • breathing gets harder or tummy pain grows after a heavy blow.

Book a GP appointment within a day or two if:

  • the pain has not improved after 2–3 weeks or is getting worse;
  • you have a fever, thick phlegm or a bad cough;
  • a rash appears where it hurts;
  • pain under the ribs is linked to meals, nausea, yellowing of the skin or dark urine;
  • you are losing weight without trying, sweating at night or the pain wakes you up.

Frequently asked questions

Why do my ribs hurt when I breathe?

Usually because of a strained muscle, a bruise or inflamed cartilage next to the breastbone – the pain is then worse when you press or move. Sharp pain with every breath and a fever may be pleurisy or pneumonia. Sudden pain with breathlessness is an emergency, so call emergency services.

What does pain under the right rib cage mean?

The liver and gallbladder sit under the right ribs. Pain there after a fatty meal, with nausea and pain into the right shoulder blade, is often caused by gallstones. It can also be muscular or from the right kidney, so persistent pain needs a check-up and often an ultrasound.

How long does a bruised rib take to heal?

Bruised ribs and simple rib fractures usually hurt for three to six weeks. During that time it matters to control the pain, breathe deeply and stay mobile to avoid a chest infection. Get urgent help if you become breathless or cough up blood.

Is rib pain normal in pregnancy?

Pain under the ribs, often on the right, is common in the third trimester as the womb grows and the baby moves. Severe upper tummy pain with headache, vision problems or sudden swelling can be pre-eclampsia and needs urgent assessment.

Can rib pain be a heart problem?

Sometimes. Tight or crushing chest pain that spreads to the left arm, jaw or back, particularly with breathlessness and sweating, can be a heart attack. Do not wait and do not drive yourself – call emergency services straight away.

What helps rib pain after coughing?

Treat the cough, use an over-the-counter painkiller as directed, apply warmth and hug a pillow when you cough. The pain normally fades as the cough settles. See a doctor if you have a fever, breathlessness or a cough lasting more than three weeks.

Sources

  1. NHS – Broken or bruised ribs
  2. NHS – Costochondritis
  3. NHS – Pleurisy
  4. NHS – Shingles
  5. MedlinePlus – Chest injuries and disorders

This article is for education and does not replace consultation, diagnosis or treatment by a doctor. In an emergency call emergency services.

New City Clinic · Istanbul

Free consultation

Send your enquiry to New City Clinic. We reply in English or Bulgarian, usually within 24 hours.

  • Free consultation and quote
  • Doctor, hospital, hotel, transfer, interpreter
  • Registered with the Turkish Ministry of Health
WhatsApp +39 344 760 1483

Message on WhatsApp