Why your ribs hurt after sleeping on your side

Short answer: Rib pain that shows up after a night on one side usually comes from the chest wall itself: the cartilage joining the ribs to the breastbone, the muscles between the ribs, or a rib that has been knocked or strained. Cleveland Clinic lists lying down on the affected side among the things that make costochondritis, inflammation of that rib cartilage, worse, alongside deep breathing, coughing, twisting and reaching overhead. Chest-wall pain is typically reproducible: pressing on the sore spot or moving the chest brings it on. Pain that you cannot reproduce by pressing or moving, or that comes with breathlessness, cold sweat, nausea, lightheadedness, a rapid or irregular heartbeat, or discomfort spreading to the arm, back, neck or jaw, is not a bedding problem — the American Heart Association says call emergency services for any heart attack symptom.

Read this part first: when rib pain is not about your bed

Chest pain sits next to conditions that kill people quickly, so the sorting has to happen before any discussion of mattresses. The American Heart Association describes the pattern to act on: discomfort in the centre of the chest that lasts more than a few minutes, or goes away and comes back; pain or discomfort in the arms, back, neck, jaw or stomach; shortness of breath with or without chest discomfort; and other signs including breaking out in a cold sweat, nausea, a rapid or irregular heartbeat, unusual tiredness and feeling lightheaded. Its instruction is unambiguous: call emergency services if you have any symptoms of heart attack, because minutes matter.

The AHA also notes that women may have symptoms less typically associated with heart attack, including anxiety, vomiting, upset stomach, and shoulder, back or arm pain. The NHS adds its own 999 list for chest pain: pain that started suddenly or spreads to the arm, neck or jaw, or a chest that feels tight; chest pain with difficulty breathing, a fast heartbeat, or coughing up blood; and sudden chest or back pain that feels like something being torn inside.

None of that is caused by a pillow, a mattress or a sleeping position, and no amount of chest-wall reasoning on this page overrides it. Mayo Clinic puts the default plainly: for chest pain, seek emergency medical attention to rule out life-threatening causes such as a heart attack.

What lying on one side does to the rib cage

Side lying is the least generous of the sleeping positions in terms of contact area. On your back, load spreads across the shoulder blades, the length of the back and the buttocks. On your side, much of the same body weight funnels through two narrow bony prominences, the shoulder and the hip, with the rib cage bridging between them.

One randomised trial of 64 healthy adults, published in the International Journal of Environmental Research and Public Health, measured interface pressure at bony prominences over two hours of immobile positioning. In full 90-degree side lying, peak pressure ran 55.8 to 62.4 mmHg at the shoulder and 69.5 to 79.2 mmHg at the greater trochanter. Tilting the body to 30 degrees instead of full side lying dropped those to 42.8 to 46.9 mmHg at the shoulder and 47.5 to 50.9 mmHg at the trochanter, and the authors reported that peak pressure on 30-degree tilting stayed below 60 mmHg for the full two hours, unlike 90-degree tilting.

That is the quantified version of what side sleeping does: rolling from a partial tilt onto the shoulder point raises peak pressure at the loaded prominences by roughly a third to a half. The study measured healthy volunteers held still on clinical support surfaces, not sleepers on domestic mattresses, and it did not measure the ribs themselves. It shows how sharply pressure concentrates in side lying; it does not show that this causes rib pain.

The rib cartilage explanation, and how strong it is

Costochondritis is painful inflammation in the cartilage that connects the ribs to the breastbone. Cleveland Clinic says experts are not certain what causes it, but points to activities that put small, repeated stress on the ribs over time — microtraumas — along with chest injuries and sudden increases in exercise intensity. It reports that around one third of people who see a healthcare provider with chest or rib pain have costochondritis.

The behaviour of the pain is the recognisable part. Cleveland Clinic lists breathing deeply, coughing, sneezing, twisting the torso, reaching overhead, hugging, exercising and lying down on the affected side as things that make it worse. The NHS describes sharp pain in the front or side of the chest, worse with moving the upper body, lying down, breathing deeply, or pressing the middle of the chest or ribs. Mayo Clinic describes pain that is sharp, aching or pressure-like, worst where the rib cartilage attaches to the breastbone, and worse on a deep breath, a cough, a sneeze or any movement of the chest wall.

Sources disagree on which ribs. Cleveland Clinic says it typically affects ribs lower down the ribcage, usually ribs two through five. Mayo Clinic says it most commonly affects the upper ribs on the left-hand side. Both agree on the front of the chest rather than the back. Timelines differ too: Cleveland Clinic says most people have symptoms from a few days to a few weeks, the NHS says a few weeks to several months.

Cleveland Clinic is also explicit that the two things are unrelated: the same issues that cause heart attacks do not cause costochondritis, and having costochondritis does not mean you are having a heart attack.

Chest-wall rib pain compared with the conditions it is most often confused with, by what reproduces the pain, whether position changes it, what else is present, and whether it is an emergency. Features taken from the Cleveland Clinic, Mayo Clinic and NHS condition pages; emergency criteria from the American Heart Association's heart attack warning signs and the NHS 999 advice for chest pain.
Source of the painWhat reproduces itDoes position change it?What else is usually presentEmergency?
Rib cartilage inflammation at the front of the chest (costochondritis)Pressing the middle of the chest or ribs; deep breathing, coughing, sneezing, twisting, reaching overhead, hugging (Cleveland Clinic, NHS, Mayo Clinic)Yes. Cleveland Clinic lists lying down on the affected side as an aggravator; the NHS lists lying downUsually nothing else. Cleveland Clinic states heart attacks and costochondritis do not share causesNo, but the NHS says always get medical advice for unexplained chest pain that does not go away, and Mayo Clinic advises emergency assessment of chest pain to rule out life-threatening causes
Bruised or broken ribBreathing in or coughing; tenderness or swelling over the affected rib (NHS)Often, because the pain tracks the injured rib when it is loadedA fall, blow or severe coughing beforehand; swelling, tenderness, sometimes bruising; sometimes a crack felt or heard (NHS)Call 999 or go to A&E if shortness of breath worsens, chest pain worsens, you have abdominal or shoulder pain, or you cough up blood (NHS)
Inflammation around the lungs (pleurisy)Breathing in, above all; also coughing, sneezing and moving around (NHS)Partly, but breathing drives it more than position doesShortness of breath, cough, sometimes coughing up small amounts of blood; may spread to the shoulders and back (NHS)999 for sudden chest pain lasting 15 minutes or more, pain spreading to arms, back, neck or jaw, difficulty breathing, or coughing up blood (NHS)
Heart attackNothing. It is not brought on by pressing the chest wall or by movingNo. The AHA describes discomfort lasting more than a few minutes, or going away and returning, rather than tracking positionDiscomfort in the centre of the chest; pain in arms, back, neck, jaw or stomach; shortness of breath; cold sweat, nausea, rapid or irregular heartbeat, unusual tiredness, lightheadedness. The AHA notes women may also have anxiety, vomiting or upset stomach (AHA)Yes. The AHA says call emergency services for any symptoms of heart attack; minutes matter
Blood clot in the lung, or a tear in the aortaNot reproducible from outside the chestNoNHS 999 criteria: chest pain with difficulty breathing, a fast heartbeat, or coughing up blood; or sudden chest or back pain that feels like something being torn inside, with shortness of breath and neurological symptomsYes. Call 999 (NHS)

Other chest-wall causes that behave the same way

A bruised or broken rib produces a similar picture from a different tissue. The NHS describes strong pain in the chest area, particularly when breathing in or coughing, with swelling or tenderness around the affected ribs, sometimes bruising on the skin, and sometimes a crack felt or heard at the time. The usual causes are a fall, a blow to the chest, or severe coughing, and it usually settles by itself within two to six weeks.

Severe or prolonged coughing is a shared thread. Both the NHS and Mayo Clinic link costochondritis to frequent or severe coughing, and the NHS lists severe coughing among the causes of bruised ribs. A cough that has been going on for weeks loads the chest wall thousands of times, and the night you notice the pain may not be the night that caused it.

Rib injury has its own emergency criteria that a sore side does not. The NHS says to call 999 or go to A&E if shortness of breath worsens, chest pain gets worse, you have abdominal or shoulder pain, or you are coughing up blood, because a broken rib may have damaged a lung, the liver or the spleen.

Pain from inside the chest can also be worse on one side

Pleurisy is inflammation around the lungs. The NHS describes its main symptom as sharp chest pain when you breathe in, worse when you cough, sneeze or move around, sometimes spreading to the shoulders and back, and possibly with shortness of breath or coughing up small amounts of blood.

That overlaps with chest-wall pain enough to be worth naming, because both are sharp, both are one-sided, and both are worse on a deep breath. The distinguishing features are what else comes with it and what reproduces it. The NHS advises an urgent GP appointment or 111 for sharp chest pain that comes and goes or only happens when breathing or coughing, and 999 for sudden chest pain lasting 15 minutes or more, chest pain spreading to the arms, back, neck or jaw, difficulty breathing, or coughing up significant blood.

Mattress firmness: what can and cannot be said

This is the point where most pages on this query become confident and stop being accurate. We found no mainstream clinical source that links mattress firmness, or any bedding property, to rib pain or to costochondritis. The condition pages from Cleveland Clinic, Mayo Clinic and the NHS list causes and aggravating factors, and bedding is not among them. Lying on the affected side is listed as an aggravator; the surface underneath is not discussed at all.

What is documented is more modest and comes from two directions. First, side lying concentrates pressure at the shoulder and hip, and the degree of concentration changes substantially with how far over you are rolled, as the interface-pressure trial above measured. Second, general sleeping-posture guidance from the University of Rochester Medical Center says a mattress should provide support for the natural curves of your spine and be comfortable, and that across positions the aim is to keep your ears, shoulders and hips aligned. For side lying it suggests a firm pillow between the knees to stop the upper leg pulling the spine out of alignment.

Putting those together into a claim that a firmer or softer mattress relieves rib pain would be an inference, not a finding. If a surface lets the shoulder and hip sink unevenly, the chest wall between them is the part that spans the gap, and irritated rib cartilage is documented as sensitive to being lain on. That is a plausible mechanism. It is not a sourced one, and we are not going to present it as one.

When to get it looked at

The NHS position on non-emergency chest pain is to always get medical advice if you get unexplained chest pain that does not go away, and to contact 111 if you think you have costochondritis. Cleveland Clinic's list of symptoms warranting emergency care alongside chest or rib pain is shortness of breath, nausea, heart palpitations, anxiety, sweating and dizziness.

Self-diagnosis from the internet is a poor tool for chest symptoms specifically, because the reassuring explanation and the dangerous one can start with the same sharp pain on one side. A clinician can press on the costochondral joints, listen to the chest and, where appropriate, run tests. That is the difference between a description of a mechanism, which is what this page is, and an assessment, which it is not.

Common questions

Why is it worse when I lie on that side?

Cleveland Clinic lists lying down on your affected side among the things that make costochondritis worse, alongside deep breathing, coughing, twisting and reaching overhead. The NHS similarly lists lying down and pressing on the middle of the chest or ribs. Side lying also concentrates body weight through the shoulder and hip, with the rib cage between them, though no source has measured rib loading during sleep specifically.

Can a mattress cause rib pain?

We found no mainstream clinical source that links mattress firmness or any bedding property to rib pain. The Cleveland Clinic, Mayo Clinic and NHS pages on costochondritis and rib injury do not mention bedding among causes or aggravating factors. What they do list is lying on the affected side, which is about position rather than the surface. Anyone telling you a particular firmness fixes rib pain is going beyond the published evidence.

How do I tell rib pain from heart pain?

Chest-wall pain is generally reproducible: the NHS describes costochondritis pain as worse when you press the middle of your chest or ribs, or move your upper body. The American Heart Association describes heart attack symptoms differently — centre-of-chest discomfort lasting more than a few minutes or coming and going, discomfort in the arms, back, neck, jaw or stomach, shortness of breath, cold sweat, nausea and lightheadedness. This distinction is a rough guide, not a test. Mayo Clinic advises seeking emergency attention for chest pain to rule out life-threatening causes.

Which ribs are usually involved?

The sources differ. Cleveland Clinic says costochondritis typically affects ribs lower down the ribcage, usually ribs two through five. Mayo Clinic says it most commonly affects the upper ribs on the left-hand side, with pain often worst where the rib cartilage attaches to the breastbone. Both place the problem at the front of the chest rather than the back.

How long does chest-wall rib pain last?

Cleveland Clinic says most people experience symptoms anywhere from a few days to a few weeks. The NHS gives a longer range, a few weeks to several months, and says it typically resolves on its own over time. A bruised or broken rib usually gets better by itself within two to six weeks according to the NHS. Pain that is not settling should be assessed rather than waited out.

It hurts more when I breathe deeply. Is that serious?

On its own it does not separate the harmless from the serious, because both categories share it. Costochondritis is worse on deep breathing, coughing and sneezing according to Cleveland Clinic and Mayo Clinic, and pleurisy's main symptom, per the NHS, is sharp chest pain when you breathe in. What matters is what comes with it. The NHS says call 999 for chest pain with difficulty breathing, a fast heartbeat, or coughing up blood.

Where this fits

This page is one row of a larger reference. The night-time symptom reference maps 50 night-time symptoms to the sleeping position associated with each, the likely mechanical cause, what published sources say to change, and the sign that means seeing a clinician instead. For 13 of those 50, no published source describes any bedding change at all.

Also relevant here: how firmness changes where your weight sits, side-sleeping support at the shoulder.

Sources

How this page is written. Sleep Align is an independent research site run by one person. There is no clinician on staff, nothing here is a diagnosis, and no product is tested on anyone. Every claim above traces to a published source listed and linked, and where the evidence is thin or absent this page says so rather than filling the gap. If a symptom persists, changes, or comes with any of the warning signs described, that is a question for a clinician and not for a pillow.
Free to use with attribution. This page and its table may be quoted, reproduced or redrawn under CC BY 4.0 with a link back.

Suggested citation: Sleep Align (2026). Why your ribs hurt after sleeping on your side Retrieved from https://sleepalign.org/rib-pain-from-sleeping-on-side/

Side-sleeping load starts at the shoulder Where your shoulder sinks decides how the rest of your side is loaded, and that depends on mattress firmness as much as the pillow.

Calculate your pillow height