Spinel nano cobalt ferrite CoFe2−xGaxO4 over a compositional range 0⩽x⩽0.8 was synthesized by the sol–gel method. The doping effect of Ga ions on crystalline phase, microstructure and magnetic properties were investigated. X-ray powder diffraction patterns confirm the single crystalline phase of the nanoparticles. Both Rietveld refinement and Mössbauer effect spectroscopy were used to study the distribution of cations in tetrahedral (A) and octahedral [B] sites of the spinel. They both suggest a partially inverse CoFe2−xGaxO4. Furthermore, the magnetic measurements show that the saturation magnetization increases for the Ga doped CoFe2O4. Meanwhile, the coercivity field decreases with increasing the Ga content.