The influence of injection distance on the porosity of Ni-based amorphous coatings (AMCs) prepared with a high-velocity air fuel (HVAF) process is discussed based on a numerical analysis and experimental methods. A computational fluid dynamics model was established to demonstrate the gas flow field and behavior of particles in flight at different spraying distances during HVAF spraying. When analyzing the changes in the particle velocity and temperature, the spraying distance is less than 30 µm. The velocity and temperature changes of small particles have a significant impact, and the optimal spray distance (350 mm) for obtaining a low porosity coating is predicted. The calculation was validated experimentally by producing a Ni-based AMC with a low porosity (1.87 %) that was manufactured using the predicted HVAF optimal spraying distance.