Thanks for consulting ATD.
Chest pain in the ribs while breathing can be found in Costo-chondritis, musculoskeletal sprain. It can be confirmed by presence of local tenderness (If you press gently over the affected area, pain will increase). Try hot fomentation, stretch exercises and pain killer medicine available over the counter. Inflammation of Pleura (Pleurisy) can also cause such a pain; but it is associated with symptoms like cough, fever, breathlessness, etc. If the pain is not subsiding in couple of days, consult your physician for further advice.
Have a nice day.
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.