This study explores the influence of Co2+ and Cr3+ doping on the microstructure and electrical properties of Ba-hexagonal ferrite synthesized using the sol-gel method. X-ray diffraction (XRD) confirmed the formation of the anticipated hexagonal M-type crystal structure. Field emission scanning electron microscopy (FESEM) revealed the evolution of grain morphology with increasing doping levels, showcasing the formation of needle-like grains. Electrical characterization using an impedance analyzer investigated dielectric, impedance, electric modulus, and conductivity properties at room temperature. The analysis of the dielectric spectra indicated a decrease in dielectric constant and an increase in loss tangent with increasing dopant concentration. The electric modulus spectra provided evidence for non-Debye relaxation behavior, further supported by observations of relaxation processes at varying frequencies in the conductivity spectra. Additionally, an increase in doping led to a decrease in both relaxation time and AC conductivity. Electrochemical impedance spectroscopy (EIS) measurements yielded complex impedance curves. These curves exhibited good agreement with the values obtained through software-based simulations of grain and grain boundary characteristics. Furthermore, the distribution of grains and grain boundaries observed in FESEM micrographs aligned with the patterns predicted by the EIS software.