We present a computational study of the magnetic circular dichroism (MCD) spectra in the 200-300 nm wavelength region of purine and its derivative hypoxanthine, as well as of the pyrimidine bases of nucleic acids uracil, thymine, and cytosine, using the B3LYP and CAM-B3LYP functionals. Solvent effects are investigated within the polarizable continuum model and by inclusion of explicit water molecules. In general, the computed spectra are found to be in good agreement with the experimental ones, apart from some overall blue shifts. Both the pseudo-A term shape of the MCD spectra of the purines and the B term shape of the spectra of pyrimidine bases are reproduced. Our calculations also correctly reproduce the reversed phase of the MCD bands in purine compared to that of its derivatives present in nucleic acids. Solvent effects are sizable and system specific, but they do not in general alter the qualitative shape of the spectra. The bands are dominated by the bright π → π* transitions, and our calculations in solution nicely reproduce their energy differences, improving the estimates obtained in the gas phase. Shoulders are predicted for purine and uracil due to n → π* excitations, but they are too weak to be observed in the experiment.