This study investigates the structural, electronic, and optical properties of Hf-substituted CaZrS₃ (CaZr_(1-x) Hf_x S_3, where x =0.25,0.50, and 0.75) for photovoltaic applications. Using first-principles calculations within the Quantum Espresso framework, we explore the effects of Hf incorporation on the orthorhombic crystal structure (Pnma space group). The study reveals that Hf substitution significantly influences the material’s properties, including lattice parameters, band gap, and optical absorption. The calculated band gaps for Hf-substituted CaZrS₃ are smaller than the experimental value for unsubstituted CaZrS₃, indicating enhanced suitability for photovoltaic applications. Moreover, Hf substitution improves the thermal, mechanical, and chemical stability of the material. The results suggest that Hf-substituted CaZrS₃ is a promising candidate for high-efficiency, stable, and environmentally friendly photovoltaic devices.