Chest wall and musculoskeletal pain
Rib pain: causes, rib pain in pregnancy and when to get help
Pain in or around the ribs is common and is often caused by injury, inflammation where the ribs join the breastbone (costochondritis) or a strained muscle. In late pregnancy, sore ribs can happen as the ribcage makes room for the baby, but pain below the ribs can also signal pre-eclampsia. Chest pain can come from the heart or lungs, so the warning signs matter.
Last checked: 2026-10-11
Key facts
At a glance.
-
Often injury or inflammation
The NHS says broken or bruised ribs are usually caused by a fall, a blow to the chest or severe coughing, and costochondritis is inflammation where the ribs join the breastbone.
-
Usually heals on its own
The NHS says broken or bruised ribs usually get better by themselves within 2 to 6 weeks, and that costochondritis can last from a few weeks to several months.
-
Keep breathing and coughing
The NHS advises breathing normally and coughing when you need to, because this helps clear mucus and prevent chest infections.
-
Rib pain in pregnancy
Tommy's says some people have pain or discomfort in their ribs in late pregnancy, which may be because the ribcage is pushed out to make room for the baby. The NHS lists pain below the ribs among the symptoms of pre-eclampsia.
-
Chest pain needs care
The NHS says most chest pain is not a sign of anything serious but to get medical advice just in case, and to call 999 if the pain is sudden, does not go away or spreads to the arm, neck, jaw, stomach or back.
-
Worsening breathlessness
The NHS says to call 999 or go to A&E after a rib injury if you have worsening shortness of breath, worsening chest pain, pain in the tummy or shoulder, or are coughing up blood.
-
X-ray often not needed
The NHS says ribs cannot easily be splinted or supported, so they are usually left to heal naturally, and there is often no need for an X-ray.
Rib pain in pregnancy
Tommy's says some people have pain or discomfort in their ribs in late pregnancy. This may be because your ribcage is pushed out to make room for your growing baby. It may feel worse if your baby is doing some strong kicks or your baby's head is bumping against your ribcage, as in the breech position.
Tommy's also says that pain below the ribs can be a sign of a serious condition called pre-eclampsia, and the NHS lists pain below the ribs among its symptoms. Other symptoms include a severe headache that does not go away with simple painkillers, vision problems such as blurred vision or seeing flashing lights, vomiting, sudden swelling of the face, hands or feet, feeling very unwell, and heartburn that does not go away with heartburn medicines.
The NHS says any of these symptoms can be serious and need to be checked immediately, and that pre-eclampsia is most likely from 20 weeks of pregnancy onwards but can happen at any point, including after the baby is born. If you are pregnant, call your maternity unit if you have the number, or NHS 111 if you cannot. If you have recently given birth, call your maternity unit or 111.
What causes rib pain?
Rib pain is a symptom rather than a diagnosis. The ribs form a cage around the heart and lungs, joined to the breastbone at the front by cartilage and to the spine at the back, and covered by muscles and nerves. Pain in this area can come from the bones, the cartilage, the muscles between the ribs or from organs beneath them.
The NHS describes several distinct conditions that cause it. Broken or bruised ribs are usually caused by a fall, a blow to the chest or severe coughing. Costochondritis is inflammation where the ribs join the breastbone in the middle of the chest. The NHS chest pain page also lists chest sprain or strain after chest injury or exercise, heartburn, anxiety or panic, chest infection, pleurisy and shingles among common causes.
Because the chest also holds the heart and lungs, rib pain is never assessed by location alone. The NHS advises that you should always get medical advice if you get unexplained chest pain that does not go away.
Broken or bruised ribs: how long do they take to heal?
The NHS lists strong pain in the chest area, particularly when you breathe in or cough, swelling or tenderness around the affected ribs, sometimes bruising on the skin, and feeling or hearing a crack if a rib is broken. It says ribs cannot be easily splinted or supported like other bones, so they are usually left to heal naturally and there is often no need for an X-ray. Most heal within 2 to 6 weeks.
Self-care advice from the NHS includes using painkillers such as paracetamol or ibuprofen gel (or tablets if needed), holding a covered ice pack to the ribs regularly in the first few days, resting, breathing normally and coughing when you need to, holding a pillow against the chest when coughing, walking around and moving the shoulders, taking slow deep breaths regularly, and sleeping more upright for the first few nights. It advises not lying down or staying still for a long time, not straining or lifting heavy objects, not doing exercise that worsens pain and not smoking.
Costochondritis: how long does it last?
The NHS says costochondritis can cause sharp pain in the front or side of the chest that may be worse when you move your upper body, lie down, breathe deeply or press on the middle of the chest or the ribs. It is not always known what causes it, but it has been linked to a chest injury, repetitive upper body movements such as lifting, coughing a lot, and infection.
It usually gets better on its own over time, from a few weeks to several months. Painkillers that help with inflammation, such as ibuprofen, may be recommended, and if there is very bad pain that does not improve a steroid injection or local anaesthetic may be offered. The NHS stresses that it is important to get chest pain checked to rule out other more serious conditions.
Rib pain or something else? A guide to patterns
The NHS chest pain page gives a guide to how different causes can feel, while warning not to self-diagnose and to see a GP if you are worried.
| What the pain is like | Possible cause | Source |
|---|---|---|
| Starts after a chest injury or exercise, may get worse when you breathe in, feels better when resting the muscle | Chest sprain or strain | NHS: Chest pain |
| Sharp pain at the front or side of the chest, worse when you move, lie down, breathe deeply or press on the ribs | Costochondritis | NHS: Costochondritis |
| Starts after eating, bringing up food or bitter fluids, feeling full and bloated | Heartburn or indigestion | NHS: Chest pain |
| Worse when you breathe in, coughing up yellow or green mucus, high temperature | Chest infection, pneumonia or pleurisy | NHS: Chest pain |
| Tingling skin followed by a rash that turns into blisters | Shingles | NHS: Chest pain |
| Squeezing or pressure, spreading to the arm, neck, jaw, stomach or back, with sweating, sickness or breathlessness | Possible heart attack: call 999 | NHS: Chest pain |
When to call 999 or get urgent help for rib pain
The NHS says to call 999 if you get sudden pain or discomfort in your chest that does not go away, which can feel like squeezing, pressure, burning or indigestion; if pain spreads to the left or right arm, neck, jaw, stomach or back; or if you have chest pain and feel sweaty, sick, light-headed or short of breath. These could be signs of a heart attack. The costochondritis page adds chest pain with difficulty breathing, a fast heartbeat or coughing up blood, which could be a pulmonary embolism, and sudden chest or back pain that feels like something tearing inside with shortness of breath.
After a rib injury, the NHS says to call 999 or go to A&E if the injury was caused by a serious accident, shortness of breath is getting worse, chest pain is getting worse, there is pain in the tummy or shoulder, or you are coughing up blood, because a broken rib may have damaged something else such as the lung, liver or spleen. It advises an urgent GP appointment or NHS 111 if pain has not improved within a few weeks, you are coughing up yellow or green mucus, or you have a very high temperature or feel hot, cold or shivery, since you might need stronger painkillers or antibiotics for a chest infection.
-
Sudden chest pain, pressure or tightness, or pain spreading to arm, neck or jaw.
-
Chest pain with breathlessness, sweating, sickness or light-headedness.
-
Coughing up blood.
-
Worsening breathlessness or pain after a rib injury.
-
Pain in the tummy or shoulder after a rib injury.
How it is assessed
A clinician will ask what happened, where and when the pain is and what makes it worse, and will examine the chest wall and listen to the heart and lungs. Because other conditions can mimic rib pain, a clinician may arrange further tests where heart or lung problems are possible. The NHS says an X-ray is often not needed for simple broken or bruised ribs.
The NHS chest pain page gives a guide to patterns: pain that starts after a chest injury or exercise, may worsen when you breathe in and eases when you rest the muscle suggests a strain; pain that is worse when you breathe in with coughing up yellow or green mucus and a high temperature suggests infection or pleurisy; and a tingling feeling followed by blisters suggests shingles. It warns not to self-diagnose and to see a GP if worried.
How long does rib pain last? Recovery and pain control
For injuries and costochondritis the main aims are pain control, gentle movement and clearing the lungs, as the NHS advice above shows. The NHS links being able to breathe normally and cough when you need to with clearing mucus and preventing chest infections, so controlling the pain well enough to do so is part of recovery.
Pain that has not improved in a few weeks, that returns repeatedly, or that is associated with other symptoms should be reviewed, and the GP can consider other causes and arrange imaging or referral.
NHS and private pathways
On the NHS, rib pain is usually handled by a pharmacist or GP, with NHS 111, urgent treatment centres and emergency departments for injuries or red flags.
Private urgent care or physiotherapy is available for convenience and speed. Neither route changes the safety rule: new, severe or worsening chest pain with breathlessness should be treated as an emergency.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
Why do I have rib pain in pregnancy?
Tommy's says some people have rib pain or discomfort in late pregnancy, which may be because the ribcage is pushed out to make room for the baby, and it may feel worse with strong kicks or when the baby's head is against the ribs.
-
Can pain under the ribs in pregnancy be serious?
Yes. Tommy's and the NHS say pain below the ribs can be a sign of pre-eclampsia, particularly with severe headache, vision problems, vomiting or sudden swelling. Get medical advice immediately from your maternity unit, midwife, GP or NHS 111.
-
How long do bruised ribs take to heal?
The NHS says broken or bruised ribs usually get better by themselves within 2 to 6 weeks.
-
Do I need an X-ray?
Often not. The NHS says there is often no need for an X-ray for broken or bruised ribs, as ribs are usually left to heal naturally.
-
Should I avoid coughing and deep breathing?
No. The NHS advises breathing normally and coughing when you need to, holding a pillow to your chest if helpful, because this clears mucus and helps prevent chest infection.
-
What is costochondritis?
The NHS describes it as inflammation where your ribs join the breastbone, which can cause sharp chest pain, especially when moving or breathing. It usually gets better on its own.
-
How long does costochondritis last?
The NHS says it can last for a few weeks to several months.
-
Could rib pain be a heart attack?
Possibly, which is why the NHS says to call 999 for sudden chest pain that does not go away, pain spreading to the arm, neck or jaw, or chest pain with sweating, sickness or breathlessness.
-
When should I worry after a rib injury?
The NHS says to call 999 or go to A&E for a serious accident, worsening breathlessness or chest pain, tummy or shoulder pain or coughing up blood, and to seek urgent advice if you cough up yellow or green mucus or have a very high temperature.
-
What causes rib pain?
The NHS lists broken or bruised ribs from a fall, blow or severe coughing, costochondritis, chest strain, heartburn, anxiety or panic attack, chest infection, pleurisy and shingles. Because the chest holds the heart and lungs, new chest pain should be checked.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-11, next review 2027-10-11.
-
NHS: Broken or bruised ribs, https://www.nhs.uk/conditions/broken-or-bruised-ribs/ , retrieved October 2026
-
NHS: Costochondritis, https://www.nhs.uk/conditions/costochondritis/ , retrieved October 2026
-
NHS: Chest pain, https://www.nhs.uk/conditions/chest-pain/ , retrieved October 2026
-
Tommy's: 35 weeks pregnant, https://www.tommys.org/pregnancy-week-by-week/35-weeks-pregnant-whats-happening , retrieved October 2026
-
NHS: Pre-eclampsia, https://www.nhs.uk/conditions/pre-eclampsia/ , retrieved October 2026
Related guides
Keep reading.
-
Costochondritis
Inflammation where the ribs join the breastbone.
Read guide -
Chest pain
Causes of chest pain and when it is an emergency.
Read guide -
Pleurisy
Inflammation of the lung lining causing pain on breathing.
Read guide -
Shingles
A blistering rash that can cause pain around the ribs.
Read guide -
Broken ribs
Symptoms, treatment and recovery for fractured ribs.
Read guide -
Pre-eclampsia
High blood pressure in pregnancy and its warning signs.
Read guide -
Pulmonary embolism
A blood clot in the lung that can cause chest pain.
Read guide