Causes of chest pain can vary from benign to life-threatening conditions, and in many cases not necessary of cardiac origin. A possible reason for noncardiac chest pain could be anxiety or depression caused by chronic liver diseases. The aim of this study was to investigate the association of anxiety and depression with chronic liver disease in patients with noncardiac pain.Patients with chest tightness or pain referred for treadmill exercise testing were recruited from a regional hospital in southern Taiwan. Medical records of the patients were used to define the presence and type of chronic liver disease. Multiple logistic regression analyses were conducted to assess the association of anxiety and depression with chronic liver disease.A total of 2537 patients with liver function test results and abdominal sonography data were analyzed, and 1965 patients showed a negative treadmill exercise testing. The mean age of these 1965 patients was 51.9 years and 54.2% were male. The prevalence of alcoholic liver disease, hepatitis B, hepatitis C, and fatty liver disease was 10.6%, 10.9%, 3.7%, and 27.0%, respectively. Results from multiple logistic regression analyses showed that the risk of anxiety (adjusted odds ratio [aOR] = 1.83, P < .001) and depression (aOR = 1.85, P < .001) was significantly higher in patients with alcoholic liver disease. Anxiety was significantly higher in patients with fatty liver disease (aOR = 1.30, P = .031), and the risk of depression was significantly higher in patients with chronic hepatitis C (aOR = 2.18, P = .005).In conclusion, in patients with noncardiac chest pain, alcoholic liver disease was significantly associated with anxiety and depression, while those with fatty liver and chronic hepatitis C were associated with anxiety and depression, respectively. Clinicians should be vigilant to these correlations in their practice.