Injecting hydrogen into natural gas pipelines for direct use by end users is an economical and effective method to realize long-distance transportation of hydrogen. However, the density of hydrogen is much lower than natural gas, and it tends to accumulate at the top of the pipeline, resulting in significant different flow characteristics of pure natural gas. Therefore, mixing hydrogen into natural gas pipelines will affect the accuracy of calorific value and flow rate measurement in the existing natural gas metering system. This article studies the flow characteristics of injecting hydrogen into natural gas using a T-shaped pipe and its impact on energy measurement through CFD numerical simulation. The results show that the energy metering equipment should be installed where the gas reaches a uniform mixture and the radial section velocity is centrally symmetrical. Injecting hydrogen with a lower position, and smaller main stream velocity will shorten the distance between the metering pipeline section and the mixing point, but a distance of at least 100 times the pipe diameter is still required. Thus, a mixing process combining a static mixer and flow straightener is proposed, which reduces this distance to within 40 times the pipe diameters.