Enhancing the oxidation resistance of hot-end components under extreme conditions is a key focus in aerospace equipment research. We used first-principles simulations to investigate a series of IrxHf100−x (at. %) coatings. By employing density functional theory and the local density approximation method, we studied the surface oxygen repulsion energy and estimated the optimal composition ratio of IrxHf100−x for the strongest oxidation resistance. The results indicate that as the Hf content increases, the oxygen repulsion energy first rises and then falls, reaching a maximum value of 3.04 eV at x = 10 at. %, with active oxygen adsorption occurring when X exceeds 45 at.%. To understand the mechanism of the oxygen repulsion process, we analyzed the electronic characteristics between Ir, Hf, and O. O preferentially hybridizes its atomic orbitals with Ir, and the improvement in oxidation resistance of the Ir–Hf coating is attributed to the reduction in Ir atomic spacing due to Hf doping, which reduces O–Ir orbital hybridization.