This may be caused by peptic ulcers , gastroesophageal reflux , gas pockets, irritable bowel syndrome , esophageal spasm , achalasia, or a tear or ulcer in the esophagus. This may include gallbladder pain from cholecystitis , or pancreatitis . This is a viral infection of the central nervous system. Other causes are also possible. In some cases, the cause is never found.
Prevention depends on the underlying cause of the chest pain.
For example, avoiding overexertion can prevent muscle strain. In many cases chest pain cannot be prevented. Individuals can determine for themselves that they have chest pain. It is the healthcare provider's job to find the cause of the pain. The provider will perform a physical exam and take a medical history.