Rib Pain: Common Causes, Easing It at Home and Red Flags
When every breath, cough or turn catches, here is how to make sense of it and when to get help.
First, the important question
Pain around the ribs is usually caused by muscles, cartilage or bone in the chest wall, and most of the time it settles with care and time. But the ribs sit right over the heart and lungs, so some serious conditions can feel like rib pain. Before anything else, please check the list below.
Call 911 or your local emergency number now if you have
Chest pain or pressure that spreads to the arm, jaw, neck or back, or comes with sweating, nausea or feeling faint
Sudden shortness of breath, especially with sharp pain on breathing, coughing up blood, or a racing heart
Rib pain after a serious fall, crash or blow, with trouble breathing
Chest pain with blue lips, confusion or collapse
If you're unsure whether pain is coming from your heart, treat it as an emergency. It is always better to be checked and reassured.
Common, less dangerous causes
Once the urgent possibilities are ruled out, rib pain often comes from one of these:
Muscle strain. The intercostal muscles between the ribs can be pulled by twisting, reaching, lifting or a hard workout. It typically hurts with movement and deep breaths.
Costochondritis. Irritation of the cartilage that joins the ribs to the breastbone. The front of the chest is tender to press, and pain may be sharp or aching.
Bruised or cracked ribs. After a fall or knock, pain can be sharp and localized, and worse with breathing, coughing or lying on that side.
Heavy coughing. A long chest infection or allergy season can strain the chest wall, and a strong coughing fit can occasionally crack a rib.
Posture and long sitting. Hunching over a desk or phone for hours can leave the chest and upper back tight and sore.
Shingles. Burning or tingling pain along one side of the ribs, followed a few days later by a band of rash. See a doctor promptly if you suspect it, as early care matters.
Lung infections, inflammation of the lining around the lungs, gallbladder or liver problems, and other conditions can also cause pain felt around the ribs, which is why persistent or unexplained pain deserves an exam.
Chest wall pain often hurts when you press on it or move. Pain that doesn't change with movement deserves extra caution.
See a doctor soon if
The pain followed a fall or injury, even without breathing trouble
You have fever, chills, or a cough with colored phlegm
A rash or blisters appear on one side of your chest or back
The pain is getting worse rather than better after a few days
You've had rib pain for more than a couple of weeks without a clear cause
You have unexplained weight loss, night sweats, or a history of cancer or osteoporosis
Easing chest-wall pain at home
For pain a doctor has linked to a strain, bruise or costochondritis, many people find these steps helpful:
Relative rest. Pause heavy lifting, pushing, intense workouts and twisting sports until things calm down.
Cold, then warmth. A wrapped cold pack for 15 to 20 minutes can help in the first couple of days after an injury; later, gentle warmth can ease tight muscles.
Keep breathing deeply. It is natural to take shallow breaths when it hurts, but a few slow, deep breaths every hour help keep the lungs clear, especially after a rib injury.
Hug a pillow. Holding a cushion firmly against your chest when you cough or sneeze can reduce the jolt.
Pain relief. Over-the-counter options used as the label directs help some people breathe and move more comfortably. Check with a pharmacist if you have other conditions or take other medicines.
Avoid tight strapping. Binding the ribs tightly is generally not recommended because it restricts breathing.
Sleep, work and everyday movement
Rib pain often feels worst at night and first thing in the morning. Many people sleep better propped up on extra pillows or in a recliner for a few nights, or lying on the side that doesn't hurt with a pillow hugged to the chest. To get out of bed, roll onto your side first, then push up with your arms rather than sitting straight up.
At work, keep frequently used items within easy reach, take short breaks to stand and gently roll the shoulders, and set your screen at eye level so you are not hunching. If your job involves lifting, ask whether lighter duties are possible for a while. Recovery from a strain or bruised rib often takes a few weeks, and cracked ribs can take longer, so pacing yourself pays off.
When pain lingers
Most chest wall pain improves gradually. If yours keeps returning or drags on, a doctor may examine you, listen to your chest, and sometimes order an X-ray, blood tests or other scans to look for less common causes. A physical therapist can help with posture, breathing and gentle mobility work if muscles stay tight. Ongoing pain can also take a toll on mood and sleep, which is worth mentioning at your appointment.
Before the visit, it helps to note exactly where the pain is, whether pressing on the spot reproduces it, what movements or breaths make it worse, and whether anything else came with it, such as a cough, fever, rash or heartburn. Those details often point a clinician toward the cause much faster.
The takeaway
Rib pain is usually a chest wall problem such as a strain, a bruise or costochondritis, and it often eases with relative rest, gentle breathing and time. But chest pain with breathlessness, spreading pain, sweating or a recent serious injury needs emergency care straight away.
If you'd like to organize your symptoms before speaking to a doctor, try our free Chronic Pain Check-Up.
This article is general information, not medical advice. If you're worried about your symptoms, talk to a doctor.
Reviewed by the ItHurts editorial team · Last reviewed 18 October 2026 · General information, not medical advice. If you are worried about your symptoms, talk to a doctor.
Login to your Account
Hurting today? Take the free 2-Minute Chronic Pain Check-Up for your Pain Load score and 3 things to try this week