There are many reasons for rib pain on both sides every time you go to bed, and the common ones are intercostal neuritis, chronic strain injury, and thoracic spondylolisthesis.
1. Intercostal neuritis: it is the inflammation of intercostal nerves caused by various reasons, which is manifested as pain and abnormal sensation in the distribution area of intercostal nerves, radiating along the intercostal space with semi-ring distribution, and aggravated by pain when coughing and deep breathing.
2. Chronic strain injury: due to prolonged bad posture such as head down, stooping, etc., there can be chronic injury of ribs and chest wall, which is manifested as pain in ribs on both sides every time you sleep.
3. Thoracic vertebral osteophytes: bony protrusions growing along the edge of the thoracic vertebrae can cause pain, numbness and other symptoms if they press on the surrounding nerves, muscles or other structures; the nerves in the thoracic vertebrae mainly extend to the intercostal space on both sides, which can be manifested as pain in the ribs on both sides every time you go to sleep in some patients.
Every time you sleep up both sides of the rib pain may have other reasons such as herpes zoster, etc. It is recommended to go to the hospital in a timely manner, improve the examination to clarify the cause of the disease, standardized treatment.