Pericarditis is an inflammation of the tissue layers surrounding the heart. The chest pain of pericarditis is usually sharp and stabbing. It can radiate to the back, neck, or arm. The pain may worsen when taking a deep breath or lying flat and lessen when leaning forward.