Anxiety and stress can cause chest pains. There is also something called precordial catch syndrome. Precordial Catch Syndrome (PCS), also known as Texidor's twinge, is a common cause of chest pain complaints in children and adolescents. It also occurs less frequently in adults. PCS manifests itself as an intense, sharp pain typically at the left side of the chest. which is worse when taking breaths. This typically lasts 30 seconds to 3 minutes and then is resolved as quickly as it began.
There is also something called costochondritis.
Costochondritis is an inflammation of the junctions where the upper ribs join with the cartilage that holds them to the breastbone or sternum. The condition causes localized chest pain that you can reproduce by pushing on the cartilage in the front of your ribcage. Costochondritis is a relatively harmless condition and usually goes away without treatment. The cause is usually unknown.
Costochondritis (with unknown cause) is a common cause of chest pain in children and adolescents. It accounts for 10-30% of all chest pain in children. Annually, doctors evaluate about 650,000 cases of chest pain in young people 10-21 years of age. The peak age for the condition is 12-14 years.
Costochondritis is also considered as a possible diagnosis for adults who have chest pain. Chest pain in adults is considered a potentially serious sign of a heart problem by most doctors until proven otherwise. Chest pain in adults usually leads to a battery of tests to rule out heart disease. If those tests are normal and your physical exam is consistent with costochondritis, your doctor will diagnose costochondritis as the cause of your chest pain. It is important, however, for adults with chest pain to be examined and tested for heart disease before being diagnosed with costochondritis. Often it is difficult to distinguish between the two without further testing. The condition affects females more than males (70% versus 30%). Costochondritis may also occur as the result of an infection or as a complication of surgery on your sternum.
Tietze syndrome is often referred to as costochondritis, but the two are distinct conditions. You can tell the difference by noting the following:
Tietze syndrome usually comes on abruptly, with chest pain radiating to your arms or shoulder and lasting several weeks. Tietze syndrome is accompanied by a localized swelling at the painful area (the junction of the ribs and breastbone).
On a side note, I am not a doctor. If you want to ask a doctor question, be sure to hit the button "Ask a Doctor"