The effect of external magnetic field on the excited state energies in a spherical quantum dot was studied. The impurity energy and binding energy were calculated using the variational method within the effective mass approximation and finite barrier potential. The results showed that by increasing the magnetic field, the energy would be increased. The results obtained by this method were compared with the previous investigations.