The causes of rib cramps are as follows: 1, local trauma: for example, when there is a fracture of the rib or intercostal muscle injury, due to acute pain stimulation, it can lead to persistent spasms and cramps of the intercostal muscle.2, costal chondritis: it can be manifested as the pain of a single rib, and sometimes the pain will provoke to the flesh of the intercostal muscles, which can cause spasms of the flesh of the intercostal muscles, and therefore it will be manifested as rib cramps.3, intercostal neuritis: mostly caused by viral infections. Caused by viral infection, the pain is characterized by half-ring walking along the intercostal space, and rib cramps will also appear when the pain is severe. The above situations, we must actively treat the symptoms, you can use physical therapy, bioelectric therapy and other methods to relieve cramps, pain.