K- and P-doped SrFe2As2 belong to hole doping and isovalent doping, respectively, and their effects on the band, Fermi surface, and partial density of states of Fe 3d and As 4p orbitals are also significantly different. However, these two types of doping consistently follow the rule that reducing the Fe ions height can quickly suppress antiferromagnetic order. Compared with the As-Fe-As angle, Fe-As bond length, and Fe-Fe distance, the decrease in Fe ions height more directly and quickly suppresses antiferromagnetic order, and the total density of states in the range of – 1.5 eV to ~ 1.5 eV exhibits similar properties in K and P doping in the process of 25% K- and 12.5% P-doped SrFe2As2.