Medications usually do not cause chest pain. However, some medications, such as aspirin, ibuprofen, and some antibiotics may cause stomach acid to back up (reflux) into the esophagus, causing pain or discomfort behind the breastbone, in the center of the chest (heartburn).
The use of illegal drugs, especially cocaine and amphetamines, may cause a rapid heart rate and chest pain.
If a chest pain occurs after you have begun a new medication:
WebMD Medical Reference from Healthwise