This paper describes how to realize the auto-calculation for parameters of parallel thread gauge, including the basic dimension and maximum deviation of the diameter. The comprehensive compensation value is considered in the procedure of pitch diameter calculation. As a result, a software based on MFC and COM is developed. The effort is made to support the inputting and managing batch gauges at one time as well as converting the results to office excel files, which will be an important document for later measurement activities. The underway use shows that this program is an effective solution for problems in our current work, such as we are required to query tables frequently and to deal with complicated calculation and high probability mistakes. The efficiency is significantly improved.