Purpose: Explore the function and dose calculation accuracy of MRI images in radiotherapy planning through deep learning methods. Methods: 131 brain tumor patients undergoing radiotherapy with previous MR and CT images were recruited for this study. A new series of MRI from the aligned MR was firstly registered to CT images strictly using MIM software and then resampled. A deep learning method (U-NET) was used to establish a MRI-to-CT conversion model, for which 105 patient images were used as the training set and 26 patient images were used as the tuning set. Data from additional 8 patients were collected as the test set, and the accuracy of the model was evaluated from a dosimetric standpoint. Results: Comparing the synthetic CT images with the original CT images, the difference in dosimetric parameters D98, D95, D2 and Dmean of PTV in 8 patients was less than 0.5%. The gamma passed rates of PTV and whole body volume were: 1%/1mm: 93.96%±6.75%, 2%/2mm: 99.87%±0.30%, 3%/3mm: 100.00%±0.00%; and 1%/1mm: 99.14%±0.80%, 2%/2mm: 99.92%±0.08%, 3%/3mm: 99.99%±0.01%. Conclusion: MR images can be used both in delineation and treatment efficacy evaluation and in dose calculation. Using the deep learning way to convert MR image to CT image is a viable method and can be further used in dose calculation.