Costochondritis: the chest-wall pain that mimics a heart attack

Last updated September 3, 2026.

Costochondritis is inflammation of the cartilage joining the ribs to the breastbone: a sharp or aching chest-wall pain that is tender to press and worsens with movement, deep breaths, and coughing. Its great trick is imitation: it feels exactly like the chest pain everyone fears. Once the heart is excluded, it is harmless and self-limiting, settling over weeks to months with simple measures.

What does it feel like?

Pain at the front of the chest, usually one-sided (the left more often, which is what frightens everyone), sharp with movement, deep breathing, coughing, or twisting, and the diagnostic gift: it is tender when you press the exact spot where the ribs meet the breastbone. It can radiate to the back or abdomen. Unlike cardiac pain, it changes with position and prodding; unlike cardiac pain, it can last weeks of daily aches rather than minutes of pressure. It often follows a cough, unaccustomed exercise, lifting, or a chest infection.

Why does it happen?

The cartilage joints of the rib cage become inflamed and sore, most often from strain: a violent or prolonged cough (the classic trigger), new exercise (press-ups, rowing, heavy lifting), carrying, or minor direct injury. Sometimes no cause emerges. It is not arthritis of a serious kind, not infection, and not the heart: it is mechanical inflammation of the chest-wall joints, and it is common at any age, including in teenagers (where it is a frequent cause of chest pain).

Find answers to your costochondritis

Start a free AI doctor consult →

What actually helps?

When is it an emergency?

The whole art of this condition is not missing the heart: call emergency services for chest pain that is crushing or heavy, spreading to the arm, jaw, or back, with shortness of breath, sweating, nausea, or lightheadedness, or pain coming on with exertion and easing with rest. Also urgent: chest pain with fever and cough (pneumonia), with breathlessness and a painful swollen calf (clot), and any chest pain that simply feels wrong in a way new to you. Tender-to-press, movement-linked pain in a young healthy person is the benign pattern; everything else gets checked first. Pymander's escalation routing is built and tested specifically for this class of decision; see the safety architecture working paper.

What a Pymander AI doctor consult looks like

Is your chest pain sharp, tender when you press the exact spot, and worse with movement or deep breaths, without breathlessness, sweating, or exertional pattern?
For three weeks I have had sharp pain on the left of my breastbone that I can point to with one finger, and pressing it hurts. It stabs when I cough or twist. I had a bad cough last month. I keep worrying it is my heart.
Thanks for giving me all this information. Based on what you've said, this is costochondritis: pain you can point to with one finger that is tender to press and stabs with coughing and twisting, arriving after a month of bad coughing, is the classic chest-wall pattern, and the press-test reproducing it is the strongest reassurance that this is the ribs and cartilage, not the heart. It settles over weeks to a few months: anti-inflammatory tablets or gel, heat on the tender spot, and resting from the movements that flare it. The rule that always stands: if the character ever changes (crushing pain, breathlessness, sweating, pain spreading to the arm or jaw), that is an emergency call, not a wait. Here's your care note to share with your care team.
Care note
Costochondritis, post-cough, classic tender-point pattern
Three weeks of localized left parasternal pain, point tenderness, worse with cough and twisting, following a month of severe cough: costochondritis, post-tussive. Plan: NSAIDs (tablets or topical gel), heat packs, relative rest from lifting and twisting, gradual return, reassurance with the press-test explanation; cardiac red flags restated (crushing, radiating, exertional, breathless, sweaty pain = emergency). Review if not improving over 6-8 weeks or pattern changes. No imaging needed at this classic presentation.
View care note →

Illustrative example, not a real member's messages.

Common questions

How do I know this is not my heart?

The patterns genuinely differ, though the fear is rational: costochondritis pain is localized (pointable with one finger), tender to press (pressing the spot reproduces it exactly), and moves with you (sharp on twisting, coughing, deep breaths); cardiac pain is deep and diffuse (a hand over the chest, not a fingertip), not tender to pressing, and tracks exertion (worse climbing stairs, easing at rest) rather than position. The age-and-risk frame matters too: chest-wall pain is the commonest chest pain in young healthy people. But the rule is asymmetric and worth stating plainly: any crushing, radiating, breathless, sweaty, or exertional pattern gets emergency assessment on the spot, and no checklist replaces that.

How long does costochondritis last?

The typical arc: most cases settle substantially over several weeks to two or three months, with the sharp stabs fading first and a background ache lingering longest. Some cases recur (a return of the cough or the lifting brings it back), and a minority grumble on for many months before resolving. The measures genuinely shorten it: the anti-inflammatories used properly (regularly for a stretch, not just at peaks), the heat, and the trigger rest; the measures that prolong it are pushing through the aggravating movements. Pain still going strong past two to three months, or worsening, earns a re-examination rather than more waiting.

Why did a cough cause this?

Because the rib cartilage joints are worked hard by coughing: each cough fires the chest wall with force, and a prolonged or violent cough (a month of bad coughing is the classic setup) inflames the joints the same way overuse inflames a tendon: repetitive strain, in cartilage with modest blood supply and slow repair. The same mechanism explains the other triggers: unaccustomed press-ups, heavy lifting, rowing, carrying a child on one hip for weeks. The cough has passed but the cartilage heals on its own slower schedule, which is why the pain outlasts the illness that caused it. Treating any lingering cough (and smoking, if applicable) removes the ongoing strain.

What actually helps the pain day to day?

The working combination: ibuprofen-type anti-inflammatories (the drug class that matches the problem: used regularly for one to two weeks rather than sporadically, with food, or as gel rubbed on the tender spots if tablets do not suit you) with paracetamol as the base layer; heat packs on the tender area (15-20 minutes, several times daily: genuinely effective for cartilage pain); relative rest from the specific triggers (the lifting, twisting, and press-up movements), with gentle movement otherwise (full rest stiffens); and posture awareness (hunching loads the front chest wall). Sleep position matters: many find the sore side up, with a pillow hugged, the comfortable arrangement.

Is it linked to arthritis or fibromyalgia?

Sometimes it travels with company: costochondritis occurs more often in people with fibromyalgia (the chest wall is a common tender territory there) and in the inflammatory arthritis family (ankylosing spondylitis and psoriatic arthritis inflame the rib joints as part of their pattern: chest expansion pain is a recognized feature), and in those contexts the rib pain follows the bigger condition's treatment. For most people it is a standalone, harmless, self-limiting strain with none of these connections. The clues that the pain belongs to a bigger story: widespread pain and fatigue, morning stiffness lasting over 30 minutes, or joint swelling elsewhere: worth mentioning at the review.

Can it come back, and how do I prevent that?

Recurrence is common enough to plan for: the same cartilage gets re-strained by the same triggers (the next bad cough, the enthusiastic return to press-ups), and people who have had it once recognize the second episode instantly. The prevention is pattern-breaking: treat coughs properly (and if you smoke, that is the single biggest cough-fix available), rebuild exercise gradually after any layoff rather than at previous intensity, fix the lifting technique (load close, no twist), and at the first familiar twinge, start the heat-and-gel routine early rather than toughing it into a full flare. It is a condition of management, not vulnerability: knowing it well is the protection.

Sources

Pymander is not a replacement for a physician and does not provide medical advice, diagnosis, or treatment.

Free AI doctor, 24/7 by textStart a free AI doctor consult