Zocdoc Answers

Medical questions & health advice by board certified doctors

"Why does my rib cage hurt when I lie down?"


Every night when I lay down I get pain and soreness in my rib cage. It never hurts at any other time. Why? Why do my ribs hurt when I am laying down?


There are several different causes of rib pain. For example, sometimes the joints between the sternum and the ribs become inflamed. This is called costochondritis, and it tends to cause pain that will hurt more if you press over the area where the ribs and sternum come together.

See a doctor who can help

Find a Primary care-doctors near you

Costochondritis is often commonly associated with a recent viral illness, such as the common cold. Similarly, it is possible to strain the muscles between the ribs, usually from heavy lifting or from poor postured. Strained muscles will give a pain similar to costochondritiis, although usually more diffuse. The pain from both costochondritis and strained muscles of the ribcage tends to be worse at night. This is because the rib cage is 'squashed' by lying in bed, which puts pressure on the sensitive areas. Other activities that tend to cause worse pain include deep breaths. I recommend that you go see your primary care doctor about this issue. They will be able to examine the affected areas and confirm what is going on. Based on what they find, they will be able to recommend an appropriate treatment which usually, in most cases, starts with taking a good dose of an anti inflammatory medication.

Zocdoc Answers is for general informational purposes only and is not a substitute for professional medical advice. If you think you may have a medical emergency, call your doctor (in the United States) 911 immediately. Always seek the advice of your doctor before starting or changing treatment. Medical professionals who provide responses to health-related questions are intended third party beneficiaries with certain rights under Zocdoc’s Terms of Service.