The following home remedies may provide some relief from costochondritis:
Taking pain relievers such as nonsteroidal anti-inflammatory medications like ibuprofen (Advil, Motrin) or naproxen (Aleve) as needed.
Using local heat or ice to relieve pain.
Avoiding unnecessary exercise or activities that make the symptoms worse; avoiding contact sports until there is improvement in symptoms, and then returning to normal activities only gradually and as tolerated.
Doing stretching exercises.
Source: NHS