In order to investigate the effectiveness and accuracy of magnetic resonance imaging (MRI) in the diagnosis of benign and malignant thoracic tumors, the research retrospectively selected 80 patients with thoracic tumors admitted from May 2019 to May 2020 as the study subject and all patients were underwent MRI detection. Using pathological diagnostic results as the gold standard, the research analyzed the detection of benign and malignant thoracic tumors by MRI, as well as the diagnostic sensitivity and specificity. After pathological diagnosis, there were 35 malignant tumors and 45 benign tumors. 41 cases of malignant tumors and 39 cases of benign tumors were diagnosed by MRI, with a diagnostic sensitivity of 80.00%, a diagnostic specificity of 71.11%, and a diagnostic compliance rate of 75.00%. In the MRI diagnosis of tumors in different parts of the chest, the diagnostic sensitivity for lung tumors, mediastinal tumors, chest wall tumors, and esophageal tumors was 83.33%, 71.43%, 83.33%, 75.00%, and 87.50%, respectively, and the specificity was 66.67%, 77.78%, 57.14%, 50.00%, and 91.67% according to and breast tumors, respectively. And the accuracy was 73.33%, 75.00%, 69.23, 62.50%, and 90.00%, respectively, with the highest diagnostic sensitivity, specificity, and accuracy for breast tumors. MRI has a good effect on the diagnosis of benign and malignant thoracic tumors and has a high diagnostic value, which is helpful to identify the location, nature, source, and lesion scope of the tumor. It is safe and worthy of promotion.