The first thing you may think of is heart attack if you are having chest pain. Chest pain is not something you should ignore, but you should know that it has many possible causes. In fact, as many as a quarter of people in the U.S. will have chest pain that does not have anything to do with their heart. For example, chest pain may also be caused by problems in your lungs, muscles, ribs, or nerves. Some of these conditions are serious and may cause death, but others are not. If you have chest pain, the only way to confirm its cause is to see a doctor.