PurposeThe purpose of this study is to deal largely with the influence of temperature variation on the measurement accuracy of transit-time ultrasonic flowmeter.Design/methodology/approachThe causes of measurement error due to temperature are qualitatively and quantitatively analyzed, and a mathematical model is established. The experimental data are processed and analyzed, and the temperature compensation coefficient of flow measurement is obtained.FindingsThe experimental results show that the flow measurement results by temperature compensation are helpful in improving the measurement accuracy of the ultrasonic flowmeter.Practical implicationsThis study has certain application value, which can provide theoretical support for the design of high-precision ultrasonic flowmeters and design guidance.Originality/valueIt is worth emphasizing that there are few research studies on the influence factors of temperature. This paper focuses on the influence of the temperature change on the flowmeter that is modeled, and the high precision flow parameter test system is designed based on the established model.