The causes of rib cramps are as follows: 1. local trauma: for example, when there is a fracture of the ribs or an injury to the intercostal muscles, the acute painful stimulation can lead to persistent spasms and cramps in the intercostal muscles. 2. intercostal chondritis: it can manifest as pain in a single rib, sometimes the pain can provoke the intercostal muscles, causing spasms in the intercostal muscles and therefore manifesting as rib cramps. 3. intercostal neuritis: mostly Due to viral infection, the pain is characterized by a semi-circular walk along the intercostal space, and rib cramps can also occur when the pain is intense. In the above cases, you must actively treat the symptoms, you can use physical therapy, bioelectric therapy and other methods to relieve cramps and pain.