In this paper, the electromagnetic mass differences of heavy hadrons are discussed, while ignoring the relevant hyperfine interactions. The effects of one-photon exchange interaction and up-down quark mass difference are parameterized. Two mass difference equationsfor the heavy baryons are obtained. In addition, the masses of Σ 0 b , Ξ 0 b , and Ξ ++ cc are predicted based on the known experimental data.