Background: Early detection of brain tumors is fundamental to improve treatment outcomes and patient survival. Although computed tomography is commonly used because it is accessible, magnetic resonance imaging has become more popular because of its higher image resolution. This study aimed to compare the diagnostic accuracy of computed tomography and magnetic resonance imaging in detecting brain tumors. Methods: The study included 120 participants between the ages of 20 to 75 (mean age: 48), each of whom had a computed tomography and magnetic resonance imaging scan for suspected brain tumors. Diagnostic measures such as true positives (TP), true negatives (TN), false positives (FP) and false negatives (FN) were calculated. Sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV) and accuracy for each model. Results: CT scans identified 45 TP, 60 TN, 10 FP, and 5 FN cases. The sensitivity of CT scans was 90.0%, specificity was 85.7%, PPV was 81.8%, NPV was 92.3%, and accuracy was 87.5%. MRI identified 48 TP, 65 TN, 6 FP, and 1 FN case. The sensitivity of MRI was 98.0%, specificity was 91.5%, PPV was 88.9%, NPV was 98.5%, and accuracy was 93.8%. MRI demonstrated higher sensitivity, specificity, PPV, NPV, and accuracy compared to CT scans.Conclusion: Magnetic resonance imaging is superior to computed tomography in detecting brain tumors. It has greater overall sensitivity and accuracy. These findings suggest that MRI should be used to diagnose brain tumors. Especially where high sensitivity is important. However, factors such as cost and accessibility should be considered when choosing between these methods