The electronic structure and magnetic properties of the (Co1-xFex)Tet(CoxFe2-x)OctO4 spinels (x is deﬁned as the degree of inversion) scenario are investigated theoretically from first-principles, using generalized gradient approximation (GGA) method for the systems with strong coulomb correlations, which gives a correct description of the electronic structure. The GGA+U method gives an improved qualitative result compared with the GGA not only for the excited-state properties such as energy gaps but also for the ground-state properties such as magnetic moments and crystal parameters. The nominal valence of the transition metal elements and the ground state structure have been established based on the study of variation of the cation distribution (x=0.0, 0.25, 0.5, 0.75 and 1.0) over the tetrahedral and octahedral sites. The site-preference calculation on bulk systems indicates that Co2+ ions strongly prefer the octahedral B sites, and the electronic structure and magnetic properties of cobalt ferrites highly depend on the cation distributions even though the chemical composition of the compound does not change. The results are in good agreement with the available experimental data and most of the other theoretical results.